1d3cb6c8fc4acb037cbf5e7c5e094ad6da0d4704
[gnulib.git] / ChangeLog
1 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2
3         strtoimax: port to HP-UX 11.11
4         Problem reported by Daniel Richard G.
5         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
6         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
7         they might clash with inttypes.h.
8
9 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10
11         New module 'count-trailing-zeros'.
12         * MODULES.html.sh: Mention it.
13         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
14         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
15         * modules/count-trailing-zeros-tests:
16         * tests/test-count-trailing-zeros.c:
17         New files.
18
19         count-leading-zeros: port to MSC; support types wider than 64 bits
20         The ideas behind the MSC port are stolen from Emacs.
21         * lib/count-leading-zeros.h:
22         Don't include verify.h: it's no longer needed, as types wider than
23         64 bits are now supported.
24         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
25         performance with MSC.  All uses changed.  Do not assume that TYPE
26         has at most 64 bits.
27         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
28         All uses changed.  Fold the subtraction from 31 into the table.
29
30         count-one-bits: port to MSC; support types wider than 64 bits
31         The ideas behind the MSC port are stolen from Emacs.
32         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
33         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
34         Don't include verify.h: it's no longer needed, as types wider than
35         64 bits are now supported.
36         (COUNT_ONE_BITS_GENERIC): New macro.
37         (popcount_supported) [_MSC_VER]: New inline function.
38         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
39         performance with MSC.  All uses changed.  Do not assume that TYPE
40         has at most 64 bits.
41         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
42
43 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
44
45         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
46         * lib/mountlist.c (read_file_system_list): fix leak of directory
47         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
48
49 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
50
51         tests: improve diagnostic when an assertion fails
52         * tests/macros.h (ASSERT): Report the assertion that failed.
53
54 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55
56         verify: new macro 'assume'
57         This is taken from Emacs, and should be generally useful.
58         * doc/verify.texi (assume): Document it.
59         * lib/verify.h (assume): New macro.
60         (__has_builtin): Expand to 0 if not defined.
61
62 2013-09-26  Eric Blake  <eblake@redhat.com>
63
64         dup2, dup3: work around another cygwin crasher
65         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
66         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
67         * tests/test-dup2.c (main): Likewise.
68         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
69         * lib/dup3.c (dup3): Likewise.
70         * doc/posix-functions/dup2.texi (dup2): Document it.
71         * doc/glibc-functions/dup3.texi (dup3): Likewise.
72
73         getdtablesize: work around cygwin issue
74         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
75         * modules/getdtablesize (configure.ac): Build replacement.
76         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
77         * modules/unistd (Makefile.am): Expose the witness.
78         * lib/unistd.in.h (getdtablesize): Declare replacement.
79         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
80         * tests/test-getdtablesize.c (main): Test it.
81         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
82
83 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
84
85         pmccabe2html: escaping of special characters
86         Escape all '<', '>', and '&' in HTML output.
87         * build-aux/pmccabe2html (html_fnc): Call gsub()
88         instead of sub() to capture all '<', '>', and '&'.
89         Neither of '<' and '>' is special in a regexp,
90         so first arguments to gsub() are corrected. Also,
91         in replacement strings, ampersand must be escaped.
92         Finally, '&' must be handled first, then '<' and '>'.
93
94 2013-09-24  Eric Blake  <eblake@redhat.com>
95
96         manywarnings: enable nicer gcc warning messages
97         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
98         some -f options for optimal warnings.
99
100 2013-09-21  Jim Meyering  <meyering@fb.com>
101
102         timespec: use the new TIMESPEC_RESOLUTION in a few more places
103         * lib/timespec-add.c (timespec_add): Also replace 999999999
104         with TIMESPEC_RESOLUTION - 1.
105         * lib/timespec-sub.c (timespec_sub): Likewise.
106
107 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
108
109         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
110         Problem reported by Dagobert Michelsen via Eric Blake in
111         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
112         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
113         not AC_COMPILE_IFELSE.
114
115 2013-09-23  Eric Blake  <eblake@redhat.com>
116
117         configmake: support new --runstatedir option
118         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
119         even if autoconf was too old to provide the command line option.
120         * modules/configmake (Makefile.am): Propagate it to .h file.
121
122 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
123
124         ctype, string: depend on extern-inline
125         This is needed to complete the recent OS X fixes.
126         Also, fix related documentation as suggested by Eric Blake.
127         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
128         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
129         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
130         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
131         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
132         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
133         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
134         * doc/posix-functions/toupper.texi:
135         List the 'ctype' gnulib module.
136         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
137         * doc/posix-functions/strncpy.texi:
138         List the 'string' gnulib module.
139         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
140         Add string.
141         * modules/ctype, modules/string (Depends-on): Add extern-inline.
142
143 2013-09-19  Pádraig Brady  <P@draigBrady.com>
144
145         userspec: support optional parameters to parse_user_spec()
146         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
147         then avoid group processing and treat the full spec as a user.
148         (parse_with_separator): Allow the USERNAME and GROUPNAME to
149         be optional params (NULL), in which case they're ignored.
150
151 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
152
153         timespec: new function make_timespec, and new constants
154         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
155         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
156         (make_timespec): New function.
157         * lib/dtotimespec.c (dtotimespec):
158         * lib/timespec-add.c (timespec_add):
159         * lib/timespec-sub.c (timespec_sub):
160         * lib/utimens.c (validate_timespec):
161         * lib/utimensat.c (rpl_utimensat):
162         Use these new constants and functions.
163
164         stdio: OS X port of putc_unlocked + extern inline
165         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
166         * doc/posix-functions/putc_unlocked.texi:
167         * doc/posix-functions/putchar_unlocked.texi:
168         Document this portability problem.
169
170         signal: OS X port of sigaddset etc. + extern inline
171         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
172         (sigismember): #undef on problematic Apple platforms.
173         * doc/posix-functions/sigaddset.texi:
174         * doc/posix-functions/sigdelset.texi:
175         * doc/posix-functions/sigemptyset.texi:
176         * doc/posix-functions/sigfillset.texi:
177         * doc/posix-functions/sigismember.texi:
178         Document this portability problem.
179
180         extern-inline: do not always suppress extern inline on OS X
181         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
182         extern inline on Apple only if the particular compile-time
183         configuration is known to have the problem.
184         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
185         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
186         other Gnulib modules.
187
188         extern-inline: document fixes for ctype and wctype macros
189         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
190         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
191         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
192         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
193         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
194         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
195         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
196         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
197         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
198         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
199         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
200         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
201         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
202         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
203         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
204         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
205         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
206         * doc/posix-functions/strncpy.texi:
207         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
208         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
209         Document that Gnulib fixes portability problems with these
210         functions on OS X 10.8 and earlier when called from plain inline
211         or extern inline functions.
212
213 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
214
215         fflush, freadahead, fseeko: Fix for Android
216         Suggested by Bruno Haible in:
217         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
218         * lib/stdio-impl.h: Use local __sfileext definition.
219
220 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
221
222         pmccabe2html: Portability to other awk versions.
223         The functions systime() and strftime() are available
224         in Gawk only.  Properly close two HTML-tags 'style'
225         and 'span'.
226         * build-aux/pmccabe2html (BEGIN): Store timing
227         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
228         systime() in HTML_COMMENT.
229         (html_header): Correctly close tag 'style'.
230         (END): Replace strftime() by CHRONOS_TIME.  Close
231         tag 'span' correctly, not as 'div'.
232
233 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
234
235         getgroups: statement without effect
236         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
237         Change equality conditional to expected assignment.
238
239 2013-09-09  Eric Blake  <eblake@redhat.com>
240
241         glob: fix compilation
242         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
243
244 2013-09-07  Eric Blake  <eblake@redhat.com>
245
246         glob: fix build for platforms without __THROW
247         * lib/glob.in.h (__THROW): Add definition again.
248
249 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
250
251         regex-quote: fix buffer access out of bounds
252         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
253         * lib/regex-quote.c (regex_quote_spec_pcre):
254         Fix typo that resulted in an out-of-bounds read.
255
256 2013-09-04  Eric Blake  <eblake@redhat.com>
257
258         glob: avoid -Wattribute warnings on glibc
259         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
260         __THROWNL, not __THROW, on static functions.
261         * lib/glob.in.h (__THROW): Adjust...
262         (__THROWNL): ...accordingly.
263
264 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
265
266         headers: check that _GL_INLINE_HEADER_BEGIN is defined
267         Suggested by Bruce Korb in:
268         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
269         * doc/extern-inline.texi (extern inline):
270         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
271         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
272         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
273         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
274         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
275         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
276         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
277         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
278         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
279         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
280         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
281         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
282         * lib/xtime.h:
283         Check that _GL_INLINE_HEADER_BEGIN is defined.
284
285 2013-08-29  Pádraig Brady  <P@draigBrady.com>
286
287         bootstrap: remove the --version requirement from ancillary tools
288         * build-aux/bootstrap (check_exists): A new refactored function to
289         determine if a command exists.
290         (find_tool): Use the new function which does not require the
291         --version option to be supported.
292         (check_versions): Use the new function.
293
294 2013-08-26  Simon Josefsson  <simon@josefsson.org>
295
296         gc: support HMAC-SHA256 and HMAC-SHA512.
297         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
298         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
299         functions.
300         (gc_hmac_md5): Use symbolic constant.
301         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
302         (gc_hmac_sha256, gc_hmac_sha512): New functions.
303         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
304         * m4/sha256.m4: Protect against empty expansion.
305         * m4/sha512.m4: Likewise.
306         * lib/hmac-sha256.c: New file.
307         * lib/hmac-sha512.c: Likewise.
308         * m4/gc-hmac-sha256.m4: Likewise.
309         * m4/gc-hmac-sha512.m4: Likewise.
310         * m4/gc-sha256.m4: Likewise.
311         * m4/gc-sha512.m4: Likewise.
312         * modules/crypto/gc-hmac-sha256: Likewise.
313         * modules/crypto/gc-hmac-sha256-tests: Likewise.
314         * modules/crypto/gc-hmac-sha512: Likewise.
315         * modules/crypto/gc-hmac-sha512-tests: Likewise.
316         * modules/crypto/hmac-sha256: Likewise.
317         * modules/crypto/hmac-sha256-tests: Likewise.
318         * modules/crypto/hmac-sha512: Likewise.
319         * modules/crypto/hmac-sha512-tests: Likewise.
320         * tests/test-gc-hmac-sha256.c: Likewise.
321         * tests/test-gc-hmac-sha512.c: Likewise
322         * tests/test-hmac-sha256.c: Likewise.
323         * tests/test-hmac-sha512.c: Likewise
324
325 2013-08-24  Daiki Ueno  <ueno@gnu.org>
326
327         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
328         of AC_CHECK_DECLS.
329
330 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
331
332         selinux-at: omit unnecessary include
333         * lib/selinux-at.c: Don't include dosname.h; not needed, since
334         this source file doesn't use its macros, and subsidiary files that
335         use the macros already include it.
336
337 2013-08-21  Eric Blake  <eblake@redhat.com>
338
339         d-ino: avoid false negative on symlink
340         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
341         Reported by Stephane Chazelas.
342
343 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
344
345         bootstrap: port to OpenBSD sed
346         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
347         does not interpret `-' as a file argument to mean stdin.
348
349 2013-08-15  Eric Blake  <eblake@redhat.com>
350
351         warnings: minor optimization
352         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
353
354         warnings: check -Wfoo rather than -Wno-foo
355         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
356         -Wno-, test if the compiler recognizes the positive form instead.
357
358 2013-08-15  Karl Berry  <karl@gnu.org>
359
360         * config/srclist-update: add option "doclicense" to placate
361         pulling *.texi files from Emacs.  Write terse usage
362         documentation at the top.
363
364 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
365
366         xvasprintf-tests: port to GCC with hardening flags
367         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
368         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
369         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
370
371 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
372
373         fpending: port to recent Cygwin change to stdio_ext.h
374         Reported by LRN in
375         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
376         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
377         just declare __fpending unless it's a macro.
378         A duplicate decl shouldn't hurt.
379         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
380         call compiles and links, instead of separately checking for
381         decl and lib function.
382         * modules/fpending (configure-ac):
383         Adjust to fpending.m4's renaming of shell variable.
384
385 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
386
387         sys_time: port to OpenBSD
388         * lib/sys_time.in.h: Simply delegate to the system's header
389         in the BSDish cases as well.  Problem reported by Mike Miller in
390         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
391         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
392         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
393         wider than time_t.
394
395 2013-08-09  Pádraig Brady <P@draigBrady.com>
396
397         bootstrap: support checksum utils having -c but not --status
398         * build-aux/bootstrap: Only look for sha1sum if updating po files.
399         Add sha1 to the list of supported checksum utils since it's now
400         supported through adjustments below.
401         (update_po_files): Remove the use of --status
402         in a way that will suppress all error messages, but since this is
403         only used to minimize updates, it shouldn't cause an issue.
404         Exit early if there is a problem updating the po file checksums.
405         (find_tool): Remove the check for --version support as this
406         is optional as per commit 86186b17.  Don't even check for the
407         presence of the command as if that is needed, it's supported
408         through configuring prerequisites in bootstrap.conf.
409         Prompt that when a tool isn't found, one can define an environment
410         variable to add to the hardcoded search list.
411
412 2013-08-05  Jim Meyering  <meyering@fb.com>
413
414         regex: port to non-glibc/lock-using systems
415         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
416         system with GNULIB_LOCK would fail due to absence of the
417         included "glthread/lock.h".  This would affect any package
418         for which the "lock" module is used only by the regex module,
419         and not explicitly used.
420         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
421         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
422         Add a dependency on the "lock" module.
423
424 2013-07-20  Daiki Ueno  <ueno@gnu.org>
425
426         localecharset: make locale_charset thread-safe on Mac OS X
427         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
428         instead of MB_CUR_MAX.
429
430 2013-07-20  Daiki Ueno  <ueno@gnu.org>
431
432         gettext: update to version 0.18.3
433         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
434         require AC_PROG_SED to allow user to specify custom sed command when
435         generating en@quot PO file.
436
437 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
438
439         bootstrap: use correct source when copying build-aux files
440         * build-aux/bootstrap (gnulib_extra_files): This variable is
441         relative to upstream gnulib layout, not downstream.
442
443 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
444
445         tmpdir: fix bug in VMS port
446         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
447         See Steven M. Schweda in
448         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
449
450 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
451
452         tmpdir: port to VMS, to // != /, and to long dirs
453         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
454         __secure_getenv, so that we're more like the glibc version.
455         All uses changed.
456         (path_search): Don't put slash after directory if __VMS.
457         Problem reported by Steven M. Schweda in
458         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
459         Simplify code to add slash; no need for a loop.
460         Do not remove trailing slash from "//".
461         Do not assume dlen <= INT_MAX.
462
463 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
464
465         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
466         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
467         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
468         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
469
470         accept4, dup3, pipe2: port to Cygwin
471         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
472         * lib/accept4.c (accept4) [O_BINARY]:
473         * lib/dup3.c (dup3) [O_BINARY]:
474         * lib/pipe2.c (pipe2) [O_BINARY]:
475         Use set_binary_mode, not setmode.
476         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
477         * modules/binary-io (Depends-on): Remove module indicator.
478         These last two bits undo the previous change to pipe2 and binary-io.
479
480 2013-07-09  Pádraig Brady  <P@draigBrady.com>
481
482         mountlist: add support for deallocating returned list entries
483         * lib/mountlist.c (free_mount_entry): A new exported function
484         to deallocate a mount list entry.
485         (read_file_system_list): Refactor to use the new deallocation function.
486         Suggested by Anton Ovchinnikov.
487
488 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
489
490         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
491         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
492         * lib/stdalign.in.h (_Alignas, _Alignof):
493         Port to FreeBSD 9.1, and to C11 and C++11.
494         (_Alignas): Also support ICC.
495         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
496         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
497
498 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
499
500         fnmatch: don't goto over declaration
501         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
502         undefined behavior for goto over a declaration.
503         Problem reported by Charlie Brown in
504         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
505
506         pipe2: decouple from binary-io a bit
507         This is for Emacs, which needs pipe2 but not binary-io.
508         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
509         * modules/binary-io (Depends-on): Add module indicator.
510
511 2013-07-03  Eric Blake  <eblake@redhat.com>
512
513         mgetgroups: relax license to LGPLv2+
514         * modules/getugroups (License): Change from GPLv3+.
515         * modules/mgetgroups (License): Likewise.
516         * modules/getgroups (License): Change from LGPLv3+.
517
518         xalloc-oversized: relax license to LGPLv2+
519         * modules/xalloc-oversized (License): Change from GPLv3+.
520
521         nproc: relax license to LGPLv2+
522         * modules/nproc (License): Change from LGPLv3+.
523
524         bootstrap: honor --no-git
525         * build-aux/bootstrap: Don't even try to use git when user is
526         pointing to a static checkout.
527
528 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
529
530         ignore-value: port to gcc -pedantic
531         * lib/ignore-value.h (ignore_value):
532         Port to gcc -pedantic, by using __extension__.
533         Reindent as per usual gnulib style nowadays.
534         Simplify GCC version check.
535
536 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
537
538         extern-inline: port to gcc -std=c89
539         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
540         Do not use __gnu_inline__ if pedantic and pre-C99.
541
542 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
543
544         doc: document extern-inline
545         * doc/extern-inline.texi: New file.
546         * doc/gnulib.texi (alloca-opt): Include it.
547         * m4/extern-inline.m4: Move some comments to documentation,
548         and others closer to what they describe.
549
550         doc: chatter less
551         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
552         (updated-stamp): Use it.  This causes 'make' to output just
553         one file name rather than zillions.
554
555         fflush, fseeko: port to musl cross-compiles
556         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
557         on some implementation that (1) is not known to be buggy,
558         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
559         cross-compiled to so we can't easily check for lack of
560         conformance.  This is for cross-compiling to musl.
561         Reported by Rich Felker in
562         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
563         * m4/fclose.m4 (gl_FUNC_FCLOSE):
564         * m4/fflush.m4 (gl_FUNC_FFLUSH):
565         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
566         Adjust to above change.
567         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
568         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
569         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
570         known not to work, or unknown.
571
572 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
573
574         msvc-inval: port to mingw-w64
575         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
576         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
577         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
578
579 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
580
581         getcwd-lgpl: port to Tru64
582         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
583         Problem reported by Steven M. Schweda in
584         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
585
586         tests: port large-fd POSIX spawn tests to OS X
587         Problem reported by Daiki Ueno in
588         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
589         * tests/test-posix_spawn_file_actions_addclose.c:
590         * tests/test-posix_spawn_file_actions_adddup2.c:
591         * tests/test-posix_spawn_file_actions_addopen.c:
592         Include <limits.h>, for OPEN_MAX, if available.
593         (big_fd): New static function.
594         (main): Use it.
595
596 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
597
598         tests/nap.h: use an adaptive delay to avoid ctime update issues
599         The recent change in nap.h (5191133e) decreased the probability of lost
600         races to about a third, however such problems could still be observed
601         in virtual machines and openSUSE's OBS.
602         Before, nap() detected the needed time once empirically and then used
603         that delay (together with a small correction multiplier) in further
604         calls.  This problem has been reported and discussed several times,
605         including guesses about possible kernel issues:
606         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
607         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
608         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
609         http://bugs.gnu.org/12820
610         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
611         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
612         Now, nap() avoids the race alltogether by verifying on a reference
613         file whether a timestamp difference has happened.
614         * tests/nap.h (nap_fd): Define file descriptor variable for the
615         witness file.
616         (nap_works): Change return value to bool.  Change passing
617         the old file's status by value instead of by reference as this function
618         does no longer update that timestamp; rename the function argument from
619         st to old_st.  Remove the local variables cdiff and mdiff because that
620         function now returns true/false instead of the precise delay.
621         (guess_delay): Remove function.
622         (clear_tmp_file): Add new function to close and unlink the witness file.
623         (nap): Instead of re-using the delay which has been calculated during
624         the first call, avoid the race by actually verifying that a timestamp
625         difference can be observed on the current file system.  Use an adaptive
626         approach for the delay to minimize execution time.  Assert that the
627         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
628         = 2^31 - 1 = 2.1s.
629         Use atexit to call clear_tmp_file when the process terminates.
630
631 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
632
633         sig2str: port to C++
634         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
635         Reported by Daniel J Sebald in
636         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
637
638 2013-05-30  Eric Blake  <eblake@redhat.com>
639
640         docs: mention cygwin shortcoming in <sys/un.h>
641         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
642
643         vasnprintf: silence mingw compiler warning
644         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
645
646 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
647
648         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
649         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
650         This fixes a porting bug I recently reintroduced in regex, and
651         some other instances that I discovered while testing the fix.
652         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
653         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
654         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
655         with an empty argument if this is a pedantic pre-C99 GCC.
656         * lib/verify.h: Do not use _Static_assert if this is a pedantic
657         pre-C11 GCC.
658
659         regex: adapt to locking regime instead of depending on pthread
660         Instead of depending on pthread, adapt to whatever thread
661         modules are in use.  Problem reported by Ludovic Courtès in
662         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
663         and by Mats Erik Andersson in
664         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
665         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
666         Support either the 'lock' module, or the 'pthread' module, or
667         no module.
668         (lock_lock, lock_unlock): New macros.
669         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
670         * modules/lock, modules/pthread (configure.ac): Add module indicator.
671         * modules/regex (Depends-on): Remove pthread.
672
673 2013-05-22  Eric Blake  <eblake@redhat.com>
674
675         getgroups: document portability issues
676         * doc/glibc-functions/initgroups.texi (initgroups): Mention
677         multithread safety.
678         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
679         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
680         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
681         getugroups.
682         * doc/posix-functions/getgroups.texi (getgroups): Mention
683         multithread safety and mgetgroups.
684
685 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
686
687         test-lchown, test-chown: also skip test if chown fails with EPERM
688         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
689         skip this test, to handle FAT file systems.
690         * tests/test-chown.h (test_chown): Likewise.
691
692 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
693
694         regex: fix dfa race in multithreaded uses
695         Problem reported by Ludovic Courtès in
696         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
697         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
698         New macros.  All uses of __libc_lock_define, __libc_lock_init
699         changed to use the first two of these.
700         (__libc_lock_lock, __libc_lock_unlock): New macros, for
701         non-glibc platforms.
702         (struct re_dfa_t): Define the lock unconditionally.
703         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
704         '#ifdef _LIBC"s.
705         * modules/regex (Depends-on): Add pthread, if we use the
706         included regex.
707
708         * lib/regcomp.c: Do actions that are not needed for glibc,
709         but may be needed elsewhere.
710         (regfree, re_compile_internal): Destroy the lock.
711         (re_compile_internal): Check for lock-initialization failure.
712
713         malloca: port to compilers that reject size-zero arrays
714         This fixes a bug introduced in my previous patch.
715         * lib/malloca.c (struct preliminary_header): Use an int
716         rather than a character array of size int; that's simpler.
717         (struct header): Remove, replacing with ...
718         (union header): New type.  This avoids the need for declaring a
719         character array of size zero, which is not allowed on some platforms.
720         All uses changed.
721
722 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
723
724         parse-datetime, tests: don't use "string" + int
725         Recent versions of 'clang' complain about C source code that
726         uses expressions of the form '"string literal" + integer',
727         I guess on the theory that it's confusing for readers who are
728         used to C++.  On those grounds I suppose it's OK to make this
729         minor style change.
730         * lib/parse-datetime.y (parse_datetime):
731         * tests/test-fchdir.c (main):
732         * tests/test-snprintf-posix.h (test_function):
733         * tests/test-snprintf.c (main):
734         * tests/test-vasnprintf-posix.c (test_function):
735         * tests/test-vasnprintf.c (test_function):
736         * tests/test-vsnprintf.c (main):
737         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
738         Rewrite '"str" + E' to '&"str"[E]'.
739
740 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
741
742         argmatch: port to C++
743         * lib/argmatch.h [__cplusplus]: Add extern "C".
744
745         argp: typo fix
746         * lib/argp-help.c: Typo in comment.
747
748 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
749
750         manywarnings: update for GCC 4.8.0
751         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
752         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
753         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
754         -Wmissing-noreturn, as they are duplicates of other warnings.
755         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
756         was documented to be flaky in earlier versions of GCC.
757
758         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
759         * tests/test-spawn.c (main):
760         * tests/test-sys_socket.c (main):
761         * tests/test-sys_wait.c (main):
762         Don't have a switch value that isn't covered by a case.
763
764         getaddrinfo-tests: port --enable-gcc-warnings to clang
765         * tests/test-getaddrinfo.c (simple):
766         Avoid casts from looser to stricter-aligned pointers.
767
768         thread: port --enable-gcc-warnings to clang
769         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
770         Include <signal.h>, to pacify a warning about pthread_sigmask.
771
772         stdio: use __REDIRECT for fwrite, fwrite_unlocked
773         * lib/stdio.in.h (fwrite):
774         When working around bug 11959, use __REDIRECT rather than '#define
775         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
776         fix the -Wunused-value issue with clang, and it works with GCC too.
777         Problem with targeting reported by Eric Blake in
778         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
779         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
780         debugging the fwrite issue.
781
782         stdio: port --enable-gcc-warnings to clang
783         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
784         since the GCC workaround for fwrite does not pacify clang.
785
786         sig2str: port --enable-gcc-warnings to clang
787         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
788
789         obstack: port --enable-gcc-warnings to clang
790         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
791         Avoid casts from looser to stricter-aligned pointers.
792
793         memchr2: port --enable-gcc-warnings to clang
794         * lib/memchr2.c (memchr2):
795         Avoid casts from looser to stricter-aligned pointers.
796
797         mbsstr: port --enable-gcc-warnings to clang
798         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
799         Avoid casts from looser to stricter-aligned pointers.
800
801         malloca: port --enable-gcc-warnings to clang
802         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
803         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
804
805         inttostr: port --enable-gcc-warnings to clang
806         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
807
808         warnings: port to clang
809         Problem reported by Daniel P. Berrange via Eric Blake in
810         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
811         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
812         (gl_WARN_ADD): Use it.
813
814 2013-05-11  Jim Meyering  <meyering@fb.com>
815
816         quotearg: do not read beyond end of buffer
817         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
818         end of an ARG for which no length was specified.  With an N-byte
819         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
820         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
821         via coreutils' misc/sort-debug-keys.sh test and detected by running
822         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
823         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
824         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
825         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
826         characters correctly."
827
828 2013-05-11  Daiki Ueno  <ueno@gnu.org>
829
830         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
831         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
832         compilation target is Mac OS X 10.6.
833         Problem reported by parafin and Andoni Morales in
834         <http://savannah.gnu.org/bugs/?37844> and
835         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
836
837 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
838
839         mkdir-p: remove assumptions about umask and mode
840         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
841         umask is 0, or that MODE is a subset of MODE_BITS.
842
843 2013-05-10  Eric Blake  <eblake@redhat.com>
844
845         maint.mk: catch more abuse of HAVE_DECL in syntax-check
846         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
847
848 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
849
850         deps: require Automake >= 1.9.6 in generated Makefile fragments
851
852         That is the same minimal version required in the DEPENDENCIES file.
853         Moreover, the old code generated a requirement of Automake >= 1.5,
854         and that is an insanely outdated version.
855
856         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
857         * tests/havelib/rpathlx/Makefile.am: Likewise.
858         * tests/havelib/rpathly/Makefile.am: Likewise.
859         * tests/havelib/rpathlyx/Makefile.am: Likewise.
860         * tests/havelib/rpathlz/Makefile.am: Likewise.
861         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
862         * tests/havelib/rpathx/Makefile.am: Likewise.
863         * tests/havelib/rpathy/Makefile.am: Likewise.
864         * tests/havelib/rpathz/Makefile.am: Likewise.
865
866 2013-05-08  Eric Blake  <eblake@redhat.com>
867
868         bootstrap: AC_INIT may have more than four parameters
869         * build-aux/bootstrap (extract_package_name): Correctly extract
870         non-empty tarname field.  Avoid range in regex.
871         Based on a report by Sami Kerola <kerolasa@iki.fi>.
872
873 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
874
875         qacl: port to MS-Windows port of GNU Emacs
876         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
877         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
878         port of GNU Emacs.  Problem reported by Eli Zaretskii in
879         <http://bugs.gnu.org/14295#14>.
880
881 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
882
883         acl: include quote.h
884         * lib/copy-acl.c: Include quote.h.
885         * lib/set-acl.c: Likewise.
886
887 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
888
889         fchownat, renameat, unlinkat: update statat dependencies
890         These modules use statat and lstatat, not fstatat; so depend on
891         the statat module, which was split out recently from fstatat.
892         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
893         * modules/renameat: Likewise.  Also delete fstat.
894         URL: http://bugs.gentoo.org/468790
895
896 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
897
898         Assume gnulib is checked out from Git, not CVS
899
900         In fact, access to the gnulib repository through CVS has been
901         disabled, or more precisely, got broken and was never restored; see:
902         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
903
904         Note that support for CVS is not removed completely and unthinkingly
905         by this change: only support for CVS checkouts of gnulib itself is
906         removed.  For example, the 'bootstrap' script still cater to .cvsingore
907         files and CVS directories, for the benefit of those poor gnulib clients
908         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
909
910         * gnulib-tool: Simplify accordingly.
911         * posix-modules: Likewise.
912         * MODULES.html.sh: Likewise.
913         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
914         repository.
915         * doc/gnulib-intro.texi: Likewise.
916         * doc/gnulib-readme.texi: Likewise.
917         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
918         sample '.gitignore' file rather than a sample '.cvsignore'.
919         * NEWS: Update.
920         * m4/extensions.m4: While at it, remove a comment mistakenly referring
921         to "CVS Autoconf" rather than "git Autoconf".
922
923 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
924
925         utimensat-tests, etc.: try to fix some races
926         Problem reported by Bernhard Voelker in
927         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
928         I don't know whether this patch fixes that race condition, but it
929         fixes *some* race conditions, so it should be a win.
930         * modules/chown-tests (Depends-on):
931         * modules/fchownat-tests (Depends-on):
932         * modules/fdutimensat-tests (Depends-on):
933         * modules/futimens-tests (Depends-on):
934         * modules/lchown-tests (Depends-on):
935         * modules/stat-time-tests (Depends-on):
936         * modules/utimens-tests (Depends-on):
937         * modules/utimensat-tests (Depends-on):
938         Depend on nanosleep, not usleep.
939         * modules/chown-tests (test_chown_LDADD):
940         * modules/lchown-tests (test_lchown_LDADD):
941         * modules/stat-time-tests (test_stat_time_LDADD):
942         New macro.
943         * modules/fchownat-tests (test_fchownat_LDADD):
944         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
945         * modules/futimens-tests (test_futimens_LDADD):
946         * modules/utimens-tests (test_utimens_LDADD):
947         * modules/utimensat-tests (test_utimensat_LDADD):
948         Add $(LIB_NANOSLEEP).
949         * modules/stat-time-tests (Files): Add tests/nap.h.
950         * tests/nap.h: Include <limits.h>, for INT_MAX.
951         (lt_mtime): Remove.
952         (diff_timespec): New function.
953         (get_stat): Rename from get_mtime.  All callers changed.
954         (nap_works): Determine the needed delay by inspecting the
955         file system's timestamp jumps; this should be more reliable.
956         Look at both mtime and ctime, and take the maximum of the two jumps.
957         (nap_works, guess_delay):
958         Return a nanosecond cound, not a microsecond count.
959         All callers changed.
960         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
961         failure.
962         (nap): Multiply the guess by 1.125, to accommodate the case where
963         the file system's clock is a bit slower than nanosleep's clock.
964         * tests/test-stat-time.c (BASE): New macro.
965         Include nap.h.
966         (nap): Remove; nap.h now defines this.  This removes a duplicate
967         implementation of 'nap'.
968
969         utimens, utimensat: work around Solaris UTIME_OMIT bug
970         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
971         Linux kernel 2.6.32 does.  Work around it in the same way.
972         * doc/posix-functions/futimens.texi (futimens):
973         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
974         * lib/utimens.c (fdutimens, lutimens):
975         * lib/utimensat.c (rpl_utimensat): Work around the bug.
976
977         gettext: now it's your responsibility to add -I$(top_builddir)/intl
978         Formerly, it was your responsibility to do this for all Makefile.ams
979         other than Gnulib's.  Now it's your responsibility to do it for
980         Gnulib's Makefile.am, too.
981         * NEWS: Document this.
982         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
983
984         acl: include errno.h to get errno
985         Reported by Daiki Ueno in
986         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
987         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
988
989 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
990
991         tests: don't assume getdtablesize () <= 10000000
992         * modules/cloexec-tests:
993         * modules/dup2-tests:
994         * modules/dup3-tests:
995         * modules/nonblocking-tests:
996         * modules/posix_spawn_file_actions_addclose-tests:
997         * modules/posix_spawn_file_actions_adddup2-tests:
998         * modules/posix_spawn_file_actions_addopen-tests:
999         * modules/unistd-safer-tests:
1000         Depend on the getdtablesize module.
1001         * tests/test-cloexec.c:
1002         * tests/test-dup-safer.c:
1003         * tests/test-dup2.c:
1004         * tests/test-dup3.c:
1005         * tests/test-fcntl.c:
1006         * tests/test-nonblocking.c:
1007         * tests/test-posix_spawn_file_actions_addclose.c:
1008         * tests/test-posix_spawn_file_actions_adddup2.c:
1009         * tests/test-posix_spawn_file_actions_addopen.c:
1010         Don't assume getdtablesize () <= 10000000.
1011
1012 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
1013
1014         extern-inline: work around bug in Sun c99
1015         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1016         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
1017
1018 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1019
1020         qacl: new module, broken out from the acl module
1021         This is for GNU Emacs, which wants the acl functions but does
1022         not want 'error' invoked when they fail.
1023         * lib/acl-internal.h: Do not include error.h, quote.h.
1024         (ENOSYS, ENOTSUP): Remove; no longer needed.
1025         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
1026         * lib/acl.h: Include <stdbool.h>.
1027         (acl_errno_valid): New function.
1028         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
1029         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
1030         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
1031         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
1032         (ACL_INTERNAL_INLINE): Remove; no longer needed.
1033         * lib/file-has-acl.c (file_has_acl):
1034         * lib/qcopy-acl.c (qcopy_acl):
1035         * lib/qset-acl.c (qset_acl):
1036         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
1037         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
1038         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
1039         lib/file-has-acl.c, m4/acl.m4 to qacl module.
1040         Add lib/set-acl.c.
1041         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
1042         Add qacl.
1043         (configure.ac): Move gl_FUNC_ACL to qacl module.
1044         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
1045         Rename set-mode-acl.c to set-acl.c.
1046         * lib/acl-errno-valid.c: New file.
1047         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
1048         copy_acl function remains in copy-acl.c.
1049         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
1050         (_): Remove; not needed.
1051         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
1052         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
1053         * modules/qacl: New file, moved from the old modules/acl.
1054         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
1055         Remove set-mode-acl.c, copy-acl.c.
1056         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
1057
1058         alignof, intprops, malloca: port better to IBM's C compiler
1059         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
1060         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
1061         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
1062
1063 2013-04-25  Daiki Ueno  <ueno@gnu.org>
1064
1065         wctype-h: fix gettext link error on mingw
1066         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
1067         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
1068         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
1069         rpl_towupper and rpl_towupper.
1070
1071 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
1072
1073         regex-tests, regex: allow glibc re_search behavior
1074         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
1075         re_search input data to make the multi-character collating element
1076         in it clearly visible, and treat re_search return code 0 as valid.
1077         * m4/regex.m4 (gl_REGEX): Likewise.
1078
1079 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1080
1081         stdalign: doc fix
1082         * doc/posix-headers/stdalign.texi (stdalign.h):
1083         Gnulib doesn't support '_Alignof expr'.
1084
1085 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1086
1087         stdalign: port to stricter ISO C11
1088         ISO C11 says that _Alignof's operand must be a parenthesized type.
1089         Problem reported by Eli Zaretskii in
1090         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
1091         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1092         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
1093
1094 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
1095
1096         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
1097         Problem reported by Marco Atzeri in
1098         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
1099         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
1100         Simply delegate to the system <sys/select.h> in this case too.
1101         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
1102         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
1103         be needed on Solaris either.
1104         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
1105         Simply delegate to the system <sys/time.h> in this case.
1106
1107 2013-03-19  Karl Berry  <karl@gnu.org>
1108
1109         * build-aux/gnupload: check for erroneous (with gnupload) use of
1110         ftp-upload.gnu.org, tweak help.
1111
1112 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1113
1114         copy-file, rpmatch: fix problems found by cppcheck
1115         Reported by Arno Onken in
1116         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
1117         * lib/rpmatch.c (try): Fix memory leak.
1118         * lib/copy-file.c: Include "ignore-value.h".
1119         (qcopy_file_preserving): Ignore chown value.
1120         * modules/copy-file (Depends-on): Add ignore-value.
1121
1122 2013-01-27  Jim Meyering  <jim@meyering.net>
1123
1124         prefix-gnulib-mk: give better diagnostics
1125         * build-aux/prefix-gnulib-mk: Don't just "die".
1126         Give better diagnostics upon failure.
1127
1128 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
1129
1130         putenv: port to Solaris 10
1131         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
1132         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
1133         is not what is wanted here.
1134         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
1135         declaration, not for its existence.
1136
1137 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
1138
1139         mktime: fix configure typo
1140         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
1141
1142 2013-03-12  Eric Blake  <eblake@redhat.com>
1143
1144         regex-tests: skip UTF-8 test on mingw
1145         * modules/regex-tests (Depends-on): Add localcharset.
1146         * tests/test-regex.c (main): Use it to skip test on mingw.
1147
1148 2013-03-11  Eric Blake  <eblake@redhat.com>
1149
1150         tests: make it easier to bypass alarm time in debugger
1151         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
1152         * tests/test-memmem.c (main): Likewise.
1153         * tests/test-passfd.c (main): Likewise.
1154         * tests/test-ptsname.c (main): Likewise.
1155         * tests/test-ptsname_r.c (main): Likewise.
1156         * tests/test-strcasestr.c (main): Likewise.
1157         * tests/test-strstr.c (main): Likewise.
1158
1159         regex: port to mingw's recent addition of undeclared alarm
1160         * doc/posix-functions/alarm.texi (alarm): Document that alarm
1161         exists but still doesn't work in newer mingw.
1162         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
1163         not existence.  Ensure SIGALRM is not trapped.
1164         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
1165         * m4/regex.m4 (gl_REGEX): Likewise.
1166         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
1167         * tests/test-regex.c (main): Use correct probe for alarm.
1168
1169         putenv: avoid compilation warning on mingw
1170         * lib/putenv.c (_unsetenv): Protect variable declaration.
1171         (putenv): Fix indentation.
1172
1173 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
1174
1175         unistd: don't prevent Tru64 Unix from using gnulib strtod.
1176         * lib/unistd.in.h: be careful not to include un-needed system
1177         stdlib.h from here, because that prevents gnulib stdlib.h from
1178         defining rpl_strtod correctly.
1179
1180 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
1181
1182         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
1183         changesets, but for the 'precision 0' test.
1184         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1185         round-to-even, since POSIX says rounding is implementation-defined
1186         and OS X 10.8.2 rounds 1.51 to 1 here.
1187
1188         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
1189         changeset.
1190         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1191         round-to-even, since POSIX says rounding is implementation-defined
1192         and OS X 10.8.2 rounds 1.5 to 1 here.
1193
1194 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1195
1196         vasnprintf-posix-tests: allow rounding 1.5 to 1
1197         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
1198         round-to-even, since POSIX says rounding is implementation-defined
1199         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
1200         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
1201
1202         bootstrap: port to FreeBSD
1203         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
1204         that treat '--' differently.  Reported by Mats Erik Andersson in
1205         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
1206
1207 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
1208
1209         regex: rename remaining __attribute calls to __attribute__.
1210         2012-02-25 changed definition of __attribute, but left some uses
1211         unchanged, preventing compilation of regex module on most non-gcc
1212         environments.
1213         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
1214         (lookup_collation_sequence_value, build_range_exp)
1215         (build_collating_symbol): Set attributes with newly renamed
1216         __attribute__ decorator.
1217         * lib/regex_internal.c (re_string_peek_byte_case)
1218         (re_node_set_compare, re_node_set_contains): Likewise.
1219         * lib/regexec.c (acquire_init_state_context): Likewise.
1220
1221 2013-03-06  Bruno Haible  <bruno@clisp.org>
1222
1223         execute: Revert last change, but use a different condition.
1224         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
1225         on Windows.
1226
1227 2013-03-05  Eric Blake  <eblake@redhat.com>
1228
1229         execute: drop dead code
1230         * lib/execute.c (nonintr_close, nonintr_open): Delete.
1231
1232 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
1233
1234         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
1235         * m4/non-recursive-gnulib-prefix-hack.m4
1236         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
1237         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
1238         <http://bugs.gnu.org/10305#237>.
1239
1240 2013-03-04  Eric Blake  <eblake@redhat.com>
1241
1242         test-getsockopt: avoid compiler warning
1243         * tests/test-getsockopt.c (includes): Ensure close is declared.
1244
1245 2013-03-02  Bruno Haible  <bruno@clisp.org>
1246
1247         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
1248         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
1249
1250 2013-03-02  Bruno Haible  <bruno@clisp.org>
1251
1252         gettext: Update to version 0.18.2.
1253         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
1254         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
1255                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
1256
1257 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1258
1259         regex: merge patches from libc
1260
1261         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1262         * lib/regex_internal.h (__attribute__): Rename from __attribute.
1263         All uses changed.
1264         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
1265         (re_string_wchar_at, re_string_elem_size_at):
1266         Mark function as possibly unused.
1267
1268         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
1269         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
1270         elements compare against the byte sequence of it, not its name.
1271
1272 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
1273
1274         putenv: port better to native Windows
1275         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1276         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
1277         (_unsetenv): Use _putenv if available.
1278         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
1279         a bit less likely to cause damage.
1280         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1281         Fix the wrong value with SetEnvironmentVariable.
1282         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
1283         code better.
1284
1285 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1286
1287         regex: ignore old-style-definition warnings
1288         * lib/regex.c: Add pragma to ignore these warnings.
1289         Problem reported for GNU tar by Pavel Raiskup.
1290
1291 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1292
1293         getcwd: support coreutils better
1294         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
1295         but this might not be correct in coreutils, which disables
1296         the raw decl checks.  Problem reported by Nagendra in
1297         <http://bugs.gnu.org/10305#192>.
1298         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
1299         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1300         Test the getcwd function, not any macro, since getcwd.c wants the
1301         function.
1302         * m4/getcwd.m4 (gl_FUNC_GETCWD):
1303         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
1304         compile, as might happen if there's a macro but no function.
1305
1306         strtod: support coreutils better
1307         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
1308         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
1309         disables the raw decl checks.  This assumes there is an underlying
1310         strtod, but that's a safe assumption these days.
1311         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
1312
1313         mountlist: port to HP NonStop
1314         Reported by Joachim Schmitz in
1315         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
1316         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
1317         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
1318
1319 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1320
1321         extern-inline: avoid compilation error with HP-UX cc
1322         Reported by Richard Lloyd in
1323         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1324         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1325         Suppress extern inline with HP-UX cc.  This should be safe,
1326         though it may hurt performance.  Perhaps someone with some HP-UX
1327         experience can come up with a higher-performance fix.
1328
1329 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1330
1331         putenv: fix heap corruption with mixed putenv/_putenv
1332         Problem reported by Michael Goffioul in
1333         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1334         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1335         Rely on _putenv to allocate the new environment.
1336         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1337         * modules/putenv (configure.ac): Use it.
1338
1339 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1340
1341         unsetenv etc.: port to Solaris 11 + GNU Emacs
1342         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1343         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1344         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1345         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1346         idea but is too painful to fix right now), and without this gnulib
1347         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1348         compiling unsetenv.c on Solaris 11.  Fix the problem for
1349         unsetenv.c, and fix other similar occurrences.
1350
1351 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1352
1353         secure_getenv: fix C++ declaration typo
1354         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1355         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1356         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1357
1358 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1359
1360         careadlinkat: stop exporting careadlinkatcwd
1361         Only Emacs used it directly, and Emacs no longer needs it.
1362         * NEWS: Document this simplification.
1363         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1364         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1365         for readlink.
1366         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1367         Don't include stdlib.h; no longer needed.
1368         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1369         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1370         * modules/areadlink (Depends-on): Add readlink.
1371         (Maintainer): Add self.
1372         * modules/careadlinkat (Depends-on): Remove readlink.
1373
1374         extensions: port better to HP-UX
1375         This is merged from git Autoconf.
1376         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1377         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1378         so that it's compatible with the value used when compiling.
1379
1380         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1381         Problem reported by Mats Erik Andersson in
1382         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1383         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1384         openpty function exists, not merely when we intend to replace it.
1385         This corrects the 2013-01-31 patch, which mistakenly defined
1386         HAVE_OPENPTY even on hosts that lacked it.
1387
1388 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1389
1390         secure_getenv: fix include typo
1391         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
1392
1393         secure_getenv: port better to FreeBSD and Solaris
1394         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1395         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1396         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1397         This works better on BSDish platforms.
1398         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1399         Test for issetugid if __secure_getenv is missing.
1400
1401 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1402
1403         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1404         Some of these changes are merged in from git Autoconf.
1405         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1406         When deciding whether to define _XOPEN_SOURCE, inspect the
1407         preprocessor macro __hpux instead of the more-heavyweight
1408         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1409         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1410         as the key for __EXTENSIONS__.
1411
1412         unistd: avoid namespace pollution on non-glibc systems
1413         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1414         This avoids namespace pollution on non-glibc systems, by causing
1415         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1416         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1417         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1418
1419 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1420
1421         tmpdir: use secure_getenv
1422         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1423         Define to secure_getenv, not getenv.
1424         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1425         as that's now secure_getenv's job.
1426         * modules/tmpdir (Depends-on): Add secure_getenv.
1427
1428         tempname: use secure_getenv
1429         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1430         Define to secure_getenv, not getenv.
1431         * modules/tempname (Depends-on):
1432         Add secure_getenv.
1433
1434         secure_getenv: new module
1435         * MODULES.html.sh (Extra functions based on ANSI C 89):
1436         Add secure_getenv.
1437         * doc/glibc-functions/secure_getenv.texi: New file.
1438         * doc/gnulib.texi: Include it.
1439         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1440         New files.
1441         * lib/stdlib.in.h (secure_getenv): New decl.
1442         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1443         * modules/stdlib (stdlib.h):
1444         Add secure_getenv checks.
1445
1446 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1447
1448         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1449         Reported for OS X 10.8.2 by Assaf Gordon in
1450         <http://bugs.gnu.org/13516>.
1451         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1452         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1453         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1454         so that they can be kept in sync more easily.  Avoid PATH_MAX
1455         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1456         mkdir or chdir failure.
1457         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1458         lib/getcwd.c.
1459         (test_abort_bug): Do not test for the deep directory bug unless we
1460         have openat support.  Avoid PATH_MAX test on the Hurd.
1461
1462         regex-tests, regex: fix bug: memset undeclared
1463         * tests/test-regex.c: Don't include regex.h twice.  Include
1464         string.h, to declare memset.  Christensen's report also mentioned
1465         this issue.
1466         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1467         test-regex.c, to avoid future problems like this.  Remove
1468         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1469         twice.
1470
1471         regex-tests: fix link errors on older Solaris
1472         These need to link with @LIBINTL@ to get libintl_gettext.
1473         Problem reported by Tom G. Christensen in
1474         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1475         * modules/regex-tests (test_regex_LDADD): New macro.
1476
1477 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1478
1479         regex-tests: new module
1480         * modules/regex-tests, tests/test-regex.c: New files.
1481
1482         regex: fix off-by-one error in configure test
1483         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
1484
1485 2013-01-31  Eric Blake  <eblake@redhat.com>
1486
1487         regex: avoid infinite configure test
1488         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
1489
1490 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
1491
1492         openpty: fix bug where HAVE_OPENPTY wasn't defined
1493         See the thread starting at:
1494         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
1495         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1496         openpty function exists, not merely when we intend to replace it.
1497
1498 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1499
1500         sys_time: port to Solaris 2.6
1501         There is a circularity problem on Solaris 2.6, where <time.h> includes
1502         <sys/time.h> for struct timespec.  The include nesting is gnulib
1503         <time.h>, system <time.h>, gnulib <sys/time.h>, system
1504         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
1505         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
1506         <sys/siginfo.h>; the last, innermost file needs struct
1507         timestruc_t, which is defined in <sys/time.h>, which has not been
1508         fully parsed.  Problem reported by Tom G. Christensen in
1509         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
1510         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
1511         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
1512         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
1513         uses split double-inclusion guards.
1514
1515 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1516
1517         regex: test for buffer overrun
1518         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
1519         for the just-fixed regex bug.
1520
1521 2013-01-29  Andreas Schwab  <schwab@suse.de>
1522
1523         regex: fix buffer overrun in regexp matcher [BZ #15078]
1524         * lib/regexec.c (extend_buffers): Add parameter min_len.
1525         (check_matching): Pass minimum needed length.
1526         (clean_state_log_if_needed): Likewise.
1527         (get_subexp): Likewise.
1528
1529 2013-01-28  Pádraig Brady  <P@draigBrady.com>
1530
1531         mountlist: don't consider "devtmpfs" as dummy
1532         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
1533         as there is storage associcated with it.
1534
1535 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1536
1537         futimens-tests, utimens-tests: Depend on gettext.
1538         This works around a problem introduced in my 2013-01-12 patch,
1539         which added @LIBINTL@ to these modules.
1540         * modules/futimens-tests (Depends-on):
1541         * modules/utimens-tests (Depends-on): Add gettext.
1542
1543 2013-01-26  Eric Blake  <eblake@redhat.com>
1544
1545         test-getpeername: fix typo
1546         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
1547
1548 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1549
1550         bootstrap: remove the need for a sorted .gitignore file
1551         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
1552         rename to insert_if_absent(), so that we don't need or generate
1553         a sorted .gitignore file.  We do require a .gitignore with no
1554         existing duplicate entries and enforce that.
1555         (sort_patterns): Remove this function as we now use the simpler
1556         technigue of inserting blacklist entries at the top of the file,
1557         assuming gnulib won't be inserting !whitelist entries.
1558
1559 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1560
1561         readlinkat: don't depend on gl_FUNC_OPENAT
1562         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
1563         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
1564         renameat.m4, symlinkat.m4; but one thing at a time.
1565
1566         statat: new module, split out from fstatat
1567         GNU Emacs needs the POSIX-specified fstatat, but not the
1568         gnulib-specified statat and lstat.  Split the latter two into a
1569         new module 'statat'.
1570         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
1571         * lib/openat.h, lib/statat.c (STATAT_INLINE):
1572         Rename from FSTATAT_INLINE. All uses changed.
1573         * modules/fstatat (Files): Remove lib/statat.c.
1574         (gl_MODULE_INDICATOR([fstatat])): Remove.
1575         (lib_SOURCES): Remove.
1576         (Maintainer): Add self.
1577         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
1578         * tests/test-fstatat.c (BASE): Don't define if already defined.
1579         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
1580
1581 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
1582
1583         tests: don't assume fd 99 is closed
1584         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
1585         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
1586         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
1587         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
1588         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
1589         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
1590         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
1591         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
1592         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
1593         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
1594         * tests/test-fwrite.c, tests/test-getpeername.c:
1595         * tests/test-getsockname.c, tests/test-getsockopt.c:
1596         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
1597         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
1598         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
1599         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
1600         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
1601         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
1602         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
1603         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
1604         * tests/test-unlinkat.c, tests/test-unlockpt.c:
1605         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
1606         Close file descriptor 99, instead of assuming it's already closed.
1607
1608 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1609
1610         stpncpy: port to OS X 10.8
1611         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
1612         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
1613
1614 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
1615
1616         unistd: port to recent mingw
1617         * lib/unistd.in.h: Remove special invocation convention for mingw,
1618         which breaks for the latest mingw version.  See John W. Eaton in
1619         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
1620
1621         largefile: port better to Mac OS X 10.5
1622         This patch is backported from Autoconf git.
1623         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
1624         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
1625         with ino_t size being different for configuration time versus
1626         build/run time.  Problem reported by PHO in
1627         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
1628
1629 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1630
1631         doc: clarify -Werror
1632         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
1633         clarify that it's intended for developers, not for ordinary builds,
1634         and mention --enable-gcc-warnings as one possible use.
1635
1636 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
1637
1638         stdint: fix build with Android's Bionic fox x86
1639         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
1640         was already included as _SSIZE_T_DEFINED_ might also be defined
1641         in include/machine/_types.h, which is included by stdio.h
1642
1643 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
1644
1645         net_if-tests: port to Solaris 7 + GCC 3.4.6
1646         Problem reported by Tom G. Christensen in
1647         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
1648         * tests/test-net_if.c (ni): Move to next the code that uses it,
1649         so that it's declared only if needed.
1650
1651 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1652
1653         net_if-tests: port to older Solaris
1654         Problem reported by Tom G. Christensen in
1655         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1656         * modules/net_if-tests (NET_IF_LIB): New substitution.
1657         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
1658         (HAVE_IF_NAMEINDEX): New C macro.
1659         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
1660
1661         system-quote-tests: port to older Solaris
1662         Problem reported by Tom G. Christensen in
1663         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1664         * tests/test-system-quote-child.c (fopen, fread): Undef.
1665
1666         c-xvasprintf etc.: fix link errors on older Solaris
1667         These need to link with @LIBINTL@ to get libintl_gettext.
1668         Problem reported by Tom G. Christensen in
1669         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1670         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
1671         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
1672         * modules/futimens-tests (test_futimens_LDADD):
1673         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
1674
1675 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1676
1677         locale: port to Solaris 2.6 and 7 + GNU gettext
1678         * lib/locale.in.h: Just include_next <locale.h> when
1679         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
1680         when combining the localename module with GNU gettext 0.18.2.
1681         Problem reported by Tom G. Christensen in
1682         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
1683
1684 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
1685
1686         stdlib: port to Solaris 2.6
1687         Also, the code worked on Solaris 7 through 9 only by accident.
1688         Problem reported by Tom G. Christensen in
1689         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
1690         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
1691         simply include the system stdlib.h.
1692         * lib/getopt.in.h (__need_system_stdlib_h):
1693         * lib/pthread.in.h (__need_system_stdlib_h):
1694         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
1695         Define when including <stdlib.h>, to avoid problems at least for
1696         the pthread case on Solaris 2.6 and 7.  These .h files can get by
1697         with the system stdlib.h.
1698
1699 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1700
1701         doc: update main copyright year
1702         * doc/gnulib.texi: Update copyright date.
1703
1704         doc: improve ISO 8601 discussion
1705         * doc/parse-datetime.texi (Combined date and time of day items):
1706         Specify more carefully what formats are supported and what is
1707         done with excess precision.
1708
1709 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1710
1711         doc: avoid small caps
1712         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
1713         they're more trouble than they're worth.  Suggested by Karl Berry
1714         in <http://bugs.gnu.org/13360>.
1715
1716         regex: conform to strict C
1717         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
1718         From Aharon Robbins.
1719
1720         gnulib-tool: fix incompatibility with autopoint 0.18.2
1721         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
1722         Problem reported by Tom G. Christensen in
1723         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
1724
1725 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1726
1727         fprintftime: bring back and reword fwrite comment
1728         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
1729
1730         stdio: remove now-unnecessary stdio.c
1731         Since stdio.in.h no longer uses inline functions, we no longer
1732         need to compile the extern versions.
1733         * lib/stdio.c: Remove.
1734         * modules/stdio (Files): Remove lib/stdio.c.
1735         (lib_SOURCES): Remove.
1736
1737         unicodeio: depend on stdio, not ignore-value
1738         * lib/unicodeio.c: Do not include ignore-value.h.
1739         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
1740         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
1741
1742         fprintftime: depend on stdio, not ignore-value
1743         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
1744         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
1745         since the stdio module arranges to silence that warning now.
1746         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
1747
1748 2012-10-04  Simon Josefsson  <simon@josefsson.org>
1749
1750         stdint-tests: Fix expanded-before-required-warning.
1751         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
1752
1753 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1754
1755         fwrite: silence __wur only for older glibc versions
1756         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
1757         This will help us remove this workaround some time in the far future.
1758
1759 2013-01-03  Eric Blake  <eblake@redhat.com>
1760
1761         fwrite: silence __wur without using inline
1762         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
1763         just gcc, and in a way that avoids inline issues.
1764         * modules/stdio (Depends-on): Drop extern-inline.
1765
1766 2013-01-03  Jim Meyering  <jim@meyering.net>
1767
1768         update-copyright: avoid copyright notice date corruption
1769         Given a sequence of copyright year numbers in which the final
1770         one was a two-digit number that happened to be a substring of
1771         a preceding four-digit year number, we would mistakenly update
1772         the substring (from two- to four-digit) rather than the two-digit
1773         number at the end, which, combined with the addition of the current
1774         4-digit year number would yield two 5-digit year numbers, e.g.,
1775         here, it would convert the first "99" to "1999, 2013" rather than
1776         the final one:
1777           1991, 99
1778           11999, 20131, 1999
1779         * build-aux/update-copyright: Tighten a regexp.
1780         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
1781         Reported by Joseph Myers in
1782         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
1783
1784 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
1785
1786         regex: omit needless signed-pointer casts
1787         * lib/regcomp.c (build_charclass, build_charclass_op):
1788         Use char *, not unsigned char *, for class name and extra.
1789         The char values are always nonnegative so there's no need to
1790         insist on unsigned char * here, and using char * removes the need
1791         for casts.  Reported by Aharon Robbins in
1792         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1793
1794         regex: support Gawk, which never uses alloca
1795         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
1796         Do not include in this case.  Gawk doesn't supply a substitute
1797         alloca.h and doesn't need one.
1798
1799         regex: port __libc_lock_define usage to C89
1800         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
1801         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
1802         does not conform to C89, as it has an empty macro argument.
1803         Reported by Aharon Robbins in
1804         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1805
1806 2013-01-01  Eric Blake  <eblake@redhat.com>
1807
1808         maint: update all copyright year number ranges
1809         Run "make update-copyright".
1810
1811         version-etc: bump copyright year reported in --version
1812         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
1813
1814 2012-12-31  Eric Blake  <eblake@redhat.com>
1815
1816         sigprocmask-tests: skip test if pid is unexpectedly large
1817         * tests/test-sigprocmask.c (main): Add range check.
1818
1819         git-version-gen: avoid test -z portability glitch
1820         * build-aux/git-version-gen: Prefer portable test spelling, since
1821         git-version-gen is run on more than just developer machines.
1822
1823 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
1824
1825         git-version-gen: add --fallback option to use if git is not present
1826         * build-aux/git-version-gen: Add support for the new option --fallback,
1827         which comes into play when there is no $tarball_version_file and
1828         git is not working.
1829         (scriptversion): Update.
1830
1831         maint.mk: handle missing git with more grace
1832         * top/maint.mk (no-submodule-changes, public-submodule-commit):
1833         Quietly proceed if git is not present.
1834
1835 2012-12-31  Eric Blake  <eblake@redhat.com>
1836
1837         dup2: work around cygwin bug
1838         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
1839         * lib/dup2.c (rpl_dup2): Work around it.
1840         * doc/posix-functions/dup2.texi (dup2): Document it.
1841
1842 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1843
1844         regex: remove unnecessary dependency on localcharset.h
1845         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
1846         hasn't been needed for years.
1847         * modules/regex (Depends-on): Remove localcharset.
1848
1849         regex: revert single-byte change
1850         * lib/regexec.c (check_node_accept_bytes): Revert previous change
1851         to this function.  This was alredy fixed in a different way, at
1852         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
1853         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
1854         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
1855
1856         regex: simplify based on Gawk version
1857         * lib/regex_internal.c (re_dfa_add_node): Simplify.
1858         Reported by Aharon Robbins in
1859         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1860
1861 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1862
1863         regex: check that pattern char is single-byte
1864         Reported by Aharon Robbins in
1865         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1866         * lib/regexec.c (check_node_accept_bytes):
1867         Return 0 if the pattern string has a multibyte character here.
1868
1869         regex: implement rational ranges
1870         Reported by Aharon Robbins in
1871         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1872         * lib/regcomp.c (build_range_exp) [!_LIBC]:
1873         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
1874         Implement rational ranges.
1875
1876         regex: avoid redefining __wctype
1877         Reported by Aharon Robbins in
1878         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1879         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
1880         #undef before defining.
1881
1882         regex: port to hosts where malloc (0) == NULL
1883         Reported by Aharon Robbins in
1884         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1885         * lib/regex_internal.c (re_node_set_alloc):
1886         Don't assume that malloc (0) yields nonnull.
1887         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
1888         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
1889         * modules/regex (Files): Add m4/eealloc.m4.
1890
1891         regex: port to C89
1892         Reported by Aharon Robbins in
1893         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1894         * lib/regcomp.c (init_word_char): Declaration before statement.
1895
1896         regex: merge glibc changes
1897         Also, copy the license wording from glibc.  This simplifies
1898         merging changes.  gnulib-tool will change the wording to GPL as
1899         appropriate, when importing it to other packages.  The only
1900         glibc change made since the last merge, which needs merging, is:
1901         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
1902         * lib/regex_internal.h (gettext): Remove use of INTUSE.
1903
1904         * users.txt: Add Emacs.
1905
1906         doc: omit mention of version when not needed
1907         * doc/gnulib-intro.texi (Portability and Application Code):
1908         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
1909         Don't mention particular dates or versions when not necessary, so
1910         that the documentation won't go out of date so quickly.
1911
1912         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
1913
1914 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
1915
1916         bootstrap: pass --force to autoreconf.
1917         * build-aux/bootstrap (AUTORECONFFLAGS): New.
1918         Add "--force" so that Automake's ylwrap and other such tools
1919         be updated at each bootstrap invocation.
1920         Use it.
1921
1922 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1923
1924         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
1925         The earlier patch forgot to update one of the #if conditions, causing
1926         a problem on Debian testing i386 reported by Mats Erik Andersson
1927         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
1928         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
1929         (__argp_fmtstream_puts, argp_fmtstream_puts)
1930         (__argp_fmtstream_write, argp_fmtstream_write)
1931         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
1932
1933         * doc/gnulib-readme.texi: Minor fixups.
1934         (Portability guidelines): Modernize URLs.  Remove some repetition.
1935         (Indent with spaces not TABs): Reword to avoid too-long lines.
1936         Remove some '@ifset standalone' stuff that isn't used.
1937
1938         * doc/gnulib-readme.texi (Portability guidelines):
1939         ctype.h, not ctime.h.
1940
1941         Correct name of POSIX.1-2001.
1942         * doc/posix-functions/fgetc.texi (fgetc):
1943         * doc/posix-functions/fgets.texi (fgets):
1944         * doc/posix-functions/fread.texi (fread):
1945         * doc/posix-functions/fscanf.texi (fscanf):
1946         * doc/posix-functions/getc.texi (getc):
1947         * doc/posix-functions/getchar.texi (getchar):
1948         * doc/posix-functions/scanf.texi (scanf):
1949         POSIX.1-2001, not POSIX-2001.
1950
1951         doc: move README into manual
1952         * README: Move contents to new file doc/gnulib-readme.texi.
1953         Replace with a one-line summary.
1954         * doc/gnulib.texi (Brief Overview): New section,
1955         with old intro preface.  Include gnulib-readme.texi for contents.
1956         (Philosophy): Rename from "Introduction", since this
1957         section no longer introduces the rest.  Write a new preface.
1958         * doc/gnulib-readme.texi: New file, with the old contents of
1959         README texinfo-ized.  This way, the README info appears
1960         in the online and printed manual.
1961
1962 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
1963
1964         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
1965         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
1966         c_vasprintf() prototype.
1967
1968 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
1969
1970         c-vasprintf: Fix "empty declaration" warning reported by GCC.
1971         * lib/c-vasprintf.h: Remove stray semicolon.
1972
1973 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1974
1975         gettext: avoid obsolete macro AM_PROG_MKDIR_P
1976         It is obsolete and is planned to be removed from Automake 1.14; see
1977         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
1978         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
1979         (installdirs-data, installdirs-data-yes):
1980         Use $(MKDIR_P), not $(mkdir_p).
1981         * m4/intl.m4 (AM_INTL_SUBDIR):
1982         * m4/po.m4 (AM_PO_SUBDIRS):
1983         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
1984
1985 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1986
1987         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
1988         On this platform, we are not optimizing but we are using
1989         the substitute for extern inlines, so compile as if
1990         C99-style extern inline, or a substitute, is available.
1991         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
1992         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
1993         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
1994         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
1995         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
1996         Declare as ARGP_FS_EI, not as extern.
1997         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
1998         (__option_is_short, _option_is_end, __option_is_end)
1999         [!_LIBC && __USE_EXTERN_INLINES]:
2000         Declare as ARGP_EI, not as extern.
2001
2002 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2003
2004         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
2005         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
2006         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
2007         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
2008         ...), as the latter is fatal with older Autoconfs.
2009         Problem reported and fix suggested by Eric Blake in thread starting at
2010         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
2011
2012 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2013
2014         AC_PROG_MKDIR_P: don't workaround if not buggy
2015         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
2016         Define only for Autoconf versions before 2.62.
2017         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
2018         undocumented m4_PACKAGE_VERSION, for consistency with the
2019         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
2020         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
2021         was introduced in 2.62.
2022
2023 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
2024
2025         New 'c-*printf' modules for formatted output in C locale.
2026
2027         New module 'c-vasnprintf'.
2028         * modules/c-vasnprintf: New file.
2029         * lib/c-vasnprintf.c: New file.
2030         * lib/c-vasnprintf.h: New file.
2031
2032         New module 'c-snprintf'.
2033         * modules/c-snprintf: New file.
2034         * modules/c-snprintf-tests: New file.
2035         * lib/c-snprintf.c: New file.
2036         * lib/c-snprintf.h: New file.
2037         * tests/test-c-snprintf.c: New file.
2038         * tests/test-c-snprintf.sh: New file.
2039
2040         New module 'c-vsnprintf'.
2041         * modules/c-vsnprintf: New file.
2042         * modules/c-vsnprintf-tests: New file.
2043         * lib/c-vsnprintf.c: New file.
2044         * lib/c-vsnprintf.h: New file.
2045         * tests/test-c-vsnprintf.c: New file.
2046         * tests/test-c-vsnprintf.sh: New file.
2047
2048         New module 'c-vasprintf'.
2049         * modules/c-vasprintf: New file.
2050         * modules/c-vasprintf-tests: New file.
2051         * lib/c-asprintf.c: New file.
2052         * lib/c-vasprintf.c: New file.
2053         * lib/c-vasprintf.h: New file.
2054         * tests/test-c-vasprintf.c  +: New file.
2055         * tests/test-c-vasprintf.sh: New file.
2056
2057         New module 'c-xvasprintf'.
2058         * modules/c-xvasprintf: New file.
2059         * modules/c-xvasprintf-tests: New file.
2060         * lib/c-xasprintf.c: New file.
2061         * lib/c-xvasprintf.c: New file.
2062         * lib/c-xvasprintf.h: New file.
2063         * tests/test-c-xvasprintf.c: New file.
2064         * tests/test-c-xvasprintf.sh: New file.
2065
2066 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2067
2068         argp: better 'inline'
2069         Use extern-inline module to declare extern inline functions.
2070         This avoids some bogus warning diagnostics.  Problem discovered
2071         when modifying GNU tar to use the manywarnings module.
2072         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
2073         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
2074         Define based on extern-inline.
2075         * modules/argp (Depends-on): Add extern-inline.
2076
2077 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2078
2079         filemode, sys_stat: Handle MPX files a la AIX.
2080         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
2081         * lib/sys_stat.in.h (S_ISMPX): New macro.
2082         * tests/test-sys_stat.c: Add tests for MPX files.
2083
2084 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
2085
2086         x-to-1: honor $PERL
2087         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
2088         a chance to use his preferred version of Perl.  This is typically
2089         required by Darwin users whose default /usr/bin/perl does not have all
2090         the libraries required by help2man, and who need to use their MacPorts
2091         installation of Perl instead.
2092
2093 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2094
2095         gnu-web-doc-update: add all the new files, even in new directories
2096         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
2097         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
2098         Use it.
2099         (main): Don't use cvsutils to get the list of unknown files,
2100         just add all the existing files and directories.
2101
2102 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2103
2104         gnu-web-doc-update: improve --help
2105         * build-aux/gnu-web-doc-update: Move comments into --help.
2106
2107 2012-12-07  Eric Wong  <normalperson@yhbt.net>
2108
2109         mountlist: recognize more "dummy" file systems
2110         * lib/mountlist.c (ME_DUMMY_0):
2111         Add these dummy FS names to the list:
2112         - "debugfs" virtual filesystem for kernel debugging
2113         - "devpts" PTY slave filesystem
2114         - "devtmpfs" device filesystem on top of tmpfs/ramfs
2115         - "fusectl" control filesystem for FUSE
2116         - "mqueue" enumerates POSIX message queues
2117         - "rpc_pipefs" kernel <-> userspace bridge for NFS
2118         - "sysfs" is for exporting kernel objects
2119         - "devfs" device filesystem for Linux 2.4 and FreeBSD
2120
2121 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2122
2123         extern-inline: avoid incompatibility with Darwin Libc
2124         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
2125         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
2126         Problem reported by Akim Demaille in
2127         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
2128
2129 2012-12-11  Simon Josefsson  <simon@josefsson.org>
2130
2131         gnupload: Work with GnuPG using gpg-agent (for smartcards).
2132         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
2133         let it handle password prompting.
2134
2135 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
2136
2137         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
2138         * lib/canonicalize.c (canonicalize_filename_mode):
2139         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
2140         fetching the current directory.  Don't overrun the beginning of
2141         rpath if there's no slashes after the MS-Windows drive letter.
2142
2143 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2144
2145         maint.mk: avoid extra forks
2146         * top/maint.mk (_cfg_mk): The GNU make manual documents that
2147         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
2148         So use that instead of "$(shell test -f FILE && echo FILE)".
2149
2150 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
2151
2152         vasnprintf: fix ASCII_ONLY typo
2153         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2154         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2155         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2156         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
2157         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
2158
2159 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2160
2161         list, oset, xlist, xoset: fix extern inline issue with C99
2162         This was introduced by my recent changes for 'inline'.
2163         Problem reported for gettext by Daiki Ueno in
2164         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
2165         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
2166         (gl_list_nx_create, gl_list_size, gl_list_node_value)
2167         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
2168         (gl_list_previous_node, gl_list_get_at)
2169         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
2170         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
2171         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
2172         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
2173         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
2174         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
2175         (gl_list_iterator_free, gl_sortedlist_search)
2176         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
2177         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
2178         (gl_sortedlist_remove):
2179         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
2180         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
2181         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
2182         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
2183         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
2184         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
2185         (gl_list_add_at, gl_sortedlist_add):
2186         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
2187         Wrap these extern decls inside "#if 0", because they are implemented
2188         as inline functions, and extern inline is not what's wanted here.
2189         It would simplify these .h files to remove the extern decls entirely,
2190         although a downside would be less-clear separation between
2191         specification and implementation.
2192
2193 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2194
2195         sys_stat: no 'static inline'
2196         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
2197         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
2198
2199         extern-inline: no 'static inline'
2200         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
2201         Do not require AC_C_INLINE.
2202         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
2203         'static inline', for older compilers.
2204
2205         snippet/warn-on-use: no 'static inline'
2206         * build-aux/snippet/warn-on-use.h:
2207         Remove unnecessary 'inline' in comment.
2208
2209         rbtree-list, rbtreehash-list: no 'static inline'
2210         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
2211         * lib/gl_anytree_list2.h (node_at):
2212         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
2213         (gl_oset_first, add_nodes_to_buckets):
2214         Now static, not static inline.
2215
2216         regex: no 'static inline'
2217         * lib/regex_internal.c (calc_state_hash):
2218         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
2219         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2220         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
2221         Now static, not static inline.
2222         (inline) [__GNUC__ < 3 && _LIBC]:
2223         Remove macro; no longer needed.
2224
2225         xvasprintf: no 'static inline'
2226         * lib/xvasprintf.c (xstrcat):
2227         Now static, not static inline.
2228         * m4/xvasprintf.m4 (gl_XVASPRINTF):
2229         Do not require AC_C_INLINE.
2230
2231         parse-datetime, parse-duration: no 'static inline'
2232         * lib/parse-datetime.y (to_uchar):
2233         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
2234         (scale_n_add):
2235         Now static, not static inline.
2236         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
2237         * modules/parse-duration (configure.ac):
2238         Do not require AC_C_INLINE.
2239
2240         getaddrinfo: no 'static inline'
2241         * lib/getaddrinfo.c (validate_family):
2242         Now static, not static inline.
2243         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
2244         Do not require AC_C_INLINE.
2245
2246         ftruncate, fts, lstat, openat, raise: no 'static inline'
2247         * lib/ftruncate.c (chsize_nothrow):
2248         * lib/fts.c (opendirat, diropen):
2249         * lib/lstat.c (orig_lstat):
2250         * lib/openat.c (orig_openat):
2251         * lib/raise.c (raise_nothrow):
2252         Now static, not static inline.
2253         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
2254         * m4/fts.m4 (gl_FUNC_FTS_CORE):
2255         * m4/lstat.m4 (gl_PREREQ_LSTAT):
2256         * m4/openat.m4 (gl_PREREQ_OPENAT):
2257         * m4/raise.m4 (gl_PREREQ_RAISE):
2258         Do not require AC_C_INLINE.
2259
2260         fflush, stat: no 'static inline'
2261         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2262         (clear_ungetc_buffer, disable_seek_optimization)
2263         (restore_seek_optimization, update_fpos_cache):
2264         * lib/stat.c (orig_stat):
2265         Now static, not static inline.
2266         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
2267         (update_fpos_cache):
2268         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
2269         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
2270         * m4/stat.m4 (gl_PREREQ_STAT):
2271         Do not require AC_C_INLINE.
2272
2273         error, filevercmp: no 'static inline'
2274         * lib/error.c (is_open, flush_stdout):
2275         * lib/filevercmp.c (order):
2276         Now static, not static inline.
2277         * m4/error.m4 (gl_PREREQ_ERROR):
2278         * modules/filevercmp (configure.ac):
2279         Do not require AC_C_INLINE.
2280
2281         dup, execute, fatal-signal, etc.: no 'static inline'
2282         * lib/dup.c (dup_nothrow):
2283         * lib/execute.c (nonintr_close, nonintr_open):
2284         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
2285         * lib/fopen.c (orig_fopen):
2286         * lib/freadseek.c (freadptrinc):
2287         * lib/freopen.c (orig_freopen):
2288         * lib/fstat.c (orig_fstat, fstat_nothrow):
2289         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
2290         (get_rusage_as_via_iterator):
2291         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
2292         * lib/getdtablesize.c (_setmaxstdio_nothrow):
2293         * lib/isatty.c (_isatty_nothrow):
2294         * lib/open.c (orig_open):
2295         * lib/read.c (read_nothrow):
2296         * lib/sigprocmask.c (signal_nothrow):
2297         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
2298         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
2299         * lib/wait-process.c (unregister_slave_subprocess):
2300         * lib/write.c (write_nothrow):
2301         Now static, not static inline.
2302         * lib/spawn-pipe.c (nonintr_open): Define only if
2303         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
2304         * m4/dup.m4 (gl_PREREQ_DUP):
2305         * m4/execute.m4 (gl_EXECUTE):
2306         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
2307         * m4/fopen.m4 (gl_PREREQ_FOPEN):
2308         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
2309         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
2310         * m4/fstat.m4 (gl_PREREQ_FSTAT):
2311         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
2312         * m4/isatty.m4 (gl_PREREQ_ISATTY):
2313         * m4/open.m4 (gl_PREREQ_OPEN):
2314         * m4/read.m4 (gl_PREREQ_READ):
2315         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
2316         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
2317         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
2318         * m4/wait-process.m4 (gl_WAIT_PROCESS):
2319         * m4/write.m4 (gl_PREREQ_WRITE):
2320         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
2321         Do not require AC_C_INLINE.
2322
2323         c-strtod, memcoll, readutmp: no 'static inline'
2324         * lib/c-strtod.c (c_locale):
2325         * lib/memcoll.c (strcoll_loop):
2326         * lib/readutmp.c (desirable_utmp_entry):
2327         Now static, not static inline.
2328         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2329         * m4/memcoll.m4 (gl_MEMCOLL):
2330         * m4/readutmp.m4 (gl_READUTMP):
2331         Do not require AC_C_INLINE.
2332
2333         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2334         * lib/arctwo.c (to_uchar):
2335         * lib/md4.c (set_uint32):
2336         * lib/md5.c (set_uint32):
2337         * lib/sha1.c (set_uint32):
2338         * lib/sha256.c (set_uint32):
2339         * lib/sha512.c (set_uint64):
2340         Now static, not static inline.  This is a bit simpler, and doesn't
2341         affect performance with GCC and default optimization.
2342         * m4/arctwo.m4 (gl_ARCTWO):
2343         * m4/md4.m4 (gl_MD4):
2344         * m4/md5.m4 (gl_MD5):
2345         * m4/sha1.m4 (gl_SHA1):
2346         * m4/sha256.m4 (gl_SHA256):
2347         * m4/sha512.m4 (gl_SHA512):
2348         Do not require AC_C_INLINE.
2349
2350         cond, lock, thread: better 'inline'
2351         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2352         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2353         New macros.  Use them instead of static inline, for header functions.
2354         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2355         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2356         * lib/glthread/lock.c (gl_waitqueue_init)
2357         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2358         * lib/glthread/thread.c (get_current_thread_handle):
2359         Change 'static inline' to 'inline'.
2360         * lib/glthread/cond.h, lib/glthread/thread.h:
2361         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2362         * m4/cond.m4 (gl_COND):
2363         * m4/lock.m4 (gl_PREREQ_LOCK):
2364         * m4/thread.m4 (gl_THREAD):
2365         Do not require AC_C_INLINE.
2366         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2367
2368         chdir-long, cycle-check, savewd: better 'inline'
2369         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2370         (find_non_slash):
2371         * lib/cycle-check.c (is_zero_or_power_of_two):
2372         * lib/savewd.c (savewd_delegating):
2373         Change 'static inline' to 'inline'.
2374         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2375         Replace all remaining uses of 'static inline' with it.
2376         * lib/savewd.h:
2377         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2378         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2379         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2380         * m4/savewd.m4 (gl_SAVEWD):
2381         Do not require AC_C_INLINE.
2382         * modules/savewd (Depends-on): Add extern-inline.
2383
2384         base32, base64: no need for 'inline'
2385         * lib/base32.c (to_uchar, get_8, decode_8):
2386         * lib/base64.c (to_uchar, get_4, decode_4):
2387         Change 'static inline' to 'inline'.
2388         * m4/base32.m4 (gl_PREREQ_BASE32):
2389         * m4/base64.m4 (gl_PREREQ_BASE64):
2390         Do not require AC_C_INLINE.
2391
2392         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
2393         * lib/gl_array_oset.c (gl_array_nx_add_at):
2394         (gl_array_remove_at):
2395         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2396         (add_to_bucket, remove_from_bucket):
2397         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2398         Change 'static inline' to 'static', as it's simpler to omit
2399         'inline' unless there's a significant performance advantage.
2400
2401         list, oset, xlist, xoset, xsublist: simplify via extern inline
2402         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2403         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2404         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2405         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2406         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2407         New macro.  Replace all uses of 'static inline' with it.
2408         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2409         instead of as macros FOO that are defined to static inline
2410         functions FOO_inline.
2411         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2412         * lib/gl_xsublist.c:
2413         Reimplement from scratch, by defining the corresponding *_INLINE
2414         macro and including the corresponding .h file.  This is simpler.
2415         * modules/list, modules/oset, modules/xlist, modules/xoset:
2416         (Files): Remove m4/gl_list.m4.
2417         (configure.ac): Remove gl_LIST.
2418         * m4/gl_list.m4: Remove.
2419         * modules/list, modules/oset, modules/xlist, modules/xoset:
2420         * modules/xsublist:
2421         (Depends-on): Depend on extern-inline, not inline.
2422
2423         xalloc: better 'inline'
2424         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2425         New macro.  Replace all uses of 'static inline' with it.
2426         (static_inline): Remove.
2427         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2428         Let 'extern inline' do the work automatically, instead of doing
2429         it by hand.
2430         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2431         Remove.  All uses removed.
2432         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2433
2434         gethrxtime: better 'inline'
2435         * lib/xtime.c: New file.
2436         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2437         * lib/xtime.h (XTIME_INCLUDE):
2438         New macros.  Replace all uses of 'static inline' with them.
2439         * lib/gethrxtime.c (gethrxtime): Define only if
2440         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2441         this source file is now always compiled, because of the extern inline.
2442         * lib/gethrxtime.h, lib/xtime.h:
2443         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2444         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2445         if gethrtime works, as they're not needed in that case.
2446         (gl_XTIME): Do not require AC_C_INLINE.
2447         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2448         compiled now.  Move the check into gl_GETHRXTIME.
2449         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2450         (Depends-on): Add extern-inline.
2451         (configure.ac): gethrxtime is always compiled now.
2452         (lib_SOURCES): Add gethrxtime.c.
2453
2454         wctype-h: better 'inline'
2455         * lib/wctype-h.c: New file.
2456         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2457         New macro.  Replace all uses of 'static inline' with it.
2458         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2459         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2460         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2461         (Depends-on): Add extern-inline.
2462
2463         unistd: better 'inline'
2464         * lib/unistd.c: New file.
2465         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2466         New macro.  Replace all uses of 'static inline' with it.
2467         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2468         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2469         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2470         (Depends-on): Add extern-inline.
2471
2472         sys_socket: better 'inline'
2473         * lib/sys_socket.c: New file.
2474         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2475         New macro.  Replace all uses of 'static inline' with it.
2476         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2477         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
2478         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
2479         (Depends-on): Add extern-inline.
2480
2481         stdio: better 'inline'
2482         * lib/stdio.c: New file.
2483         * lib/stdio.in.h (_GL_STDIO_INLINE):
2484         New macro.  Replace all uses of 'static inline' with it.
2485         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2486         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
2487         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
2488         (Depends-on): Add extern-inline.
2489
2490         sigaction: better 'inline'
2491         * lib/sig-handler.c: New file.
2492         * lib/sig-handler.h (SIG_HANDLER_INLINE):
2493         New macro.  Replace all uses of 'static inline' with it.
2494         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2495         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
2496         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
2497         (Depends-on): Add extern-inline.
2498
2499         selinux-h: better 'inline'
2500         * lib/se-context.c, lib/se-selinux.c: New files.
2501         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
2502         * lib/se-context.in.h (SE_CONTEXT_INLINE):
2503         New macro.  Replace all uses of 'static inline' with it.
2504         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2505         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
2506         New macro.  Replace all uses of 'static inline' with it.
2507         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2508         * modules/selinux-h (Files, lib_SOURCES):
2509         Add lib/se-context.c, lib/se-selinux.c.
2510         (Depends-on): Add extern-inline.
2511         (configure.ac): Do not require AC_C_INLINE.
2512
2513         pthread: better 'inline'
2514         * lib/pthread.c: New file.
2515         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
2516         New macro.  Replace all uses of 'static inline' with it.
2517         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2518         * m4/pthread.m4 (gl_PTHREAD_CHECK):
2519         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
2520         * modules/pthread (Files): Add lib/pthread.c.
2521         (Depends-on): Add extern-inline.
2522
2523         math: better 'inline'
2524         * lib/math.c: New file.
2525         * lib/math.in.h (_GL_MATH_INLINE):
2526         New macro.  Replace all uses of 'static inline' with it.
2527         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2528         * m4/math_h.m4 (gl_MATH_H):
2529         Do not require AC_C_INLINE.
2530         * modules/math (Files, lib_SOURCES):
2531         Add lib/math.c.
2532         (Depends-on): Add extern-inline.
2533
2534         count-one-bits: better 'inline'
2535         * lib/count-one-bits.c: New file.
2536         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
2537         New macro.  Replace all uses of 'static inline' with it.
2538         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2539         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
2540         Do not require AC_C_INLINE.
2541         * modules/count-one-bits (Files, lib_SOURCES):
2542         Add lib/count-one-bits.c.
2543         (Depends-on): Add extern-inline.
2544
2545         count-leading-zeros: better 'inline'
2546         * lib/count-leading-zeros.c: New file.
2547         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
2548         New macro.  Replace all uses of 'static inline' with it.
2549         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2550         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
2551         Do not require AC_C_INLINE.
2552         * modules/count-leading-zeros (Files, lib_SOURCES):
2553         Add lib/count-leading-zeros.c.
2554         (Depends-on): Add extern-inline.
2555
2556         bitrotate: better 'inline'
2557         * lib/bitrotate.c: New file.
2558         * lib/bitrotate.h (BITROTATE_INLINE):
2559         New macros.
2560         Replace all uses of 'static inline' with them.
2561         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2562         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
2563         (Depends-on): Add extern-inline.
2564         (configure.ac): Do not require AC_C_INLINE.
2565
2566 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
2567
2568         maint.mk: avoid gratuitous failure
2569         Reported by Stefano Lattarini in
2570         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
2571         * top/maint.mk (public-submodule-commit): Quote more safely.
2572
2573 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
2574
2575         canonicalize, canonicalize-lgpl: support MS-Windows file names
2576         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
2577         for test cases, which it'd be nice to add at some point.
2578         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
2579         * lib/canonicalize.c (canonicalize_filename_mode):
2580         * lib/canonicalize-lgpl.c (__realpath):
2581         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
2582         slash is at the beginning of the file name.  Use ISSLASH, instead
2583         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
2584         the first character with '/'.  Test for
2585         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
2586         with a drive letter.
2587         * lib/canonicalize.c (SLASHES): New macro.
2588         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
2589
2590 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
2591
2592         fts: introduce FTS_VERBATIM
2593         * lib/fts_.h (FTS_VERBATIM): New bit flag.
2594         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
2595         * lib/fts.c (fts_open): Honor it.
2596
2597 2012-11-09  Pádraig Brady  <P@draigBrady.com>
2598
2599         getlogin-tests: allow errno == ENXIO
2600         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2601         with errno == ENXIO (No controlling tty).
2602         getlogin_r-tests: Likewise. Also allow errno == ENOENT
2603         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
2604         with errno == ENOENT.  This was reported to happen in various
2605         situations on GNU/Linux.
2606
2607 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2608
2609         getlogin-tests: allow errno == ENOENT
2610         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2611         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
2612         when running a test in an Emacs shell buffer.
2613
2614 2012-11-08  Jim Meyering  <jim@meyering.net>
2615
2616         tests/nap.h: avoid warning about unused variable
2617         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
2618
2619         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
2620         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
2621         white space before each of the special-cased file names, to avoid
2622         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
2623         in http://bugs.gnu.org/12830.
2624
2625 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2626
2627         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
2628         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
2629         fails with errno == EBADF when fd is opened with O_PATH.
2630         Reported by Jim Meyering in
2631         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
2632         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2633         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
2634
2635 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2636
2637         test-utimens: speed up by taking shorter naps
2638         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
2639         New functions.
2640         (nap): Use them, to do a better job of guessing the delay.
2641         On Fedora 17 with ext4 atop md atop hard disks, this made
2642         test-utimens run 10x faster, because the test napped for
2643         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
2644         <http://bugs.gnu.org/12820#11>.
2645
2646 2012-11-07  Jim Meyering  <jim@meyering.net>
2647
2648         mountlist.c: fix a compilation failure
2649         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
2650         I introduced while transforming commit v0.0-7683-g613bcb6
2651
2652 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2653
2654         errno: port to LynxOS 178 2.2.2
2655         Problem reported by Joel Brobecker in
2656         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
2657         * doc/posix-headers/errno.texi (errno.h): Document this.
2658         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
2659         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
2660         Supply a string for EILSEQ.
2661         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
2662
2663 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2664
2665         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
2666         Linux kernel 2.6.39 introduced O_PATH (see
2667         <http://lwn.net/Articles/433854/>) and this is a better fallback
2668         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
2669         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2670         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
2671         * lib/fcntl.in.h (O_ACCMODE):
2672         * tests/test-fcntl-h.c (main):
2673         Do not reject O_ACCMODE merely because it has more than the
2674         minimal number of bits, as POSIX allows extensions here.
2675
2676 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
2677
2678         mountlist: do not classify a bind-mounted dir entry as "dummy"
2679         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
2680         the "none"-testing clause.
2681         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
2682         exception for bind-mounted directories.
2683
2684 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
2685
2686         quote: provide a means to escape strings with nul characters
2687         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
2688         (quote, quote_n): Rename formal arguments for consistency with
2689         quotearg.
2690
2691 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
2692
2693         test-raise: don't assume 199 is an invalid signal
2694         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
2695
2696         sh-quote-tests: port to Solaris 9
2697         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
2698         Problem reported by Dagobert Michelsen in
2699         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
2700
2701 2012-10-28  Jim Meyering  <jim@meyering.net>
2702
2703         maint.mk: rename a new configurable variable
2704         * top/maint.mk (_gl_translatable_string_re): Rename from
2705         translation-markers: _gl_ prefix to insulate from user Makefile code,
2706         and the _re suffix to inform that it's a regular expression.
2707
2708 2012-10-26  Eric Blake  <eblake@redhat.com>
2709
2710         maint.mk: let packages tweak sc_po_check pattern
2711         * top/maint.mk (sc_po_check): Add translation-markers, to allow
2712         finding files with other translation markers.
2713
2714 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2715
2716         euidaccess: speed up 'configure' on GNU hosts
2717         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
2718         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
2719         it's needed only in this case.  Use AC_CHECK_DECLS, not
2720         AC_CHECK_DECLS_ONCE.
2721         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
2722         or AC_REQUIRE for AC_FUNC_GETGROUPS.
2723
2724         * lib/regexec.c (re_search_internal): Fix grammar in comment.
2725
2726 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2727
2728         fchmodat, fchownat, fstatat: port to non-inlining compilers
2729         Problem reported for FreeBSD 9 by Jim Meyering in
2730         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
2731         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
2732         New files, which define FCHMODAT_INLINE etc.
2733         * lib/fchmodat.c (FCHMODAT_INLINE):
2734         * lib/fchownat.c (FCHOWNAT_INLINE):
2735         * lib/fstatat.c (FSTATAT_INLINE):
2736         Remove, as chmodat.c etc. now do this.
2737         * modules/fchmodat (Files): Add lib/chmodat.c.
2738         * modules/fchownat (Files): Add lib/chownat.c.
2739         * modules/fstatat (Files): Add lib/statat.c.
2740
2741 2012-10-15  Jim Meyering  <jim@meyering.net>
2742
2743         fchmodat.c, fchownat.c: compile-impeding typos
2744         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
2745         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
2746         Introduced in commit v0.0-7636-gd202279.
2747
2748 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2749
2750         fcntl-h: support GNU flags like O_IGNORE_CTTY
2751         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
2752         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
2753         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
2754         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
2755         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
2756         Define to 0 if not already defined.
2757         * tests/test-fcntl-h.c: Test these new flags.
2758
2759 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
2760
2761         faccessat, etc.: support AT_FDCWD-only use
2762         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
2763         this function only if its first argument is AT_FDCWD.
2764         Emacs wants faccessat for AT_EACCESS but not for any first-arg
2765         values other than AT_FDCWD, so it doesn't want all the openat
2766         machinery with fchdir etc.
2767         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
2768         * modules/fstatat, modules/mkdirat, modules/openat (Files):
2769         * modules/unlinkat (Files):
2770         Remove lib/openat-priv.h, as at-internal supplies this file.
2771         Removing this file here allows us to support programs like Emacs
2772         that avoid at-internal.
2773
2774         faccessat: speed up 'configure' on mainstream hosts
2775         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
2776         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
2777         since it's only on unusual platforms that we need to check for
2778         'access', and it's better not to slow 'configure' down on all
2779         platforms.
2780
2781         faccessat: port to Solaris 10
2782         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
2783         Needed on Solaris 10, which doesn't have AT_EACCESS,
2784         so we need the Gnulib fcntl.h, which defines it.
2785
2786 2012-10-14  Pádraig Brady  <P@draigBrady.com>
2787         canonicalize: fix C89 compilation
2788         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
2789         declarations so C89 is supported.  Also remove the comment
2790         referencing memorty allocation as the suggested feature could
2791         not be implemented as suggested.
2792         Reported by Michael Goffioul.
2793
2794 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2795
2796         group-member: omit unnecessary dependencies
2797         This is for Emacs, which has its own allocator and where we
2798         don't want to use xalloc.
2799         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
2800         since we no longer use xmalloc.  Do not include stdbool.h, since
2801         the changes below happen to remove the only use of bool.
2802         (GROUPBUF_SIZE): New constant.
2803         (struct group_info): Remove n_groups member.  Add groupbuf member.
2804         This lets us get the groups without using malloc, usually.
2805         (free_group_info, get_group_info): Adjust to this.
2806         (get_group_info): Return the number of groups found, or -1 on error.
2807         Use plain malloc not xmalloc, and treat its failure as if there
2808         are no groups, as the user already loses in case of error.
2809         (group_member): Simplify, based on changes to get_group_info.
2810         * modules/group-member (Depends-on): Remove dependencies on
2811         xalloc and stdbool.  Add dependency on xalloc-oversized.
2812
2813 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
2814
2815         gethrxtime: port to C++
2816         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
2817
2818 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2819
2820         ptsname: fix macro-name typo
2821         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
2822
2823 2012-10-03  Simon Josefsson  <simon@josefsson.org>
2824
2825         inttostr: Relax license.
2826         * modules/inttostr (License): Change from LGPL to LGPLv2+.
2827
2828 2012-10-03  Eric Blake  <eblake@redhat.com>
2829
2830         ptsname_r: support ptys returned by FreeBSD posix_openpt
2831         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
2832         lives in /dev/pts/.
2833
2834 2012-10-02  Eric Blake  <eblake@redhat.com>
2835
2836         pselect: reject invalid file descriptors
2837         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
2838         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
2839         * modules/pselect (Depends-on): Add dup2.
2840         * doc/posix-functions/pselect.texi (pselect): Document this.
2841
2842         select: reject invalid file descriptors
2843         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
2844         * lib/select.c (rpl_select) [!win32]: Work around it.
2845         * modules/select (Depends-on): Add dup2.
2846         * doc/posix-functions/select.texi (select): Document this.
2847
2848         select: enhance test
2849         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
2850         New functions.
2851         (test_function): Enhance test.
2852         (do_select_bad_fd): Avoid any stale errno values.
2853
2854         ptsname: reject invalid file descriptors
2855         http://www.austingroupbugs.net/view.php?id=503
2856         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
2857         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
2858         * modules/stdlib (Makefile.am): Replace witness.
2859         * lib/stdlib.in.h (ptsname): Allow for replacement.
2860         * modules/ptsname (configure.ac): Trigger replacement.
2861         * doc/posix-functions/ptsname.texi (ptsname): Document this.
2862
2863 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
2864
2865         hash-pjw-bare: new module
2866         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
2867         * lib/hash-pjw-bare.h: Likewise.
2868         * modules/hash-pjw-bare: New file.
2869         * MODULES.html.sh (Misc): Add it.
2870
2871 2012-10-02  Eric Blake  <eblake@redhat.com>
2872
2873         manywarnings: cater to more gcc infelicities
2874         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
2875         -Wuninitialized without -O.
2876
2877 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
2878
2879         select, poll tests: Make setsockopt invocation effective.
2880         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
2881         the bind() call.
2882         * tests/test-select.h (open_server_socket): Likewise.
2883
2884 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
2885
2886         sockets, sys_stat: restore AC_C_INLINE
2887         This undoes the 2012-09-22 patch.
2888         * m4/sockets.m4 (gl_SOCKETS):
2889         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2890         Restore AC_C_INLINE, since MSVC requires __inline or _inline
2891         and does not support plain 'inline'.  Reported by Bruno Haible in
2892         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
2893
2894 2012-09-30  Bruno Haible  <bruno@clisp.org>
2895
2896         localeconv tests: Avoid test failure on OpenIndiana.
2897         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
2898         skip the 'grouping' and 'mon_grouping' tests.
2899         Reported by Jim Meyering.
2900
2901 2012-09-30  Bruno Haible  <bruno@clisp.org>
2902
2903         havelib: Follow libtool developments.
2904         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
2905         Suggested by Simon Josefsson.
2906
2907 2012-09-29  Jim Meyering  <meyering@redhat.com>
2908
2909         fstatat.c: fix a compile-impeding typo
2910         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
2911         Introduced in commit v0.0-7636-gd202279.
2912         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
2913
2914 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
2915
2916         extern-inline: provide a -Wundef safe config.h
2917         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
2918         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
2919         to produce a -Wundef warning free config.h.
2920
2921 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2922
2923         hash-pjw: relax license to LGPLv2+
2924         * modules/hash-pjw (License): Relax, with consent of author.
2925
2926 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2927
2928         maint.mk: fix strict vs. lazy variable issues with RELEASE
2929         * top/maint.mk (_equal): New function.
2930         (member_check): Strip the result to avoid spurious spaces.
2931         (url_dir_list): Do not use ifeq, which is strict, as it will
2932         require RELEASE_TYPE to be defined.
2933         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
2934         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
2935         (announcement_Cc_alpha,announcement_mail_headers_alpha)
2936         (announcement_Cc_beta,announcement_mail_headers_beta)
2937         (announcement_Cc_stable,announcement_mail_headers_stable): these.
2938         (release): Do not depend on $(release-type), as it forces its
2939         evaluation.  Bounce to it.
2940
2941 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2942
2943         maint.mk: formatting changes
2944         * top/maint.mk: Indent bodies of if's.
2945
2946 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
2947
2948         maint.mk: factor the validation of RELEASE_TYPE
2949         With help from Jim Meyering.
2950         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
2951         * top/maint.mk (_empty, _sp): Move their definition earlier.
2952         (member-check, release-type): New.
2953         Use the latter instead of $(RELEASE_TYPE).
2954         Remove now useless local checks.
2955
2956 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2957
2958         maint.mk: provide "make upload" to ease uploading
2959         See
2960         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
2961         Do not depend simply on the current $(VERSION), as there may have been
2962         new commits since the tarball generation.  Rather, rely on $(RELEASE),
2963         as "make release-commit" already does.
2964
2965         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
2966         "make TYPE".
2967
2968         * top/maint.mk (upload_command, upload, release): New.
2969         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
2970         (VERSION): first word of $(RELEASE) is always right.
2971         (emit_upload_commands): Adjust.
2972         * top/README-release: Update.
2973
2974 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2975
2976         maint.mk: silent rules
2977         With help from Stefano Lattarini.
2978         * top/maint.mk (writable-files): Use $(AM_V_GEN).
2979         (announcement): Use $(AM_V_at).
2980
2981 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2982
2983         localename: port gl_locale_name_thread_unsafe to FreeBSD
2984         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
2985         and use the simpler FreeBSD implementation on Mac OS X as well.
2986         Original idea suggested by Ed Maste in
2987         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
2988
2989 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2990
2991         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
2992         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
2993         * lib/mbuiter.c, lib/xsize.c: New files.
2994         * lib/binary-io.h (BINARY_IO_INLINE):
2995         * lib/eealloc.h (EEALLOC_INLINE):
2996         * lib/mbfile.h (MBFILE_INLINE):
2997         * lib/mbiter.h (MBITER_INLINE):
2998         * lib/mbuiter.h (MBUITER_INLINE):
2999         * lib/xsize.h (XSIZE_INLINE):
3000         New macros.
3001         Replace all uses of 'static inline' with them.
3002         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3003         * m4/eealloc.m4 (gl_EEALLOC):
3004         * m4/mbfile.m4 (gl_MBFILE):
3005         * m4/mbiter.m4 (gl_MBITER):
3006         * m4/xsize.m4 (gl_XSIZE):
3007         Do not require AC_C_INLINE.
3008         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
3009         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
3010         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
3011         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
3012         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
3013         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
3014         * modules/binary-io, modules/eealloc, modules/mbfile:
3015         * modules/mbiter, modules/mbuiter:
3016         (Depends-on): Add extern-inline.
3017
3018         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
3019         * lib/pipe-filter-aux.c: New file.
3020         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
3021         Replace all uses of 'static inline' with it.
3022         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3023         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
3024         (filter_retcode): No real need for inline here.
3025         * modules/pipe-filter-gi, modules/pipe-filter-ii:
3026         (Files): Add lib/pipe-filter-aux.c.
3027         (Depends-on): Add extern-inline.
3028         (configure.ac): Do not require AC_C_INLINE.
3029         (lib_SOURCES): Add pipe-filter-aux.c.
3030
3031         fdutimensat: omit unnecessary AC_C_INLINE
3032         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
3033
3034         fchmodat, fchownat, fstatat: use extern-inline
3035         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
3036         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
3037         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
3038         New macros.
3039         * lib/openat.h:
3040         Replace all uses of 'static inline' with them.
3041         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3042         * modules/fchmodat, modules/fchownat, modules/fstatat:
3043         * modules/openat-h:
3044         (Depends-on):
3045         Add extern-inline.
3046         (configure.ac): Remove AC_C_INLINE.
3047
3048         acl, mbchar, priv-set: use extern-inline
3049         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
3050         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
3051         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
3052         New macros.
3053         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
3054         Replace all uses of 'static inline' with it.
3055         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3056         * m4/acl.m4 (gl_FUNC_ACL):
3057         * m4/mbchar.m4 (gl_MBCHAR):
3058         * m4/priv-set.m4 (gl_PRIV_SET):
3059         Remove AC_C_INLINE, since 'inline' is no longer used directly.
3060         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
3061         Add extern-inline.
3062
3063         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
3064         * m4/sockets.m4 (gl_SOCKETS):
3065         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3066         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
3067         environments where it's already guaranteed to work, so we needn't
3068         check for it at 'configure'-time.
3069
3070         tls-tests: omit unnecessary 'inline'
3071         * tests/test-tls.c (perhaps_yield): No longer inline.
3072         Simplicity and portability trump efficiency in test cases.
3073
3074         utimens-tests: avoid unnecessary 'inline'
3075         * modules/fdutimensat-tests (configure.ac):
3076         * modules/futimens-tests (configure.ac):
3077         * modules/utimens-tests (configure.ac):
3078         * modules/utimensat-tests (configure.ac):
3079         Remove AC_C_INLINE.
3080         * tests/test-utimens-common.h (ctime_compare):
3081         No longer inline.  Simplicity and portability trump efficiency here.
3082
3083         misc: don't limit commentary to inline functions
3084         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
3085         * lib/xalloc-oversized.h, lib/xsize.h:
3086         Contrast macros to functions in general, not just to inline functions,
3087         when the commentary does not apply only to inline functions.
3088
3089 2012-09-20  Jim Meyering  <meyering@redhat.com>
3090
3091         non-recursive-gnulib-prefix-hack: new module
3092         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
3093         the file that originated in Bison.
3094         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
3095         largely copied from a snippet that resided in bison's configure.ac.
3096         * modules/non-recursive-gnulib-prefix-hack: New file.
3097         * MODULES.html.sh (Support for maintaining and releasing projects):
3098         Add it.
3099
3100 2012-09-18  Jim Meyering  <meyering@redhat.com>
3101
3102         maint.mk: generalize _gl_tight_scope for non-recursive make
3103         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
3104         that *.h would describe additional .h files in the directory
3105         specified by $(_gl_TS_dir).  I.e., add this...
3106         (_gl_TS_other_headers): New variable.
3107
3108         maint.mk: exempt trailing blanks found in "binary" files
3109         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
3110         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
3111         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3112
3113 2012-09-17  Jim Meyering  <meyering@redhat.com>
3114
3115         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
3116         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
3117         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
3118         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3119
3120 2012-09-17  Jim Meyering  <meyering@redhat.com>
3121
3122         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
3123         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
3124         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
3125         It is not in the same category as "exit (0)" or "exit (1)", and
3126         besides, I know of no symbolic name for that 77.  Reported by
3127         Richard W.M. Jones in
3128         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3129
3130 2012-09-17  Jim Meyering  <meyering@redhat.com>
3131
3132         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
3133         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
3134         all uses of #define, not just those that start in column 1.
3135         Richard W.M. Jones reported a false positive in
3136         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3137
3138 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3139
3140         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
3141         * lib/localcharset.c (locale_charset) [DARWIN7]:
3142         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
3143         as these two values are incompatible.  Problem reported by Max Horn.
3144         For more discussion, please see
3145         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
3146
3147         doc: document sticky-EOF issue
3148         * doc/posix-functions/fgetc.texi (fgetc):
3149         * doc/posix-functions/fgets.texi (fgets):
3150         * doc/posix-functions/fread.texi (fread):
3151         * doc/posix-functions/fscanf.texi (fscanf):
3152         * doc/posix-functions/getc.texi (getc):
3153         * doc/posix-functions/getchar.texi (getchar):
3154         * doc/posix-functions/scanf.texi (scanf):
3155         Mention that glibc and default Solaris do not conform to
3156         C99 and POSIX-2001 or later, with respect to how getchar
3157         etc. behave when feof reports nonzero.
3158
3159 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3160
3161         poll: fix poll(0, NULL, msec)
3162         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
3163         but nfd is 0.  In that case poll should behave like select.
3164
3165 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3166             Paolo Bonzini <bonzini@gnu.org>
3167
3168         poll: fix for systems that can't recv() on a non-socket
3169         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
3170         is readable.  In this case POLLHUP will not be supported.
3171         * doc/posix-functions/poll.texi: Document this.
3172
3173 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
3174
3175         poll/select: document portability problems not fixed by Gnulib.
3176         * doc/posix-functions/poll.texi: poll does not work well on
3177         pipes under Windows.  It has the same limitations as select on
3178         BeOS.
3179         * doc/posix-functions/select.texi: select does not work well
3180         on pipes under Windows.
3181
3182 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3183
3184         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
3185         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
3186         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
3187         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
3188
3189 2012-09-06  Eric Blake  <eblake@redhat.com>
3190
3191         net_if: give more details about the bug being fixed
3192         * doc/posix-headers/net_if.texi: Add clarification.
3193
3194 2012-09-05  Eric Blake  <eblake@redhat.com>
3195
3196         net_if: new module
3197         * modules/net_if: New module, borrowing ideas from netinet_in.
3198         * m4/net_if_h.m4: New file.
3199         * lib/net_if.in.h: Likewise.
3200         * doc/posix-headers/net_if.texi (net/if.h): Document it.
3201         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3202         * tests/test-net_if.c: Make function checks conditional.
3203         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
3204
3205 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
3206
3207         readutmp: fix non-portable UT_PID use
3208         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
3209         Use `UT_PID (u) > 0' as absolute condition.
3210
3211 2012-09-04  Jim Meyering  <meyering@redhat.com>
3212
3213         fts: reduce two or more trailing spaces to just one, usually
3214         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
3215         or more slashes, trim all but the final one.  But if a name consists
3216         solely of two slashes, don't modify it.  If it consists solely of
3217         three or more slashes, strip all but one.
3218
3219         This is part of the solution to a minor problem with rm:
3220         it would print a bogus ELOOP diagnostic when failing to remove
3221         the slash-decorated name of a symlink-to-directory:
3222
3223             $ mkdir d && ln -s d s && env rm -r s/
3224             rm: cannot remove 's': Too many levels of symbolic links
3225
3226         With the change below and a trivial don't-trim-trailing-slashes
3227         adjustment to remove.c, it does this:
3228
3229             $ env rm -r s/
3230             rm: cannot remove 's/': Not a directory
3231
3232         Improved by: Eric Blake
3233
3234         fts: when there is no risk of overlap, use memcpy, not memmove
3235         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
3236
3237 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3238
3239         stdbool: be more compatible with mixed C/C++ compiles
3240         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
3241         Define to bool, true, false, respectively, as GCC's builtin
3242         stdbool.h does.  Problem reported by Michael Goffioul in
3243         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
3244
3245 2012-08-28  Jim Meyering  <meyering@redhat.com>
3246
3247         revert last change: it was not needed
3248         * tests/test-vc-list-files-git.sh: There's already a test for
3249         a working git, just below.
3250
3251 2012-08-28  Jim Meyering  <meyering@redhat.com>
3252
3253         tests: test-vc-list-files-git.sh: skip if git is not available
3254         * tests/test-vc-list-files-git.sh: Skip this test when git is
3255         not available.
3256
3257 2012-08-26  Bruno Haible  <bruno@clisp.org>
3258
3259         gnulib-tool: Remove no-op option --no-changelog.
3260         * gnulib-tool (func_usage): Don't mention --no-changelog.
3261         (do_changelog): Remove variable.
3262         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3263
3264 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3265
3266         doc: remove fdl-1.2.texi
3267         It is no longer used or maintained, and its use of @acronym
3268         is problematic.  See the thread containing
3269         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
3270         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
3271         * doc/old-licenses/fdl-1.2.texi: Remove.
3272
3273         execinfo: port to FreeBSD
3274         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
3275         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
3276         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
3277         * modules/execinfo (Link): Add $(LIB_EXECINFO).
3278
3279 2012-08-23  Jim Meyering  <meyering@redhat.com>
3280
3281         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
3282         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
3283         to placate gcc's -Wold-style-declaration.
3284
3285 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3286
3287         doc: do not use @acronym
3288         * doc/inet_ntoa.texi (inet_ntoa):
3289         * doc/parse-datetime.texi (Seconds since the Epoch)
3290         (Specifying time zone rules):
3291         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
3292         Don't use @acronym.  Problem reported by John Darlington in
3293         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
3294
3295 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3296
3297         stdnoreturn: port to newer GCCs
3298         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
3299         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
3300         Problem reported by Jim Meyering in
3301         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
3302         Also, rename the 'test' function to a void a clash with the
3303         already-supplied 'main' function; this fixes a bug that incorrectly
3304         rejected GCC 4.7.1's <stdnoreturn.h>.
3305         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3306         Document GCC problem.
3307
3308 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
3309
3310         pipe-filter: fix comment typo
3311         * lib/pipe-filter.h: Mention correct function.
3312
3313 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3314
3315         execinfo: new module
3316         This is for Emacs.  Currently, it provides a no-effect stub
3317         on all platforms where it does not already work.
3318         It already works on glibc-based systems, and on Solaris 11.
3319         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
3320         New files.
3321         * doc/glibc-headers/execinfo.texi (execinfo.h):
3322         * MODULES.html.sh (Misc): Document it.
3323
3324 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3325
3326         extern-inline: support old GCC 'inline'
3327         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3328         if available.  This applies to GCC versions 2.7 through 4.2, or
3329         when newer GCC is using -fgnu89-inline.  The goal is to address
3330         some of the performance issues mentioned by Bruno Haible in
3331         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3332
3333 2012-08-20  Eric Blake  <eblake@redhat.com>
3334
3335         maint.mk: avoid redundant file name in message
3336         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3337         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3338         (sc_makefile_path_separator_check): Remove bogus $(ME).
3339
3340 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3341
3342         timer-time: fix link order when static linking on glibc
3343         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3344         _after_ -lrt so that it's significant.
3345
3346 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3347
3348         timespec: omit unnecessary AC_C_INLINE
3349         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3350
3351         stat-time: omit unnecessary AC_C_INLINE
3352         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3353         Do not require AC_C_INLINE.
3354
3355         ignore-value: omit unnecessary AC_C_INLINE
3356         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3357
3358         sys_select: avoid 'static inline'
3359         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3360
3361         mktime: avoid 'static inline'
3362         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3363         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3364
3365 2012-08-19  Bruno Haible  <bruno@clisp.org>
3366
3367         gnulib-tool: Improve coding style.
3368         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3369         func_emit_lib_Makefile_am.
3370         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3371
3372 2012-08-19  Bruno Haible  <bruno@clisp.org>
3373
3374         gnulib-tool: Fix indentation.
3375         * gnulib-tool (func_import): Fix indentation.
3376
3377 2012-08-19  Bruno Haible  <bruno@clisp.org>
3378
3379         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3380         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3381         on the list of removed files.
3382
3383 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3384
3385         test-parse-datetime: avoid glibc leap-second glitch
3386         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
3387         with the 2012 rules.  Problem reported by Bruce Dubbs in
3388         <http://bugs.gnu.org/12206>.
3389
3390 2012-08-14  Bruno Haible  <bruno@clisp.org>
3391
3392         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
3393         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3394         from argument.
3395         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3396
3397 2012-08-14  Eric Blake  <eblake@redhat.com>
3398
3399         ldexp: relax license
3400         * modules/ldexp (License): Trivial relax, since the module only
3401         provides a permissively licensed m4 file.
3402
3403 2012-08-13  Bruno Haible  <bruno@clisp.org>
3404
3405         gnulib-tool: Fix persistence of --witness-c-macro option.
3406         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3407         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3408
3409 2012-08-11  Eric Blake  <eblake@redhat.com>
3410
3411         count-leading-zeros: use a lookup table on non-gcc compilers
3412         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3413         alternate implementation, suggested by Jim Meyering.
3414
3415 2012-08-10  Eric Blake  <eblake@redhat.com>
3416
3417         count-leading-zeros: new module
3418         * modules/count-leading-zeros: New module.
3419         * m4/count-leading-zeros.m4: New file.
3420         * lib/count-leading-zeros.h: Likewise.
3421         * modules/count-leading-zeros-tests: New test.
3422         * tests/test-count-leading-zeros.c: New file.
3423         * MODULES.html.sh (Integer arithmetic functions): Document it.
3424
3425 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3426             Jim Meyering  <meyering@redhat.com>
3427
3428         maintainer-makefile: Fix syntax error with dash.
3429         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3430         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3431
3432 2012-08-05  Jim Meyering  <meyering@redhat.com>
3433
3434         extern-inline: also ignore -Wmissing-declarations
3435         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3436         required with gcc-4.8.0-to-be.
3437
3438         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3439         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3440         for /error ?([^,]*)/.  This avoids false-positives for strings like
3441         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3442
3443 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3444
3445         gnumakefile: better interaction with Automake-NG
3446         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3447         Automake-NG always contain a definition of VPATH, even in non-VPATH
3448         builds (its value being simply '.' in that case).  So, in the
3449         'clean-GNUmakefile' rule, to determine whether running under a
3450         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3451         '$(VPATH)' expands to the empty string.
3452
3453 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3454
3455         base64: Use extern C scope in header file, for C++.
3456         * lib/base64.h: Add C++ namespace protection.
3457
3458 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3459
3460         stat-time, timespec, u64: support naive out-of-dir builds
3461         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3462         Use '#include "foo.h"', not '#include <foo.h>', when including
3463         one's own interface.  This works better when configuring with
3464         out-of-directory builds, since packages need not add an
3465         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3466
3467 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3468
3469         utimens: use extern-inline
3470         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3471         * lib/utimens.h: Add copyright notice, since this is now large enough
3472         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3473         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3474         * modules/utimens (Depends-on): Add extern-inline.
3475
3476         u64: use extern-inline
3477         * lib/u64.c: New file.
3478         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3479         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
3480         * modules/u64 (Files): Add lib/u64.c.
3481         (Depends-on): Add extern-inline.
3482         (configure.ac): No need to require AC_C_INLINE, since extern-inline
3483         does that now.
3484         (lib_SOURCES): Add u64.c.
3485
3486         timespec: use extern-inline
3487         * lib/timespec.c: New file.
3488         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3489         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
3490         * modules/timespec (Files): Add lib/timespec.c.
3491         (Depends-on): Add extern-inline.
3492         (lib_SOURCES): Add timespec.c.
3493
3494         stat-time: use extern-inline
3495         * lib/stat-time.c: New file.
3496         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3497         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
3498         * modules/stat-time (Files): Add lib/stat-time.c.
3499         (Depends-on): Add extern-inline.
3500         (lib_SOURCES): Add stat-time.c.
3501
3502         extern-inline: new module
3503         * modules/extern-inline, m4/extern-inline.m4: New files.
3504         This is for better support of 'extern inline' a la ISO C99,
3505         with a portable alternative on compilers that do not support
3506         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
3507         of the Emacs executable, when compiled with debugging disabled,
3508         which is a typical way that Emacs is built while developing.
3509
3510 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
3511
3512         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
3513         * build-aux/do-release-commit-and-tag: Move variable definitions
3514         together.
3515         ($branch): Instead of defaulting to "master", default to the current
3516         branch (as gnu-web-doc-update does).
3517         (help): Display the current values of the option arguments.
3518         * top/maint.mk (release-commit): New.
3519         * top/README-release: Simplify the corresponding step.
3520
3521 2012-07-30  Eric Blake  <eblake@redhat.com>
3522
3523         passfd: fix comment on recvfd
3524         * lib/passfd.c (recvfd): Fix comment.
3525         Reported by Jann Horn <jannhorn@googlemail.com>.
3526
3527 2012-07-30  Jim Meyering  <meyering@redhat.com>
3528
3529         maint.mk: avoid a sub-shell
3530         * top/maint.mk (release-prep): Remove unneeded sub-shell.
3531
3532 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3533
3534         maint.mk: use silent-rules support from Automake
3535         * top/maint.mk (news-check, vc-diff-check, announcement)
3536         (no-submodule-changes, alpha beta stable, release-prep)
3537         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
3538
3539 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3540
3541         maint.mk: provide a web-manual-update target
3542         * top/maint.mk: here.
3543         * top/README-release: Use it to simplify the web manual update step.
3544
3545 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3546
3547         README-release: shorten the circuit to post a news
3548         * top/README-release: Point directly to the news submission form.
3549
3550 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3551
3552         gnu-web-doc-update: fix --help
3553         * build-aux/gnu-web-doc-update: The information "top level" was written
3554         twice.
3555
3556 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3557
3558         maint.mk: absolute VPATH issue
3559         * top/maint.mk (release-prep): Help Git find .git/.
3560         From Jim Meyering.
3561
3562 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3563
3564         gitlog-to-changelog: fix previous change
3565         * build-aux/gitlog-to-changelog: Fix condition.
3566         Add missing ";".
3567
3568 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3569
3570         gitlog-to-changelog: don't expect .git to be in $srcdir
3571         Reported by Bruno Haible.
3572         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
3573         * build-aux/gitlog-to-changelog (&git_dir_option): New.
3574         Use it.
3575
3576 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3577
3578         maint.mk: absolute VPATH build fix
3579         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
3580         $(srcdir) is not a parent of $(builddir).
3581
3582 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
3583
3584         clean-temp: Fix memory leak.
3585         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
3586         'files' members of tmpdir.
3587
3588 2012-07-27  Jim Meyering  <meyering@redhat.com>
3589
3590         maint.mk: new rule: refresh-gnulib-patches
3591         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
3592         Use this rule to refresh them.
3593         * top/maint.mk (refresh-gnulib-patches): New rule.
3594
3595 2012-07-24  Bruno Haible  <bruno@clisp.org>
3596
3597         gnulib-tool: Fix handling of inctests variable.
3598         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
3599         Reported by Nick Bowler <nbowler@elliptictech.com>.
3600
3601 2012-07-22  Bruno Haible  <bruno@clisp.org>
3602
3603         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
3604         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
3605         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3606         Remove exemption for getpass.h.
3607         Suggested by Eric Blake.
3608
3609 2012-07-20  Eric Blake  <eblake@redhat.com>
3610
3611         verify: document conflict with -Wnested-externs
3612         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
3613
3614         maint.mk: forbid exit(-1)
3615         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
3616
3617 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
3618
3619         fsusage: port back to Solaris
3620         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
3621         error (fsd not declared) on Solaris 10.  Reported privately by
3622         Andrew Borodin.
3623
3624 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
3625
3626         gnu-web-doc-update: fix error messages
3627         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
3628
3629         gnu-web-doc-update: check the requirements.
3630         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
3631         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
3632         * build-aux/bootstrap (find_tool): Comment change.
3633
3634 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
3635
3636         maint.mk: minor simplication.
3637         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
3638         for default values.
3639
3640 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
3641
3642         gitlog-to-changelog: VPATH build issues
3643         If builddir is not a subdirectory of srcdir, running git from it will
3644         fail.
3645         * build-aux/gitlog-to-changelog (--srcdir): New option.
3646
3647 2012-07-15  Bruno Haible  <bruno@clisp.org>
3648
3649         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
3650         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
3651         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
3652         Remove exemption for fpending.h.
3653         Suggested by Eric Blake.
3654
3655 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3656
3657         pthread_sigmask: fix bug on FreeBSD 9
3658         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
3659         Include string.h.
3660         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
3661         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
3662         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
3663         but pthread_sigmask (1729, NULL, NULL) returns zero.
3664         See <http://bugs.gnu.org/11884>.
3665         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
3666         by inspecting whether the main call changed the old mask.
3667
3668 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
3669
3670         README-release: make it more legible
3671         * top/README-release: Improve typography slightly.
3672
3673 2012-07-15  Jim Meyering  <meyering@redhat.com>
3674
3675         maint: require that each sc_... command start with "@"
3676         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
3677         "make sc_maint" helps us avoid this nit.
3678
3679 2012-07-15  Jim Meyering  <meyering@redhat.com>
3680
3681         maint.mk: add leading "@" to quiet new "make syntax-check" rule
3682         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
3683
3684 2012-07-13  Eric Blake  <eblake@redhat.com>
3685
3686         maint.mk: new syntax check for HAVE_DECL checks
3687         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
3688         * cfg.mk
3689         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3690         Exempt some false positives.
3691         Based on a report by Karel Zak.
3692
3693         argp: make HAVE_DECL usage consistent
3694         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
3695         macros, not whether they are defined.
3696         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
3697         convention with other declaration checks.
3698         Reported by Karel Zak, with suggestions from Paul Eggert.
3699
3700         stat-time: relax license to LGPLv2+
3701         * modules/stat-time (License): Relax, with consent of all authors.
3702
3703         strndup: fix m4 usage error
3704         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
3705         defined, to either 0 or 1.
3706         Reported by Karel Zak.
3707
3708 2012-07-11  Jim Meyering  <meyering@redhat.com>
3709
3710         maint: enable the sc_avoid_if_before_free syntax-check rule
3711         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
3712         (if_before_free_offenders_): Define.
3713         (if_before_free_basename_re_): Define.
3714         Exempt current files with useless if-before-free.
3715
3716 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
3717
3718         gettext: do not assume '#define ... defined ...' behavior
3719         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
3720         Do not use '#define FOO ... defined BAR ...', as the C standard says
3721         it's not portable to expect that this works after macro expansion.
3722         Problem reported for gzip by Steven M. Schweda in
3723         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
3724
3725 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
3726
3727         getloadavg: clean out old Emacs and Autoconf cruft
3728         See Glenn Morris in <http://bugs.gnu.org/11905>.
3729         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
3730         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
3731         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
3732         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
3733
3734 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
3735
3736         bootstrap: let warn be like tests/init.sh's warn_
3737         Reported by Jim Meyering.
3738         * build-aux/bootstrap (warn): Remove, replaced by...
3739         (warnf_, warn_): these.
3740         Adjust callers.
3741         Shorten messages that no longer fit in 80 columns.
3742
3743 2012-07-09  Bruno Haible  <bruno@clisp.org>
3744
3745         getopt: Simplify after Emacs changed.
3746         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
3747         (gl_GETOPT_IFELSE): Remove macro.
3748
3749 2012-07-09  Jim Meyering  <meyering@redhat.com>
3750
3751         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
3752         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
3753
3754         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
3755         Bugs in both of those conspired to make the
3756         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
3757         _sc_search_regexp's handling of non-empty $in_files would filter
3758         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
3759         choice of in_files value meant there would be no match in most
3760         projects, due to the presence of two or more Makefile.in files.
3761         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
3762         Fix a bug in how a non-empty $$in_files was processed:
3763         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
3764         in spite of the name, it's a regexp, not a list of file names.
3765
3766 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3767
3768         getloadavg, getopt: fix commentary re configure.in
3769         Autoconf is deprecating the name 'configure.in', so change it to
3770         to the new name 'configure.ac' in a couple of places.
3771         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
3772         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
3773         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
3774         Emacs has renamed it to configure.ac, and it no longer refers
3775         to these macros anyway.
3776
3777         timespec: mark functions with const attributes
3778         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
3779         Mark with _GL_ATTRIBUTE_CONST.
3780
3781 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3782
3783         canonicalize[-lgpl]: handle "guessing" values when cross-building
3784         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
3785         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
3786         matches "*yes" instead of just "yes".  Regression introduced in commit
3787         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
3788
3789 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3790             Bruno Haible  <bruno@clisp.org>
3791
3792         canonicalize: make the right guess when cross-compiling to GNU
3793         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
3794         determine whether cross-compiling to glibc systems, so as to
3795         include GNU/Hurd.
3796
3797 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3798
3799         timespec-sub: avoid duplicate include
3800         * lib/timespec-sub.c: Do not include <config.h> twice.
3801         Reported by Juanma Barranquero.
3802
3803 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
3804
3805         bootstrap: use a more consistent error reporting scheme
3806         * build-aux/bootstrap (warn, die): New.
3807         Use them.
3808
3809 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3810
3811         sys_time: allow too-wide tv_sec
3812         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
3813         timeval even if tv_sec is wider than time_t.  This allows
3814         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
3815         as without this patch gnulib replaces struct timeval
3816         and OpenBSD futimes therefore has a type mismatch.
3817         * doc/posix-headers/sys_time.texi: Mention this.
3818
3819         pthread: check for both pthread_create and pthread_join
3820         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
3821         alter the check so that it tests for both pthread_create and
3822         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
3823         Suggested by Bruno Haible and Richard Yao in
3824         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
3825
3826         parse-datetime: doc tuneup
3827         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
3828         spacing issues.
3829
3830 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
3831
3832         do-release-commit-and-tag: fix the previous commit
3833         * build-aux/do-release-commit-and-tag: Actually the test was right,
3834         but the comment and the error message were misleading.
3835         Fix comment, and improve error message.
3836         Perform check first, so that NEWS is not modified uselessly.
3837
3838         do-release-commit-and-tag: fix typo
3839         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
3840         _not_ start with a stub.
3841
3842 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
3843
3844         pthread: check for pthread_create, not pthread_join
3845         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
3846         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
3847         pthread_join in libc.  I hope this removes the need for all the
3848         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
3849         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
3850
3851 2012-07-04  Jim Meyering  <meyering@redhat.com>
3852
3853         parse-datetime: fix failure to diagnose invalid input
3854         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
3855         rather than diagnosing the invalid input.  Now it reports this:
3856         date: invalid date '\260'
3857         * lib/parse-datetime.y (to_uchar): Define.
3858         (yylex): Don't sign-extend "other" bytes.
3859         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
3860         Thanks to Bruno Haible for the patch to this file.
3861         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
3862         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
3863
3864 2012-07-03  Jim Meyering  <meyering@redhat.com>
3865
3866         bootstrap: do not require now-removed build-aux/missing
3867         Now that build-aux/missing is, er, missing, bootstrap would
3868         silently fail.
3869         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
3870         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
3871         no longer part of gnulib.
3872         Diagnose the failure.
3873
3874 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
3875
3876         alloca: add support for HP NonStop TNS/E native
3877         * lib/alloca.in.h (alloca): Support the new host.
3878         From a suggestion by Joachim Schmitz in
3879         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
3880
3881 2012-07-02  Pádraig Brady  <P@draigBrady.com>
3882
3883         fsusage: remove code not needed on non GNU/Linux systems.
3884
3885         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3886         Don't include headers no longer needed in this case.
3887         * lib/fsusage.c [STAT_STATVFS &&
3888         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
3889         STAT_STATFS2_FRSIZE to exclude code not used in this case.
3890
3891 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
3892
3893         fsusage: include files needed for glibc 2.6 fallback
3894         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3895         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
3896         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
3897         Problem reported by Ludovic Courtès in
3898         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
3899
3900         fsusage: avoid needless check on GNU/Linux
3901         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
3902         on GNU/Linux systems, since it can't possibly work.
3903
3904 2012-07-01  Bruno Haible  <bruno@clisp.org>
3905
3906         log: Fix an autoconf >= 2.64 warning.
3907         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
3908         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3909
3910 2012-06-28  Bruno Haible  <bruno@clisp.org>
3911
3912         log10f: Fix possible configuration problem.
3913         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
3914         $LOGF_LIBM.
3915         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3916
3917 2012-06-28  Bruno Haible  <bruno@clisp.org>
3918
3919         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
3920         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
3921         not gl_cv_func_unlink_works.
3922         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3923
3924 2012-06-27  Eric Blake  <eblake@redhat.com>
3925
3926         config: drop scripts that automake says are not independent
3927         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
3928         * build-aux/elisp-comp: Delete.
3929         * build-aux/missing: Likewise.
3930         * build-aux/ylwrap: Likewise.
3931         * modules/elisp-comp: Likewise.
3932         * MODULES.html.sh: Drop mention of elisp-comp.
3933         * NEWS: Mention this.
3934
3935 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
3936
3937         root-uid: new module
3938         This is for portability to Tandem's NonStop Kernel.
3939         * lib/root-uid.h, modules/root-uid: New files.
3940         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
3941         * lib/write-any-file.c, tests/test-sethostname2.c:
3942         Include "root-uid.h".
3943         * lib/euidaccess.c (euidaccess):
3944         * lib/pt_chown.c (main):
3945         * lib/unlinkdir.c (cannot_unlink_dir):
3946         * lib/write-any-file.c (can_write_any_file):
3947         * m4/mknod.m4 (gl_FUNC_MKNOD):
3948         * tests/test-sethostname2.c (geteuid, main):
3949         Don't assume ROOT_UID == 0.
3950         * modules/euidaccess (Depends-on):
3951         * modules/pt_chown (Depends-on):
3952         * modules/sethostname-tests (Depends-on):
3953         * modules/unlinkdir (Depends-on):
3954         * modules/write-any-file (Depends-on):
3955         Add root-uid.
3956
3957         regex: use locale-independent comparison for codeset name
3958         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
3959         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
3960         for codeset name.
3961         * lib/regex_internal.h: Do not include <strings.h>, since we
3962         no longer use strcasecmp.
3963         * modules/regex (Depends-on): Remove strcase.
3964
3965 2012-06-23  Bruno Haible  <bruno@clisp.org>
3966
3967         getopt-posix: No longer guarantee that option processing is resettable.
3968         * doc/posix-functions/getopt.texi: Drop description of problem with
3969         internal state. Fix info about mingw and msvc9.
3970         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
3971         option processing by getopt(). Run three test programs instead of one.
3972         Simplify cross-compilation guess.
3973         * NEWS: Mention the change.
3974         Reported by Rich Felker <dalias@aerifal.cx>.
3975
3976 2012-06-26  Bruno Haible  <bruno@clisp.org>
3977
3978         argp, regex: Ensure strcasecmp gets declared.
3979         * lib/argp-help.c: Include <strings.h>.
3980         * lib/regex_internal.h: Likewise.
3981         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
3982
3983 2012-06-24  Bruno Haible  <bruno@clisp.org>
3984
3985         ptsname_r: Make it consistent with ptsname on AIX.
3986         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
3987         implementation as for OSF/1.
3988         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
3989         a pty master.
3990
3991         ptsname_r: Make it consistent with ptsname on OSF/1.
3992         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3993         OSF/1.
3994
3995 2012-06-24  Bruno Haible  <bruno@clisp.org>
3996
3997         ttyname_r: Fix result on OSF/1, Solaris.
3998         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
3999
4000 2012-06-24  Bruno Haible  <bruno@clisp.org>
4001
4002         ptsname_r: Add support for Solaris.
4003         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4004         Solaris.
4005
4006         ptsname_r: Fix test failure on native Windows.
4007         * modules/ptsname_r (Depends-on): Add isatty.
4008
4009         ptsname_r: Fix test failures on IRIX, Solaris.
4010         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
4011         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
4012         accordingly.
4013         * lib/ptsname_r.c: Include <fcntl.h>.
4014         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
4015         set errno if fd is invalid.
4016         * tests/test-isatty.c (main): Update comments.
4017
4018 2012-06-24  Bruno Haible  <bruno@clisp.org>
4019
4020         ptsname test: Extend test.
4021         * tests/test-ptsname.c: Include <errno.h>.
4022         (main): Test behaviour with invalid file descriptor.
4023
4024 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4025
4026         time: fix obsolete comment
4027         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
4028         reference to HAVE_STRUCT_TIMESPEC in comment.
4029
4030 2012-06-23  Bruno Haible  <bruno@clisp.org>
4031
4032         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
4033         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
4034         does not handle abbreviated long options with equivalent
4035         disambiguations, set gl_replace_getopt to yes.
4036         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
4037
4038 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
4039
4040         time_r: fix typo that always overrode localtime_r decl
4041         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
4042         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
4043         not in a standard include.
4044
4045 2012-06-22  Bruno Haible  <bruno@clisp.org>
4046
4047         Write "Mac OS X" instead of "MacOS X".
4048         * README: Write "Mac OS X" instead of "MacOS X".
4049         * build-aux/bootstrap: Likewise.
4050         * build-aux/install-reloc: Likewise.
4051         * lib/acl-internal.h: Likewise.
4052         * lib/acl_entries.c: Likewise.
4053         * lib/argp-ba.c: Likewise.
4054         * lib/argp-pv.c: Likewise.
4055         * lib/config.charset: Likewise.
4056         * lib/copy-acl.c: Likewise.
4057         * lib/csharpexec.c: Likewise.
4058         * lib/euidaccess.c: Likewise.
4059         * lib/fbufmode.c: Likewise.
4060         * lib/fflush.c: Likewise.
4061         * lib/file-has-acl.c: Likewise.
4062         * lib/filemode.h: Likewise.
4063         * lib/fpurge.c: Likewise.
4064         * lib/freadable.c: Likewise.
4065         * lib/freadahead.c: Likewise.
4066         * lib/freading.c: Likewise.
4067         * lib/freadptr.c: Likewise.
4068         * lib/freadseek.c: Likewise.
4069         * lib/fseeko.c: Likewise.
4070         * lib/fseterr.c: Likewise.
4071         * lib/fsusage.c: Likewise.
4072         * lib/fwritable.c: Likewise.
4073         * lib/fwriting.c: Likewise.
4074         * lib/get-rusage-as.c: Likewise.
4075         * lib/get-rusage-data.c: Likewise.
4076         * lib/getdomainname.c: Likewise.
4077         * lib/idpriv-drop.c: Likewise.
4078         * lib/idpriv-droptemp.c: Likewise.
4079         * lib/localcharset.c: Likewise.
4080         * lib/locale.in.h: Likewise.
4081         * lib/localename.c: Likewise.
4082         * lib/mbsrtowcs-state.c: Likewise.
4083         * lib/nproc.c: Likewise.
4084         * lib/passfd.c: Likewise.
4085         * lib/posix_openpt.c: Likewise.
4086         * lib/printf-parse.c: Likewise.
4087         * lib/progreloc.c: Likewise.
4088         * lib/safe-read.h: Likewise.
4089         * lib/safe-write.h: Likewise.
4090         * lib/sched.in.h: Likewise.
4091         * lib/set-mode-acl.c: Likewise.
4092         * lib/signal.in.h: Likewise.
4093         * lib/stdint.in.h: Likewise.
4094         * lib/stdio-impl.h: Likewise.
4095         * lib/stdlib.in.h: Likewise.
4096         * lib/strtod.c: Likewise.
4097         * lib/sys_select.in.h: Likewise.
4098         * lib/tcgetsid.c: Likewise.
4099         * lib/unistd.in.h: Likewise.
4100         * lib/unlockpt.c: Likewise.
4101         * lib/vasnprintf.c: Likewise.
4102         * lib/vma-iter.c: Likewise.
4103         * lib/wcsrtombs-state.c: Likewise.
4104         * m4/acl.m4: Likewise.
4105         * m4/acosl.m4: Likewise.
4106         * m4/asinl.m4: Likewise.
4107         * m4/atanl.m4: Likewise.
4108         * m4/c-stack.m4: Likewise.
4109         * m4/cosl.m4: Likewise.
4110         * m4/expl.m4: Likewise.
4111         * m4/extensions.m4: Likewise.
4112         * m4/fdatasync.m4: Likewise.
4113         * m4/fmal.m4: Likewise.
4114         * m4/frexp.m4: Likewise.
4115         * m4/frexpf.m4: Likewise.
4116         * m4/frexpl.m4: Likewise.
4117         * m4/fsusage.m4: Likewise.
4118         * m4/getdomainname.m4: Likewise.
4119         * m4/getloadavg.m4: Likewise.
4120         * m4/getopt.m4: Likewise.
4121         * m4/gettext.m4: Likewise.
4122         * m4/gnulib-common.m4: Likewise.
4123         * m4/intdiv0.m4: Likewise.
4124         * m4/intlmacosx.m4: Likewise.
4125         * m4/largefile.m4: Likewise.
4126         * m4/ldexpl.m4: Likewise.
4127         * m4/link-follow.m4: Likewise.
4128         * m4/locale-ar.m4: Likewise.
4129         * m4/locale-fr.m4: Likewise.
4130         * m4/locale-ja.m4: Likewise.
4131         * m4/locale-tr.m4: Likewise.
4132         * m4/locale-zh.m4: Likewise.
4133         * m4/locale_h.m4: Likewise.
4134         * m4/lock.m4: Likewise.
4135         * m4/logl.m4: Likewise.
4136         * m4/mathfunc.m4: Likewise.
4137         * m4/minus-zero.m4: Likewise.
4138         * m4/mktime.m4: Likewise.
4139         * m4/mmap-anon.m4: Likewise.
4140         * m4/multiarch.m4: Likewise.
4141         * m4/nanosleep.m4: Likewise.
4142         * m4/nocrash.m4: Likewise.
4143         * m4/poll.m4: Likewise.
4144         * m4/printf-frexpl.m4: Likewise.
4145         * m4/printf.m4: Likewise.
4146         * m4/signbit.m4: Likewise.
4147         * m4/sinl.m4: Likewise.
4148         * m4/sqrtl.m4: Likewise.
4149         * m4/strerror_r.m4: Likewise.
4150         * m4/tanl.m4: Likewise.
4151         * m4/threadlib.m4: Likewise.
4152         * m4/ttyname_r.m4: Likewise.
4153         * m4/unlink.m4: Likewise.
4154         * m4/visibility.m4: Likewise.
4155         * m4/wcwidth.m4: Likewise.
4156         * tests/minus-zero.h: Likewise.
4157         * tests/test-alloca-opt.c: Likewise.
4158         * tests/test-copy-acl.sh: Likewise.
4159         * tests/test-copy-file.sh: Likewise.
4160         * tests/test-fdatasync.c: Likewise.
4161         * tests/test-file-has-acl.sh: Likewise.
4162         * tests/test-flock.c: Likewise.
4163         * tests/test-fsync.c: Likewise.
4164         * tests/test-localename.c: Likewise.
4165         * tests/test-malloca.c: Likewise.
4166         * tests/test-nonblocking-pipe.h: Likewise.
4167         * tests/test-nonblocking-socket.h: Likewise.
4168         * tests/test-openpty.c: Likewise.
4169         * tests/test-posix_openpt.c: Likewise.
4170         * tests/test-ptsname.c: Likewise.
4171         * tests/test-ptsname_r.c: Likewise.
4172         * tests/test-sameacls.c: Likewise.
4173         * tests/test-select.h: Likewise.
4174         * tests/test-set-mode-acl.sh: Likewise.
4175         * tests/test-snprintf-posix.h: Likewise.
4176         * tests/test-sprintf-posix.h: Likewise.
4177         * tests/test-strtod.c: Likewise.
4178         * tests/test-time.c: Likewise.
4179         * tests/test-vasnprintf-posix.c: Likewise.
4180         * tests/test-vasprintf-posix.c: Likewise.
4181         * doc/acl-resources.txt: Likewise.
4182         * doc/**/*.texi: Likewise.
4183         Reported by Max Horn <max@quendi.de>.
4184
4185 2012-06-22  Bruno Haible  <bruno@clisp.org>
4186
4187         grantpt: Relax requirement regarding invalid file descriptors.
4188         * lib/grantpt.c: Don't include <fcntl.h>.
4189         (grantpt): Don't verify the validity of the file descriptor.
4190         * modules/grantpt (Depends-on): Remove fcntl-h.
4191         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
4192         file descriptors.
4193         * doc/posix-functions/grantpt.texi: Document more platforms on which
4194         grantpt succeeds for invalid file descriptors.
4195         Reported by Rich Felker <dalias@aerifal.cx>.
4196
4197 2012-06-22  Bruno Haible  <bruno@clisp.org>
4198
4199         fbufmode test: Don't test unportable behaviour.
4200         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
4201         (main): Invoke it three times.
4202         Reported by Szabolcs Nagy <nsz@port70.net>
4203         and Rich Felker <dalias@aerifal.cx>.
4204
4205 2012-06-21  Bruno Haible  <bruno@clisp.org>
4206
4207         gnulib-tool: Refactor inctests variable.
4208         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
4209         (func_modules_transitive_closure,
4210         func_modules_transitive_closure_separately,
4211         func_import, func_create_testdir): Update.
4212
4213         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
4214         * gnulib-tool: Accept option --without-tests.
4215         (func_usage): Document --without-tests option. Rearrange.
4216         (inctests): Normalize according to the mode.
4217         * NEWS: Mention the change.
4218         Suggested by Simon Josefsson.
4219
4220 2012-06-21  Bruce Korb  <bkorb@gnu.org>
4221
4222         parse-duration test: Avoid spurious output.
4223         * tests/test-parse-duration.sh: Reindent with leading tabs.
4224
4225 2012-06-21  Jim Meyering  <meyering@redhat.com>
4226
4227         maint: disable the strncpy prohibition
4228         * cfg.mk: Do not prohibit strncpy here.
4229
4230 2012-06-21  Bruno Haible  <bruno@clisp.org>
4231
4232         nonblocking: Avoid compilation error on mingw64.
4233         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
4234         fscanf.
4235         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
4236         * modules/vfscanf (configure.ac): Likewise.
4237         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
4238         definition only if stdio.h has prepared it.
4239         Reported by Daniel P. Berrange <berrange@redhat.com>.
4240
4241 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
4242
4243         gnulib-tool: Use readlink if it is available.
4244         * gnulib-tool (func_readlink): Choose function more appropriately.
4245
4246 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
4247
4248         posixtm-tests: port to buggy compiler
4249         Problem reported by Simon Josefsson in
4250         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
4251         * modules/posixtm-tests (Depends-on): Add stdint.
4252         * tests/test-posixtm.c (struct posixtm_test.t_expected):
4253         Now of type int_least64_t, not int64_t, both because that's
4254         what INT64_C returns and because int_least64_t works even
4255         on 72-bit hosts.
4256         (T): Use INT64_C on constants outside the traditional int range,
4257         to work around compiler bug noted by Simon.
4258
4259         mktime: fix integer overflow in 'configure'-time test
4260         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
4261         after integer overflow.  Problem reported by Rich Felker in
4262         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
4263         Also, don't look for further instances of a bug if we've already
4264         found one instance; this helps 'configure' run faster.
4265
4266 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
4267
4268         tmpfile, clean-temp: Fix invocation of GetVersionEx.
4269         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
4270         GetVersionEx correctly.
4271         * lib/clean-temp.c (supports_delete_on_close): Likewise.
4272
4273 2012-06-20  Bruno Haible  <bruno@clisp.org>
4274
4275         fdopen: Allow implementations that don't reject invalid fd arguments.
4276         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
4277         succeeds.
4278         Reported by Rich Felker <dalias@aerifal.cx>.
4279
4280 2012-06-20  Simon Josefsson  <simon@josefsson.org>
4281
4282         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
4283         bring in LIBINTL.
4284
4285 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4286
4287         init.sh: do not rely on autoupated PWD
4288         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
4289         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
4290         Although Nelson's bug was not necessarily fixed by this patch,
4291         it seems wise to make the change for safety.
4292         * tests/init.sh (path_prepend_): Do not rely on PWD updating
4293         automagically after 'cd'; this is not reliable on older shells.
4294         (setup_): Fail if we cannot cd to temporary directory.
4295
4296 2012-06-19  Bruno Haible  <bruno@clisp.org>
4297
4298         stat, fstat: Avoid warnings on mingw64.
4299         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
4300         redefining.
4301         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
4302         Reported by Daniel P. Berrange <berrange@redhat.com>.
4303
4304 2012-06-19  Bruno Haible  <bruno@clisp.org>
4305
4306         stdioext: Add support for musl libc.
4307
4308         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
4309         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
4310
4311         * m4/fseterr.m4: New file.
4312         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
4313         function exists.
4314         * modules/fseterr (Files): Add m4/fseterr.m4.
4315         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
4316         __fseterr does not exist.
4317         (Makefile.am): Remove fseterr.c from lib_SOURCES.
4318
4319         * lib/freadable.h: Update comment.
4320
4321         * lib/fwritable.h: Update comment.
4322
4323         * lib/freading.h: Update comment.
4324
4325         * lib/fwriting.h: Update comment.
4326
4327         * m4/freadahead.m4: New file.
4328         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4329         that function exists.
4330         * modules/freadahead (Files): Add m4/freadahead.m4.
4331         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4332         __freadahead does not exist.
4333         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4334
4335         * m4/freadptr.m4: New file.
4336         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4337         function exists.
4338         * modules/freadptr (Files): Add m4/freadptr.m4.
4339         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4340         __freadptr does not exist.
4341         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4342
4343         * m4/freadseek.m4: New file.
4344         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4345         exists.
4346         * modules/freadseek (Files): Add m4/freadseek.m4.
4347         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4348
4349         * lib/fpurge.c (fpurge): Update comment.
4350
4351         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4352
4353 2012-06-19  Bruno Haible  <bruno@clisp.org>
4354
4355         *printf-posix: Put more info into config.log.
4356         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4357         exit code into config.log.
4358
4359 2012-06-19  Bruno Haible  <bruno@clisp.org>
4360
4361         getopt-gnu: Fix exit code overflow in autoconf test.
4362         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4363         to keep them below < 128.
4364
4365 2012-06-17  Jim Meyering  <meyering@redhat.com>
4366
4367         maint.mk: fix typo in code to derive GPG key at release time
4368         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4369
4370 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4371
4372         regex: avoid warning when pointers are not long
4373         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4374         and uintptr_t, not long, for portability to hosts where pointers and
4375         long have different sizes.  Issue noted by Daniel P. Berrange in
4376         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4377         and fix suggested by Bruno Haible in
4378         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4379
4380 2012-06-17  Bruno Haible  <bruno@clisp.org>
4381
4382         dummy: Relicense into the public domain.
4383         * modules/dummy (License): Set to "public domain".
4384         Suggested by Reuben Thomas.
4385
4386 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4387
4388         announce-gen: VPATH issues
4389         * build-aux/announce-gen (--srcdir): New option, used to trim the
4390         $srcdir part of the path from $builddir to NEWS.
4391         * top/maint.mk (announcement): Adjust.
4392
4393 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4394
4395         gnu-web-doc-update: VPATH builds
4396         * build-aux/gnu-web-doc-update (--builddir): New option.
4397         Revamp the handling of options.
4398         Prefer $(...) to `...`.
4399         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4400         the template, and it is GNU mktemp specific.
4401         Prefer set -e to long series of &&.
4402         Restore the initial git branch, not "master".
4403         Properly initialize submodules (don't rely only on bootstrap).
4404         Do not reconfigure blindly, use config.status.
4405         * top/README-release: Update instructions for gnu-web-doc-update.
4406
4407 2012-06-11  Jim Meyering  <meyering@redhat.com>
4408
4409         maint.mk: revert most of the previous change re "all these"
4410         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4411         For rationale, see the discussion at
4412         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4413
4414 2012-06-10  Karl Berry  <karl@gnu.org>
4415
4416         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4417
4418         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4419
4420 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4421
4422         parse-duration: Relicense under LGPLv2+.
4423         * modules/parse-duration (License): Change to LGPLv2+.
4424
4425 2012-06-10  Jim Meyering  <meyering@redhat.com>
4426
4427         maint.mk: prohibit common grammar error: "all these"
4428         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4429         the list of prohibited word sequences.  It should be "all of these".
4430         * lib/tempname.c (__gen_tempname): Fix one of them.
4431
4432 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4433
4434         do-release-commit-and-tag: support VPATH builds
4435         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4436         (noteworthy): Defined earlier to factor its value.
4437         (noteworthy_stub): New.
4438         Use it to factor.
4439         (help_version): Split into...
4440         (help, version): these.
4441         Adjust the option processing part.
4442         Support "--option=value" in addition to "--option value".
4443         (builddir): New.
4444         (--builddir): New option.
4445         * top/README-release: Document this.
4446         Reword slightly so that the reader cannot understand that he
4447         has to do these steps before calling do-release-commit-and-tag.
4448
4449 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4450
4451         readme-release: also require announce-gen and maintainer-makefile
4452         * modules/readme-release (Depends-on): here.
4453         * modules/announce-gen, modules/do-release-commit-and-tag,
4454         modules/gnu-web-doc-update, modules/maintainer-makefile
4455         (Description): Point to readme-release.
4456
4457 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4458
4459         maint.mk: fix VPATH issues.
4460         * top/maint.mk (news-check): GNU Make understand $< very well.
4461         (release-prep): NEWS is in $(srcdir).
4462
4463 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4464
4465         readme-release: require the promoted modules.
4466         * modules/readme-release (Depends-on): Add
4467         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4468         in this text.
4469
4470 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4471             Bruno Haible  <bruno@clisp.org>
4472
4473         error, strerror-override: Support mingw64 from Fedora 17.
4474         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4475         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4476         EINPROGRESS.
4477         * lib/strerror-override.h (strerror_override): Test it.
4478         * lib/strerror-override.c (strerror_override): Likewise.
4479         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
4480
4481 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4482             Bruno Haible  <bruno@clisp.org>
4483
4484         error, strerror-override: Support mingw64 from Fedora 17.
4485         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
4486         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
4487         * lib/strerror-override.h (strerror_override): Test it.
4488         * lib/strerror-override.c (strerror_override): Likewise.
4489
4490 2012-06-03  Bruno Haible  <bruno@clisp.org>
4491
4492         error, strerror-override: Support new errno values from POSIX:2008.
4493         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
4494         ENOTRECOVERABLE.
4495         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
4496         platforms.
4497         * lib/strerror-override.c (strerror_override): Conditionalize the
4498         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
4499         * lib/strerror-override.h (strerror_override): Declare also if
4500         GNULIB_defined_EOWNERDEAD is defined.
4501         * tests/test-errno.c (e130, e131): New variables.
4502         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
4503         ENOTRECOVERABLE.
4504         Reported by Paolo Bonzini.
4505
4506 2012-05-31  Jim Meyering  <meyering@redhat.com>
4507
4508         savewd: add missing dependency on sys_wait module
4509         * modules/savewd (Depends-on): Add sys_wait, needed at least
4510         for MSVC.  Report and suggested change by Michael Goffioul.
4511
4512 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4513
4514         system-quote-tests: port to CentOS 5
4515         Problem reported by Tom G. Christensen in
4516         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
4517         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
4518
4519 2012-05-29  Jim Meyering  <meyering@redhat.com>
4520
4521         maint: fix typos in comments and ChangeLog
4522         Culprits identified and fixed mostly automatically using these commands:
4523         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
4524         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
4525         using http://github.com/lyda/misspell-check
4526         * ChangeLog: Fix typos.
4527         * doc/solaris-versions: Likewise.
4528         * lib/regexec.c (re_search_stub): Likewise.
4529         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4530
4531 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
4532
4533         manywarnings: remove duplicate -Wmultichar entry
4534         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
4535         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
4536         so keep the entry marked as documented.
4537
4538 2012-05-27  Karl Berry  <karl@gnu.org>
4539
4540         * config/srclist.txt (mktime.c): remove last libc sync,
4541         perhaps just temporarily.
4542
4543 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4544
4545         regex: don't assume uint64_t or uint32_t
4546         * lib/regcomp.c (init_word_char): Don't assume that the types
4547         uint64_t and uint32_t exist.  The C standard doesn't guarantee
4548         them, and on some 32-bit compilers there is no uint64_t.
4549         Problem reported by Gianluigi Tiesi in
4550         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
4551
4552 2012-05-25  Jim Meyering  <meyering@redhat.com>
4553
4554         maint.mk: add strncpy-prohibiting syntax-check rule
4555         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
4556
4557 2012-05-24  Jim Meyering  <meyering@redhat.com>
4558
4559         maint.mk: compute $(gpg_key_ID) more portably
4560         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
4561         That use of sed is not portable to some fringe systems.
4562         Reported by Paul Eggert in
4563         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
4564
4565 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4566
4567         mktime: sync from glibc
4568         * config/srclist.txt: Uncomment mktime.c.
4569         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
4570         First, indent with tabs, since glibc uses tabs and doesn't want to
4571         change and we'd rather be identical to glibc.  Also, two small
4572         coding changes:
4573         (isdst_differ): Use &&, not &, as && is the usual style.
4574         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
4575         for clarity.
4576
4577 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4578
4579         announce-gen: du -h is more portable than du --human
4580         * build-aux/announce-gen (sizes): Invoke du with -h instead
4581         of --human.  Accept leading white space in its output.
4582
4583 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4584
4585         announce-gen: Improve diagnostics.
4586         * build-aux/announce-gen: When parsing command line options,
4587         prefer "announce-gen: option --release-type requires an argument"
4588         to "Option release-type requires an argument".
4589
4590 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4591
4592         maint.mk: gpg_key_ID: use sed more portably
4593         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
4594         the closing brace.
4595         (refresh-po): Fuse two sed invocations into one.
4596
4597 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
4598
4599         gitlog-to-changelog: support the log message format used in Bison.
4600         * build-aux/gitlog-to-changelog: Support --strip-tab and
4601         --strip-cherry-picked.
4602
4603 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4604
4605         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
4606         the rest of the current time slice to another thread in the current
4607         process. So if the thread that feeds the file decscriptor we're
4608         polling is not in the current process, we get busy-waiting.
4609         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
4610         Patch from Theodore Leblond.
4611         * lib/select.c: Split polling out of the loop that sets the output
4612         fd_sets.  Check for zero result and loop if the wait timeout is
4613         infinite.
4614
4615 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4616
4617         select: Fix build error on IRIX 6.5.
4618         * lib/select.c: Include stddef.h for NULL.
4619
4620 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4621
4622         gc: fix libgcrypt detection on older machines.
4623         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
4624         copyright years because the file has been distributed every year
4625         since it was created.
4626
4627 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
4628
4629         crypto: fix bug in large buffer handling
4630         Problem reported by Serge Belyshev for glibc in
4631         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
4632         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
4633         * lib/md4.c (md4_process_block):
4634         * lib/md5.c (md5_process_block):
4635         * lib/sha1.c (sha1_process_block):
4636         * lib/sha256.c (sha256_process_block):
4637         Don't assume the buffer length is less than 2**32.
4638         * lib/sha512.c (sha512_process_block): Likewise.
4639         Here, the bug is present only in the rare case where the host does
4640         not support uint64_t or where size_t is wider than 64 bits.
4641         Use u64size to work around the problems.
4642         * lib/u64.h (u64size): New macro.
4643
4644 2012-05-15  Pádraig Brady  <P@draigBrady.com>
4645
4646         fsusage: fix block size returned on older Linux 2.6
4647
4648         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
4649         which is available since Linux 2.6.
4650         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
4651         when the member is available so it can be used as a fallback.
4652         * doc/posix-functions/statvfs.texi: Mention the hang issue
4653         on Linux < 2.6.36.
4654
4655 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4656
4657         bootstrap: suppress stderr chatter
4658         * build-aux/bootstrap (insert_sorted_if_absent, main program):
4659         Omit unnecessary chatter to stderr.  The main program chatter
4660         was there only inadvertantly.
4661
4662         bootstrap: .gitignore files created by autopoint, libtool
4663         I ran into this problem when bootstrapping the latest diffutils.
4664         After './bootstrap', 'git status' reported lots of untracked files
4665         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
4666         autopoint and do not need to be version-controlled.
4667         * build-aux/bootstrap: Put into .gitignore the files that
4668         autopoint and libtool create, by keeping track of files that exist
4669         after but not before these programs are run.
4670         (version_controlled_file): Move up.  2nd arg is now full file
4671         name, not base name; this is more convenient.  Put CVS at the end,
4672         as it's now somewhat deprecated.
4673
4674 2012-05-14  Jim Meyering  <meyering@redhat.com>
4675
4676         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
4677         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
4678         definition.  Reported by Bruno Haible.
4679
4680 2012-05-13  Bruno Haible  <bruno@clisp.org>
4681             Paul Eggert  <eggert@cs.ucla.edu>
4682
4683         binary-io: Define set_binary_mode function.
4684         * lib/binary-io.h (set_binary_mode): New function.
4685         (SET_BINARY): Define in terms of set_binary_mode.
4686         * modules/binary-io (configure.ac): Require AC_C_INLINE.
4687         * tests/test-binary-io.c (main): Accept an argument, and test either
4688         set_binary_mode or SET_BINARY depending on the argument.
4689         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
4690         argument. Clean up also t-bin-out0.tmp.
4691
4692 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
4693
4694         bootstrap: take advantage of POSIX shell features
4695
4696         The 'bootstrap' script offered by Gnulib script already uses POSIX
4697         shell features (like $((...)) arithmetic expansions) that are not
4698         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
4699         means that bootstrap must already be run using a proper POSIX shell,
4700         which will thus provide more features, like ${var#pattern} parameter
4701         expansion or inversion of a command exit status with '!'.  We can
4702         thus use these features to improve the clarity and the performances
4703         of the bootstrap script.
4704
4705         Suggested by Eric Blake.
4706
4707         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
4708         of sed/expr plus command substitutions, to save some forks.  While
4709         we are at it, prefer the POSIX $(...) form of command substitution,
4710         rather than the legacy form `...` (since the former is visually
4711         clearer and interacts better with quoting), and prefer the idiom:
4712           "if ! CMD; then ACTION ..."
4713         over the idiom:
4714           "if CMD; then :; else ACTION ..."
4715         which was required by legacy Bourne shells not supporting '!'.
4716
4717 2012-05-12  Bruno Haible  <bruno@clisp.org>
4718
4719         system-quote: Add more comments.
4720         * lib/system-quote.h: Add more comments about wilcards and limitations.
4721         Suggested by Eli Zaretskii <eliz@gnu.org>.
4722
4723         sh-quote, system-quote: Add comments about wildcards.
4724         * lib/sh-quote.h: Clarify what happens with wildcard characters.
4725         * lib/system-quote.h: Likewise.
4726         Reported by Eli Zaretskii <eliz@gnu.org>.
4727
4728 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4729
4730         fsusage: check for GNU/Linux statvfs problem dynamically
4731         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
4732         Define STAT_STATFS2_BSIZE too, since in this case the code now
4733         checks dynamically whether statvfs is reliable, falling back on
4734         Linux-style statfs otherwise.
4735         (statvfs_works): New function, for dynamically testing statvfs.
4736         (get_fs_usage) [STAT_STATVFS]: Use it.
4737         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
4738         statvfs on GNU/Linux hosts, since it's now done dynamically.
4739
4740 2012-05-10  Bruno Haible  <bruno@clisp.org>
4741
4742         system-quote, execute, spawn-pipe: Escape '?' on Windows.
4743         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
4744         '?' character.
4745         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
4746         * tests/test-system-quote-main.c (check_all): Check also strings like
4747         "??????????".
4748         Reported by Eli Zaretskii <eliz@gnu.org>.
4749
4750 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4751
4752         _Noreturn: port config.h to gcc -Wundef
4753         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
4754         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
4755         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
4756
4757 2012-05-10  Bruno Haible  <bruno@clisp.org>
4758
4759         system-quote: Refactor.
4760         * lib/system-quote.h (system_quote_copy): Fix comment.
4761         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
4762         New functions, extracted from system_quote_copy.
4763         (system_quote_length, system_quote_copy): Use these functions.
4764         Reported by Paul Eggert.
4765
4766 2012-05-08  Bruno Haible  <bruno@clisp.org>
4767
4768         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
4769         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
4770
4771 2012-05-08  Bruno Haible  <bruno@clisp.org>
4772
4773         Tests for module 'system-quote'.
4774         * modules/system-quote-tests: New file.
4775         * tests/test-system-quote.sh: New file.
4776         * tests/test-system-quote-main.c: New file.
4777         * tests/test-system-quote-child.c: New file.
4778
4779         New module 'system-quote'.
4780         * lib/system-quote.h: New file.
4781         * lib/system-quote.c: New file.
4782         * modules/system-quote: New file.
4783
4784 2012-05-08  Bruno Haible  <bruno@clisp.org>
4785
4786         sh-quote: Make C++ safe and allow multiple inclusion.
4787         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
4788         declarations in extern "C".
4789
4790 2012-05-08  Bruno Haible  <bruno@clisp.org>
4791
4792         sh-quote tests: Make tests stricter.
4793         * tests/test-sh-quote.c (check_one): Check the return value of
4794         shell_quote_copy.
4795         (main): Check a string with a CR character. Check a string that
4796         contains UCHAR_MAX.
4797
4798 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
4799
4800         warnings.m4: provide a means to specify the program to compile.
4801         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
4802         (gl_WARN_ADD): here.
4803         Use gl_AS_VAR_APPEND.
4804         Support an argument to specify the program to compile.
4805         (gl_WARN_ADD): Accept an argument to specify the program to compile.
4806         AC_SUBST the WARN_CFLAGS when they are used.
4807         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
4808         leave this to gl_WARN_ADD.
4809
4810 2012-05-08  Eric Blake  <eblake@redhat.com>
4811
4812         doc: recommendations on gettext version
4813         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
4814         choice between versions.
4815         * DEPENDENCIES (gettext): Cover both approaches.
4816
4817 2012-05-08  Jim Meyering  <meyering@redhat.com>
4818
4819         init.sh: explain why EXEEXT support uses aliases rather than functions
4820         * tests/init.sh: Add a comment.
4821
4822         init.sh: don't let bash aliases interfere with tests
4823         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
4824         is bash.  This avoids problems for those who alias standard commands to
4825         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
4826         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
4827
4828 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4829
4830         stdint: be more consistent with glibc, SunOS libc
4831         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
4832         (gl_int_fast16_t, gl_uint_fast16_t)
4833         (gl_int_fast32_t, gl_uint_fast32_t)
4834         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
4835         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
4836         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
4837         Be consistent with glibc by default, and with SunOS 5.10 and later
4838         if __sun is defined.  This lessens the likelihood of clashes if
4839         code compiled for older hosts is combined with code compiled for
4840         newer ones.  Problem reported by Niels Möller in
4841         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
4842
4843 2012-05-07  Eric Blake  <eblake@redhat.com>
4844
4845         isatty: relax license to LGPLv2+
4846         * modules/isatty (License): Relax license.
4847
4848 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4849
4850         stat-size: comment fix
4851         * lib/stat-size.h: Remove obsolete comment about indenting.
4852
4853 2012-05-06  Bruno Haible  <bruno@clisp.org>
4854
4855         Tests for module 'sh-quote'.
4856         * modules/sh-quote-tests: New file.
4857         * tests/test-sh-quote.c: New file.
4858
4859 2012-05-06  Bruno Haible  <bruno@clisp.org>
4860
4861         sh-quote: Improve shell_quote_argv's signature.
4862         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
4863         * lib/sh-quote.c (shell_quote_argv): Likewise.
4864
4865 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4866
4867         stdint: document issues with int_fast8_t etc.
4868         * doc/posix-headers/stdint.texi (stdint.h): Say that other
4869         stdint.h substitutes may define these types differently.  See
4870         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
4871
4872 2012-05-05  Bruno Haible  <bruno@clisp.org>
4873
4874         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
4875         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
4876         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
4877         or 'guessing no (mishandles large arguments)'.
4878
4879 2012-05-05  Bruno Haible  <bruno@clisp.org>
4880
4881         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
4882         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
4883         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4884         set gl_cv_func_link_follows_symlink to "guessing no".
4885
4886 2012-05-05  Bruno Haible  <bruno@clisp.org>
4887
4888         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
4889         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
4890         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
4891         "guessing no".
4892         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
4893
4894 2012-05-05  Bruno Haible  <bruno@clisp.org>
4895
4896         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
4897         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
4898         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4899         set gl_cv_struct_dirent_d_ino to "guessing yes".
4900
4901 2012-05-05  Bruno Haible  <bruno@clisp.org>
4902
4903         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
4904         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
4905         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
4906         "guessing yes".
4907
4908 2012-05-05  Bruno Haible  <bruno@clisp.org>
4909
4910         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
4911         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
4912         compiling to a glibc system, set gl_cv_func_signbit and
4913         gl_cv_func_signbit_gcc to "guessing yes".
4914
4915 2012-05-05  Bruno Haible  <bruno@clisp.org>
4916
4917         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
4918         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
4919         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
4920         to "guessing yes".
4921         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
4922         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
4923
4924 2012-05-05  Bruno Haible  <bruno@clisp.org>
4925
4926         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
4927         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
4928         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
4929         gl_cv_func_realpath_works to "guessing yes".
4930
4931 2012-05-05  Bruno Haible  <bruno@clisp.org>
4932
4933         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
4934         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
4935         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
4936
4937 2012-05-04  Bruno Haible  <bruno@clisp.org>
4938
4939         Tweak last commit.
4940         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
4941         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4942
4943 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
4944
4945         unistd_h: make it easier to avoid sys_types_h
4946         This is useful for Emacs, which has its own method of porting to
4947         Windows, and which therefore does not need the sys_types_h module.
4948         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
4949         code moved here from gl_SYS_TYPES_H.
4950         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
4951         using the code directly.
4952         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
4953         gl_SYS_TYPES_H.
4954         * modules/sys_types (Files):
4955         * modules/unistd (Files): Add m4/off_t.m4.
4956
4957 2012-05-03  Bruno Haible  <bruno@clisp.org>
4958
4959         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
4960         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
4961         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
4962         "guessing yes" or "guessing no".
4963         (gl_FUNC_LSTAT): Update.
4964         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
4965         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4966         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
4967
4968 2012-05-03  Bruno Haible  <bruno@clisp.org>
4969
4970         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
4971         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
4972         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
4973         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
4974         cross-compiling, choose the first alternative on glibc systems.
4975         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
4976
4977 2012-05-03  Bruno Haible  <bruno@clisp.org>
4978
4979         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
4980         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
4981         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
4982
4983 2012-05-03  Bruno Haible  <bruno@clisp.org>
4984
4985         chown: Avoid "guessing no" when cross-compiling to glibc systems.
4986         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
4987
4988 2012-05-03  Bruno Haible  <bruno@clisp.org>
4989
4990         Avoid "guessing no" guesses when cross-compiling to glibc systems.
4991         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
4992         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
4993         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
4994         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
4995         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
4996         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
4997         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
4998         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
4999         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
5000         compiling to glibc systems, set gl_cv_func_chown_slash_works,
5001         gl_cv_func_chown_ctime_works to "guessing yes".
5002         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
5003         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
5004         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
5005         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
5006         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
5007         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
5008         compiling to glibc systems, set gl_cv_func_open_directory_works to
5009         "guessing yes".
5010         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
5011         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
5012         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
5013         "guessing yes".
5014         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
5015         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
5016         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
5017         compiling to glibc systems, set gl_cv_func_floorf_ieee to
5018         "guessing yes".
5019         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
5020         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
5021         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
5022         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
5023         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
5024         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
5025         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
5026         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
5027         "guessing yes".
5028         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
5029         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
5030         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
5031         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
5032         "guessing yes".
5033         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
5034         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
5035         "guessing yes".
5036         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
5037         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
5038         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
5039         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
5040         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
5041         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
5042         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
5043         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
5044         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
5045         compiling to glibc systems, set gl_cv_func_log10f_ieee to
5046         "guessing yes".
5047         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
5048         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
5049         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
5050         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
5051         "guessing yes".
5052         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
5053         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
5054         "guessing yes".
5055         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
5056         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
5057         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
5058         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
5059         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
5060         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
5061         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
5062         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
5063         compiling to glibc systems, set gl_cv_func_mkfifo_works to
5064         "guessing yes".
5065         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
5066         compiling to glibc systems, set gl_cv_func_mknod_works to
5067         "guessing yes".
5068         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
5069         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
5070         "guessing yes".
5071         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
5072         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
5073         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
5074         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
5075         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
5076         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
5077         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
5078         compiling to glibc systems, set gl_cv_func_svid_putenv to
5079         "guessing yes".
5080         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
5081         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
5082         "guessing yes".
5083         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
5084         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
5085         "guessing yes".
5086         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
5087         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
5088         to "guessing yes".
5089         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
5090         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
5091         to "guessing yes".
5092         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
5093         compiling to glibc systems, set gl_cv_func_rmdir_works to
5094         "guessing yes".
5095         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
5096         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
5097         gl_cv_func_unlink_parent_fails to "guessing yes".
5098         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
5099         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
5100         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
5101         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
5102         gl_cv_func_rename_dest_works to "guessing yes".
5103         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
5104         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
5105         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
5106         compiling to glibc systems, set gl_cv_func_roundf_ieee to
5107         "guessing yes".
5108         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
5109         compiling to glibc systems, set gl_cv_func_roundl_ieee to
5110         "guessing yes".
5111         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
5112         compiling to glibc systems, set gl_cv_func_setenv_works to
5113         "guessing yes".
5114         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
5115         compiling to glibc systems, set gl_cv_func_unsetenv_works to
5116         "guessing yes".
5117         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
5118         compiling to glibc systems, set gl_cv_func_sleep_works to
5119         "guessing yes".
5120         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
5121         compiling to glibc systems, set gl_cv_func_stat_file_slash to
5122         "guessing yes".
5123         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
5124         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
5125         "guessing yes".
5126         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
5127         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
5128         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
5129         compiling to glibc systems, set gl_cv_func_truncf_ieee to
5130         "guessing yes".
5131         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
5132         compiling to glibc systems, set gl_cv_func_truncl_ieee to
5133         "guessing yes".
5134         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
5135         compiling to glibc systems, set gl_cv_func_usleep_works to
5136         "guessing yes".
5137         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
5138         compiling to glibc systems, set gl_cv_func_futimesat_works to
5139         "guessing yes".
5140
5141 2012-05-03  Bruno Haible  <bruno@clisp.org>
5142
5143         Say "guessing yes" or "guessing no" when cross-compiling.
5144         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
5145         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
5146         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
5147         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
5148         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
5149         am_cv_func_working_getline to "guessing yes" or "guessing no".
5150         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
5151         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
5152         (gl_FUNC_MEMMEM): When cross-compiling, set
5153         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
5154         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
5155         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
5156         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
5157         set gl_cv_func_strcasestr_works_always to "guessing yes" or
5158         "guessing no".
5159         (gl_FUNC_STRCASESTR): When cross-compiling, set
5160         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
5161         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
5162         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
5163         (gl_FUNC_STRSTR): When cross-compiling, set
5164         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
5165         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
5166         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
5167         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
5168         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
5169
5170 2012-05-01  Bruno Haible  <bruno@clisp.org>
5171
5172         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
5173         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
5174         * build-aux/reloc-ldflags: Likewise.
5175         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
5176
5177 2012-05-01  Bruno Haible  <bruno@clisp.org>
5178
5179         gnulib-tool: Remove transitional code.
5180         * gnulib-tool: Don't warn about --import with 0 arguments any more.
5181         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
5182
5183 2012-05-01  Bruno Haible  <bruno@clisp.org>
5184
5185         getcwd: Fix misindentation.
5186         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
5187
5188 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5189
5190         exclude: process exclude and include directives in order
5191         This restores the pre-2009 behavior, and is part of a fix of a
5192         grep bug reported by Quentin Arce in
5193         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
5194         * lib/exclude.c (struct exclude): Remove 'tail' member.
5195         (new_exclude_segment): Prepend the new segment instead of appending.
5196         Return void, since that's now more convenient.
5197         (file_pattern_matches): Renamed from excluded_file_pattern_p.
5198         (file_name_matches): Renamed from excluded_file_name_p.
5199         (file_pattern_matches, file_name_matches):
5200         Return true if the pattern matches, not if it excludes.
5201         All callers changed.
5202         (excluded_file_name): Process the list in reverse order;
5203         since the list is now reversed this restores the pre-2009 behavior.
5204         (add_exclude): Adjust to new reversed-order list.  Use local var
5205         rather than macro, for clarity.
5206         * tests/test-exclude7.sh: Adjust to corrected behavior.
5207
5208         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
5209         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
5210         it's not possible here.  Handle the case of \ at end of pattern
5211         without dumping core.
5212         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
5213
5214         _Noreturn: future-proof non-GNU and non-MSVC compilers
5215         * build-aux/snippet/_Noreturn.h (_Noreturn):
5216         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5217         Do not define _Noreturn if __STDC_VERSION__ indicates this is
5218         C11 or later.  This is more likely to work with random future C
5219         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
5220         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
5221
5222         exclude: handle wildcards with FNM_EXTMATCH
5223         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
5224         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
5225         comment that "has wildcards" really means "has or may have
5226         wildcards".  Simplify by avoiding the need to call strcspn.
5227
5228 2012-04-29  Bruno Haible  <bruno@clisp.org>
5229
5230         gnulib-tool: Fix list of authors.
5231         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
5232
5233 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
5234
5235         bootstrap: support Automake-NG in $buildreq
5236         * bootstrap (check_versions): Handle automake and aclocal from
5237         Automake-NG specially.  They can be specified as respectively
5238         the "automake-ng" and "aclocal-ng" requirements.
5239
5240 2012-04-25  Eric Blake  <eblake@redhat.com>
5241
5242         bootstrap: only force latest Makefile.in.in for gettext module
5243         * build-aux/bootstrap (with_gettext): Only install latest
5244         Makefile.in.in for projects requesting bleeding edge gettext.
5245
5246 2012-04-22  Bruno Haible  <bruno@clisp.org>
5247
5248         doc: Mention reason for replacement on glibc/Linux systems.
5249         * doc/posix-functions/dprintf.texi: Mention the problem with special
5250         'long double' values.
5251         * doc/posix-functions/fprintf.texi: Likewise.
5252         * doc/posix-functions/printf.texi: Likewise.
5253         * doc/posix-functions/snprintf.texi: Likewise.
5254         * doc/posix-functions/sprintf.texi: Likewise.
5255         * doc/posix-functions/vdprintf.texi: Likewise.
5256         * doc/posix-functions/vfprintf.texi: Likewise.
5257         * doc/posix-functions/vprintf.texi: Likewise.
5258         * doc/posix-functions/vsnprintf.texi: Likewise.
5259         * doc/posix-functions/vsprintf.texi: Likewise.
5260         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
5261         platforms with F_DUPFD_CLOEXEC problems.
5262         * doc/posix-functions/glob.texi: Mention which platforms are affected
5263         by the problem with symbolic links.
5264         * doc/posix-functions/linkat.texi: Mention the problem with
5265         AT_SYMLINK_FOLLOW on Linux.
5266
5267 2012-04-22  Bruno Haible  <bruno@clisp.org>
5268
5269         pwrite: Don't replace on all platforms.
5270         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
5271
5272 2012-04-22  Bruno Haible  <bruno@clisp.org>
5273
5274         rint* tests: Avoid gcc warnings.
5275         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
5276         * tests/test-rintf.c (INFINITY, NAN): Likewise.
5277         * tests/test-rintl.c (INFINITY, NAN): Likewise.
5278
5279 2012-04-21  Bruno Haible  <bruno@clisp.org>
5280
5281         users.txt: Update.
5282         * users.txt: Add freedink, wdiff. Update URLs for projects that have
5283         switched from CVS to git, bzr, or svn.
5284
5285 2012-04-21  Bruno Haible  <bruno@clisp.org>
5286
5287         Large File Support for native Windows platforms.
5288
5289         * m4/largefile.m4 (gl_LARGEFILE): New macro.
5290         * modules/largefile (configure.ac): Require gl_LARGEFILE.
5291
5292         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
5293         type.
5294         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
5295         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
5296         * doc/posix-headers/sys_types.texi: Mention the effect of the
5297         'largefile' module.
5298
5299         * lib/fcntl.in.h: Add comments about off_t.
5300         * modules/fcntl-h (Depends-on): Add sys_types.
5301
5302         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
5303         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
5304         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
5305         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
5306         * modules/unistd (Depends-on): Add sys_types.
5307         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
5308
5309         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
5310         instead of lseek.
5311         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
5312         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
5313         * modules/lseek (Depends-on): Add sys_types.
5314
5315         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
5316         msvc-nothrow.h.
5317         (SetFileSize): New function.
5318         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
5319         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
5320         if Large File Support is requested.
5321         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
5322         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
5323
5324         * lib/stdio.in.h: Add comments about off_t.
5325         * modules/stdio (Depends-on): Add sys_types.
5326
5327         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5328         instead of ftello.
5329         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5330         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5331         (gl_PREREQ_FTELLO): New macro.
5332         * modules/ftello (Depends-on): Add sys_types.
5333         (configure.ac): Incoke gl_PREREQ_FTELLO.
5334
5335         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5336         instead of fseeko.
5337         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5338         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5339         (gl_PREREQ_FSEEKO): New macro.
5340         * modules/fseeko (Depends-on): Add sys_types.
5341         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5342
5343         * lib/sys_stat.in.h: Add comments about off_t.
5344         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5345         64-bit integer for st_size in 'struct stat'.
5346         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5347         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5348         * modules/sys_stat (Depends-on): Add sys_types.
5349         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5350
5351         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5352         instead of stat or _stat.
5353
5354         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5355         'struct _stati64' instead of fstat and 'struct stat'.
5356         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5357         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5358
5359         Reported by Ray Satiro <raysatiro@yahoo.com>.
5360
5361 2012-04-19  Eric Blake  <eblake@redhat.com>
5362
5363         bootstrap: accommodate older libtool
5364         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5365         Reported by Daniel P. Berrange.
5366
5367 2012-04-19  Jim Meyering  <meyering@redhat.com>
5368
5369         announce-gen: avoid failure due to lack of Digest::SHA1
5370         Even with the preferred Digest::SHA available, this script
5371         would fail when the backup module, Digest::SHA1, was not installed.
5372         * build-aux/announce-gen: Quote the conditional use of "use".
5373         Reported by Reuben Thomas in:
5374         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5375
5376         bootstrap: don't let a user's CDPATH setting affect this script
5377         When CDPATH is set, cd will sometimes generate output.
5378         When "cd" is run in a subshell whose output matters, that
5379         surprising-to-some output can cause malfunction.
5380         Unsetting CDPATH turns off this shell "feature."
5381         * build-aux/bootstrap (CDPATH): Unset.
5382         Reported by Reuben Thomas in:
5383         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5384         and inspired by his patch here:
5385         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5386
5387 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
5388         and Jim Meyering  <meyering@redhat.com>
5389
5390         maint.mk: catch "see @xref{}" and similar
5391         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5392         prohibit "See also @xref{", "Also see @pxref{", and similar.
5393
5394 2012-04-16  Jim Meyering  <meyering@redhat.com>
5395
5396         bootstrap: really use gnulib's po/Makefile.in.in
5397         * build-aux/bootstrap: Correct the source file name in previous change.
5398         Reported by Akim Demaille.
5399
5400         configmake: correct minor inconsistency in Makefile rule
5401         * modules/configmake (Makefile.am): All other rules like this one
5402         run the final "mv -f ..." in the same backslash-continued command
5403         as the one that does everything else.  This one put the mv -f ...
5404         command on a separate, non-backslash-continued line.
5405         Make it like the others.
5406
5407         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5408         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5409         the one from gettext.  Reported by Akim Demaille.
5410
5411 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5412
5413         Fix recursion of install-* into po directories.
5414         Bison's install-pdf bug reported by Hans Aberg at
5415         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5416         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5417         (install-info, install-pdf, install-ps): New targets.
5418
5419 2012-04-16  Jim Meyering  <meyering@redhat.com>
5420
5421         maint: avoid spurious "make sc_maint" failure
5422         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5423         exempt all *.class file names, for lib/javaversion.class.
5424
5425 2012-04-15  Bruno Haible  <bruno@clisp.org>
5426
5427         lseek: Make configure test independent of environment.
5428         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5429         Windows, we know that lseek() on pipes is broken; skip the runtime
5430         test.
5431
5432 2012-04-14  Bruno Haible  <bruno@clisp.org>
5433
5434         stat: Bypass buggy override in mingw64.
5435         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5436         * lib/stat.c (stat) [mingw64]: Define to _stat.
5437         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5438
5439 2012-04-14  Bruno Haible  <bruno@clisp.org>
5440
5441         pathmax: Fix compilation error on MSVC 9.
5442         * modules/pathmax (Depends-on): Add unistd.
5443
5444 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5445
5446         README: document pointer comparison assumption
5447         * README (Portability guidelines): Document assumption about
5448         pointer comparisons, in response to a recent bug-gnulib comment by
5449         Jeffrey Kegler.
5450
5451 2012-04-12  Bruno Haible  <bruno@clisp.org>
5452
5453         Tests for module 'getrusage'.
5454         * modules/getrusage-tests: New file.
5455         * tests/test-getrusage.c: New file.
5456
5457         New module 'getrusage'.
5458         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5459         warn-on-use.h.
5460         (getrusage): New declaration.
5461         * lib/getrusage.c: New file.
5462         * m4/getrusage.m4: New file.
5463         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5464         is declared.
5465         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5466         HAVE_GETRUSAGE.
5467         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5468         snippet/c++defs, snippet/warn-on-use.
5469         (Makefile.am): Update generation of sys/resource.h. Substitute
5470         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5471         * modules/getrusage: New file.
5472         * doc/posix-functions/getrusage.texi: Mention the new module.
5473
5474 2012-04-12  Bruno Haible  <bruno@clisp.org>
5475
5476         Tests for module 'sys_resource'.
5477         * modules/sys_resource-tests: New file.
5478         * tests/test-sys_resource.c: New file.
5479
5480         New module 'sys_resource'.
5481         * lib/sys_resource.in.h: New file.
5482         * m4/sys_resource_h.m4: New file.
5483         * modules/sys_resource: New file.
5484         * doc/posix-headers/sys_resource.texi: Mention the new module.
5485
5486 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
5487
5488         ioctl: Fix compilation error on mingw.
5489         * lib/ioctl.c: Include <windows.h>.
5490         Also reported by Ray Satiro <raysatiro@yahoo.com>.
5491
5492 2012-04-04  Jim Meyering  <meyering@redhat.com>
5493
5494         regex: correct #pragma guard expression
5495         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
5496         not 4.3.  Correct its cpp guard expression.
5497
5498 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5499
5500         regex: remove unnecessary type punning
5501         Problem reported by Vladimir Serbinenko in
5502         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
5503         * lib/regex.h (struct re_pattern_buffer): Change the type of
5504         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
5505         Fix comment to match code.
5506         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
5507         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
5508         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
5509         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
5510         (set_regs):
5511         Omit no-longer-necessary casts.
5512
5513 2012-04-03  Bruno Haible  <bruno@clisp.org>
5514
5515         Tests for module 'ilogbl'.
5516         * modules/ilogbl-tests: New file.
5517         * tests/test-ilogbl.c: New file.
5518
5519         New module 'ilogbl'.
5520         * lib/math.in.h (ilogbl): New declaration.
5521         * lib/ilogbl.c: New file.
5522         * m4/ilogbl.m4: New file.
5523         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
5524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
5525         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
5526         Split sed invocation, to avoid the limit of 100 substitutions of
5527         HP-UX 'sed'.
5528         * modules/ilogbl: New file.
5529         * tests/test-math-c++.cc: Check the declaration of ilogbl.
5530         * doc/posix-functions/ilogbl.texi: Mention the new module.
5531
5532 2012-04-03  Bruno Haible  <bruno@clisp.org>
5533
5534         Tests for module 'ilogbf'.
5535         * modules/ilogbf-tests: New file.
5536         * tests/test-ilogbf.c: New file.
5537
5538         New module 'ilogbf'.
5539         * lib/math.in.h (ilogbf): New declaration.
5540         * lib/ilogbf.c: New file.
5541         * m4/ilogbf.m4: New file.
5542         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
5543         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
5544         REPLACE_ILOGBF.
5545         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
5546         REPLACE_ILOGBF.
5547         * modules/ilogbf: New file.
5548         * tests/test-math-c++.cc: Check the declaration of ilogbf.
5549         * doc/posix-functions/ilogbf.texi: Mention the new module.
5550
5551 2012-04-03  Bruno Haible  <bruno@clisp.org>
5552
5553         Tests for module 'ilogb'.
5554         * modules/ilogb-tests: New file.
5555         * tests/test-ilogb.c: New file.
5556         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
5557         tests/test-logb-ieee.h.
5558
5559         New module 'ilogb'.
5560         * lib/math.in.h (ilogb): New declaration.
5561         * lib/ilogb.c: New file.
5562         * m4/ilogb.m4: New file.
5563         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
5564         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
5565         REPLACE_ILOGB.
5566         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
5567         REPLACE_ILOGB.
5568         * modules/ilogb: New file.
5569         * tests/test-math-c++.cc: Check the declaration of ilogb.
5570         * doc/posix-functions/ilogb.texi: Mention the new module.
5571
5572 2012-04-03  Bruno Haible  <bruno@clisp.org>
5573
5574         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
5575         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
5576         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
5577         (main): Check their values.
5578         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
5579         problem.
5580
5581 2012-04-03  Bruno Haible  <bruno@clisp.org>
5582
5583         Tests for module 'logbl-ieee'.
5584         * modules/logbl-ieee-tests: New file.
5585         * tests/test-logbl-ieee.c: New file.
5586
5587         New module 'logbl-ieee'.
5588         * modules/logbl-ieee: New file.
5589
5590         Tests for module 'logb-ieee'.
5591         * modules/logb-ieee-tests: New file.
5592         * tests/test-logb-ieee.c: New file.
5593
5594         New module 'logb-ieee'.
5595         * modules/logb-ieee: New file.
5596
5597         Tests for module 'logbf-ieee'.
5598         * modules/logbf-ieee-tests: New file.
5599         * tests/test-logbf-ieee.c: New file.
5600         * tests/test-logb-ieee.h: New file.
5601
5602         New module 'logbf-ieee'.
5603         * modules/logbf-ieee: New file.
5604
5605 2012-04-03  Bruno Haible  <bruno@clisp.org>
5606
5607         Tests for module 'logbl'.
5608         * modules/logbl-tests: New file.
5609         * tests/test-logbl.c: New file.
5610
5611         New module 'logbl'.
5612         * lib/math.in.h (logbl): New declaration.
5613         * lib/logbl.c: New file.
5614         * m4/logbl.m4: New file.
5615         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
5616         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
5617         REPLACE_LOGBL.
5618         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
5619         REPLACE_LOGBL.
5620         * modules/logbl: New file.
5621         * tests/test-math-c++.cc: Check the declaration of logbl.
5622         * doc/posix-functions/logbl.texi: Mention the new module.
5623
5624 2012-04-02  Bruno Haible  <bruno@clisp.org>
5625
5626         Tests for module 'logbf'.
5627         * modules/logbf-tests: New file.
5628         * tests/test-logbf.c: New file.
5629
5630         New module 'logbf'.
5631         * lib/math.in.h (logbf): New declaration.
5632         * lib/logbf.c: New file.
5633         * m4/logbf.m4: New file.
5634         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
5635         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
5636         REPLACE_LOGBF.
5637         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
5638         REPLACE_LOGBF.
5639         * modules/logbf: New file.
5640         * tests/test-math-c++.cc: Check the declaration of logbf.
5641         * doc/posix-functions/logbf.texi: Mention the new module.
5642
5643 2012-04-02  Bruno Haible  <bruno@clisp.org>
5644
5645         logb tests: More tests.
5646         * tests/test-logb.h: New file, based on tests/test-logb.c and
5647         tests/test-frexp.h.
5648         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
5649         (main): Just invoke test_function.
5650         * modules/logb-tests (Files): Add tests/test-logb.h,
5651         tests/minus-zero.h, tests/randomd.c.
5652         (Makefile.am): Add randomd.c to test_logb_SOURCES.
5653
5654         logb: Provide replacement and workarounds.
5655         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
5656         is 1.
5657         * lib/logb.c: New file.
5658         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
5659         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
5660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
5661         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
5662         * modules/logb (Files): Add lib/logb.c.
5663         (Depends-on): Add isfinite, frexp, isnand.
5664         (configure.ac): Compile the replacement code logb.c if needed.
5665         * tests/test-math-c++.cc: Check the declaration of logb.
5666         * doc/posix-functions/logb.texi: Mention the replacement and the bug
5667         with subnormal numbers.
5668
5669 2012-04-02  Bruno Haible  <bruno@clisp.org>
5670
5671         log10* tests: Speed up.
5672         * tests/test-log10.h (test_function): Reduce amount of random numbers
5673         to test.
5674
5675 2012-04-01  Bruno Haible  <bruno@clisp.org>
5676
5677         logf-ieee: Fix test whether logf works.
5678         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
5679
5680 2012-04-01  Bruno Haible  <bruno@clisp.org>
5681
5682         log10l: Work around log10l-ieee test failure on IRIX 6.5.
5683         * lib/log10l.c: Include <float.h>
5684         (log10l): On IRIX, normalize the +Infinity value.
5685         * modules/log10l (Depends-on): Add 'float'.
5686         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
5687         +Infinity.
5688
5689         log10f-ieee: Work around test failure on NetBSD 5.1.
5690         * m4/log10f-ieee.m4: New file.
5691         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
5692         test whether log10f works with a negative argument. Replace it if not.
5693         * lib/log10f.c (log10f): For negative arguments, return NaN.
5694         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
5695         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
5696         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
5697
5698         log10f-ieee: Work around test failure on Solaris 9.
5699         * modules/log10f-ieee (Depends-on): Add log10-ieee.
5700         (configure.ac): Require gl_FUNC_LOG10F.
5701
5702         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5703         * m4/log10-ieee.m4: New file.
5704         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
5705         whether log10 works with a negative argument. Replace it if not.
5706         * lib/log10.c (log10): For negative arguments, return NaN.
5707         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
5708         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
5709         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
5710
5711         Tests for module 'log10l-ieee'.
5712         * modules/log10l-ieee-tests: New file.
5713         * tests/test-log10l-ieee.c: New file.
5714
5715         New module 'log10l-ieee'.
5716         * modules/log10l-ieee: New file.
5717
5718         Tests for module 'log10-ieee'.
5719         * modules/log10-ieee-tests: New file.
5720         * tests/test-log10-ieee.c: New file.
5721
5722         New module 'log10-ieee'.
5723         * modules/log10-ieee: New file.
5724
5725         Tests for module 'log10f-ieee'.
5726         * modules/log10f-ieee-tests: New file.
5727         * tests/test-log10f-ieee.c: New file.
5728         * tests/test-log10-ieee.h: New file.
5729
5730         New module 'log10f-ieee'.
5731         * modules/log10f-ieee: New file.
5732
5733 2012-04-01  Bruno Haible  <bruno@clisp.org>
5734
5735         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
5736         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
5737         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
5738         workaround.
5739         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
5740         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
5741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
5742         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
5743         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
5744         (Depends-on): Update conditions.
5745         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
5746         IRIX 6.5, OSF/1 5.1 problems.
5747
5748 2012-04-01  Bruno Haible  <bruno@clisp.org>
5749
5750         log10f: Work around OSF/1 5.1 bug.
5751         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
5752         * lib/log10f.c (log10f): If logf exists, use it and provide just the
5753         workaround.
5754         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
5755         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
5756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
5757         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
5758         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
5759         (Depends-on): Update conditions.
5760         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
5761
5762 2012-04-01  Bruno Haible  <bruno@clisp.org>
5763
5764         log10: Work around OSF/1 5.1 bug.
5765         * lib/math.in.h (log10): New declaration.
5766         * lib/log10.c: New file.
5767         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
5768         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
5769         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
5770         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
5771         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
5772         * modules/log10 (Files): Add lib/log10.c.
5773         (Depends-on): Add math.
5774         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
5775         * tests/test-math-c++.cc: Check the declaration of log10.
5776         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
5777
5778 2012-03-31  Bruno Haible  <bruno@clisp.org>
5779
5780         log10l tests: More tests.
5781         * modules/log10l-tests (Files): Add tests/test-log10l.h,
5782         tests/minus-zero.h, tests/randoml.c.
5783         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
5784         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
5785         (main): Invoke test_function.
5786
5787         log10f tests: More tests.
5788         * modules/log10f-tests (Files): Add tests/test-log10.h,
5789         tests/minus-zero.h, tests/randomf.c.
5790         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
5791         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
5792         (main): Invoke test_function.
5793
5794         log10 tests: More tests.
5795         * tests/test-log10.h: New file.
5796         * modules/log10-tests (Files): Add tests/test-log10.h,
5797         tests/minus-zero.h, tests/randomd.c.
5798         (Makefile.am): Add randomd.c to test_log10_SOURCES.
5799         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
5800         (main): Invoke test_function.
5801
5802 2012-03-31  Simon Josefsson  <simon@josefsson.org>
5803
5804         fflush: Fix syntax error.
5805         * lib/fflush.c: Include unused-parameter.h, needed for
5806         _GL_UNUSED_PARAMETER.
5807         * modules/fflush (Depends-on): Add snippet/unused-parameter.
5808
5809 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5810
5811         regex: pacify GCC when compiling GRUB
5812         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
5813         a diagnostic.  Reported by Vladimir Serbinenko in
5814         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
5815
5816 2012-03-29  Eric Blake  <eblake@redhat.com>
5817
5818         stdio: don't assume gets any more
5819         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
5820         support.
5821         * modules/stdio (Makefile.am): Likewise.
5822         * lib/stdio-read.c (gets): Likewise.
5823         * tests/test-stdio-c++.cc: Likewise.
5824         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
5825         * lib/stdio.in.h (gets): Make warning occur in more places.
5826         * doc/posix-functions/gets.texi (gets): Update documentation.
5827         Reported by Christer Solskogen.
5828
5829         maint.mk: fix syntax checks without exclusions
5830         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
5831         Reported by Daniel P. Berrange.
5832
5833         strerror_r: avoid compiler warning
5834         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
5835         level.
5836
5837         fflush: avoid compiler warning
5838         * lib/fflush.c (update_fpos_cache): Mark variables that are
5839         potentially unused.
5840
5841 2012-03-25  Bruno Haible  <bruno@clisp.org>
5842
5843         Tests for module 'localeconv'.
5844         * modules/localeconv-tests: New file.
5845         * tests/test-localeconv.c: New file.
5846
5847         New module 'localeconv'.
5848         * lib/locale.in.h (localeconv): New declaration.
5849         * lib/localeconv.c: New file.
5850         * m4/localeconv.m4: New file.
5851         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
5852         REPLACE_LOCALECONV.
5853         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
5854         REPLACE_LOCALECONV.
5855         * modules/localeconv: New file.
5856         * modules/nl_langinfo (Depends-on): Add localeconv.
5857         * modules/human (Depends-on): Likewise.
5858         * doc/posix-functions/localeconv.texi: Mention the new module.
5859
5860 2012-03-25  Bruno Haible  <bruno@clisp.org>
5861
5862         locale: Provide a complete 'struct lconv'.
5863         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5864         'struct lconv' does not contain int_p_cs_precedes.
5865         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5866         * doc/posix-headers/locale.texi: Update.
5867
5868         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
5869         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
5870         * doc/posix-headers/locale.texi: Update.
5871
5872         locale: Provide a working 'struct lconv'.
5873         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
5874         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5875         'struct lconv' does not even contain decimal_point.
5876         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
5877         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
5878         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5879         * doc/posix-headers/locale.texi: Mention the problems with
5880         'struct lconv'.
5881         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
5882
5883 2012-03-24  Bruno Haible  <bruno@clisp.org>
5884
5885         Enable common subexpression optimization in GCC.
5886         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
5887         macros.
5888         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
5889         GCC attribute 'const'.
5890         (uc_locale_language): Declare with GCC attribute 'pure'.
5891         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
5892         with GCC attribute 'const'.
5893         * lib/unictype.in.h (uc_is_general_category_withtable,
5894         uc_combining_class, uc_combining_class_name,
5895         uc_combining_class_long_name, uc_bidi_class_name,
5896         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
5897         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
5898         uc_decimal_value, uc_digit_value, uc_numeric_value,
5899         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
5900         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
5901         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
5902         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
5903         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
5904         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
5905         Declare with GCC attribute 'const'.
5906         (uc_general_category_name, uc_general_category_long_name,
5907         uc_general_category_byname, uc_general_category,
5908         uc_is_general_category, uc_combining_class_byname,
5909         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
5910         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
5911         Declare with GCC attribute 'pure'.
5912         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
5913         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
5914         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
5915         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
5916         with GCC attribute 'pure'.
5917         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
5918         'const'.
5919         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
5920         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
5921         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
5922         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
5923         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
5924         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
5925         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
5926         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
5927         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
5928         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
5929         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
5930         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
5931         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
5932         GCC attribute 'pure'.
5933         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
5934         'const'.
5935         * lib/uniwidth.in.h (uc_width): Simplify declaration.
5936         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
5937         u32_strwidth): Declare with GCC attribute 'pure'.
5938
5939         Enable common subexpression optimization in GCC.
5940         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5941         (alphasort): Declare with GCC attribute 'pure'.
5942         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5943         (atoll): Declare with GCC attribute 'pure'.
5944         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5945         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5946         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
5947         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5948         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
5949         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
5950         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
5951
5952 2012-03-24  Bruno Haible  <bruno@clisp.org>
5953
5954         gnulib-tool: Avoid unintended error output from 'cmp'.
5955         * gnulib-tool (func_add_file, func_update_file, func_import): Use
5956         "cmp -s", not "cmp > /dev/null".
5957
5958 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
5959
5960         gnulib-tool: fix imprecise comments w.r.t. an automake bug
5961
5962         It's not just Automake versions < 1.9b that creates an empty
5963         pkgdatadir at installation time if pkgdata_DATA is specified
5964         to empty; modern automake versions do this as well, at least
5965         until automake 1.11.4 (not yet released at the moment of writing,
5966         but soon to appear).  That behaviour was generally considered a
5967         feature rather than a bug, at least until this discussion:
5968         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
5969
5970         See also automake bugs #10997 and #11030.
5971
5972         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
5973         reference to relevant automake bug numbers.
5974         (func_emit_tests_Makefile_am): Likewise.
5975
5976 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5977
5978         announce-gen: use Digest::SHA when possible
5979         * build-aux/announce-gen: Use Digest::SHA when possible, falling
5980         back to Digest::SHA1 if necessary.
5981
5982 2012-03-20  Jim Meyering  <meyering@redhat.com>
5983
5984         tests: avoid gcc warnings about argv vs. const initializers
5985         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
5986         warnings about discarding 'const' qualifier from pointer target type.
5987         * tests/test-posix_spawn2.c (main): Likewise.
5988
5989 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5990
5991         README-release: simplify slightly
5992         * top/README-release: Run "git checkout master" only once.
5993
5994 2012-03-15  Mark Wielaard  <mark@klomp.org>
5995
5996         git-merge-changelog: add specific example on how to use with hg.
5997         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
5998
5999 2012-03-18  Mark Wielaard  <mark@klomp.org>
6000
6001         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
6002
6003 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
6004
6005         git-version-gen: don't let "prefix" envvar cause trouble
6006         * build-aux/git-version-gen (prefix): Initialize properly,
6007         so as not to use a value specified via the environment.
6008         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
6009
6010 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6011
6012         regex: diagnose too-large repeat counts in EREs
6013         Previously, the code did not diagnose the too-large repeat count
6014         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
6015         as if it were 'b\{1000000000}', which is unexpected.
6016         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
6017         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
6018         is a reasonable one for this problem.  Another option would be to
6019         create a new REG_OVERFLOW error for repeat counts that are too large.
6020         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
6021         count is too large, so that the caller can distinguish the two cases.
6022         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
6023         "Too large" return code, and that repeat counts are one example of this.
6024
6025 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6026
6027         doc: some glibc x32 integer width issues
6028         * doc/posix-headers/sys_types.texi (sys/types.h):
6029         * doc/posix-headers/time.texi (time.h):
6030         Mention that glibc x32 does not conform to POSIX in a couple of
6031         areas related to integer widths.
6032
6033 2012-03-15  Bruno Haible  <bruno@clisp.org>
6034
6035         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
6036         * lib/fma.c (VOLATILE): New macro.
6037         (FUNC): Use it to work around a GCC compiler bug.
6038
6039 2012-03-13  Bruno Haible  <bruno@clisp.org>
6040
6041         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6042         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
6043         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
6044         REPLACE_HYPOTL to 1.
6045         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
6046
6047 2012-03-13  Bruno Haible  <bruno@clisp.org>
6048
6049         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6050         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
6051         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
6052         REPLACE_REMAINDERL to 1.
6053         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
6054         bug.
6055
6056 2012-03-13  Bruno Haible  <bruno@clisp.org>
6057
6058         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6059         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
6060         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
6061         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
6062         too big rounding errors.
6063         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
6064         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
6065         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
6066         (Depends-on): Update conditions.
6067         * tests/test-sqrtl.c (my_ldexpl): New function.
6068         (main): Add test of a particular value.
6069         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6070
6071 2012-03-13  Pádraig Brady  <P@draigBrady.com>
6072
6073         doc: Update timer_* platform portability notes.
6074         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
6075         that always return ENOSYS.
6076         * doc/posix-functions/timer_delete.texi: Likewise.
6077         * doc/posix-functions/timer_gettime.texi: Likewise.
6078         * doc/posix-functions/timer_settime.texi: Likewise.
6079
6080 2012-03-13  Bruno Haible  <bruno@clisp.org>
6081
6082         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6083         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
6084         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
6085         REPLACE_CBRTL to 1.
6086         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6087
6088 2012-03-13  Bruno Haible  <bruno@clisp.org>
6089
6090         remainderl: Avoid compilation error on AIX >= 5.2.
6091         * lib/math.in.h (remainderl): Undefine macro from the system header.
6092
6093 2012-03-13  Bruno Haible  <bruno@clisp.org>
6094
6095         Avoid compilation errors with MSVC option -fp:strict.
6096         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
6097         * lib/cbrtf.c: Likewise.
6098         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6099
6100 2012-03-12  Bruno Haible  <bruno@clisp.org>
6101
6102         uninorm: Don't crash in out-of-memory conditions.
6103         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
6104         gracefully.
6105         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
6106         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
6107
6108 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
6109
6110         quote: fix syntax-check
6111         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
6112         also exports quote_quoting_options.
6113
6114 2012-03-12  Simon Josefsson  <simon@josefsson.org>
6115
6116         Collapse list of copyright years to ranges.  See
6117         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
6118         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
6119         build-aux/csharpexec.sh.in, build-aux/gnupload,
6120         build-aux/install-reloc, build-aux/javacomp.sh.in,
6121         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
6122         build-aux/move-if-change, build-aux/reloc-ldflags,
6123         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
6124
6125 2012-03-11  Bruno Haible  <bruno@clisp.org>
6126
6127         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6128         * m4/log2f-ieee.m4: New file.
6129         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
6130         whether log2f works with a minus zero argument. Replace it if not.
6131         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
6132         (Depends-on): Add log2-ieee.
6133         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
6134         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
6135
6136         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6137         * m4/log2-ieee.m4: New file.
6138         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
6139         whether log2 works with a minus zero argument. Replace it if not.
6140         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
6141         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
6142         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
6143
6144         Tests for module 'log2l-ieee'.
6145         * modules/log2l-ieee-tests: New file.
6146         * tests/test-log2l-ieee.c: New file.
6147
6148         New module 'log2l-ieee'.
6149         * modules/log2l-ieee: New file.
6150
6151         Tests for module 'log2-ieee'.
6152         * modules/log2-ieee-tests: New file.
6153         * tests/test-log2-ieee.c: New file.
6154
6155         New module 'log2-ieee'.
6156         * modules/log2-ieee: New file.
6157
6158         Tests for module 'log2f-ieee'.
6159         * modules/log2f-ieee-tests: New file.
6160         * tests/test-log2f-ieee.c: New file.
6161         * tests/test-log2-ieee.h: New file.
6162
6163         New module 'log2f-ieee'.
6164         * modules/log2f-ieee: New file.
6165
6166 2012-03-11  Bruno Haible  <bruno@clisp.org>
6167
6168         Tests for module 'log2l'.
6169         * modules/log2l-tests: New file.
6170         * tests/test-log2l.c: New file.
6171
6172         New module 'log2l'.
6173         * lib/math.in.h (log2l): New declaration.
6174         * lib/log2l.c: New file.
6175         * m4/log2l.m4: New file.
6176         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
6177         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
6178         REPLACE_LOG2L.
6179         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
6180         REPLACE_LOG2L.
6181         * modules/log2l: New file.
6182         * tests/test-math-c++.cc: Check the declaration of log2l.
6183         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
6184         and OSF/1 problems.
6185
6186 2012-03-11  Bruno Haible  <bruno@clisp.org>
6187
6188         Tests for module 'log2f'.
6189         * modules/log2f-tests: New file.
6190         * tests/test-log2f.c: New file.
6191
6192         New module 'log2f'.
6193         * lib/math.in.h (log2f): New declaration.
6194         * lib/log2f.c: New file.
6195         * m4/log2f.m4: New file.
6196         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
6197         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
6198         REPLACE_LOG2F.
6199         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
6200         REPLACE_LOG2F.
6201         * modules/log2f: New file.
6202         * tests/test-math-c++.cc: Check the declaration of log2f.
6203         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
6204         and OSF/1 and Cygwin problems.
6205
6206 2012-03-11  Bruno Haible  <bruno@clisp.org>
6207
6208         Tests for module 'log2'.
6209         * modules/log2-tests: New file.
6210         * tests/test-log2.c: New file.
6211         * tests/test-log2.h: New file.
6212
6213         New module 'log2'.
6214         * lib/math.in.h (log2): New declaration.
6215         * lib/log2.c: New file.
6216         * m4/log2.m4: New file.
6217         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
6218         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
6219         REPLACE_LOG2.
6220         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
6221         REPLACE_LOG2.
6222         * modules/log2: New file.
6223         * tests/test-math-c++.cc: Check the declaration of log2.
6224         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
6225         and OSF/1 and Cygwin problems.
6226
6227 2012-03-11  Bruno Haible  <bruno@clisp.org>
6228
6229         exp2* tests: More tests.
6230         * tests/test-exp2.h (test_function): Test all integral arguments that
6231         don't need to overflow or denormalized numbers.
6232         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
6233         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
6234         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
6235
6236 2012-03-10  Bruno Haible  <bruno@clisp.org>
6237
6238         log1pl-ieee: Work around test failure on AIX 7.1.
6239         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
6240
6241         log1pl-ieee: Work around test failure on IRIX 6.5.
6242         * m4/log1pl-ieee.m4: New file.
6243         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
6244         test whether log1pl works with a minus zero argument. Replace it if
6245         not.
6246         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
6247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
6248         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
6249         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
6250         (Depends-on): Update conditions.
6251         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6252         m4/signbit.m4.
6253         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
6254         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
6255
6256         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
6257         * m4/log1pf-ieee.m4: New file.
6258         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
6259         test whether log1pf works with a minus zero argument. Replace it if
6260         not.
6261         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
6262         m4/signbit.m4.
6263         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
6264         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
6265
6266         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
6267         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
6268         (configure.ac): Require gl_FUNC_LOG1PF.
6269
6270         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
6271         * m4/log1p-ieee.m4: New file.
6272         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
6273         whether log1p works with a minus zero argument. Replace it if not.
6274         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
6275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
6276         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
6277         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
6278         (Depends-on): Update conditions.
6279         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6280         m4/signbit.m4.
6281         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
6282         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
6283
6284         Tests for module 'log1pl-ieee'.
6285         * modules/log1pl-ieee-tests: New file.
6286         * tests/test-log1pl-ieee.c: New file.
6287
6288         New module 'log1pl-ieee'.
6289         * modules/log1pl-ieee: New file.
6290
6291         Tests for module 'log1p-ieee'.
6292         * modules/log1p-ieee-tests: New file.
6293         * tests/test-log1p-ieee.c: New file.
6294
6295         New module 'log1p-ieee'.
6296         * modules/log1p-ieee: New file.
6297
6298         Tests for module 'log1pf-ieee'.
6299         * modules/log1pf-ieee-tests: New file.
6300         * tests/test-log1pf-ieee.c: New file.
6301         * tests/test-log1p-ieee.h: New file.
6302
6303         New module 'log1pf-ieee'.
6304         * modules/log1pf-ieee: New file.
6305
6306 2012-03-10  Bruno Haible  <bruno@clisp.org>
6307
6308         Tests for module 'log1pl'.
6309         * modules/log1pl-tests: New file.
6310         * tests/test-log1pl.c: New file.
6311
6312         New module 'log1pl'.
6313         * lib/math.in.h (log1pl): New declaration.
6314         * lib/log1pl.c: New file.
6315         * m4/log1pl.m4: New file.
6316         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
6317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
6318         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
6319         * modules/log1pl: New file.
6320         * tests/test-math-c++.cc: Check the declaration of log1pl.
6321         * doc/posix-functions/log1pl.texi: Mention the new module.
6322
6323 2012-03-10  Bruno Haible  <bruno@clisp.org>
6324
6325         Tests for module 'log1pf'.
6326         * modules/log1pf-tests: New file.
6327         * tests/test-log1pf.c: New file.
6328
6329         New module 'log1pf'.
6330         * lib/math.in.h (log1pf): New declaration.
6331         * lib/log1pf.c: New file.
6332         * m4/log1pf.m4: New file.
6333         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6334         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6335         REPLACE_LOG1PF.
6336         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6337         REPLACE_LOG1PF.
6338         * modules/log1pf: New file.
6339         * tests/test-math-c++.cc: Check the declaration of log1pf.
6340         * doc/posix-functions/log1pf.texi: Mention the new module.
6341
6342 2012-03-10  Bruno Haible  <bruno@clisp.org>
6343
6344         log1p tests: More tests.
6345         * tests/test-log1p.h: New file.
6346         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6347         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6348         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6349         (main): Invoke test_function.
6350
6351         log1p: Provide replacement for Minix and MSVC.
6352         * lib/math.in.h (log1p): New declaration.
6353         * lib/log1p.c: New file.
6354         * m4/log1p.m4: New file.
6355         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6356         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6357         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6358         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6359         (Depends-on): Add math, isnand, log, round.
6360         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6361         HAVE_LOG1P is 0.
6362         * tests/test-math-c++.cc: Check the declaration of log1p.
6363         * doc/posix-functions/log1p.texi: Mention the replacement.
6364
6365 2012-03-10  Bruno Haible  <bruno@clisp.org>
6366
6367         math tests: Small simplification.
6368         * tests/test-exp.h (test_function): Use the same err_bound for
6369         'double' on platforms with sizeof (long double) == sizeof (double)
6370         than on platforms with sizeof (long double) > sizeof (double).
6371         * tests/test-exp2.h (test_function): Likewise.
6372         * tests/test-expm1.h (test_function): Likewise.
6373         * tests/test-log.h (test_function): Likewise.
6374
6375 2012-03-10  Bruno Haible  <bruno@clisp.org>
6376
6377         Fix some comments.
6378         * lib/expl.c: Fix an ambiguous comment.
6379         * lib/expm1.c: Likewise.
6380         * lib/expm1l.c: Likewise.
6381         * lib/exp2.c: Likewise.
6382         * lib/exp2l.c: Likewise.
6383
6384 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6385
6386         regex: allow inclusion of <regex.h> before <limits.h>
6387         Without this patch, portable programs had to include <limits.h> before
6388         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
6389         I ran into this problem with a test version of GNU grep on Solaris 8.
6390         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
6391         This is done conditionally so that this change can be merged
6392         back to glibc.
6393         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6394         using the included regex.
6395
6396         fts: depend on fdopendir
6397         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6398         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6399         problem was introduced when fdopendir was split out.
6400
6401 2012-03-10  Bruno Haible  <bruno@clisp.org>
6402
6403         Remove unused variables.
6404         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6405         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6406
6407 2012-03-10  Bruno Haible  <bruno@clisp.org>
6408
6409         isnanf-nolibm: Fix last commit.
6410         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6411
6412         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6413         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6414
6415 2012-03-10  Bruno Haible  <bruno@clisp.org>
6416
6417         logf-ieee: Work around test failure on NetBSD 5.1.
6418         * m4/logf-ieee.m4: New file.
6419         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6420         whether logf works with a negative argument. Replace it if not.
6421         * lib/logf.c (logf): For negative arguments, return NaN.
6422         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6423         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6424         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6425
6426         logf-ieee: Work around test failure on Solaris 9.
6427         * modules/logf-ieee (Depends-on): Add log-ieee.
6428         (configure.ac): Require gl_FUNC_LOGF.
6429
6430         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6431         * m4/log-ieee.m4: New file.
6432         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6433         log works with a negative argument. Replace it if not.
6434         * lib/log.c (log): For negative arguments, return NaN.
6435         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6436         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6437         * doc/posix-functions/log.texi: Mention the log-ieee module.
6438
6439         Tests for module 'logl-ieee'.
6440         * modules/logl-ieee-tests: New file.
6441         * tests/test-logl-ieee.c: New file.
6442
6443         New module 'logl-ieee'.
6444         * modules/logl-ieee: New file.
6445
6446         Tests for module 'log-ieee'.
6447         * modules/log-ieee-tests: New file.
6448         * tests/test-log-ieee.c: New file.
6449
6450         New module 'log-ieee'.
6451         * modules/log-ieee: New file.
6452
6453         Tests for module 'logf-ieee'.
6454         * modules/logf-ieee-tests: New file.
6455         * tests/test-logf-ieee.c: New file.
6456         * tests/test-log-ieee.h: New file.
6457
6458         New module 'logf-ieee'.
6459         * modules/logf-ieee: New file.
6460
6461 2012-03-10  Bruno Haible  <bruno@clisp.org>
6462
6463         log: Fix bug introduced on 2012-03-09.
6464         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6465
6466 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6467
6468         timer-time: link explicitly with pthreads on glibc
6469         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6470         to support static linking, when newer glibc is
6471         detected, as that contains pthread emulation of
6472         POSIX timer functions where required.
6473         * modules/timer-time: Depend on threadlib to
6474         pull in the appropriate library to link.
6475
6476 2012-03-10  Bruno Haible  <bruno@clisp.org>
6477
6478         log* tests: More tests.
6479         * tests/test-log.h: New file.
6480         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
6481         (main): Invoke test_function.
6482         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
6483         (main): Invoke test_function.
6484         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
6485         (main): Invoke test_function.
6486         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6487         tests/randomd.c.
6488         (Makefile.am): Add randomd.c to test_log_SOURCES.
6489         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6490         tests/randomf.c.
6491         (Makefile.am): Add randomf.c to test_logf_SOURCES.
6492         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6493         tests/randoml.c.
6494         (Depends-on): Add 'float'.
6495         (Makefile.am): Add randoml.c to test_logl_SOURCES.
6496
6497 2012-03-09  Bruno Haible  <bruno@clisp.org>
6498
6499         logl: Work around OSF/1 5.1 bug.
6500         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
6501         * lib/logl.c (logl): If logl exists, use it and provide just the
6502         workaround.
6503         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
6504         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
6505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
6506         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
6507         * modules/logl (configure.ac): Consider REPLACE_LOGL.
6508         (Depends-on): Update conditions.
6509         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
6510
6511 2012-03-09  Bruno Haible  <bruno@clisp.org>
6512
6513         logf: Work around OSF/1 5.1 bug.
6514         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
6515         * lib/logf.c (logf): If logf exists, use it and provide just the
6516         workaround.
6517         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
6518         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
6519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
6520         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
6521         * modules/logf (configure.ac): Consider REPLACE_LOGF.
6522         (Depends-on): Update conditions.
6523         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
6524
6525 2012-03-09  Bruno Haible  <bruno@clisp.org>
6526
6527         log: Work around OSF/1 5.1 bug.
6528         * lib/math.in.h (log): New declaration.
6529         * lib/log.c: New file.
6530         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
6531         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
6532         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
6533         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
6534         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
6535         * modules/log (Files): Add lib/log.c.
6536         (Depends-on): Add math.
6537         (configure.ac): If REPLACE_LOG is 1, compile an override.
6538         * tests/test-math-c++.cc: Check the declaration of log.
6539         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
6540
6541 2012-03-09  Jim Meyering  <meyering@redhat.com>
6542
6543         readtokens.c: adjust wording in a comment
6544         * lib/readtokens.c: Insert omitted "that" in a comment.
6545
6546 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6547
6548         modechange: add notations +40, 00440, etc.
6549         * lib/modechange.c (mode_compile): Support new notations
6550         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
6551
6552 2012-03-08  Bruno Haible  <bruno@clisp.org>
6553
6554         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
6555         * m4/exp2l-ieee.m4: New file.
6556         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
6557         test whether exp2l works with a NaN argument and with a negative
6558         infinity argument. Replace it if not.
6559         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
6560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
6561         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
6562         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
6563         (Depends-on): Update conditions.
6564         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
6565         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
6566         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
6567
6568         Tests for module 'exp2l-ieee'.
6569         * modules/exp2l-ieee-tests: New file.
6570         * tests/test-exp2l-ieee.c: New file.
6571
6572         New module 'exp2l-ieee'.
6573         * modules/exp2l-ieee: New file.
6574
6575         Tests for module 'exp2-ieee'.
6576         * modules/exp2-ieee-tests: New file.
6577         * tests/test-exp2-ieee.c: New file.
6578
6579         New module 'exp2-ieee'.
6580         * modules/exp2-ieee: New file.
6581
6582         Tests for module 'exp2f-ieee'.
6583         * modules/exp2f-ieee-tests: New file.
6584         * tests/test-exp2f-ieee.c: New file.
6585         * tests/test-exp2-ieee.h: New file.
6586
6587         New module 'exp2f-ieee'.
6588         * modules/exp2f-ieee: New file.
6589
6590 2012-03-08  Bruno Haible  <bruno@clisp.org>
6591
6592         Tests for module 'exp2l'.
6593         * modules/exp2l-tests: New file.
6594         * tests/test-exp2l.c: New file.
6595
6596         New module 'exp2l'.
6597         * lib/math.in.h (exp2l): New declaration.
6598         * lib/exp2l.c: New file.
6599         * lib/expl-table.c: New file, extracted from lib/expl.c.
6600         * lib/expl.c (gl_expl_table): New declaration.
6601         (expl): Remove expl_table. Update reference.
6602         * m4/exp2l.m4: New file.
6603         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
6604         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
6605         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
6606         * modules/exp2l: New file.
6607         * modules/expl (Files): Add lib/expl-table.c.
6608         (configure.ac): Compile also expl-table.c.
6609         * tests/test-math-c++.cc: Check the declaration of exp2l.
6610         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
6611         problem.
6612
6613 2012-03-08  Bruno Haible  <bruno@clisp.org>
6614
6615         Tests for module 'exp2f'.
6616         * modules/exp2f-tests: New file.
6617         * tests/test-exp2f.c: New file.
6618
6619         New module 'exp2f'.
6620         * lib/math.in.h (exp2f): New declaration.
6621         * lib/exp2f.c: New file.
6622         * m4/exp2f.m4: New file.
6623         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
6624         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
6625         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
6626         * modules/exp2f: New file.
6627         * tests/test-math-c++.cc: Check the declaration of exp2f.
6628         * doc/posix-functions/exp2f.texi: Mention the new module and the
6629         IRIX problem.
6630
6631 2012-03-08  Bruno Haible  <bruno@clisp.org>
6632
6633         Tests for module 'exp2'.
6634         * modules/exp2-tests: New file.
6635         * tests/test-exp2.c: New file.
6636         * tests/test-exp2.h: New file.
6637
6638         New module 'exp2'.
6639         * lib/math.in.h (exp2): New declaration.
6640         * lib/exp2.c: New file.
6641         * m4/exp2.m4: New file.
6642         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
6643         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
6644         REPLACE_EXP2.
6645         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
6646         REPLACE_EXP2.
6647         * modules/exp2: New file.
6648         * tests/test-math-c++.cc: Check the declaration of exp2.
6649         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
6650         and OpenBSD problems.
6651
6652 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6653
6654         savedir: fix comment typo
6655         * lib/savedir.c (savedirstream): Fix typo in comment.
6656
6657 2012-03-08  Bruno Haible  <bruno@clisp.org>
6658
6659         test-readtokens.c: use const; remove unwarranted cast
6660         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
6661
6662 2012-03-08  Bruno Haible  <bruno@clisp.org>
6663
6664         fmal: Avoid compilation error on AIX.
6665         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
6666         AIX 5.2..7.1.
6667
6668 2012-03-08  Bruno Haible  <bruno@clisp.org>
6669
6670         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
6671         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
6672         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
6673         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
6674         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
6675         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
6676         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
6677
6678 2012-03-08  Bruno Haible  <bruno@clisp.org>
6679
6680         remainderf: Override buggy system function on IRIX 6.5.
6681         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
6682         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
6683         when it exists.
6684         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
6685
6686 2012-03-08  Jim Meyering  <meyering@redhat.com>
6687
6688         test-readtokens.c: avoid const-related compilation warnings
6689         * tests/test-readtokens.c: Avoid const-related compilation warnings.
6690
6691 2012-03-07  Jim Meyering  <meyering@redhat.com>
6692             Bruno Haible  <bruno@clisp.org>
6693
6694         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
6695         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
6696         tests/randomd.c.
6697         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
6698         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
6699         tests/randoml.c.
6700         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
6701
6702 2012-03-07  Bruno Haible  <bruno@clisp.org>
6703
6704         expm1l: Avoid compilation error on AIX.
6705         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
6706         AIX 5.2..7.1.
6707
6708 2012-03-07  Bruno Haible  <bruno@clisp.org>
6709
6710         expm1l: Don't override undeclared system function on IRIX 6.5.
6711         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
6712         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
6713         it exists. Set HAVE_DECL_EXPM1L.
6714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
6715         HAVE_EXPM1L.
6716         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
6717         HAVE_EXPM1L.
6718         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
6719
6720 2012-03-07  Bruno Haible  <bruno@clisp.org>
6721
6722         remainderl: Don't override undeclared system function on IRIX 6.5.
6723         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
6724         HAVE_REMAINDERL.
6725         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
6726         declared when it exists. Set HAVE_DECL_REMAINDERL.
6727         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
6728         not HAVE_REMAINDERL.
6729         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
6730         HAVE_REMAINDERL.
6731         * doc/posix-functions/remainderl.texi: Mention missing declaration
6732         problem.
6733
6734 2012-03-07  Bruno Haible  <bruno@clisp.org>
6735
6736         rintf: Don't override undeclared system function on IRIX 6.5.
6737         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
6738         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
6739         exists. Set HAVE_DECL_RINTF.
6740         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
6741         HAVE_RINTF.
6742         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
6743         HAVE_RINTF.
6744         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
6745
6746 2012-03-07  Bruno Haible  <bruno@clisp.org>
6747
6748         roundl: Avoid compilation error on AIX.
6749         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
6750         AIX 5.2..7.1.
6751
6752 2012-03-07  Bruno Haible  <bruno@clisp.org>
6753
6754         roundl: Don't override undeclared system function on IRIX 6.5.
6755         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
6756         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
6757         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6758         * modules/roundl (configure.ac): For replacement code, test
6759         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6760         (Depends-on): Update conditions.
6761         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
6762
6763 2012-03-07  Bruno Haible  <bruno@clisp.org>
6764
6765         roundf: Don't override undeclared system function on IRIX 6.5.
6766         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
6767         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
6768         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6769         * modules/roundf (configure.ac): For replacement code, test
6770         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6771         (Depends-on): Update conditions.
6772         * modules/roundf-ieee (Depends-on): Update conditions.
6773         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
6774
6775 2012-03-07  Bruno Haible  <bruno@clisp.org>
6776
6777         round: Don't override undeclared system function on IRIX 6.5.
6778         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
6779         argument.
6780         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
6781         also when it is not declared. Set HAVE_ROUND. For replacement code,
6782         test HAVE_ROUND, not HAVE_DECL_ROUND.
6783         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
6784         not HAVE_DECL_ROUND.
6785         (Depends-on): Update conditions.
6786         * modules/round-ieee (Depends-on): Update conditions.
6787         * doc/posix-functions/round.texi: Mention the IRIX problem.
6788
6789 2012-03-07  Bruno Haible  <bruno@clisp.org>
6790
6791         copysignf: Don't override undeclared system function on IRIX 6.5.
6792         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
6793         HAVE_COPYSIGNF.
6794         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
6795         declared when it exists. Set HAVE_DECL_COPYSIGNF.
6796         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
6797         not HAVE_COPYSIGNF.
6798         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
6799         HAVE_COPYSIGNF.
6800         * doc/posix-functions/copysignf.texi: Mention missing declaration
6801         problem.
6802
6803 2012-03-07  Jim Meyering  <meyering@redhat.com>
6804
6805         readtokens: add tests
6806         * modules/readtokens-tests: New file.
6807         * tests/test-readtokens.c: New file.
6808
6809 2012-03-07  Jim Meyering  <meyering@redhat.com>
6810
6811         quotearg: the module must now include quote.h
6812         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
6813         So must the module.
6814         * modules/quotearg (Files): Add quote.h.
6815
6816 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
6817
6818         readtokens: avoid core dumps with unusual calling patterns
6819         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
6820         * lib/readtokens.c: Include limits.h.
6821         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
6822         (readtoken): Don't cache the delimiters; the cache code was buggy
6823         if !delim && saved_delim, or if the new n_delim differs from the old.
6824         Also, it wasn't thread-safe.
6825
6826 2012-03-07  Bruno Haible  <bruno@clisp.org>
6827
6828         quote: Adhere to common module description layout.
6829         * modules/quote (Makefile.am): Add back empty section.
6830
6831 2012-03-06  Akim Demaille  <demaille@gostai.com>
6832
6833         quote: fuse into quotearg
6834         This patch is made for the benefit of Bison.
6835         quote does not leave the choice of the quoting style to the user.
6836         quoting_style provides poor customizability, yet quoting_options,
6837         which is very rich, is hidden inside quotearg.c.  So in order to
6838         allow quote customization, move its implementation to quotearg.c.
6839         * lib/quote.c: Remove.
6840         * modules/quote: Adjust.
6841         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
6842         warning: provide all the members of literal structs.
6843         (quote_quoting_options): New.
6844         (quote, quote_n): Import implementation from quote.c.
6845         * lib/quote.h: Import the comments from quote.c.
6846         (quote_quoting_options): New.
6847
6848 2012-03-06  Bruno Haible  <bruno@clisp.org>
6849
6850         Tests for module 'expm1l-ieee'.
6851         * modules/expm1l-ieee-tests: New file.
6852         * tests/test-expm1l-ieee.c: New file.
6853
6854         New module 'expm1l-ieee'.
6855         * modules/expm1l-ieee: New file.
6856
6857         Tests for module 'expm1f-ieee'.
6858         * modules/expm1f-ieee-tests: New file.
6859         * tests/test-expm1f-ieee.c: New file.
6860
6861         New module 'expm1f-ieee'.
6862         * modules/expm1f-ieee: New file.
6863
6864         Tests for module 'expm1-ieee'.
6865         * modules/expm1-ieee-tests: New file.
6866         * tests/test-expm1-ieee.c: New file.
6867         * tests/test-expm1-ieee.h: New file.
6868
6869         New module 'expm1-ieee'.
6870         * modules/expm1-ieee: New file.
6871         * m4/expm1-ieee.m4: New file.
6872         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
6873         whether expm1 works with a minus zero argument. Replace it if not.
6874         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
6875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
6876         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
6877         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
6878         (Depends-on): Update conditions.
6879         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
6880         AIX problem.
6881
6882 2012-03-06  Bruno Haible  <bruno@clisp.org>
6883
6884         Work around expm1f bug on IRIX 6.5.
6885         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
6886         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
6887         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
6888         not work.
6889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
6890         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
6891         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
6892         (Depends-on): Update conditions.
6893         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
6894
6895 2012-03-06  Bruno Haible  <bruno@clisp.org>
6896
6897         Tests for module 'expm1l'.
6898         * modules/expm1l-tests: New file.
6899         * tests/test-expm1l.c: New file.
6900
6901         New module 'expm1l'.
6902         * lib/math.in.h (expm1l): New declaration.
6903         * lib/expm1l.c: New file.
6904         * m4/expm1l.m4: New file.
6905         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
6906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
6907         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
6908         * modules/expm1l: New file.
6909         * tests/test-math-c++.cc: Check the declaration of expm1l.
6910         * doc/posix-functions/expm1l.texi: Mention the new module.
6911
6912 2012-03-06  Bruno Haible  <bruno@clisp.org>
6913
6914         Tests for module 'expm1f'.
6915         * modules/expm1f-tests: New file.
6916         * tests/test-expm1f.c: New file.
6917
6918         New module 'expm1f'.
6919         * lib/math.in.h (expm1f): New declaration.
6920         * lib/expm1f.c: New file.
6921         * m4/expm1f.m4: New file.
6922         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
6923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
6924         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
6925         * modules/expm1f: New file.
6926         * tests/test-math-c++.cc: Check the declaration of expm1f.
6927         * doc/posix-functions/expm1f.texi: Mention the new module.
6928
6929 2012-03-06  Bruno Haible  <bruno@clisp.org>
6930
6931         Tests for module 'expm1'.
6932         * modules/expm1-tests: New file.
6933         * tests/test-expm1.c: New file.
6934         * tests/test-expm1.h: New file.
6935
6936         New module 'expm1'.
6937         * lib/math.in.h (expm1): New declaration.
6938         * lib/expm1.c: New file.
6939         * m4/expm1.m4: New file.
6940         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
6941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
6942         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
6943         * modules/expm1: New file.
6944         * tests/test-math-c++.cc: Check the declaration of expm1.
6945         * doc/posix-functions/expm1.texi: Mention the new module.
6946
6947 2012-03-06  Bruno Haible  <bruno@clisp.org>
6948
6949         math: Ensure declarations of math functions.
6950         * modules/acosf (Depends-on): Add 'extensions'.
6951         * modules/asinf (Depends-on): Likewise.
6952         * modules/atan2f (Depends-on): Likewise.
6953         * modules/atanf (Depends-on): Likewise.
6954         * modules/cbrt (Depends-on): Likewise.
6955         * modules/cbrtf (Depends-on): Likewise.
6956         * modules/cbrtl (Depends-on): Likewise.
6957         * modules/copysignf (Depends-on): Likewise.
6958         * modules/copysignl (Depends-on): Likewise.
6959         * modules/cosf (Depends-on): Likewise.
6960         * modules/coshf (Depends-on): Likewise.
6961         * modules/expf (Depends-on): Likewise.
6962         * modules/fabsf (Depends-on): Likewise.
6963         * modules/fabsl (Depends-on): Likewise.
6964         * modules/fmaf (Depends-on): Likewise.
6965         * modules/fmal (Depends-on): Likewise.
6966         * modules/fmodf (Depends-on): Likewise.
6967         * modules/fmodl (Depends-on): Likewise.
6968         * modules/frexpf (Depends-on): Likewise.
6969         * modules/frexpl (Depends-on): Likewise.
6970         * modules/hypot (Depends-on): Likewise.
6971         * modules/hypotf (Depends-on): Likewise.
6972         * modules/hypotl (Depends-on): Likewise.
6973         * modules/ldexpf (Depends-on): Likewise.
6974         * modules/ldexpl (Depends-on): Likewise.
6975         * modules/log10f (Depends-on): Likewise.
6976         * modules/log10l (Depends-on): Likewise.
6977         * modules/log1p (Depends-on): Likewise.
6978         * modules/logb (Depends-on): Likewise.
6979         * modules/logf (Depends-on): Likewise.
6980         * modules/modff (Depends-on): Likewise.
6981         * modules/modfl (Depends-on): Likewise.
6982         * modules/powf (Depends-on): Likewise.
6983         * modules/remainderf (Depends-on): Likewise.
6984         * modules/remainderl (Depends-on): Likewise.
6985         * modules/rintf (Depends-on): Likewise.
6986         * modules/rintl (Depends-on): Likewise.
6987         * modules/sinf (Depends-on): Likewise.
6988         * modules/sinhf (Depends-on): Likewise.
6989         * modules/sqrtf (Depends-on): Likewise.
6990         * modules/tanf (Depends-on): Likewise.
6991         * modules/tanhf (Depends-on): Likewise.
6992         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
6993         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
6994         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
6995         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
6996         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
6997         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
6998         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
6999         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
7000         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
7001         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
7002         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
7003         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
7004         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
7005         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
7006         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
7007         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
7008         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
7009         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7010         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
7011         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
7012         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
7013         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
7014         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
7015         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
7016         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7017         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
7018         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
7019         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7020         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
7021         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
7022         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7023         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
7024         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7025         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7026         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7027         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7028         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
7029         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
7030         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
7031         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
7032         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
7033
7034 2012-03-06  Bruno Haible  <bruno@clisp.org>
7035
7036         math: Update module names in warnings.
7037         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7038         tanl): Use specific module name in warn-on-use warning.
7039
7040 2012-03-06  Bruno Haible  <bruno@clisp.org>
7041
7042         expl: Simplify computation.
7043         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
7044
7045 2012-03-05  Bruno Haible  <bruno@clisp.org>
7046
7047         exp* tests: More tests.
7048         * tests/test-exp.h: New file.
7049         * tests/test-exp.c: Include <float.h> and test-exp.h.
7050         (main): Invoke test_function.
7051         * tests/test-expf.c: Include <float.h> and test-exp.h.
7052         (main): Invoke test_function.
7053         * tests/test-expl.c: Include <float.h> and test-exp.h.
7054         (main): Invoke test_function.
7055         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
7056         (Makefile.am): Add randomd.c to test_exp_SOURCES.
7057         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
7058         (Makefile.am): Add randomf.c to test_expf_SOURCES.
7059         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
7060         (Depends-on): Add 'float'.
7061         (Makefile.am): Add randoml.c to test_expl_SOURCES.
7062
7063         expl: Fix precision of computed result.
7064         * lib/expl.c: Completely rewritten.
7065         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
7066         (Maintainer): Add me.
7067         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
7068
7069 2012-03-05  Bruno Haible  <bruno@clisp.org>
7070
7071         cbrt* tests: More tests.
7072         * tests/test-cbrt.h: New file.
7073         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
7074         (main): Invoke test_function.
7075         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
7076         (main): Invoke test_function.
7077         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
7078         (main): Invoke test_function.
7079         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
7080         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
7081         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
7082         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
7083         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
7084         (Depends-on): Add 'float'.
7085         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
7086
7087 2012-03-05  Bruno Haible  <bruno@clisp.org>
7088
7089         hypot* tests: More tests.
7090         * tests/test-hypot.h: New file, partially extracted from
7091         tests/test-hypotl.c.
7092         * tests/test-hypot.c: Include test-hypot.h.
7093         (main): Invoke test_function.
7094         * tests/test-hypotf.c: Include test-hypot.h.
7095         (main): Invoke test_function.
7096         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
7097         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
7098         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
7099         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
7100         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
7101         tests/randomf.c.
7102         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
7103         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
7104         tests/randoml.c.
7105         (Depends-on): Add 'fpucw', 'float'.
7106         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
7107
7108 2012-03-05  Bruno Haible  <bruno@clisp.org>
7109
7110         fpucw: Doc about FreeBSD.
7111         * lib/fpucw.h: Mention FreeBSD in comments.
7112
7113 2012-03-04  Bruno Haible  <bruno@clisp.org>
7114
7115         sqrt* tests: More tests.
7116         * tests/test-sqrt.h: New file.
7117         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
7118         (main): Invoke test_function.
7119         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
7120         (main): Invoke test_function.
7121         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
7122         (main): Invoke test_function.
7123         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
7124         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
7125         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
7126         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
7127         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
7128         (Depends-on): Add 'float'.
7129         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
7130
7131 2012-03-04  Bruno Haible  <bruno@clisp.org>
7132
7133         remainder* tests: More tests.
7134         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
7135         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
7136         (main): Invoke test_function.
7137         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
7138         (main): Invoke test_function.
7139         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
7140         (main): Invoke test_function.
7141         * modules/remainder-tests (Files): Add tests/test-remainder.h,
7142         tests/randomd.c.
7143         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
7144         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
7145         tests/randomf.c.
7146         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
7147         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
7148         tests/randoml.c.
7149         (Depends-on): Add 'float'.
7150         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
7151
7152 2012-03-04  Bruno Haible  <bruno@clisp.org>
7153
7154         remainder, remainderf, remainderl: Fix computation for large quotients.
7155         * lib/remainder.c: Completely rewritten.
7156         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
7157         USE_FLOAT.
7158         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
7159         USE_LONG_DOUBLE.
7160         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
7161         isnand, isinf. Remove round, fma.
7162         * modules/remainderf (Files): Add lib/remainder.c.
7163         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
7164         Remove roundf, fmaf.
7165         * modules/remainderl (Files): Add lib/remainder.c.
7166         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
7167         isinf. Remove roundl, fmal.
7168         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
7169         REMAINDER_LIBM.
7170         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
7171         REMAINDERF_LIBM.
7172         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
7173         REMAINDERL_LIBM.
7174
7175 2012-03-04  Bruno Haible  <bruno@clisp.org>
7176
7177         fmod* tests: More tests.
7178         * tests/test-fmod.h (my_ldexp): New function.
7179         (test_function): Reduce amount of random numbers to test. Add tests
7180         of very large quotients x / y.
7181         * tests/test-fmod.c (MAX_EXP): New macro.
7182         * tests/test-fmodf.c (MAX_EXP): Likewise.
7183         * tests/test-fmodl.c (MAX_EXP): Likewise.
7184
7185 2012-03-04  Bruno Haible  <bruno@clisp.org>
7186
7187         fmod, fmodl: Fix computation for large quotients x / y.
7188         * lib/fmod.c: Completely rewritten.
7189         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
7190         USE_LONG_DOUBLE.
7191         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
7192         isnand. Remove fma.
7193         * modules/fmodl (Files): Add lib/fmod.c.
7194         (Depends-on): Add float, isfinite, signbit, fabsl,
7195         frexpl, ldexpl, isnanl. Remove fma.
7196         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
7197         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
7198
7199 2012-03-03  Bruno Haible  <bruno@clisp.org>
7200
7201         fmod* tests: More tests.
7202         * tests/test-fmod.h: New file.
7203         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
7204         (main): Invoke test_function.
7205         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
7206         (main): Invoke test_function.
7207         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
7208         (main): Invoke test_function.
7209         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
7210         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
7211         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
7212         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
7213         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
7214         (Depends-on): Add 'float'.
7215         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
7216
7217 2012-03-03  Bruno Haible  <bruno@clisp.org>
7218
7219         rint* tests: More tests.
7220         * tests/test-rint.h: New file, partially extracted from
7221         tests/test-rintl.c.
7222         * tests/test-rint.c: Include test-rint.h.
7223         (main): Invoke test_function.
7224         * tests/test-rintf.c: Include test-rint.h.
7225         (main): Invoke test_function.
7226         * tests/test-rintl.c: Include test-rint.h.
7227         (main): Invoke test_function.
7228         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
7229         (Makefile.am): Add randomd.c to test_rint_SOURCES.
7230         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
7231         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
7232         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
7233         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
7234
7235 2012-03-03  Bruno Haible  <bruno@clisp.org>
7236
7237         modf* tests: More tests.
7238         * tests/test-modf.h: New file.
7239         * tests/test-modf.c: Include <float.h> and test-modf.h.
7240         (main): Invoke test_function.
7241         * tests/test-modff.c: Include <float.h> and test-modf.h.
7242         (main): Invoke test_function.
7243         * tests/test-modfl.c: Include <float.h> and test-modf.h.
7244         (main): Invoke test_function.
7245         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
7246         (Makefile.am): Add randomd.c to test_modf_SOURCES.
7247         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
7248         (Makefile.am): Add randomf.c to test_modff_SOURCES.
7249         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
7250         (Depends-on): Add 'float'.
7251         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
7252
7253 2012-03-03  Bruno Haible  <bruno@clisp.org>
7254
7255         fabs* tests: More tests.
7256         * tests/test-fabs.h: New file, partially extracted from
7257         tests/test-fabsl.c.
7258         * tests/test-fabs.c (RANDOM): New macro.
7259         * tests/test-fabsf.c (RANDOM): New macro.
7260         * tests/test-fabsl.c (RANDOM): New macro.
7261         * modules/fabs-tests (Files): Add tests/randomd.c.
7262         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
7263         * modules/fabsf-tests (Files): Add tests/randomf.c.
7264         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
7265         * modules/fabsl-tests (Files): Add tests/randoml.c.
7266         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
7267
7268 2012-03-03  Bruno Haible  <bruno@clisp.org>
7269
7270         ldexp* tests: More tests.
7271         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
7272         * tests/test-ldexp.c (RANDOM): New macro.
7273         * tests/test-ldexpf.c (RANDOM): New macro.
7274         * tests/test-ldexpl.c (RANDOM): New macro.
7275         * modules/ldexp-tests (Files): Add tests/randomd.c.
7276         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
7277         * modules/ldexpf-tests (Files): Add tests/randomf.c.
7278         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
7279         * modules/ldexpl-tests (Files): Add tests/randoml.c.
7280         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
7281
7282 2012-03-03  Bruno Haible  <bruno@clisp.org>
7283
7284         frexp* tests: More tests.
7285         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
7286         * tests/test-frexp.c (RANDOM): New macro.
7287         * tests/test-frexpf.c (RANDOM): New macro.
7288         * tests/test-frexpl.c (RANDOM): New macro.
7289         * modules/frexp-tests (Files): Add tests/randomd.c.
7290         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
7291         * modules/frexpf-tests (Files): Add tests/randomf.c.
7292         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
7293         * modules/frexpl-tests (Files): Add tests/randoml.c.
7294         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
7295
7296 2012-03-03  Bruno Haible  <bruno@clisp.org>
7297
7298         Support for pseudo-random numbers in tests.
7299         * tests/randomf.c: New file.
7300         * tests/randomd.c: New file.
7301         * tests/randoml.c: New file.
7302         * tests/macros.h (randomf, randomd, randoml): New declarations.
7303
7304 2012-03-03  Bruno Haible  <bruno@clisp.org>
7305
7306         frexp* tests: Refactor.
7307         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
7308         * tests/test-frexp.c: Include and use it.
7309         * tests/test-frexpf.c: Likewise.
7310         * tests/test-frexpl.c: Likewise.
7311         * modules/frexp-tests (Files): Add tests/test-frexp.h.
7312         * modules/frexpf-tests (Files): Likewise.
7313         * modules/frexpl-tests (Files): Likewise.
7314
7315 2012-03-02  Jim Meyering  <meyering@redhat.com>
7316
7317         maint: don't specify XZ_OPT=-9ev in dist-related rule
7318         Using xz's -9 option is warranted only if you have a very large
7319         tarball (see xz's documentation for the sizes vs. presets), and
7320         requires 64MiB of memory at decompression time.
7321         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
7322         Automake's default of just "-e" is fine.  Override on a
7323         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7324
7325 2012-03-01  Eric Blake  <eblake@redhat.com>
7326
7327         maint.mk: allow announcement for non-gnulib project
7328         * maint.mk (announcement): Skip gnulib version if not used.
7329
7330 2012-03-01  Jim Meyering  <meyering@redhat.com>
7331
7332         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7333         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7334         envvar settings cannot interfere.  Otherwise, setting envvars like
7335         prohibit=foo require=bar, etc. would cause spurious test failures.
7336
7337 2012-03-01  Eric Blake  <eblake@redhat.com>
7338
7339         maint.mk: add per-line exclusions to prohibitions
7340         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7341         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7342         (sc_const_long_option): Use it.
7343
7344 2012-03-01  Bruno Haible  <bruno@clisp.org>
7345
7346         Tests for module 'expl-ieee'.
7347         * modules/expl-ieee-tests: New file.
7348         * tests/test-expl-ieee.c: New file.
7349
7350         New module 'expl-ieee'.
7351         * modules/expl-ieee: New file.
7352
7353         Tests for module 'exp-ieee'.
7354         * modules/exp-ieee-tests: New file.
7355         * tests/test-exp-ieee.c: New file.
7356
7357         New module 'exp-ieee'.
7358         * modules/exp-ieee: New file.
7359
7360         Tests for module 'expf-ieee'.
7361         * modules/expf-ieee-tests: New file.
7362         * tests/test-expf-ieee.c: New file.
7363         * tests/test-exp-ieee.h: New file.
7364
7365         New module 'expf-ieee'.
7366         * modules/expf-ieee: New file.
7367
7368 2012-02-29  Bruno Haible  <bruno@clisp.org>
7369
7370         cbrtl-ieee: Work around test failure on IRIX 6.5.
7371         * m4/cbrtl-ieee.m4: New file.
7372         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7373         test whether cbrtl works with a minus zero argument. Replace it if not.
7374         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7376         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7377         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7378         (Depends-on): Update conditions.
7379         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7380         m4/signbit.m4.
7381         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7382         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7383         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7384
7385         Tests for module 'cbrtl-ieee'.
7386         * modules/cbrtl-ieee-tests: New file.
7387         * tests/test-cbrtl-ieee.c: New file.
7388
7389         New module 'cbrtl-ieee'.
7390         * modules/cbrtl-ieee: New file.
7391
7392         Tests for module 'cbrt-ieee'.
7393         * modules/cbrt-ieee-tests: New file.
7394         * tests/test-cbrt-ieee.c: New file.
7395
7396         New module 'cbrt-ieee'.
7397         * modules/cbrt-ieee: New file.
7398
7399         Tests for module 'cbrtf-ieee'.
7400         * modules/cbrtf-ieee-tests: New file.
7401         * tests/test-cbrtf-ieee.c: New file.
7402         * tests/test-cbrt-ieee.h: New file.
7403
7404         New module 'cbrtf-ieee'.
7405         * modules/cbrtf-ieee: New file.
7406
7407 2012-02-29  Bruno Haible  <bruno@clisp.org>
7408
7409         cbrtf: Work around bug in IRIX 6.5 system function.
7410         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7411         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7412         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7413         work.
7414         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7415         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7416         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7417         (Depends-on): Update conditions.
7418         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7419
7420 2012-02-29  Bruno Haible  <bruno@clisp.org>
7421
7422         Tests for module 'cbrtl'.
7423         * modules/cbrtl-tests: New file.
7424         * tests/test-cbrtl.c: New file.
7425
7426         New module 'cbrtl'.
7427         * lib/math.in.h (cbrtl): New declaration.
7428         * lib/cbrtl.c: New file.
7429         * m4/cbrtl.m4: New file.
7430         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7431         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7432         HAVE_DECL_CBRTL.
7433         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7434         HAVE_DECL_CBRTL.
7435         * modules/cbrtl: New file.
7436         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7437         * doc/posix-functions/cbrtl.texi: Mention the new module.
7438
7439 2012-02-29  Bruno Haible  <bruno@clisp.org>
7440
7441         Tests for module 'cbrtf'.
7442         * modules/cbrtf-tests: New file.
7443         * tests/test-cbrtf.c: New file.
7444
7445         New module 'cbrtf'.
7446         * lib/math.in.h (cbrtf): New declaration.
7447         * lib/cbrtf.c: New file.
7448         * m4/cbrtf.m4: New file.
7449         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7450         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7451         HAVE_DECL_CBRTF.
7452         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7453         HAVE_DECL_CBRTF.
7454         * modules/cbrtf: New file.
7455         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7456         * doc/posix-functions/cbrtf.texi: Mention the new module.
7457
7458 2012-02-29  Bruno Haible  <bruno@clisp.org>
7459
7460         cbrt: Provide replacement on MSVC and Minix.
7461         * lib/math.in.h (cbrt): New declaration.
7462         * lib/cbrt.c: New file.
7463         * m4/cbrt.m4: New file.
7464         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7465         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7466         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7467         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7468         (Depends-on): Add dependencies.
7469         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7470         * tests/test-math-c++.cc: Check the declaration of cbrt.
7471         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7472         replacement.
7473
7474 2012-02-29  Bruno Haible  <bruno@clisp.org>
7475
7476         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
7477         * m4/hypotl-ieee.m4: New file.
7478         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
7479         test whether hypotl works with mixed NaN and Infinity arguments.
7480         Replace it if not.
7481         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
7482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
7483         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
7484         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
7485         (Depends-on): Update conditions.
7486         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
7487         (Depends-on): Add hypot-ieee.
7488         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
7489         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
7490
7491         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
7492         * m4/hypotf-ieee.m4: New file.
7493         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
7494         test whether hypotf works with mixed NaN and Infinity arguments.
7495         Replace it if not.
7496         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
7497         (Depends-on): Add hypot-ieee.
7498         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
7499         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
7500
7501         hypot-ieee: Work around test failure on OSF/1 and native Windows.
7502         * lib/math.in.h (hypot): New declaration.
7503         * lib/hypot.c: New file.
7504         * m4/hypot-ieee.m4: New file.
7505         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
7506         whether hypot works with mixed NaN and Infinity arguments. Replace it
7507         if not.
7508         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
7509         REPLACE_HYPOT.
7510         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
7511         * modules/hypot (Files): Add lib/hypot.c.
7512         (Depends-on): Add dependencies.
7513         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
7514         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
7515         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
7516         * tests/test-math-c++.cc: Check the declaration of hypot.
7517         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
7518
7519         Tests for module 'hypotl-ieee'.
7520         * modules/hypotl-ieee-tests: New file.
7521         * tests/test-hypotl-ieee.c: New file.
7522
7523         New module 'hypotl-ieee'.
7524         * modules/hypotl-ieee: New file.
7525
7526         Tests for module 'hypot-ieee'.
7527         * modules/hypot-ieee-tests: New file.
7528         * tests/test-hypot-ieee.c: New file.
7529
7530         New module 'hypot-ieee'.
7531         * modules/hypot-ieee: New file.
7532
7533         Tests for module 'hypotf-ieee'.
7534         * modules/hypotf-ieee-tests: New file.
7535         * tests/test-hypotf-ieee.c: New file.
7536         * tests/test-hypot-ieee.h: New file.
7537
7538         New module 'hypotf-ieee'.
7539         * modules/hypotf-ieee: New file.
7540
7541 2012-02-29  Bruno Haible  <bruno@clisp.org>
7542
7543         Remove unused variables.
7544         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
7545         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7546         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
7547         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7548
7549 2012-02-29  Eric Blake  <eblake@redhat.com>
7550
7551         termios: fix pid_t always, not just for tcgetsid
7552         * doc/posix-headers/termios.texi (termios.h): Mention problem.
7553         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
7554         just when building tcgetsid.
7555
7556 2012-02-29  Bruno Haible  <bruno@clisp.org>
7557
7558         Tests for module 'hypotl'.
7559         * modules/hypotl-tests: New file.
7560         * tests/test-hypotl.c: New file.
7561
7562         New module 'hypotl'.
7563         * lib/math.in.h (hypotl): New declaration.
7564         * lib/hypotl.c: New file.
7565         * m4/hypotl.m4: New file.
7566         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7567         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
7568         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
7569         * modules/hypotl: New file.
7570         * tests/test-math-c++.cc: Check the hypotl declaration.
7571         * doc/posix-functions/hypotl.texi: Mention the new module.
7572
7573 2012-02-29  Eric Blake  <eblake@redhat.com>
7574
7575         tcgetsid: fix cygwin header bug
7576         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
7577
7578         docs: update cygwin progress
7579         * doc/posix-functions/llround.texi (llround): Added in cygwin
7580         1.7.8.
7581         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
7582         * doc/glibc-functions/program_invocation_name.texi
7583         (program_invocation_name): Likewise.
7584         * doc/glibc-functions/program_invocation_short_name.texi
7585         (program_invocation_short_name): Likewise.
7586         * doc/glibc-functions/madvise.texi (madvise): Likewise.
7587         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
7588         Likewise.
7589         * doc/posix-functions/pthread_spin_destroy.texi
7590         (pthread_spin_destroy): Added in cygwin 1.7.10.
7591         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
7592         Likewise.
7593         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
7594         Likewise.
7595         * doc/posix-functions/pthread_spin_trylock.texi
7596         (pthread_spin_trylock): Likewise.
7597         * doc/posix-functions/pthread_spin_unlock.texi
7598         (pthread_spin_unlock): Likewise.
7599         * doc/posix-functions/pthread_setschedprio.texi
7600         (pthread_setschedprio): Likewise.
7601         * doc/posix-functions/pthread_attr_getstack.texi
7602         (pthread_attr_getstack): Likewise.
7603         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
7604         (pthread_attr_getstackaddr): Likewise.
7605         * doc/glibc-functions/pthread_getattr_np.texi
7606         (pthread_getattr_np): Likewise.
7607         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
7608         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
7609         * doc/posix-functions/clock_settime.texi (clock_settime):
7610         Likewise.
7611         * doc/posix-functions/pthread_attr_getguardsize.texi
7612         (pthread_attr_getguardsize): Likewise.
7613         * doc/posix-functions/pthread_attr_setguardsize.texi
7614         (pthread_attr_setguardsize): Likewise.
7615         * doc/posix-functions/pthread_attr_setstack.texi
7616         (pthread_attr_setstack): Likewise.
7617         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
7618         (pthread_attr_setstackaddr): Likewise.
7619         * doc/posix-functions/clock_getcpuclockid.texi
7620         (clock_getcpuclockid): Likewise.
7621         * doc/posix-functions/pthread_getcpuclockid.texi
7622         (pthread_getcpuclockid): Likewise.
7623         * doc/glibc-functions/error.texi (error): Likewise.
7624         * doc/glibc-functions/error_at_line.texi (error_at_line):
7625         Likewise.
7626         * doc/glibc-functions/error_message_count.texi
7627         (error_message_count): Likewise.
7628         * doc/glibc-functions/error_one_per_line.texi
7629         (error_one_per_line): Likewise.
7630         * doc/glibc-functions/error_print_progname.texi
7631         (error_print_progname): Likewise.
7632         * doc/posix-functions/pthread_condattr_getclock.texi
7633         (pthread_condattr_getclock): Likewise.
7634         * doc/posix-functions/pthread_condattr_setclock.texi
7635         (pthread_condattr_setclock): Likewise.
7636         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
7637         Likewise.
7638         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
7639         * doc/glibc-functions/getpt.texi (getpt): Likewise.
7640         * doc/glibc-functions/get_current_dir_name.texi
7641         (get_current_dir_name): Likewise.
7642         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
7643         Likewise.
7644         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
7645         wrong return type.
7646         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
7647         1.7.11.
7648
7649 2012-02-29  Bruno Haible  <bruno@clisp.org>
7650
7651         Tests for module 'hypotf'.
7652         * modules/hypotf-tests: New file.
7653         * tests/test-hypotf.c: New file.
7654
7655         New module 'hypotf'.
7656         * lib/math.in.h (hypotf): New declaration.
7657         * lib/hypotf.c: New file.
7658         * m4/hypotf.m4: New file.
7659         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7660         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
7661         REPLACE_HYPOTF.
7662         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
7663         REPLACE_HYPOTF.
7664         * modules/hypotf: New file.
7665         * tests/test-math-c++.cc: Check the hypotf declaration.
7666         * doc/posix-functions/hypotf.texi: Mention the new module.
7667
7668         hypot: Prepare for hypotf module.
7669         * m4/hypot.m4: New file.
7670         * modules/hypot (Files): Add m4/hypot.m4.
7671         (configure.ac): Invoke gl_FUNC_HYPOT.
7672
7673 2012-02-29  Bruno Haible  <bruno@clisp.org>
7674
7675         hypot tests: More tests.
7676         * tests/test-hypot.c: Include <float.h>.
7677         (main): Add tests about overflow and underflow.
7678
7679 2012-02-29  Bruno Haible  <bruno@clisp.org>
7680
7681         math code: Add comments.
7682         * lib/acosl.c: Add comment about related glibc source files.
7683         * lib/asinl.c: Likewise.
7684         * lib/atanl.c: Likewise.
7685         * lib/expl.c: Likewise.
7686         * lib/logl.c: Likewise.
7687         * lib/sincosl.c: Likewise.
7688         * lib/sinl.c: Likewise.
7689         * lib/tanl.c: Likewise.
7690         * lib/trigl.c: Likewise.
7691         * lib/cosl.c: Likewise. Fix comments.
7692
7693 2012-02-28  Bruno Haible  <bruno@clisp.org>
7694
7695         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
7696         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
7697         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
7698         HUGE_VALL are defined.
7699         (numeric_equald): Renamed from numeric_equal.
7700         (numeric_equalf, numeric_equall): New functions.
7701         (main): Check also HUGE_VALF, HUGE_VALL.
7702         * modules/math-tests (Files): Add tests/macros.h.
7703         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
7704         HUGE_VALL.
7705
7706 2012-02-28  Bruno Haible  <bruno@clisp.org>
7707
7708         doc: Move ISO C11 feature notes into POSIX chapters.
7709         * doc/posix-functions/aligned_alloc.texi: Renamed from
7710         doc/glibc-functions/aligned_alloc.texi.
7711         * doc/posix-functions/quick_exit.texi: Renamed from
7712         doc/glibc-functions/quick_exit.texi.
7713         * doc/posix-headers/uchar.texi: Renamed from
7714         doc/glibc-headers/uchar.texi.
7715         * doc/posix-functions/c16rtomb.texi: Renamed from
7716         doc/glibc-functions/c16rtomb.texi.
7717         * doc/posix-functions/c32rtomb.texi: Renamed from
7718         doc/glibc-functions/c32rtomb.texi.
7719         * doc/posix-functions/mbrtoc16.texi: Renamed from
7720         doc/glibc-functions/mbrtoc16.texi.
7721         * doc/posix-functions/mbrtoc32.texi: Renamed from
7722         doc/glibc-functions/mbrtoc32.texi.
7723         * doc/gnulib.texi: Update.
7724         (Glibc uchar.h): Remove section.
7725         Suggested by Eric Blake.
7726
7727 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
7728
7729         stdnoreturn: port to MSVC better
7730         MSVC standard headers use __declspec(noreturn), so #define noreturn
7731         to empty on that platform.  Reported by Bruno Haible in
7732         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
7733         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
7734         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
7735
7736 2012-02-28  Bruno Haible  <bruno@clisp.org>
7737
7738         doc: Mention new glibc headers and functions.
7739         * doc/glibc-headers/uchar.texi: New file.
7740         * doc/glibc-functions/aligned_alloc.texi: New file.
7741         * doc/glibc-functions/c16rtomb.texi: New file.
7742         * doc/glibc-functions/c32rtomb.texi: New file.
7743         * doc/glibc-functions/clock_adjtime.texi: New file.
7744         * doc/glibc-functions/fanotify_init.texi: New file.
7745         * doc/glibc-functions/fanotify_mark.texi: New file.
7746         * doc/glibc-functions/inet6_opt_append.texi: New file.
7747         * doc/glibc-functions/inet6_opt_find.texi: New file.
7748         * doc/glibc-functions/inet6_opt_finish.texi: New file.
7749         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
7750         * doc/glibc-functions/inet6_opt_init.texi: New file.
7751         * doc/glibc-functions/inet6_opt_next.texi: New file.
7752         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
7753         * doc/glibc-functions/inet6_rth_add.texi: New file.
7754         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
7755         * doc/glibc-functions/inet6_rth_init.texi: New file.
7756         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
7757         * doc/glibc-functions/inet6_rth_segments.texi: New file.
7758         * doc/glibc-functions/inet6_rth_space.texi: New file.
7759         * doc/glibc-functions/login.texi: New file.
7760         * doc/glibc-functions/mbrtoc16.texi: New file.
7761         * doc/glibc-functions/mbrtoc32.texi: New file.
7762         * doc/glibc-functions/name_to_handle_at.texi: New file.
7763         * doc/glibc-functions/ntp_gettimex.texi: New file.
7764         * doc/glibc-functions/open_by_handle_at.texi: New file.
7765         * doc/glibc-functions/prlimit.texi: New file.
7766         * doc/glibc-functions/process_vm_readv.texi: New file.
7767         * doc/glibc-functions/process_vm_writev.texi: New file.
7768         * doc/glibc-functions/recvmmsg.texi: New file.
7769         * doc/glibc-functions/scandirat.texi: New file.
7770         * doc/glibc-functions/sendmmsg.texi: New file.
7771         * doc/glibc-functions/setns.texi: New file.
7772         * doc/glibc-functions/timespec_get.texi: New file.
7773         * doc/gnulib.texi: Include them.
7774         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
7775         sections.
7776         Reported by Eric Blake.
7777
7778 2012-02-28  Bruno Haible  <bruno@clisp.org>
7779
7780         Avoid compilation errors with MSVC option -fp:strict.
7781         * lib/floor.c: Use MSVC specific pragma fenv_access.
7782         * lib/ceil.c: Likewise.
7783         * lib/trunc.c: Likewise.
7784         * lib/round.c: Likewise.
7785         * lib/rint.c: Likewise.
7786         * lib/fma.c: Likewise.
7787         * lib/integer_length.c: Likewise.
7788         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7789         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7790         * tests/test-floor2.c: Likewise.
7791         * tests/test-floorf2.c: Likewise.
7792         * tests/test-ceil2.c: Likewise.
7793         * tests/test-ceilf2.c: Likewise.
7794         * tests/test-trunc2.c: Likewise.
7795         * tests/test-truncf2.c: Likewise.
7796         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7797
7798 2012-02-27  Bruno Haible  <bruno@clisp.org>
7799
7800         Tests for module 'sqrtl-ieee'.
7801         * modules/sqrtl-ieee-tests: New file.
7802         * tests/test-sqrtl-ieee.c: New file.
7803
7804         New module 'sqrtl-ieee'.
7805         * modules/sqrtl-ieee: New file.
7806
7807         Tests for module 'sqrt-ieee'.
7808         * modules/sqrt-ieee-tests: New file.
7809         * tests/test-sqrt-ieee.c: New file.
7810
7811         New module 'sqrt-ieee'.
7812         * modules/sqrt-ieee: New file.
7813
7814         Tests for module 'sqrtf-ieee'.
7815         * modules/sqrtf-ieee-tests: New file.
7816         * tests/test-sqrtf-ieee.c: New file.
7817         * tests/test-sqrt-ieee.h: New file.
7818
7819         New module 'sqrtf-ieee'.
7820         * modules/sqrtf-ieee: New file.
7821
7822 2012-02-27  Bruno Haible  <bruno@clisp.org>
7823
7824         remainderl-ieee: Work around test failure on OSF/1.
7825         * m4/remainderl-ieee.m4: New file.
7826         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
7827         present, test whether remainderl works with a zero second argument.
7828         Replace it if not.
7829         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
7830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
7831         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
7832         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
7833         (Depends-on): Update conditions.
7834         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
7835         (Depends-on): Add remainder-ieee.
7836         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
7837         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
7838         module.
7839
7840         remainderf-ieee: Work around test failure on OSF/1.
7841         * m4/remainderf-ieee.m4: New file.
7842         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
7843         present, test whether remainderf works with a zero second argument.
7844         Replace it if not.
7845         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
7846         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
7847         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
7848         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
7849         (Depends-on): Update conditions.
7850         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
7851         (Depends-on): Add remainder-ieee.
7852         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
7853         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
7854         module.
7855
7856         remainder-ieee: Work around test failure on OSF/1.
7857         * m4/remainder-ieee.m4: New file.
7858         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
7859         present, test whether remainder works with a zero second argument.
7860         Replace it if not.
7861         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
7862         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
7863         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
7864         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
7865         (Depends-on): Update dependencies.
7866         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
7867         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
7868         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
7869
7870         Tests for module 'remainderl-ieee'.
7871         * modules/remainderl-ieee-tests: New file.
7872         * tests/test-remainderl-ieee.c: New file.
7873
7874         New module 'remainderl-ieee'.
7875         * modules/remainderl-ieee: New file.
7876
7877         Tests for module 'remainder-ieee'.
7878         * modules/remainder-ieee-tests: New file.
7879         * tests/test-remainder-ieee.c: New file.
7880
7881         New module 'remainder-ieee'.
7882         * modules/remainder-ieee: New file.
7883
7884         Tests for module 'remainderf-ieee'.
7885         * modules/remainderf-ieee-tests: New file.
7886         * tests/test-remainderf-ieee.c: New file.
7887         * tests/test-remainder-ieee.h: New file.
7888
7889         New module 'remainderf-ieee'.
7890         * modules/remainderf-ieee: New file.
7891
7892 2012-02-27  Bruno Haible  <bruno@clisp.org>
7893
7894         modff, modfl: Fix configure syntax error.
7895         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
7896         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7897
7898 2012-02-27  Bruno Haible  <bruno@clisp.org>
7899
7900         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
7901         * m4/fmodl-ieee.m4: New file.
7902         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
7903         whether fmodl works with zero arguments. Replace it if not.
7904         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
7905         (Depends-on): Add fmod-ieee.
7906         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
7907         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
7908
7909         fmodf-ieee: Work around test failure on OSF/1.
7910         * m4/fmodf-ieee.m4: New file.
7911         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
7912         whether fmodf works with zero arguments. Replace it if not.
7913         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
7914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
7915         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
7916         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
7917         (Depends-on): Update dependencies.
7918         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
7919         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
7920         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
7921
7922         fmodf-ieee: Work around test failure on MSVC 9.
7923         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
7924         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
7925
7926         fmod-ieee: Work around test failures on OSF/1, mingw.
7927         * m4/fmod-ieee.m4: New file.
7928         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
7929         whether fmod works with zero arguments. Replace it if not.
7930         * lib/math.in.h (fmod): New declaration.
7931         * lib/fmod.c: New file.
7932         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
7933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
7934         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
7935         * modules/fmod (Files): Add lib/fmod.c.
7936         (Depends-on): Add math, isinf, trunc, fma.
7937         (configure.ac): Arrange to compile lib/fmod.c if needed.
7938         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
7939         m4/signbit.m4.
7940         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
7941         * tests/test-math-c++.cc: Check the declaration of fmod.
7942         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
7943
7944         fmodl-ieee: Fix test failures.
7945         * lib/fmodl.c (fmodl): Treat Inf specially.
7946         * modules/fmodl (Depends-on): Add isinf.
7947
7948         Tests for module 'fmodl-ieee'.
7949         * modules/fmodl-ieee-tests: New file.
7950         * tests/test-fmodl-ieee.c: New file.
7951
7952         New module 'fmodl-ieee'.
7953         * modules/fmodl-ieee: New file.
7954
7955         Tests for module 'fmod-ieee'.
7956         * modules/fmod-ieee-tests: New file.
7957         * tests/test-fmod-ieee.c: New file.
7958
7959         New module 'fmod-ieee'.
7960         * modules/fmod-ieee: New file.
7961
7962         Tests for module 'fmodf-ieee'.
7963         * modules/fmodf-ieee-tests: New file.
7964         * tests/test-fmodf-ieee.c: New file.
7965         * tests/test-fmod-ieee.h: New file.
7966
7967         New module 'fmodf-ieee'.
7968         * modules/fmodf-ieee: New file.
7969
7970 2012-02-27  Bruno Haible  <bruno@clisp.org>
7971
7972         Tests for module 'rintl-ieee'.
7973         * modules/rintl-ieee-tests: New file.
7974         * tests/test-rintl-ieee.c: New file.
7975
7976         New module 'rintl-ieee'.
7977         * modules/rintl-ieee: New file.
7978
7979         Tests for module 'rint-ieee'.
7980         * modules/rint-ieee-tests: New file.
7981         * tests/test-rint-ieee.c: New file.
7982
7983         New module 'rint-ieee'.
7984         * modules/rint-ieee: New file.
7985
7986         Tests for module 'rintf-ieee'.
7987         * modules/rintf-ieee-tests: New file.
7988         * tests/test-rintf-ieee.c: New file.
7989         * tests/test-rint-ieee.h: New file.
7990
7991         New module 'rintf-ieee'.
7992         * modules/rintf-ieee: New file.
7993
7994 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7995
7996         regex: re_search etc. should return -2 when memory exhausted
7997         This bug was uncovered when testing 'grep'.  Without the fix,
7998         re_search and friends return -1 when memory is exhausted, but -1
7999         means no match, and this causes grep to falsely report no-match
8000         instead of memory-exhaustion.  See
8001         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
8002         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
8003         trouble; this can occur if re_search_internal ran out of memory.
8004
8005 2012-02-26  Bruno Haible  <bruno@clisp.org>
8006
8007         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
8008         * m4/modfl-ieee.m4: New file.
8009         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
8010         whether modfl works with Inf. Replace it if not.
8011         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
8012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
8013         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
8014         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
8015         (Depends-on): Update dependencies.
8016         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
8017         m4/signbit.m4.
8018         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
8019         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
8020
8021         modfl-ieee: Fix dependencies.
8022         * modules/modfl-ieee (Depends-on): Add modf-ieee.
8023
8024         modfl-ieee: Fix test failures.
8025         * lib/modfl.c (modfl): Treat NaN and Inf specially.
8026         * modules/modfl (Depends-on): Add isfinite, isinf.
8027
8028         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
8029         * m4/modff-ieee.m4: New file.
8030         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
8031         whether modff works with NaN and Inf. Replace it if not.
8032         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
8033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
8034         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
8035         * modules/modff (configure.ac): Consider REPLACE_MODFF.
8036         (Depends-on): Update dependencies.
8037         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
8038         m4/signbit.m4.
8039         (Depends-on): Add modf-ieee.
8040         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
8041         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
8042
8043         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
8044         * m4/modf-ieee.m4: New file.
8045         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
8046         whether modf works with NaN and Inf. Replace it if not.
8047         * lib/math.in.h (modf): New declaration.
8048         * lib/modf.c: New file.
8049         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
8050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
8051         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
8052         * modules/modf (Files): Add lib/modf.c.
8053         (Depends-on): Add math, isfinite, trunc, isinf.
8054         (configure.ac): Addrange to compile lib/modf.c if needed.
8055         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
8056         m4/signbit.m4.
8057         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
8058         * tests/test-math-c++.cc: Check the declaration of modf.
8059         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
8060
8061         Tests for module 'modfl-ieee'.
8062         * modules/modfl-ieee-tests: New file.
8063         * tests/test-modfl-ieee.c: New file.
8064
8065         New module 'modfl-ieee'.
8066         * modules/modfl-ieee: New file.
8067
8068         Tests for module 'modf-ieee'.
8069         * modules/modf-ieee-tests: New file.
8070         * tests/test-modf-ieee.c: New file.
8071
8072         New module 'modf-ieee'.
8073         * modules/modf-ieee: New file.
8074
8075         Tests for module 'modff-ieee'.
8076         * modules/modff-ieee-tests: New file.
8077         * tests/test-modff-ieee.c: New file.
8078         * tests/test-modf-ieee.h: New file.
8079
8080         New module 'modff-ieee'.
8081         * modules/modff-ieee: New file.
8082
8083 2012-02-26  Bruno Haible  <bruno@clisp.org>
8084
8085         Tests for module 'fabsl-ieee'.
8086         * modules/fabsl-ieee-tests: New file.
8087         * tests/test-fabsl-ieee.c: New file.
8088
8089         New module 'fabsl-ieee'.
8090         * modules/fabsl-ieee: New file.
8091
8092         Tests for module 'fabs-ieee'.
8093         * modules/fabs-ieee-tests: New file.
8094         * tests/test-fabs-ieee.c: New file.
8095
8096         New module 'fabs-ieee'.
8097         * modules/fabs-ieee: New file.
8098
8099         Tests for module 'fabsf-ieee'.
8100         * modules/fabsf-ieee-tests: New file.
8101         * tests/test-fabsf-ieee.c: New file.
8102         * tests/test-fabs-ieee.h: New file.
8103
8104         New module 'fabsf-ieee'.
8105         * modules/fabsf-ieee: New file.
8106
8107 2012-02-26  Bruno Haible  <bruno@clisp.org>
8108
8109         Tests for module 'fmal-ieee'.
8110         * modules/fmal-ieee-tests: New file.
8111         * tests/test-fmal-ieee.c: New file.
8112
8113         New module 'fmal-ieee'.
8114         * modules/fmal-ieee: New file.
8115
8116         Tests for module 'fma-ieee'.
8117         * modules/fma-ieee-tests: New file.
8118         * tests/test-fma-ieee.c: New file.
8119
8120         New module 'fma-ieee'.
8121         * modules/fma-ieee: New file.
8122
8123         Tests for module 'fmaf-ieee'.
8124         * modules/fmaf-ieee-tests: New file.
8125         * tests/test-fmaf-ieee.c: New file.
8126         * tests/test-fma-ieee.h: New file.
8127
8128         New module 'fmaf-ieee'.
8129         * modules/fmaf-ieee: New file.
8130
8131 2012-02-26  Bruno Haible  <bruno@clisp.org>
8132
8133         Tests for module 'ldexpl-ieee'.
8134         * modules/ldexpl-ieee-tests: New file.
8135         * tests/test-ldexpl-ieee.c: New file.
8136
8137         New module 'ldexpl-ieee'.
8138         * modules/ldexpl-ieee: New file.
8139
8140         Tests for module 'ldexp-ieee'.
8141         * modules/ldexp-ieee-tests: New file.
8142         * tests/test-ldexp-ieee.c: New file.
8143
8144         New module 'ldexp-ieee'.
8145         * modules/ldexp-ieee: New file.
8146
8147         Tests for module 'ldexpf-ieee'.
8148         * modules/ldexpf-ieee-tests: New file.
8149         * tests/test-ldexpf-ieee.c: New file.
8150         * tests/test-ldexp-ieee.h: New file.
8151
8152         New module 'ldexpf-ieee'.
8153         * modules/ldexpf-ieee: New file.
8154
8155 2012-02-26  Bruno Haible  <bruno@clisp.org>
8156
8157         Refactor frexp*-ieee tests.
8158         * tests/test-frexp-ieee.h: New file.
8159         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
8160         (main): Just call test_function.
8161         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
8162         (main): Just call test_function.
8163         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
8164         (main): Just call test_function.
8165         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
8166         * modules/frexp-ieee-tests (Files): Likewise.
8167         * modules/frexpl-ieee-tests (Files): Likewise.
8168
8169         Tests for module 'frexpl-ieee'.
8170         * modules/frexpl-ieee-tests: New file.
8171         * tests/test-frexpl-ieee.c: New file.
8172
8173         New module 'frexpl-ieee'.
8174         * modules/frexpl-ieee: New file.
8175
8176         Tests for module 'frexp-ieee'.
8177         * modules/frexp-ieee-tests: New file.
8178         * tests/test-frexp-ieee.c: New file.
8179
8180         New module 'frexp-ieee'.
8181         * modules/frexp-ieee: New file.
8182
8183         Tests for module 'frexpf-ieee'.
8184         * modules/frexpf-ieee-tests: New file.
8185         * tests/test-frexpf-ieee.c: New file.
8186
8187         New module 'frexpf-ieee'.
8188         * modules/frexpf-ieee: New file.
8189
8190 2012-02-26  Bruno Haible  <bruno@clisp.org>
8191
8192         roundl-ieee tests: More tests.
8193         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8194         (main): Add tests for [MX] shaded specification in POSIX.
8195         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8196         (Depends-on): Add isnanl-nolibm.
8197
8198         round-ieee tests: More tests.
8199         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8200         (main): Add tests for [MX] shaded specification in POSIX.
8201         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8202         (Depends-on): Add isnand-nolibm.
8203
8204         roundf-ieee tests: More tests.
8205         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8206         (main): Add tests for [MX] shaded specification in POSIX.
8207         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8208         (Depends-on): Add isnanf-nolibm.
8209
8210         truncl-ieee tests: More tests.
8211         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8212         (main): Add tests for [MX] shaded specification in POSIX.
8213         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8214         (Depends-on): Add isnanl-nolibm.
8215
8216         trunc-ieee tests: More tests.
8217         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8218         (main): Add tests for [MX] shaded specification in POSIX.
8219         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8220         (Depends-on): Add isnand-nolibm.
8221
8222         truncf-ieee tests: More tests.
8223         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8224         (main): Add tests for [MX] shaded specification in POSIX.
8225         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8226         (Depends-on): Add isnanf-nolibm.
8227
8228         ceill-ieee tests: More tests.
8229         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8230         (main): Add tests for [MX] shaded specification in POSIX.
8231         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8232         (Depends-on): Add isnanl-nolibm.
8233
8234         ceil-ieee tests: More tests.
8235         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8236         (main): Add tests for [MX] shaded specification in POSIX.
8237         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8238         (Depends-on): Add isnand-nolibm.
8239
8240         ceilf-ieee tests: More tests.
8241         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8242         (main): Add tests for [MX] shaded specification in POSIX.
8243         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8244         (Depends-on): Add isnanf-nolibm.
8245
8246         floorl-ieee tests: More tests.
8247         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8248         (main): Add tests for [MX] shaded specification in POSIX.
8249         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8250         (Depends-on): Add isnanl-nolibm.
8251
8252         floor-ieee tests: More tests.
8253         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8254         (main): Add tests for [MX] shaded specification in POSIX.
8255         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8256         (Depends-on): Add isnand-nolibm.
8257
8258         floorf-ieee tests: More tests.
8259         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8260         (main): Add tests for [MX] shaded specification in POSIX.
8261         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8262         (Depends-on): Add isnanf-nolibm.
8263
8264 2012-02-26  Bruno Haible  <bruno@clisp.org>
8265
8266         fpieee: More comments.
8267         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
8268
8269 2012-02-25  Bruno Haible  <bruno@clisp.org>
8270
8271         Tests for module 'log10l'.
8272         * modules/log10l-tests: New file.
8273         * tests/test-log10l.c: New file.
8274         * tests/test-math-c++.cc: Check the declaration of log10l.
8275
8276         New module 'log10l'.
8277         * lib/math.in.h (log10l): New declaration.
8278         * lib/log10l.c: New file.
8279         * m4/log10l.m4: New file.
8280         * modules/log10l: New file.
8281         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
8282         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
8283         HAVE_DECL_LOG10L.
8284         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
8285         HAVE_DECL_LOG10L.
8286         * doc/posix-functions/log10l.texi: Mention the new module.
8287
8288 2012-02-25  Bruno Haible  <bruno@clisp.org>
8289
8290         fmodl, remainder*: Avoid wrong results due to rounding errors.
8291         * lib/fmodl.c (fmodl): Correct the result if it is not within the
8292         expected bounds.
8293         * lib/remainderf.c (remainderf): Likewise.
8294         * lib/remainder.c (remainder): Likewise.
8295         * lib/remainderl.c (remainderl): Likewise.
8296
8297 2012-02-25  Bruno Haible  <bruno@clisp.org>
8298
8299         Tests for module 'remainderl'.
8300         * modules/remainderl-tests: New file.
8301         * tests/test-remainderl.c: New file.
8302         * tests/test-math-c++.cc: Check the declaration of remainderl.
8303
8304         New module 'remainderl'.
8305         * lib/math.in.h (remainderl): New declaration.
8306         * lib/remainderl.c: New file.
8307         * m4/remainderl.m4: New file.
8308         * modules/remainderl: New file.
8309         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
8310         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
8311         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
8312         HAVE_REMAINDERL.
8313         * doc/posix-functions/remainderl.texi: Mention the new module.
8314
8315 2012-02-25  Bruno Haible  <bruno@clisp.org>
8316
8317         Tests for module 'remainderf'.
8318         * modules/remainderf-tests: New file.
8319         * tests/test-remainderf.c: New file.
8320         * tests/test-math-c++.cc: Check the declaration of remainderf.
8321
8322         New module 'remainderf'.
8323         * lib/math.in.h (remainderf): New declaration.
8324         * lib/remainderf.c: New file.
8325         * m4/remainderf.m4: New file.
8326         * modules/remainderf: New file.
8327         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8328         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8329         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8330         HAVE_REMAINDERF.
8331         * doc/posix-functions/remainderf.texi: Mention the new module.
8332
8333 2012-02-25  Bruno Haible  <bruno@clisp.org>
8334
8335         remainder: Support for MSVC.
8336         * lib/math.in.h (remainder): New declaration.
8337         * lib/remainder.c: New file.
8338         * m4/remainder.m4: New file.
8339         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8340         (Depends-on): Add math, round, fma.
8341         (configure.ac): Use results of gl_FUNC_REMAINDER.
8342         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8343         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8344         HAVE_DECL_REMAINDER.
8345         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8346         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8347         * tests/test-math-c++.cc: Check the declaration of remainder.
8348         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8349         problems are fixed.
8350
8351 2012-02-25  Bruno Haible  <bruno@clisp.org>
8352
8353         Tests for module 'fmodl'.
8354         * modules/fmodl-tests: New file.
8355         * tests/test-fmodl.c: New file.
8356         * tests/test-math-c++.cc: Check the declaration of fmodl.
8357
8358         New module 'fmodl'.
8359         * lib/math.in.h (fmodl): New declaration.
8360         * lib/fmodl.c: New file.
8361         * m4/fmodl.m4: New file.
8362         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8363         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8364         REPLACE_FMODL.
8365         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8366         REPLACE_FMODL.
8367         * modules/fmodl: New file.
8368         * doc/posix-functions/fmodl.texi: Mention the new module.
8369
8370 2012-02-25  Bruno Haible  <bruno@clisp.org>
8371
8372         Tests for module 'modfl'.
8373         * modules/modfl-tests: New file.
8374         * tests/test-modfl.c: New file.
8375         * tests/test-math-c++.cc: Check the declaration of modfl.
8376
8377         New module 'modfl'.
8378         * lib/math.in.h (modfl): New declaration.
8379         * lib/modfl.c: New file.
8380         * m4/modfl.m4: New file.
8381         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8382         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8383         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8384         * modules/modfl: New file.
8385         * doc/posix-functions/modfl.texi: Mention the new module.
8386
8387 2012-02-25  Bruno Haible  <bruno@clisp.org>
8388
8389         Tests for module 'fabsl'.
8390         * modules/fabsl-tests: New file.
8391         * tests/test-fabsl.c: New file.
8392         * tests/test-math-c++.cc: Check the declaration of fabsl.
8393
8394         New module 'fabsl'.
8395         * lib/math.in.h (fabsl): New declaration.
8396         * lib/fabsl.c: New file.
8397         * m4/fabsl.m4: New file.
8398         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8399         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8400         REPLACE_FABSL.
8401         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8402         REPLACE_FABSL.
8403         * modules/fabsl: New file.
8404         * doc/posix-functions/fabsl.texi: Mention the new module.
8405
8406 2012-02-25  Bruno Haible  <bruno@clisp.org>
8407
8408         fabs tests: More tests.
8409         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8410         (zero): New variable.
8411         (main): Add tests for signed zero.
8412         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8413
8414         fabsf tests: More tests.
8415         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8416         (zero): New variable.
8417         (main): Add tests for signed zero.
8418         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8419
8420 2012-02-24  Bruno Haible  <bruno@clisp.org>
8421
8422         atanl: Provide function definition on MSVC.
8423         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8424         function pointer.
8425         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8426
8427 2012-02-24  Bruno Haible  <bruno@clisp.org>
8428
8429         acosl: Provide function definition on MSVC.
8430         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8431         function pointer.
8432         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8433
8434 2012-02-24  Bruno Haible  <bruno@clisp.org>
8435
8436         asinl: Provide function definition on MSVC.
8437         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8438         function pointer.
8439         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8440
8441 2012-02-24  Bruno Haible  <bruno@clisp.org>
8442
8443         tanl: Provide function definition on MSVC.
8444         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8445         function pointer.
8446         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8447
8448 2012-02-24  Bruno Haible  <bruno@clisp.org>
8449
8450         cosl: Provide function definition on MSVC.
8451         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8452         function pointer.
8453         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8454
8455 2012-02-24  Bruno Haible  <bruno@clisp.org>
8456
8457         sinl: Provide function definition on MSVC.
8458         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8459         function pointer.
8460         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8461
8462 2012-02-24  Bruno Haible  <bruno@clisp.org>
8463
8464         logl: Provide function definition on MSVC.
8465         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8466         function pointer.
8467         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8468
8469 2012-02-24  Bruno Haible  <bruno@clisp.org>
8470
8471         expl: Provide function definition on MSVC.
8472         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8473         function pointer.
8474         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8475
8476 2012-02-24  Bruno Haible  <bruno@clisp.org>
8477
8478         sqrtl: Provide function definition on MSVC.
8479         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
8480         a function pointer.
8481         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
8482
8483 2012-02-24  Bruno Haible  <bruno@clisp.org>
8484
8485         ceill: Provide function definition on MSVC.
8486         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
8487         used as a function pointer.
8488         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
8489
8490 2012-02-24  Bruno Haible  <bruno@clisp.org>
8491
8492         floorl: Provide function definition on MSVC.
8493         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
8494         used as a function pointer.
8495         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
8496
8497 2012-02-24  Bruno Haible  <bruno@clisp.org>
8498
8499         ceilf: Provide function definition on MSVC.
8500         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
8501         used as a function pointer.
8502         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
8503
8504 2012-02-24  Bruno Haible  <bruno@clisp.org>
8505
8506         floorf: Provide function definition on MSVC.
8507         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
8508         used as a function pointer.
8509         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
8510
8511 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8512
8513         stdnoreturn: new module
8514         This implements a replacement for C11's <stdnoreturn.h>.
8515         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
8516         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
8517         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8518         * tests/test-stdnoreturn.c: New files.
8519
8520 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
8521
8522         regex: fix false multibyte matches in some regular expressions
8523         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
8524         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
8525         * lib/regex_internal.c (re_string_skip_chars):
8526         Fix miscomputation of remain_len that may cause incomplete
8527         multi-byte character and false match.
8528
8529 2012-02-24  Jim Meyering  <meyering@redhat.com>
8530
8531         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
8532         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
8533         uses with "==" *before* the call, e.g., 0 == strcmp (...)
8534         Remove now-unnecessary str''cmp obfuscation.
8535         Suggested by Akim Demaille.
8536
8537 2012-02-24  Bruno Haible  <bruno@clisp.org>
8538
8539         streq: Rename macro.
8540         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
8541         * NEWS: Mention the change.
8542         * lib/mbrtowc.c (mbrtowc): Update.
8543         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
8544         * lib/wcwidth.c (wcwidth): Update.
8545         Suggested by Akim Demaille and Jim Meyering.
8546
8547 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8548
8549         regex: fix typo in definition of MIN
8550         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
8551         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
8552
8553 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8554             Bruno Haible  <bruno@clisp.org>
8555
8556         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
8557         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
8558         entries into a stack-allocated buffer directly.
8559         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
8560
8561 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8562             Bruno Haible  <bruno@clisp.org>
8563
8564         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
8565
8566          - There were several instances of this pattern:
8567
8568              for (;;) {
8569                n = acl (f, GETACLCNT, 0, NULL);
8570                [ allocate an array A of size N ]
8571                if (acl (f, GETACL, n, a) == n)
8572                  break;
8573              }
8574
8575            This loop might never terminate if some other process is constantly
8576            manipulating the file's ACL.  The loop should be rewritten to
8577            terminate.
8578
8579          - The acl (... GETACLNT ...) call is merely an optimization; its value
8580            is merely a hint as to how big to make the array.  A better
8581            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
8582            and just guess a reasonably-big size, growing the size and trying
8583            again if it's not large enough.  This guarantees termination, and
8584            saves a system call.
8585
8586         * lib/acl-internal.h: Include <limits.h>.
8587         (MIN, SIZE_MAX): New macros.
8588         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
8589         a stack-allocated buffer, and use malloc if it does not fit. Don't
8590         use GETACLCNT.
8591         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8592
8593 2012-02-19  Bruno Haible  <bruno@clisp.org>
8594
8595         acl: Fix endless loop on Solaris with vxfs.
8596         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
8597         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
8598         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8599         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
8600         * tests/test-sameacls.c (main)[Solaris]: Likewise.
8601         Reported by Bill Jones in
8602         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
8603
8604 2012-02-19  Bruno Haible  <bruno@clisp.org>
8605
8606         acl: Fix copy-acl test failure on Solaris 11 2011-11.
8607         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
8608         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
8609         that this function returns 0 in some more cases.
8610
8611 2012-02-19  Bruno Haible  <bruno@clisp.org>
8612
8613         acl: Update doc references.
8614         * doc/acl-resources.txt: Update links to Solaris documentation.
8615
8616 2012-02-19  Bruno Haible  <bruno@clisp.org>
8617
8618         Fix test failure in many locales on Solaris 11.
8619         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
8620         'tr' arguments.
8621         * tests/test-pipe-filter-ii1.c (main): Likewise.
8622         * build-aux/bootstrap (check_versions): Run 'tr' command with range
8623         expressions in the C locale.
8624         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8625         * m4/host-os.m4 (gl_HOST_OS): Likewise.
8626
8627 2012-02-19  Bruno Haible  <bruno@clisp.org>
8628
8629         gnulib-tool: Improve usage message.
8630         * gnulib-tool (func_usage): Move doc of --help and --version to the
8631         section "Operation modes".
8632
8633 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
8634
8635         README-release: make it easier to execute commands
8636         * top/README-release: break commands out on to separate lines.
8637
8638 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
8639
8640         GNUmakefile: simplify detection of unconfigured trees
8641         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
8642         whether the tree make is being run from is already configured or
8643         not.  Related simplifications.
8644
8645 2012-02-13  Simon Josefsson  <simon@josefsson.org>
8646
8647         * gnulib-tool (func_usage): Document --help and --version.
8648
8649 2012-02-11  Jim Meyering  <meyering@redhat.com>
8650
8651         bootstrap: don't exit 0 upon gnulib-tool failure
8652         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
8653         its exit status, not 0.
8654
8655 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
8656
8657         README-release: various improvements
8658         * top/README-release: Give a command to push changes for the
8659         release.  Add "distcheck" to list of other pre-release checks.
8660         Fix instance of "make stable" which should be "make TYPE".
8661
8662 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8663
8664         maint: replace FSF snail-mail addresses with URLs
8665         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
8666         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
8667         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
8668         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
8669         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
8670         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
8671         * lib/check-version.c, lib/check-version.h, lib/config.charset:
8672         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
8673         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
8674         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
8675         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
8676         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
8677         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
8678         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
8679         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
8680         * lib/glthread/thread.c, lib/glthread/thread.h:
8681         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
8682         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
8683         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
8684         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
8685         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
8686         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
8687         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
8688         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
8689         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
8690         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
8691         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
8692         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
8693         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
8694         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
8695         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
8696         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
8697         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
8698         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
8699         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
8700         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
8701         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
8702         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
8703         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
8704         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
8705         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
8706         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
8707         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
8708         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
8709         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
8710         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
8711         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
8712         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
8713         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
8714         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
8715         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
8716         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
8717         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
8718         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
8719         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
8720         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
8721         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
8722         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
8723         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
8724         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
8725         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
8726         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
8727         * tests/test-poll.c, tests/test-quotearg-simple.c:
8728         * tests/test-quotearg.c, tests/test-quotearg.h:
8729         * tests/test-round-ieee.c, tests/test-round1.c:
8730         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
8731         * tests/test-roundl-ieee.c, tests/test-roundl.c:
8732         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
8733         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
8734         * tests/test-strerror.c, tests/test-strerror_r.c:
8735         * tests/test-strsignal.c, tests/test-strverscmp.c:
8736         * tests/test-xmemdup0.c:
8737         Replace FSF snail mail addresses with URLs, as per GNU coding
8738         standards.  See glibc bug
8739         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
8740
8741 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8742
8743         README-release: capitalize a word and split a line
8744         * top/README-release: Fix punctuation and spacing.
8745
8746 2012-02-08  Akim Demaille  <demaille@gostai.com>
8747
8748         fatal-signal: use C prototypes (with explicit void).
8749         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
8750         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
8751
8752 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8753
8754         regex: spelling fix
8755         * lib/regexec.c: spelling fix
8756
8757         regex: rely on stdint.h for SIZE_MAX
8758         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
8759
8760 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8761
8762         regex: merge glibc changes
8763
8764         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
8765         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
8766         (init_word_char): Work even if bitset words are not exactly 32 or
8767         64 bits wide.  Don't assume there are no padding bits.
8768         * lib/regex.c [_LIBC]: Do not include <config.h>.
8769         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
8770         and -Wtype-limits.
8771         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
8772         needless disagreement with glibc.  All uses changed.  Define it to
8773         1 only if _GNU_SOURCE, to match glibc.
8774         (_REG_RM_NAME): Remove; no longer needed, since the names in
8775         question are now all protected by __USE_GNU.
8776         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
8777         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
8778         * lib/regex_internal.h (MIN): New macro.
8779
8780         2012-01-03 Ulrich Drepper <drepper@gmail.com>
8781         * lib/regcomp.c (init_word_char): Optimize regex a bit.
8782
8783         2011-12-30 Jakub Jelinek <jakub@redhat.com>
8784         * lib/regex_internal.c (re_string_fetch_byte_case):
8785         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
8786         is miscompiled, and it turns out it is because of an incorrect
8787         attribute on re_string_fetch_byte_case.  Unlike
8788         re_string_peek_byte_case, this one is really not pure, it modifies
8789         memory (increments pstr->cur_idx), and with the pure attribute GCC
8790         assumed it doesn't and it cached the presumed value of
8791         regexp->cur_idx in a variable across the
8792          for (;; ++i)
8793            {
8794              if (i >= BRACKET_NAME_BUF_SIZE)
8795                return REG_EBRACK;
8796              if (token->type == OP_OPEN_CHAR_CLASS)
8797                ch = re_string_fetch_byte_case (regexp);
8798              else
8799                ch = re_string_fetch_byte (regexp);
8800              if (re_string_eoi(regexp))
8801                return REG_EBRACK;
8802              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
8803                break;
8804              elem->opr.name[i] = ch;
8805            }
8806
8807         2011-11-29 Andreas Schwab <schwab@redhat.com>
8808         * lib/regcomp.c (build_equiv_class):
8809         Fix access after end of search string in regex matcher.
8810
8811         2011-11-12 Ulrich Drepper <drepper@redhat.com>
8812         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
8813
8814         2011-10-12 Ulrich Drepper <drepper@redhat.com>
8815         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
8816
8817         2011-10-11 Ulrich Drepper <drepper@redhat.com>
8818         * lib/regcomp.c (parse_branch, parse_sub_exp):
8819         More regex memory leak fixes and tests.
8820         (parse_sub_exp, parse_bracket_exp):
8821         Fix memory leak for some invalid regular expressions.
8822
8823         2011-05-28 Ulrich Drepper <drepper@gmail.com>
8824         * lib/regex_internal.c, lib/regexec.c:
8825         Fix unnecessary overallocation due to incomplete character.  When
8826         incomplete characters are found at the end of a string the code
8827         ran amok and allocated lots of memory.  Stricter limits are now in
8828         place.
8829
8830         2011-05-20 Reuben Thomas <rrt@sc3d.org>
8831         * lib/regex.h: Update documentation.
8832
8833         2011-05-16 Aharon Robbins <arnold@skeeve.com>
8834         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
8835
8836         2010-05-05 Andreas Schwab <schwab@redhat.com>
8837         * lib/regexec.c (find_collation_sequence_value):
8838         Fix lookup of collation sequence value during regexp matching.
8839
8840         2010-01-22 Ulrich Drepper <drepper@redhat.com>
8841         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
8842
8843         2008-01-16 Ulrich Drepper <drepper@redhat.com>
8844         * lib/regex.h: Cleanup namespace.
8845
8846         2007-11-26 Ulrich Drepper <drepper@redhat.com>
8847         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
8848
8849         2007-08-26 Ulrich Drepper <drepper@redhat.com>
8850         * lib/regex_internal.h: Prevent some declarations and definitions
8851         to be seen when used in tests.
8852
8853         2005-05-06 Ulrich Drepper <drepper@redhat.com>
8854         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
8855         __libc_lock_* macros if not _LIBC.
8856         (struct re_dfa_t): Add lock.
8857
8858 2012-02-07  Eric Blake  <eblake@redhat.com>
8859
8860         maint.mk: also prohibit lower-case @var@
8861         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
8862         lower case, like @top_srcdir@.
8863
8864 2012-02-04  Eric Blake  <eblake@redhat.com>
8865
8866         canonicalize: avoid uninitialized memory use
8867         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
8868         random '/' left in dest.
8869         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
8870
8871 2012-02-04  Bruno Haible  <bruno@clisp.org>
8872
8873         isatty: Fix test failure of ptsname_r on native Windows.
8874         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
8875         and don't set errno.
8876         (isatty): Test first whether fd is valid. Set errno when returning 0.
8877
8878 2012-02-04  Bruno Haible  <bruno@clisp.org>
8879
8880         spawn-pipe tests: Fix a NULL program name in a diagnostic.
8881         * tests/test-spawn-pipe-main.c: Include progname.h.
8882         (main): Invoke set_program_name.
8883         * modules/spawn-pipe-tests (Depends-on): Add progname.
8884
8885         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
8886         * tests/test-nonblocking-socket-main.c: Include progname.h.
8887         (main): Invoke set_program_name.
8888         * modules/nonblocking-socket-tests (Depends-on): Add progname.
8889
8890         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
8891         * tests/test-nonblocking-pipe-main.c: Include progname.h.
8892         (main): Invoke set_program_name.
8893         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
8894
8895 2012-02-04  Eric Blake  <eblake@redhat.com>
8896
8897         canonicalize-lgpl: fix // handling
8898         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
8899
8900         canonicalize: fix // handling
8901         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
8902         /// to //, since only // is special.
8903
8904 2012-02-04  Bruno Haible  <bruno@clisp.org>
8905
8906         ioctl: Fix test failure on native Windows.
8907         * lib/ioctl.c: Include msvc-nothrow.h.
8908         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
8909
8910 2012-02-04  Bruno Haible  <bruno@clisp.org>
8911
8912         fsync: Avoid test failure on native Windows.
8913         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
8914         read-only.
8915
8916 2012-02-04  Bruno Haible  <bruno@clisp.org>
8917
8918         sys_select: Avoid syntax error on OpenBSD 5.0.
8919         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
8920         currently being included, just include the system's <sys/select.h>.
8921
8922 2012-02-04  Bruno Haible  <bruno@clisp.org>
8923
8924         sys_select: Avoid syntax error on OpenBSD 5.0.
8925         * lib/sys_select.in.h: Include <signal.h> only after the include_next
8926         <sys/select.h>, not before.
8927         Reported by Jiri B <jirib@devio.us>.
8928
8929 2012-02-04  Bruno Haible  <bruno@clisp.org>
8930
8931         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
8932         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
8933         global variables.
8934         * tests/test-get-rusage-data.c (main): Likewise.
8935         Reported by Jim Meyering.
8936
8937 2012-02-04  Bruno Haible  <bruno@clisp.org>
8938
8939         stdioext: Fix last commit.
8940         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
8941
8942 2012-02-03  Bruno Haible  <bruno@clisp.org>
8943
8944         stdioext: Add tentative support for Plan9.
8945         * lib/stdio-impl.h: Include <errno.h>.
8946         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
8947         * lib/freadable.c (freadable): Likewise.
8948         * lib/fwritable.c (fwritable): Likewise.
8949         * lib/fbufmode.c (fbufmode): Likewise.
8950         * lib/freading.c (freading): Likewise.
8951         * lib/fwriting.c (fwriting): Likewise.
8952         * lib/freadptr.c (freadptr): Likewise.
8953         * lib/freadseek.c (freadptrinc): Likewise.
8954         * lib/freadahead.c (freadahead): Likewise.
8955         * lib/fpurge.c (fpurge): Likewise.
8956         * lib/fseeko.c (rpl_fseeko): Likewise.
8957         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
8958         Reported by Jens Staal <staal1978@gmail.com>.
8959
8960 2012-02-02  Jim Meyering  <meyering@redhat.com>
8961
8962         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
8963         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
8964         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
8965         not even to try to add the attribute.  Instead, add a pragma to suppress
8966         the suggestion/warning.
8967
8968 2012-01-31  Karl Berry  <karl@gnu.org>
8969
8970         setstate doc: typo.
8971         * doc/posix-functions/setstate.texi (setstate): { not (.
8972
8973 2012-01-31  Bruno Haible  <bruno@clisp.org>
8974
8975         popen: Make more robust on Windows.
8976         * lib/popen.c: On native Windows, use the _popen based code even if
8977         HAVE_POPEN is set.
8978         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
8979         environment variable on native Windows.
8980
8981 2012-01-30  Bruno Haible  <bruno@clisp.org>
8982
8983         pclose: Fix typo.
8984         * lib/stdio.in.h (pclose): Fix typo in warning message.
8985
8986 2012-01-30  Bruno Haible  <bruno@clisp.org>
8987
8988         doc about getlogin_r, setstate.
8989         * doc/posix-functions/getlogin_r.texi: List the incompatible
8990         declaration problem under "not fixed by gnulib".
8991         * doc/posix-functions/setstate.texi: Mention incompatible declaration
8992         problem on Solaris 11 and other platforms.
8993
8994 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
8995             Bruno Haible  <bruno@clisp.org>
8996
8997         poll tests: Make test more robust.
8998         * tests/test-poll.c: Include macros.h.
8999         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
9000         return value of various I/O operations.
9001         * modules/poll-tests (Files): Add tests/macros.h.
9002
9003 2012-01-30  Bruno Haible  <bruno@clisp.org>
9004
9005         sys_stat: Fix support for mingw64 and MSVC.
9006         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
9007         header files already do it.
9008         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
9009         stat itself.
9010         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9011
9012 2012-01-30  Bruno Haible  <bruno@clisp.org>
9013
9014         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
9015         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
9016         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
9017
9018 2012-01-29  Bruno Haible  <bruno@clisp.org>
9019
9020         quotearg: Fix test failure on MacOS X 10.5.
9021         * tests/test-quotearg-simple.c: Include localcharset.h.
9022         (main): If the locale encoding is not ASCII, bypass the tests of
9023         locale_quoting_style and clocale_quoting_style.
9024         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
9025
9026 2012-01-29  Jim Meyering  <meyering@redhat.com>
9027
9028         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
9029         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
9030         detect uses of canonicalize_file_name.
9031
9032 2012-01-28  Bruno Haible  <bruno@clisp.org>
9033
9034         test-framework-sh: Fix test failure with AIX 7.1 diff.
9035         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
9036         in column 1, like 'diff -c' does.
9037         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
9038         whether 'diff -u' is used. Instead, test whether the output contains
9039         some '@' character.
9040
9041 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9042
9043         strtoimax: eliminate need for stdint.h, inttypes.h checks
9044         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
9045         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
9046         the prerequisites for a recently-introduced strtoimax test.
9047         I guess this might cause strtoimax to be replaced when not
9048         strictly necessary on older hosts, but this shouldn't introduce
9049         any bugs and it should make Emacs 'configure' faster on typical
9050         modern hosts.  Problem discovered when importing the latest gnulib
9051         to an Emacs test version.
9052         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
9053
9054 2012-01-28  Bruno Haible  <bruno@clisp.org>
9055
9056         sys_time: Override 'struct timeval' on some native Windows platforms.
9057         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
9058         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
9059         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
9060         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
9061         needs to be overridden.
9062         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
9063         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
9064         * tests/test-sys_select.c: Check that the tv_sec member has the same
9065         size as a 'time_t'.
9066         * tests/test-sys_time.c: Likewise.
9067         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
9068         is set, set also REPLACE_GETTIMEOFDAY.
9069         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
9070         convert the resulting 'struct timeval' before returning.
9071         * lib/select.c: Include <sys/time.h>.
9072         (select, timeval): Undefine at the right place.
9073         * modules/select (Depends-on): Add sys_time.
9074         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
9075         some Windows platforms.
9076         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9077
9078 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9079
9080         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
9081         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
9082         an integer.
9083         * lib/fcntl.c (dupfd): Likewise.
9084         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
9085
9086 2012-01-28  Bruno Haible  <bruno@clisp.org>
9087
9088         fcntl: Avoid compilation error on native Windows.
9089         * modules/fcntl (Depends-on): Add 'close'.
9090
9091 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9092
9093         select, poll, isatty: Avoid warnings on x86_64 mingw64.
9094         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
9095         pointer to an integer.
9096         * lib/poll.c (IsConsoleHandle): Likewise.
9097         * lib/isatty.c (IsConsoleHandle): Likewise.
9098
9099 2012-01-28  Jim Meyering  <meyering@redhat.com>
9100
9101         doc: clarify README-release
9102         * top/README-release: Clarify: you should make a point to have
9103         the latest stable versions of build tools in your PATH, and the
9104         reference to buildreq is solely for its list of tool names, not
9105         for its minimal-functional version numbers.
9106         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
9107
9108         maint.mk: use more readable (yet functionally equivalent) quoting
9109         It is common to quote a single quote in a single quoted string like
9110         this:  '...'\''...'.  Unless you know the idiom, that looks like
9111         gibberish, so prefer to double-quote the string when possible.
9112         Then you can use a more readable, lone single quote: "...'..."
9113         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
9114         "don't" is more readable than the equivalent 'don'\''t'.
9115         (sc_cast_of_x_alloc_return_value): Likewise.
9116         (sc_cast_of_alloca_return_value): Likewise.
9117         (sc_makefile_path_separator_check): Similar: use ":" in '...',
9118         rather than '\'':'\''.
9119
9120 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9121
9122         stdalign: relax _Alignof and tighten _Alignas test
9123         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
9124         as it was too strict: alignof must divide offsetof, but it need
9125         not equal offsetof.  Inspired by Joseph S. Myers's comment
9126         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
9127         Conversely, tighten the _Alignas test a bit, as the resulting
9128         alignment must be exactly 8.
9129
9130 2012-01-27  Bruno Haible  <bruno@clisp.org>
9131
9132         stdalign: Document the last change.
9133         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
9134
9135 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9136
9137         stdalign: check that alignof and offsetof are consistent
9138         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
9139         Problem reported for gnulib by Richard W.M. Jones in
9140         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
9141
9142 2012-01-27  Jim Meyering  <meyering@redhat.com>
9143
9144         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
9145         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
9146         convert a sequence with gaps to the minimal containing range.
9147         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
9148         * tests/test-update-copyright.sh: Test for this.
9149         The FSF confirmed it is ok to do this, assuming there is at
9150         least one significant change per year in the affected range:
9151         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
9152
9153 2012-01-26  Bruno Haible  <bruno@clisp.org>
9154
9155         pipe2: refine doc about thread-safety
9156         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
9157         multithread-safety problem.
9158         * doc/glibc-functions/accept4.texi: Likewise.
9159
9160 2012-01-26  Bruno Haible  <bruno@clisp.org>
9161
9162         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
9163         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
9164         In the test program, include <fcntl.h>, for O_RDONLY.
9165
9166 2012-01-26  Eric Blake  <eblake@redhat.com>
9167
9168         pipe2: document lack of thread-safety in replacement
9169         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
9170         issue in replacement.
9171         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9172         Based on a report by Eric Wong.
9173
9174 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9175             Bruno Haible  <bruno@clisp.org>
9176
9177         malloca: Avoid warnings on x86_64 mingw64.
9178         * lib/malloca.c: Include <stdint.h>.
9179         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
9180         * modules/malloca (Depends-on): Add stdint.
9181         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
9182
9183 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9184
9185         obstack: remove __STDC__ conditionals
9186         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
9187         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
9188         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
9189         m4/include_next.m4 as the only gnulib-maintained places that still
9190         refer to __STDC__.
9191
9192 2012-01-24  Bruno Haible  <bruno@clisp.org>
9193
9194         havelib: Modern quoting.
9195         * build-aux/config.rpath: Quote 'like this', not `like this', as per
9196         the recent change to the GNU coding standards.
9197
9198 2012-01-24  Bruno Haible  <bruno@clisp.org>
9199
9200         stdint: Improve support for Android.
9201         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
9202         Reported by Simon Josefsson <simon@josefsson.org>.
9203
9204 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9205
9206         doc: omit trailing empty lines from INSTALL etc.
9207         * doc/Makefile (INSTALL): Omit trailing empty lines.
9208         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
9209         omit trailing empty lines.  This simplifies the build procedure.
9210
9211 2012-01-23  Jim Meyering  <meyering@redhat.com>
9212
9213         tests: avoid spurious warnings about gl_sockets_startup
9214         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
9215         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
9216         reporting a "statement with no effect".
9217         * tests/test-accept.c (main): Mark as "(void)".
9218         * tests/test-accept4.c (main): Likewise.
9219         * tests/test-bind.c (main): Likewise.
9220         * tests/test-connect.c (main): Likewise.
9221         * tests/test-getpeername.c (main): Likewise.
9222         * tests/test-getsockname.c (main): Likewise.
9223         * tests/test-getsockopt.c (main): Likewise.
9224         * tests/test-listen.c (main): Likewise.
9225         * tests/test-recv.c (main): Likewise.
9226         * tests/test-recvfrom.c (main): Likewise.
9227         * tests/test-send.c (main): Likewise.
9228         * tests/test-sendto.c (main): Likewise.
9229         * tests/test-setsockopt.c (main): Likewise.
9230         * tests/test-shutdown.c (main): Likewise.
9231
9232 2012-01-21  Bruno Haible  <bruno@clisp.org>
9233
9234         locale-fr.m4: Fix for Android.
9235         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
9236         failure of the test program on Bionic libc.
9237
9238 2012-01-21  Jim Meyering  <meyering@redhat.com>
9239
9240         bootstrap: fail when bootstrap_post_import_hook fails
9241         Otherwise, it's far too easy to miss diagnostics emitted
9242         between gnulib-tool's output and that of running configure.
9243         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
9244
9245 2012-01-17  Jim Meyering  <meyering@redhat.com>
9246
9247         maint: enable sc_trailing_blank
9248         * build-aux/pmccabe.css: Remove trailing blanks.
9249         * doc/acl-cygwin.txt: Likewise.
9250         * doc/gnu-oids.texi: Likewise
9251         * cfg.mk: Enable sc_trailing_blank.
9252         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
9253
9254 2012-01-17  Jim Meyering  <meyering@redhat.com>
9255
9256         maint: enable sc_prohibit_openat_without_use
9257         * cfg.mk: Enable sc_prohibit_openat_without_use.
9258         Exempt lib/selinux-at.c.
9259
9260 2012-01-17  Jim Meyering  <meyering@redhat.com>
9261
9262         maint: enable sc_prohibit_cloexec_without_use
9263         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
9264         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
9265
9266 2012-01-17  Jim Meyering  <meyering@redhat.com>
9267
9268         maint: enable sc_prohibit_intprops_without_use
9269         * cfg.mk: Enable sc_prohibit_intprops_without_use
9270         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
9271
9272 2012-01-17  Jim Meyering  <meyering@redhat.com>
9273
9274         maint: enable sc_prohibit_hash_pjw_without_use
9275         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
9276         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
9277         to match any use of \<hash_pjw\>, i.e., not necessarily with a
9278         following " (".
9279
9280 2012-01-17  Jim Meyering  <meyering@redhat.com>
9281
9282         maint: enable double-word-prohibiting rule
9283         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
9284         Exempt three files.
9285
9286 2012-01-17  Jim Meyering  <meyering@redhat.com>
9287
9288         maint: remove empty lines at EOF, but excluding modules/*
9289         Apply syntax rules at home as well as abroad.  Most changes
9290         were induced by running this:
9291           make srcdir=. _build-aux=build-aux -f top/maint.mk \
9292             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
9293             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
9294         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
9295         Exempt modules/* and two binary files.
9296         Also exempt doc/INSTALL*, per request from Bruno Haible.
9297         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
9298         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
9299         * doc/Copyright/request-assign.future: Likewise.
9300         * doc/Copyright/request-disclaim.changes: Likewise.
9301         * doc/INSTALL: Likewise.
9302         * doc/INSTALL.ISO: Likewise.
9303         * doc/INSTALL.UTF-8: Likewise.
9304         * doc/acl-cygwin.txt: Likewise.
9305         * doc/acl-resources.txt: Likewise.
9306         * doc/fdl-1.2.texi: Likewise.
9307         * doc/fdl-1.3.texi: Likewise.
9308         * doc/fdl.texi: Likewise.
9309         * lib/argp-pin.c: Likewise.
9310         * lib/round.c: Likewise.
9311         * lib/unicase/u16-totitle.c: Likewise.
9312         * lib/unictype/block_test.c: Likewise.
9313         * lib/uninorm/canonical-decomposition.c: Likewise.
9314         * m4/README: Likewise.
9315         * m4/relocatable-lib.m4: Likewise.
9316         * tests/test-isnand-nolibm.c: Likewise.
9317         * tests/test-isnand.c: Likewise.
9318         * tests/uninorm/NormalizationTest.txt: Likewise.
9319
9320 2012-01-17  Jim Meyering  <meyering@redhat.com>
9321
9322         maint: add framework to run syntax-check rules against gnulib sources
9323         * cfg.mk: New file, to disable all currently-failing tests.
9324         We'll enable them one by one, as they are made to pass.
9325         * Makefile (sc_maint): New rule.
9326
9327 2012-01-21  Bruno Haible  <bruno@clisp.org>
9328
9329         stdint: Add support for Android.
9330         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9331         include the system's <stdint.h>.
9332         Reported by Simon Josefsson <simon@josefsson.org>.
9333
9334 2012-01-19  Jim Meyering  <meyering@redhat.com>
9335
9336         bootstrap: add bootstrap_post_import_hook
9337         Bison does still need something like the gnulib_mk_hook whose
9338         invocation I had to remove along with slurp in commit 767ccd40.
9339         Technically, we could get along without it, but doing so would
9340         have required living with a warning and a mandatory post-bootstrap
9341         automake rerun.
9342         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9343         (bootstrap_post_import_hook): New function.
9344         Invoke it after gnulib-tool --import and before autoreconf.
9345
9346 2012-01-18  Jim Meyering  <meyering@redhat.com>
9347
9348         gitlog-to-changelog: don't use "no_"-prefixed variable name
9349         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9350         to enable both --cluster and --no-cluster.  Change variable name,
9351         s/\$no_cluster/$cluster/, and reverse usage to match.
9352
9353         gitlog-to-changelog: use "||", not "or" in expressions
9354         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9355         expressions.
9356
9357 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9358
9359         gitlog-to-changelog: new option --no-cluster
9360         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9361         clustering of adjacent commit messages.
9362
9363 2012-01-17  Jim Meyering  <meyering@redhat.com>
9364
9365         maint: spell file systems with two words, not one
9366         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9367         two words, not one.
9368
9369 2012-01-16  Jim Meyering  <meyering@redhat.com>
9370
9371         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9372         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9373
9374 2012-01-16  Eric Blake  <eblake@redhat.com>
9375
9376         bootstrap: cater to autoconf 2.59
9377         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9378         is not available.
9379
9380         bootstrap: properly check for libtool
9381         * build-aux/bootstrap (libtoolize): Also run libtool when older
9382         usage is detected.
9383
9384 2012-01-15  Bruno Haible  <bruno@clisp.org>
9385
9386         Improve support for MSVC 9.
9387         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
9388         clashes on MSVC.
9389         * lib/fcntl.in.h: Likewise.
9390         * lib/stdlib.in.h: Likewise.
9391         * lib/sys_stat.in.h: Likewise.
9392
9393 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9394
9395         gnupload: we hold the master copy of this script now
9396         For motivation and more information, see:
9397         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9398         * build-aux/gnupload: Make it clear in the heading comments that the
9399         master copy of this file is maintained by gnulib.  Since we are at
9400         it, bump its copyright year and ...
9401         ($scriptversion): ... the date in its version.
9402         ($usage): Patches and bug reports should be sent to the gnulib list,
9403         not the automake one.
9404         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9405         anymore.
9406
9407 2012-01-15  Bruno Haible  <bruno@clisp.org>
9408
9409         Fix module 'random'.
9410         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9411         initstate, setstate are declared.
9412
9413 2012-01-14  Bruno Haible  <bruno@clisp.org>
9414
9415         Tests for module 'random'.
9416         * modules/random-tests: New file.
9417         * tests/test-random.c: New file, based on tests/test-random_r.c.
9418
9419         New module 'random'.
9420         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9421         declarations.
9422         * lib/random.c: New file, based on glibc/stdlib/random.c.
9423         * m4/random.m4: New file.
9424         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9425         HAVE_RANDOM.
9426         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9427         * modules/random: New file.
9428         * config/srclist.txt: Add an entry for random.c.
9429         * doc/posix-functions/random.texi: Mention the 'random' module.
9430         * doc/posix-functions/initstate.texi: Likewise.
9431         * doc/posix-functions/setstate.texi: Likewise.
9432         * doc/posix-functions/srandom.texi: Likewise.
9433
9434 2012-01-12  Bruno Haible  <bruno@clisp.org>
9435
9436         random_r: Use common idioms.
9437         * lib/random_r.c: Include <stdlib.h> first.
9438
9439         random_r: Override incompatible API on AIX, OSF/1.
9440         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9441         Override the system function if REPLACE_RANDOM_R is 1.
9442         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9443         and OSF/1, set REPLACE_RANDOM_R.
9444         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9445         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9446         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9447         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9448         * doc/glibc-functions/random_r.texi: Likewise.
9449         * doc/glibc-functions/setstate_r.texi: Likewise.
9450
9451         random_r: Support for MSVC 9.
9452         * lib/random_r.c: Include stdint.h, not inttypes.h.
9453
9454 2012-01-12  Eric Blake  <eblake@redhat.com>
9455
9456         inet_ntop: guard extra work by IF_LINT
9457         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9458         better code generation when not checking for warnings.
9459         Suggested by Paul Eggert and Jim Meyering.
9460
9461         strptime: fix regression on mingw
9462         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9463         Fix regression.  Reported by Bruno Haible.
9464
9465 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9466             Bruno Haible  <bruno@clisp.org>
9467
9468         copy-file: add error-code-returning variant.
9469         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9470         (qcopy_file_preserving): New declaration.
9471         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9472         copy_file_preserving. Change return type to 'int'. Don't emit an error
9473         message here.
9474         (copy_file_preserving): New function.
9475         * tests/test-copy-file.c: Include <stdlib.h>.
9476         (main): Test qcopy_file_preserving if the environment variable
9477         NO_STDERR_OUTPUT is set.
9478         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
9479         with NO_STDERR_OUTPUT
9480         * tests/test-copy-file-2.sh: Likewise.
9481
9482 2012-01-10  Bruno Haible  <bruno@clisp.org>
9483
9484         copy-file: Use 'quote' module consistently.
9485         * lib/copy-file.c (copy_file_preserving): Use quote().
9486
9487         copy-file: Refactor.
9488         * lib/copy-file.c: Include quote.h.
9489         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
9490         message here.
9491         * modules/copy-file (Depends-on): Add quote.
9492
9493         acl: Export qcopy_acl.
9494         * lib/acl.h (qcopy_acl): New declaration.
9495         * lib/copy-acl.c (qcopy_acl): Make non-static.
9496
9497         acl: Rename a local variable.
9498         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
9499
9500         acl: Align return values of copy_acl and qcopy_acl.
9501         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
9502         maybe < -1.
9503
9504 2012-01-11  Eric Blake  <eblake@redhat.com>
9505
9506         strptime: silence gcc warnings
9507         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
9508         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
9509         Reported by Daniel P. Berrange.
9510
9511         inet_ntop: silence gcc warning
9512         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
9513         Reported by Daniel P. Berrange.
9514
9515 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
9516
9517         getloadavg test: skip the test on GNU/Linux without /proc mounted
9518         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
9519         file.  When /proc is not mounted, it always fails with ENOENT.
9520         * tests/test-getloadavg.c (main): Treat ENOENT return code from
9521         getloadavg(3) the same way as ENOSYS and ENOTSUP.
9522
9523 2012-01-10  Bruno Haible  <bruno@clisp.org>
9524
9525         regex: Avoid link error on MSVC 9.
9526         * modules/regex (Depends-on): Add wctype.
9527
9528 2012-01-10  Bruno Haible  <bruno@clisp.org>
9529
9530         doc: Mention --with-tests option.
9531         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
9532         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
9533         --with-tests.
9534         Reported by Reuben Thomas.
9535
9536 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
9537
9538         users.txt: order package names lexicographically.
9539         * users.txt: Order package names lexicographically.
9540
9541 2012-01-10  Jim Meyering  <meyering@redhat.com>
9542
9543         maint.mk: fix description in comment
9544         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
9545
9546         ignore-value: remove deprecated ignore_ptr function
9547         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
9548         * NEWS: Note this.
9549
9550 2012-01-09  Jim Meyering  <meyering@redhat.com>
9551
9552         test-init.sh: avoid a subshell
9553         * tests/test-init.sh: Remove protective subshell.
9554         Suggested by Bernhard Voelker.  While a subshell is normally
9555         required to protect against older shells (Solaris, FreeBSD) that
9556         warn about a missing program before performing redirection, the
9557         shell-selection tests performed by init.sh probably exclude any
9558         offending shell.
9559
9560 2012-01-08  Bruno Haible  <bruno@clisp.org>
9561
9562         setlocale tests: Avoid test failure on Solaris 11 2011-11.
9563         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
9564         variable.
9565
9566 2012-01-08  Bruno Haible  <bruno@clisp.org>
9567
9568         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
9569         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9570         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9571         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
9572         macro.
9573         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
9574         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9575         * lib/spawn_faction_addopen.c: Add workaround implementation if
9576         HAVE_WORKING_POSIX_SPAWN.
9577         * modules/spawn (Makefile): Substitute
9578         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9579         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
9580         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
9581         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9582         (Depends-on): Update conditions.
9583         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
9584         the Solaris 11 bug.
9585
9586 2012-01-08  Bruno Haible  <bruno@clisp.org>
9587
9588         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
9589         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9590         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9591         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
9592         macro.
9593         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
9594         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9595         * lib/spawn_faction_adddup2.c: Add workaround implementation if
9596         HAVE_WORKING_POSIX_SPAWN.
9597         * modules/spawn (Makefile): Substitute
9598         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9599         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
9600         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
9601         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9602         (Depends-on): Update conditions.
9603         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9604         the Solaris 11 bug.
9605
9606 2012-01-08  Bruno Haible  <bruno@clisp.org>
9607
9608         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
9609         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9610         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9611         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
9612         HAVE_WORKING_POSIX_SPAWN.
9613         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
9614         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
9615         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9616         * lib/spawn_faction_addclose.c: Add workaround implementation if
9617         HAVE_WORKING_POSIX_SPAWN.
9618         * modules/spawn (Makefile): Substitute
9619         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9620         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
9621         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
9622         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9623         (Depends-on): Update conditions.
9624         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9625         the Solaris 11 bug.
9626
9627 2012-01-08  Bruno Haible  <bruno@clisp.org>
9628
9629         doc: Update for Solaris 11 2011-11.
9630         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
9631         * m4/printf.m4: Update comments.
9632
9633 2012-01-08  Bruno Haible  <bruno@clisp.org>
9634
9635         mktime: Avoid compilation error on Solaris 11.
9636         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
9637
9638 2012-01-08  Bruno Haible  <bruno@clisp.org>
9639
9640         doc: Small fix.
9641         * doc/posix-headers/nl_types.texi: Correct platforms list.
9642
9643 2012-01-08  Simon Josefsson  <simon@josefsson.org>
9644
9645         Add lgpl-3.0 module.
9646         * MODULES.html.sh (Support for building documentation): Add
9647         lgpl-3.0.
9648         * modules/lgpl-3.0: New file.
9649
9650 2012-01-08  Jim Meyering  <meyering@redhat.com>
9651
9652         select.c: indent with spaces, not TABs
9653         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
9654
9655 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9656
9657         quotearg: do not use grave accent for left quote
9658         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
9659         locale_quoting_style.
9660         (quotearg_buffer_restyled): Fix example.
9661         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
9662
9663 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9664
9665         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
9666         Most programs do not have translation catalogs for English and much
9667         less separate catalogs for British and American English.  Drop the
9668         suggestion to translators about these two, and provide it
9669         automatically for Unicode locales.  Like most programs, even those
9670         using American English, we use single quotation marks.  This conflicts
9671         with the American typographic convention, but works better when you
9672         cite the entire error message within double quotes.  It also tries not
9673         to clash with established practice and with what non-gnulib programs
9674         will usually do.
9675         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
9676         using an UTF-8 or GB-18030 locale.  The list of other locales with
9677         quotes was provided by Bruno Haible.
9678         (quotearg_buffer_restyled): Adjust instructions to translators.
9679         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
9680         text, since this would be wrong when using Unicode.
9681         * modules/quotearg: Depend on c-strcaseeq.
9682
9683 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9684
9685         quotearg: fix Wikipedia link
9686         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
9687
9688 2012-01-07  Simon Josefsson  <simon@josefsson.org>
9689
9690         Fix for mingw with MSVC9.
9691         * m4/ld-version-script.m4: Check that compiler rejects version
9692         scripts with syntax errors.  Reported by Bruno Haible
9693         <bruno@clisp.org>.
9694
9695 2012-01-06  Bruno Haible  <bruno@clisp.org>
9696
9697         Talk about "native Windows API", not "Woe32".
9698         * lib/accept4.c: Update comments to mention native Windows.
9699         * lib/execute.c: Likewise.
9700         * lib/fatal-signal.c: Likewise.
9701         * lib/localcharset.c: Likewise.
9702         * lib/nanosleep.c: Likewise.
9703         * lib/nl_langinfo.c: Likewise.
9704         * lib/pclose.c: Likewise.
9705         * lib/pipe-filter-gi.c: Likewise.
9706         * lib/pipe-filter-ii.c: Likewise.
9707         * lib/pipe.c: Likewise.
9708         * lib/pipe2.c: Likewise.
9709         * lib/popen.c: Likewise.
9710         * lib/progreloc.c: Likewise.
9711         * lib/relocatable.c: Likewise.
9712         * lib/sigaction.c: Likewise.
9713         * lib/sigprocmask.c: Likewise.
9714         * lib/spawn-pipe.h: Likewise.
9715         * lib/spawn-pipe.c: Likewise.
9716         * lib/spawni.c: Likewise.
9717         * lib/stat-time.h: Likewise.
9718         * lib/w32spawn.h: Likewise.
9719         * tests/test-isatty.c: Likewise.
9720         * lib/config.charset: More comments.
9721         * doc/gnulib-intro.texi: Mention native Windows.
9722         * doc/posix-functions/_Exit_C99.texi: Likewise.
9723         * doc/posix-headers/fcntl.texi: Likewise.
9724
9725 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
9726
9727         argp: Avoid crash if translator uses % characters in a translation.
9728         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
9729         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9730
9731 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9732
9733         doc: C11 and C++11 are now official
9734         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
9735         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
9736         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
9737         * modules/stdalign:
9738         Replace references to draft C1X to C11, and to draft C++0X to C++11.
9739
9740 2012-01-06  Bruno Haible  <bruno@clisp.org>
9741
9742         uc-is-grapheme-break tests: Tweak.
9743         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
9744         message.
9745
9746 2012-01-06  Bruno Haible  <bruno@clisp.org>
9747
9748         test-init.sh: correct the test for diff -u
9749         * tests/test-init.sh: Also redirect stdout to /dev/null.
9750
9751 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9752
9753         Use ', not `, for quoting output.
9754         * build-aux/announce-gen (usage, sizes, print_news_deltas)
9755         (print_changelog_deltas, get_tool_versions, main program):
9756         * build-aux/git-version-gen:
9757         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
9758         * build-aux/move-if-change (help):
9759         * build-aux/useless-if-before-free (usage, main program):
9760         * check-module (parse_module_file, usage)
9761         (find_included_lib_files, check_module):
9762         * lib/argmatch.c (main) [TEST]:
9763         * lib/argp-help.c (_help):
9764         * lib/getopt1.c (main) [TEST]:
9765         * lib/git-merge-changelog.c (usage):
9766         * lib/xstrtol-error.c (xstrtol_error):
9767         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
9768         * m4/argz.m4 (gl_FUNC_ARGZ):
9769         * m4/bison.m4 (gl_BISON):
9770         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
9771         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
9772         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9773         * m4/fpending.m4 (gl_PREREQ_FPENDING):
9774         * m4/gc-random.m4 (gl_GC_RANDOM):
9775         * m4/intl.m4 (gt_CHECK_DECL):
9776         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
9777         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
9778         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
9779         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
9780         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
9781         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
9782         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
9783         * tests/test-dirname.c (main):
9784         * tests/test-getpass.c (main):
9785         * tests/test-iconvme.c (main):
9786         * tests/test-parse-datetime.c (LOG):
9787         * tests/test-xstrtoimax.sh:
9788         * tests/test-xstrtol.sh:
9789         * tests/test-xstrtoll.sh:
9790         * tests/test-xstrtoumax.sh:
9791         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
9792         * top/GNUmakefile (abort-due-to-no-makefile):
9793         Quote 'like this', not `like this', as per the recent change to
9794         the GNU coding standards.
9795
9796 2012-01-05  Bruno Haible  <bruno@clisp.org>
9797
9798         strtoimax: Don't force a replacement on systems where intmax_t is int.
9799         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
9800         'intmax_t' is not larger than 'int'.
9801         Reported by Pádraig Brady <P@draigBrady.com>.
9802
9803 2012-01-05  Bruno Haible  <bruno@clisp.org>
9804
9805         doc: Mention NetBSD bugs.
9806         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
9807         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
9808
9809 2012-01-05  Bruno Haible  <bruno@clisp.org>
9810
9811         strtoumax tests: Enhance tests.
9812         * tests/test-strtoumax.c (main): Add tests for large values.
9813
9814 2012-01-05  Bruno Haible  <bruno@clisp.org>
9815
9816         strtoimax: Work around AIX 5.1 bug.
9817         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
9818         definition.
9819         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
9820         Set HAVE_STRTOIMAX.
9821         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
9822         REPLACE_STRTOIMAX.
9823         * modules/inttypes-incomplete (Makefile.am): Substitute
9824         REPLACE_STRTOIMAX.
9825         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
9826         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
9827         (Depends-on): Update conditions.
9828         * tests/test-strtoimax.c (main): Add tests for large values.
9829         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
9830
9831 2012-01-05  Bruno Haible  <bruno@clisp.org>
9832
9833         inttypes: Modernize.
9834         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
9835         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
9836         (Makefile.am): Update inttypes.h rule.
9837
9838 2012-01-05  Jim Meyering  <meyering@redhat.com>
9839
9840         init.sh: don't waste a subshell just to redirect stderr
9841         * tests/init.sh: In testing for diff -u and diff -c, use a
9842         stderr-redirecting exec inside `...` rather than a subshell.
9843
9844         test-init.sh: avoid failure on HP-UX 11.00
9845         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
9846         resolves to diff -c or cmp.  Reported by Bruno Haible.
9847
9848 2012-01-05  Bruno Haible  <bruno@clisp.org>
9849
9850         Tests for module 'strtoull'.
9851         * modules/strtoull-tests: New file.
9852         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
9853
9854 2012-01-05  Bruno Haible  <bruno@clisp.org>
9855
9856         Tests for module 'strtoll'.
9857         * modules/strtoll-tests: New file.
9858         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
9859
9860 2012-01-05  Bruno Haible  <bruno@clisp.org>
9861
9862         Tests for module 'strtoul'.
9863         * modules/strtoul-tests: New file.
9864         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
9865
9866 2012-01-05  Bruno Haible  <bruno@clisp.org>
9867
9868         Tests for module 'strtol'.
9869         * modules/strtol-tests: New file.
9870         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
9871
9872 2012-01-04  Jim Meyering  <meyering@redhat.com>
9873
9874         test-init.sh: accommodate Solaris 5.10's different diff -u output
9875         * tests/test-init.sh: Also exempt @@ lines from the comparison
9876         of diff output, since Solaris 5.10 and GNU diff formats differ.
9877         Reported by Stefano Lattarini.
9878
9879 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9880
9881         test-posixtm: don't assume signed integer wraparound
9882         * tests/test-posixtm.c (main): Don't assume wraparound semantics
9883         after signed integer overflow.  Inspired by (though it may not
9884         fix) Bruno Haible's bug report in
9885         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
9886
9887         Spell out "Windows 9x" and "Windows XP".
9888         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
9889         "Windows 9x" and "WinXP" with "Windows XP".
9890
9891 2012-01-04  Jim Meyering  <meyering@redhat.com>
9892
9893         test-vc-list-files-cvs.sh: remove obsolete comment
9894         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
9895         double exit.  Now that's all encapsulated via skip_ and Exit.
9896
9897 2012-01-04  Bruno Haible  <bruno@clisp.org>
9898
9899         Talk about "native Windows API", not "Win32".
9900         * lib/classpath.c: Update comments to mention native Windows.
9901         * lib/csharpexec.c: Likewise.
9902         * lib/dup2.c: Likewise.
9903         * lib/error.c: Likewise.
9904         * lib/fcntl.c: Likewise.
9905         * lib/filename.h: Likewise.
9906         * lib/findprog.c: Likewise.
9907         * lib/get-rusage-as.c: Likewise.
9908         * lib/get-rusage-data.c: Likewise.
9909         * lib/getpagesize.c: Likewise.
9910         * lib/javaexec.c: Likewise.
9911         * lib/msvc-inval.c: Likewise.
9912         * lib/msvc-nothrow.c: Likewise.
9913         * lib/nanosleep.c: Likewise.
9914         * lib/nonblocking.c: Likewise.
9915         * lib/printf-parse.c: Likewise.
9916         * lib/setlocale.c: Likewise.
9917         * lib/sigaction.c: Likewise.
9918         * lib/strerror_r.c: Likewise.
9919         * lib/tmpdir.c: Likewise.
9920         * lib/vasnprintf.c: Likewise.
9921         * lib/w32spawn.h: Likewise.
9922         * lib/waitpid.c: Likewise.
9923         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
9924         * m4/locale-ar.m4: Likewise.
9925         * m4/locale-fr.m4: Likewise.
9926         * m4/locale-ja.m4: Likewise.
9927         * m4/locale-tr.m4: Likewise.
9928         * m4/locale-zh.m4: Likewise.
9929         * m4/printf.m4: Likewise.
9930         * tests/test-cloexec.c: Likewise.
9931         * tests/test-copy-acl.sh: Likewise.
9932         * tests/test-copy-file.sh: Likewise.
9933         * tests/test-file-has-acl.sh: Likewise.
9934         * tests/test-set-mode-acl.sh: Likewise.
9935         * tests/test-dup-safer.c: Likewise.
9936         * tests/test-dup2.c: Likewise.
9937         * tests/test-dup3.c: Likewise.
9938         * tests/test-fcntl.c: Likewise.
9939         * tests/test-nonblocking-pipe.h: Likewise.
9940         * tests/test-nonblocking-socket.h: Likewise.
9941         * tests/test-pipe.c: Likewise.
9942         * tests/test-pipe2.c: Likewise.
9943         * tests/test-spawn-pipe-child.c: Likewise.
9944         * doc/acl-resources.txt: Likewise.
9945         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9946         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
9947         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
9948         * lib/localcharset.c: Update comments to mention native Windows.
9949         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9950         * lib/localename.c: Likewise.
9951         * lib/progreloc.c: Likewise.
9952         * lib/relocatable.c: Likewise.
9953         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9954         (windows_compute_revents): Renamed from win32_compute_revents.
9955         (windows_compute_revents_socket): Renamed from
9956         win32_compute_revents_socket.
9957         * lib/select.c: Update comments to mention native Windows.
9958         (windows_poll_handle): Renamed from win32_poll_handle.
9959         * m4/threadlib.m4: Update comments to mention native Windows.
9960         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
9961         --enable-threads=windows instead of --enable-threads=win32. Set
9962         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
9963         * lib/glthread/lock.h: Update comments to mention native Windows.
9964         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
9965         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
9966         USE_WIN32_THREADS.
9967         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
9968         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
9969         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
9970         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
9971         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
9972         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
9973         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
9974         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
9975         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
9976         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
9977         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
9978         * tests/test-tls.c: Likewise.
9979         Rationale:
9980         Microsoft renamed the "Win32 API" to "Windows API", as it is available
9981         on both 32-bit and 64-bit Windows systems.
9982         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
9983         line of distinction is between "native Windows" on one side and Unix/
9984         POSIX systems on the other side. More details in
9985         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
9986         Suggested by Paul Eggert.
9987
9988 2012-01-03  Bruno Haible  <bruno@clisp.org>
9989
9990         isatty: Support for MSVC 9.
9991         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
9992         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
9993         (_isatty_nothrow): New function.
9994         (isatty): Use it instead of _isatty.
9995         (IsConsoleHandle): Add comment, from Paolo Bonzini.
9996         * lib/poll.c (IsConsoleHandle): Likewise.
9997         * lib/select.c (IsConsoleHandle): Likewise.
9998         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
9999         (gl_PREREQ_ISATTY): New macro.
10000         * modules/isatty (Depends-on): Add msvc-inval.
10001         (configure.ac): Invoke gl_PREREQ_ISATTY.
10002
10003 2012-01-03  Jim Meyering  <meyering@redhat.com>
10004
10005         maint.mk: remove temporary transition aid from over 1.5 years ago
10006         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
10007         purpose was to aid in the transition (avoiding silent malfunction)
10008         from that old name to the new _sc_search_regexp.  This shim was
10009         added by commit 219c504b.
10010
10011         init.sh: do not try to accommodate compare arguments starting with "-"
10012         * tests/init.sh (compare_dev_null_): Do not try to accommodate
10013         compare arguments that start with "-".  Besides, we do not worry
10014         about this when invoking diff or cmp; why start now with sed?
10015         Using "--" to separate options from argument would trigger sed
10016         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
10017         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
10018
10019 2012-01-02  Bruno Haible  <bruno@clisp.org>
10020
10021         Enhance tests for module 'isatty'.
10022         * modules/isatty-tests (Depends-on): Add pipe-posix.
10023         * tests/test-isatty.c: Include <fcntl.h>.
10024         (DEV_NULL): New macro.
10025         (main): Test the resut of isatty() also on regular files, pipes, and
10026         /dev/null.
10027
10028         New module 'isatty'.
10029         * lib/unistd.in.h (isatty): New declaration.
10030         * lib/isatty.c: New file, based on an idea of
10031         Bastien Roucariès <roucaries.bastien@gmail.com>.
10032         * m4/isatty.m4: New file.
10033         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
10034         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
10035         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
10036         REPLACE_ISATTY.
10037         * modules/isatty: New file.
10038         * doc/posix-functions/isatty.texi: Mention the new module.
10039         Suggested by Paolo Bonzini.
10040
10041 2012-01-02  Bruno Haible  <bruno@clisp.org>
10042
10043         canonicalize: Tweak 2011-12-29 commit.
10044         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
10045         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
10046
10047 2012-01-02  Jim Meyering  <meyering@redhat.com>
10048
10049         gitlog-to-changelog: describe input syntax in --help output
10050         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
10051
10052         gitlog-to-changelog: fix typo in --help: show backslash before email @
10053         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
10054         in sources, but not in actual output.
10055
10056 2011-12-30  Jim Meyering  <meyering@redhat.com>
10057
10058         gitlog-to-changelog: don't malfunction when name contains %-directive
10059         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
10060         in a name string cause trouble.  E.g., with a user name of "%s",
10061         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
10062
10063 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
10064
10065         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
10066         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
10067         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
10068         the "  (tiny change)" notation that is appended to the standard
10069         ChangeLog "date  name  email" header line.
10070
10071 2012-01-01  Jim Meyering  <meyering@redhat.com>
10072
10073         test-framework-sh: init.sh: fix "make dist" failure
10074         When using gnulib-tool's --with-tests option and any module that
10075         depends on test-framework-sh, "make dist" would fail due to the
10076         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
10077         in the gltests directory, and not in the gllib/ directory.
10078         One way to work around that is to move the EXTRA_DIST += init.sh
10079         from the primary module to the -tests one:
10080         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
10081         * modules/test-framework-sh (Makefile.am): ...not here.
10082         Reported by Tom G. Christensen in
10083         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
10084
10085         version-etc: update copyright year reported by --version
10086         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
10087
10088 2011-12-31  Pádraig Brady  <P@draigBrady.com>
10089
10090         canonicalize: only stat() if required
10091         * lib/canonicalize.c (canonicalize_filename_mode):
10092         Avoid calling l?stat() when both CAN_MISSING,
10093         and CAN_NOLINKS are set, as we neither need
10094         to resolve symlinks or test component existence.
10095
10096 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10097
10098         doc: cover st_ino issues once; add OpenVMS etc.
10099         * doc/posix-functions/stat.texi (stat):
10100         * doc/posix-functions/lstat.texi (lstat):
10101         * doc/posix-functions/fstatat.texi (fstatat):
10102         * doc/posix-functions/fstat.texi (fstat):
10103         Move general 'struct stat' stuff to sys_stat.texi,
10104         leaving behind a pointer.
10105         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10106         Merge duplicate info about 'struct stat' problems into here.
10107         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
10108         and suggest partial workarounds.
10109
10110         same-inode: port to OpenVMS
10111         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
10112         three st_ino values.
10113
10114 2011-12-30  Pádraig Brady  <P@draigBrady.com>
10115
10116         canonicalize: fix references to stat() and lstat()
10117         * lib/canonicalize.c (canonicalize_filename_mode):
10118         Ensure references always resolve to a replacement
10119         function if required (even via a macro).
10120
10121 2011-12-30  Jim Meyering  <meyering@redhat.com>
10122
10123         gitlog-to-changelog: remove a little duplication
10124         * build-aux/gitlog-to-changelog (main): Grep @lines once,
10125         rather than twice.
10126
10127 2011-12-29  Pádraig Brady  <P@draigBrady.com>
10128
10129         canonicalize: add support for not resolving symlinks
10130         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
10131         indicate we don't want to follow symlinks.  Also
10132         provide CAN_MODE_MASK to aid setting these existing
10133         mutually exclusive values.
10134         * lib/canonicalize.c (canonicalize_filename_mode):
10135         Extract the flags from can_mode parameter, which
10136         are currently just used to select between stat()
10137         and lstat().  Also ensure that mutually exclusive
10138         values are flagged immediately as invalid.
10139         * tests/test-canonicalize.c: Verify symlinks are
10140         not followed, and that invalid flag combinations
10141         are diagnosed.
10142
10143 2011-12-25  Jim Meyering  <meyering@redhat.com>
10144
10145         gitlog-to-changelog: do not clump multi-paragraph entries
10146         Identical header lines (date,name,email+coauthors) are suppressed,
10147         thus putting all entries with those same characteristics under
10148         a single header.  However, when a log entry consists of two or
10149         more paragraphs, it may not be clear where it starts and ends.
10150         This change makes it so that such an entry is always separated
10151         from others by a header line, even when that header would
10152         otherwise be suppressed.
10153         * build-aux/gitlog-to-changelog: Implement the above.
10154         Inspired by a related request from Stefano Lattarini in
10155         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
10156
10157 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10158
10159         announce-gen: fix `cmd' typo in diagnostic
10160         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
10161         diagnostic: a missing '$' meant that the command was not output.
10162
10163 2011-12-23  Jim Meyering  <meyering@redhat.com>
10164
10165         test-framework-sh: distribute init.sh
10166         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
10167         Otherwise, "make -C gnulib-tests check" (at least in grep) would
10168         fail due to the lack of init.sh.
10169
10170         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
10171         * modules/atexit-tests: Rather than listing tests/init.sh,
10172         now that there's a module for it, simply depend on that new module.
10173         * modules/closein-tests: Likewise.
10174         * modules/exclude-tests: Likewise.
10175         * modules/getcwd-tests: Likewise.
10176         * modules/perror-tests: Likewise.
10177         * modules/pread-tests: Likewise.
10178         * modules/pwrite-tests: Likewise.
10179         * modules/vc-list-files-tests: Likewise.
10180         * modules/verify-tests: Likewise.
10181         * modules/xalloc-die-tests: Likewise.
10182         * modules/xstrtoimax-tests: Likewise.
10183         * modules/xstrtol-tests: Likewise.
10184         * modules/xstrtoll-tests: Likewise.
10185         * modules/xstrtoumax-tests: Likewise.
10186         * modules/yesno-tests: Likewise.
10187
10188 2011-12-22  Jim Meyering  <meyering@redhat.com>
10189
10190         test-framework-sh: add minimal tests of init.sh's compare function
10191         * modules/test-framework-sh-tests: New file.
10192         * tests/test-init.sh: New file.
10193
10194         test-framework-sh: new module
10195         * modules/test-framework-sh: New file.
10196         * MODULES.html.sh (Support for maintaining and releasing projects):
10197         List it.
10198
10199         init.sh: do not emit simulated diff output to stderr
10200         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
10201
10202 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
10203
10204         .gitignore: ignore gnulib.dvi and regex.info
10205         * doc/.gitignore:add gnulib.dvi and regex.info
10206
10207 2011-12-22  Jim Meyering  <meyering@redhat.com>
10208
10209         init.sh: correct previous change
10210         * tests/init.sh (compare): My previous change was wrong.
10211         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
10212
10213         init.sh: avoid unwarranted test failure when using "set -e"
10214         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
10215         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
10216         a use like "compare exp out" would get evoke an unconditional failure.
10217
10218 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
10219
10220         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
10221         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
10222         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
10223         autoreconf that did not.
10224         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
10225         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10226
10227 2011-12-17  Jim Meyering  <meyering@redhat.com>
10228
10229         bootstrap: remove some now-unneeded code
10230         This script arose back when gnulib-tool was young.
10231         Since then, it has seen improvements that render much of this
10232         script unnecessary.  In particular, it can now make symlinks
10233         to the files it uses.  Also, I no longer see as much value in
10234         marking files as read-only via comments.
10235         If you relied on the symlink-creation feature of the preceding
10236         version of this script, you can get most of that functionality
10237         by adding the --symlink option to the definition of
10238         gnulib_tool_option_extras in your bootstrap.conf file.
10239         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
10240         Run autopoint and libtoolize *before* gnulib-tool.
10241         After it, run an abbreviated autoreconf, rather than a loop around
10242         all tools.
10243         (slirp, bt_mark_as_generated): Remove functions.
10244
10245 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10246
10247         ftoastr: fix typo
10248         * lib/ftoastr.h: Fix misspelling in comment.
10249
10250 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
10251
10252         * top/README-release: fix punctuation.
10253
10254 2011-12-17  Jim Meyering  <meyering@redhat.com>
10255
10256         bootstrap: correct the recent buildreq change
10257         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
10258         had no effect.
10259         * build-aux/bootstrap (buildreq): Bracket each search term with
10260         "*...*", so that the shell "case" statement works as intended.
10261         Add comments.
10262
10263 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
10264
10265         build: let bootstrap resort to wget when downloading .po files
10266         * build-aux/bootstrap (download_po_files): Fallback to wget when
10267         downloading the .po files via rsync fails.  This is necessary to
10268         bootstrap from behind a strict firewall.
10269
10270 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10271
10272         stdint: don't assume C++11 when compiling with g++
10273         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
10274         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
10275         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
10276         work also in C++ before C++11, as that improperly inhibits
10277         generating a substitute stdint.h for that case.
10278
10279 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10280
10281         alloca: protect comment from gnulib-tool
10282         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
10283         that gnulib-tool doesn't think it's a license, and munge it to
10284         say "GCC version 3".
10285
10286 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
10287
10288         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
10289         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
10290         $(abs_top_builddir) instead of $(top_builddir).
10291
10292 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
10293
10294         strftime-tests: also test nanoseconds
10295         * tests/test-strftime.c (T): Add a test of %N.
10296
10297 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
10298
10299         inttypes, stdint: add C++11 support
10300         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
10301         when including inttypes.h and stdint.h.  Support this change to
10302         the standard.
10303         * doc/posix-headers/inttypes.texi (inttypes.h):
10304         * doc/posix-headers/stdint.texi (stdint.h): Document this.
10305         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
10306         Define if not defined already, for the benefit of pre-C++11 hosts.
10307         Define the standard format macros (e.g., PRId8) always.
10308         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
10309         Likewise, if __cpluspus.  Define the standard constant and limit
10310         macros (e.g., INT8_C, INT8_MAX) always.
10311         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
10312         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
10313         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
10314         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
10315         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
10316         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
10317         Likewise.
10318
10319 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10320
10321         nonblocking tests: Fix test failure on Linux/PPC.
10322         Suggested by Prerna Saxena in
10323         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10324         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10325         Set to 1100000.
10326
10327 2011-12-12  Jim Meyering  <meyering@redhat.com>
10328
10329         argmatch: don't hard-code `' when listing valid option arguments
10330         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10331         use the quote function to add quotes.  Use fputs rather than
10332         fprintf for the format string with no format directive.
10333
10334 2011-12-07  Eric Blake  <eblake@redhat.com>
10335
10336         bootstrap: detect tools required by gnulib-tool
10337         * build-aux/bootstrap (buildreq): Provide minimum implicit
10338         dependencies.
10339         * DEPENDENCIES: Mention patch as a prereq.
10340
10341 2011-12-04  Bruno Haible  <bruno@clisp.org>
10342
10343         sethostname: Port to Windows platforms.
10344         * lib/sethostname.c: Provide an alternate implementation for Windows
10345         platforms.
10346         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10347         (main): Skip the test if sethostname() fails with EPERM. On Windows
10348         platforms, don't check the result of gethostname().
10349
10350 2011-12-04  Bruno Haible  <bruno@clisp.org>
10351             Jim Meyering  <meyering@redhat.com>
10352
10353         tests: Avoid spurious error message on platforms without mktemp program.
10354         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10355
10356 2011-12-04  Bruno Haible  <bruno@clisp.org>
10357
10358         sethostname: Fix documentation.
10359         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10360         "not fixed" section.
10361
10362 2011-12-03  Bruno Haible  <bruno@clisp.org>
10363
10364         gnulib-tool: Verify that the License field is present and non-empty.
10365         * gnulib-tool (func_get_license_raw): New function, extracted from
10366         func_get_license.
10367         (func_get_license): Use it. Warn if the module is not a test module and
10368         has no license.
10369         Suggested by Jim Meyering.
10370
10371 2011-12-03  Bruno Haible  <bruno@clisp.org>
10372
10373         sethostname tests: Fix link error on mingw.
10374         * tests/test-sethostname1.c: New file, extracted from
10375         tests/test-sethostname.c.
10376         * tests/test-sethostname2.c: New file, extracted from
10377         tests/test-sethostname.c.
10378         * tests/test-sethostname.c: Remove file.
10379         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10380         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10381         (Depends-on): Add gethostname.
10382         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10383         Link the latter with $(GETHOSTNAME_LIB).
10384
10385         sethostname tests: Fix compilation error on mingw.
10386         * tests/test-sethostname.c: Don't include <sys/types.h>.
10387         (geteuid): Use a dummy value without uid_t.
10388         * modules/sethostname-tests (Depends-on): Remove sys_types.
10389
10390         sethostname tests: Avoid a gcc warning.
10391         * tests/test-sethostname.c (main): Remove an unused variable.
10392
10393         Tweak last commit.
10394         * modules/sethostname-tests (Files): Sort by decreasing importance.
10395         (configure.ac): Check for geteuid.
10396         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10397         the test when there's nothing to test. Drop an unnecessary cast.
10398         Improve an error message. Verify that the final sethostname() call
10399         succeeds.
10400
10401 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10402
10403         Add a test suite for the sethostname module.
10404         * modules/sethostname-tests: New file.  A test program
10405         for the sethostname module.
10406         * tests/test-sethostname.c: Likewise.
10407
10408 2011-12-03  Bruno Haible  <bruno@clisp.org>
10409
10410         Tweak last commit.
10411         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10412         Fix preprocessor directives indentation. Fix typos.
10413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10414         * modules/unistd (Makefile): Likewise.
10415
10416 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10417
10418         Integrate the sethostname module into unistd.
10419         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10420         into the unistd.h header.
10421         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10422         preprocessor directives.
10423         * modules/unistd: Setup the Makefile substitutions of the
10424         SETHOSTNAME preprocessor directives.
10425
10426 2011-12-03  Bruno Haible  <bruno@clisp.org>
10427
10428         Tweak last commit.
10429         * lib/sethostname.c: Don't include <string.h>.
10430         (sethostname): No need to copy the argument string to the stack. Don't
10431         call clearerr. Preserve errno when fprintf failed.
10432         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10433         Don't invoke AC_REPLACE_FUNCS.
10434         * modules/sethostname (Link): Remove empty section.
10435         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10436         failure problem.
10437
10438 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10439
10440         New module 'sethostname'.
10441         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10442         for systems that lack it.
10443         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10444         sethostname declaration and function.
10445         * modules/sethostname: New file.  Define the sethostname module.
10446
10447 2011-12-03  Bruno Haible  <bruno@clisp.org>
10448
10449         Tweak last commit.
10450         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10451
10452 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10453
10454         Split the HOST_NAME_MAX detection into a separate m4 macro.
10455         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10456         macro so it can be used by the pending sethostname module.
10457
10458 2011-12-03  Bruno Haible  <bruno@clisp.org>
10459
10460         Fix module descriptions syntax.
10461         * modules/argv-iter (License): Fix syntax.
10462         * modules/di-set (License): Likewise.
10463         * modules/ino-map (License): Likewise.
10464         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10465
10466 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10467
10468         stdalign: port to Clang 3.0
10469         Problem reported by Simon Josefsson in
10470         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10471         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10472         which has <stdalign.h> but which does not define alignof.
10473         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10474
10475 2011-12-01  Eric Blake  <eblake@redhat.com>
10476
10477         mktempd: silence dd usage
10478         * build-aux/mktempd (rand_bytes): Silence dd.
10479
10480 2011-11-30  Simon Josefsson  <simon@josefsson.org>
10481
10482         manywarnings: Don't mention gcc version in docstring.
10483         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
10484         Jim Meyering <meyering@redhat.com>.
10485
10486 2011-11-30  Jim Meyering  <meyering@redhat.com>
10487
10488         hash: mark a few floating point constants with "f" suffix
10489         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
10490         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
10491         floating point constants with "f", since they're destined to be
10492         saved/used as "float"s.
10493
10494 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
10495
10496         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
10497         * tests/test-float.c (test_long_double): Correct and re-enable the
10498         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
10499
10500 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
10501
10502         Avoid subtracting two pointers that don't point into the same block.
10503         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
10504         only pointers into the same memory block are subtracted. We cannot
10505         assume that sizeof (ptrdiff_t) == sizeof (void *).
10506
10507 2011-11-29  Eric Blake  <eblake@redhat.com>
10508
10509         maint.mk: add syntax check for use of compare from init.sh
10510         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
10511         moved here from coreutils.
10512
10513         manywarnings: drop -Wunsuffixed-float-constants
10514         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
10515         '1.0D', which is the only way to silence this warning for 'double'.
10516
10517 2011-11-29  Jim Meyering  <meyering@redhat.com>
10518
10519         hash: mark compute_bucket_size with the pure attribute
10520         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
10521
10522         quotearg, propername: correct pragma guard expression
10523         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
10524         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
10525
10526 2011-11-28  Jim Meyering  <meyering@redhat.com>
10527
10528         propername: do not mark proper_name with the const attribute
10529         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
10530         since it examines data pointed to by its parameter.
10531         * lib/propername.c (proper_name): Instead, add a pragma to suppress
10532         the suggestion from -Wsuggest-attribute=const.
10533
10534         propername: mark one more function as const
10535         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
10536
10537 2011-11-27  Jim Meyering  <meyering@redhat.com>
10538
10539         mark functions with const and pure attributes
10540
10541         Mark functions per suggestions from gcc-4.6 when using these options:
10542         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
10543         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
10544         Follow these guidelines: when possible, apply the attribute to
10545         an extern declaration, not to its definition.  Apply it to the
10546         definition only when the definition is static.
10547         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
10548         * lib/argv-iter.h (argv_iter_n_args): Likewise.
10549         * lib/base64.h (isbase64): Likewise.
10550         * lib/basename-lgpl.c (last_component, base_len): Likewise.
10551         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
10552         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
10553         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
10554         (c_tolower, c_toupper): Likewise.
10555         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
10556         * lib/chdir-long.c (find_non_slash): Likewise.
10557         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
10558         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
10559         * lib/file-type.h (file_type): Likewise.
10560         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
10561         * lib/filevercmp.c (verrevcmp): Likewise.
10562         * lib/freadahead.h (freadahead): Likewise.
10563         * lib/fts.c (fts_maxarglen): Likewise.
10564         * lib/hash-pjw.h (hash_pjw): Likewise.
10565         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
10566         * lib/hash.c (is_prime, next_prime): Likewise.
10567         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
10568         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
10569         (hash_table_ok, hash_get_first, hash_string): Likewise.
10570         (compute_bucket_size): Likewise.
10571         * lib/i-ring.h (i_ring_empty): Likewise.
10572         * lib/isnan.c (isnanl): Likewise.
10573         * lib/math.h (isnanl, rpl_isnanl): Likewise.
10574         * lib/memcasecmp.h (memcasecmp): Likewise.
10575         * lib/memchr2.h (memchr2): Likewise.
10576         * lib/memcmp2.h (memcmp2): Likewise.
10577         * lib/parse-datetime.y (lookup_zone): Likewise.
10578         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
10579         [!WINDOWS_SOCKETS]: Likewise.
10580         * lib/strnlen1.h (strnlen1): Likewise.
10581         * lib/uniwidth.in.h (uc_width): Likewise.
10582         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
10583         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
10584         (quoting_options_from_style): Add a comment.
10585         * lib/propername.h (proper_name): Add a comment.
10586
10587 2011-11-27  Bruno Haible  <bruno@clisp.org>
10588
10589         Remove unused macros from !_LIBC code in glibc-borrowed files.
10590         * lib/fnmatch.c (STRCOLL): Remove macro.
10591         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
10592         * lib/glob.c (__stat, __readdir64): Remove macros.
10593         * lib/tempname.c (__open64, __xstat64): Remove macros.
10594         Suggested by Paul Eggert.
10595
10596 2011-11-27  Bruno Haible  <bruno@clisp.org>
10597
10598         getcwd: Fix link error on MSVC 9.
10599         * modules/getcwd (Depends-on): Add readdir, rewinddir.
10600
10601 2011-11-27  Bruno Haible  <bruno@clisp.org>
10602
10603         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
10604         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
10605         HAVE_OPENDIR is 0.
10606         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
10607         HAVE_CLOSEDIR is 0.
10608         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
10609         is 0.
10610         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
10611
10612 2011-11-27  Bruno Haible  <bruno@clisp.org>
10613
10614         getcwd: Fix bug from 2011-08-17.
10615         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
10616         platforms that need it.
10617         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
10618         code of 4 to be a failure, not a success. This ensures that
10619         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
10620
10621 2011-11-27  Bruno Haible  <bruno@clisp.org>
10622
10623         binary-io tests: Avoid test failure on mingw when libtool is used.
10624         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
10625         Don't verify the size of t-bin-out1.tmp here.
10626         * tests/test-binary-io.sh: Verify it here.
10627         Reported by Simon Josefsson.
10628
10629 2011-11-26  Bruno Haible  <bruno@clisp.org>
10630
10631         Fix conflict between two instantiations of module 'unistd'.
10632         * gnulib-tool (func_emit_autoconf_snippet): Substitute
10633         ${include_guard_prefix} also in the autoconf snippet.
10634         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
10635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
10636         GNULIB_UNISTD_H_GETOPT.
10637         * modules/getopt-posix (configure.ac): Set the
10638         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
10639         * modules/getopt-gnu (configure.ac): Likewise.
10640         * modules/unistd (Makefile.am): Change the substitution value of
10641         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
10642         Reported by Simon Josefsson.
10643
10644 2011-11-25  Bruno Haible  <bruno@clisp.org>
10645
10646         pagealign_alloc: Doc and comments.
10647         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
10648         module.
10649         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
10650
10651 2011-11-25  Jim Meyering  <meyering@redhat.com>
10652
10653         test-update-copyright.sh: avoid false-positive failure
10654         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
10655         around false positive failure on Cygwin/Windows.  The latter was
10656         matching erroneously-created files with names like
10657         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
10658
10659 2011-11-25  Simon Josefsson  <simon@josefsson.org>
10660
10661         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
10662         * m4/valgrind-tests.m4: Check that the parameters that will be
10663         used works, not just a subset of them.  Reported by Bruno Haible
10664         <bruno@clisp.org>.
10665
10666 2011-11-24  Jim Meyering  <meyering@redhat.com>
10667
10668         test-stdalign.c: comment out long double tests
10669         * tests/test-stdalign.c: Don't try to reduce alignment of long double
10670         variables.  That provokes errors like this from gcc-4.7.0 20111124:
10671         error: '_Alignas' specifiers cannot reduce alignment of \
10672         'static_longdouble_alignas'.
10673
10674 2011-11-22  Jim Meyering  <meyering@redhat.com>
10675
10676         init.sh: make "compare /dev/null FILE" output more readable
10677         * tests/init.sh (compare_): Document the preferred order of arguments.
10678         (emit_diff_u_header_): New function.
10679         (compare_dev_null_): Emit a simulated diff, rather than just the
10680         contents of the unexpected file.  Suggestion from Bruno Haible.
10681
10682 2011-11-21  Jim Meyering  <meyering@redhat.com>
10683             Eric Blake  <eblake@redhat.com>
10684
10685         init.sh: work around OSF/1 5.1's mishandling of /dev/null
10686         * tests/init.sh: Make our compare function slightly more portable.
10687         Reported by Bruno Haible in
10688         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
10689
10690 2011-11-21  Simon Josefsson  <simon@josefsson.org>
10691
10692         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
10693         before using it, in code that ends up in config.h.
10694
10695 2011-11-20  Bruno Haible  <bruno@clisp.org>
10696
10697         getcwd: Work around getcwd bug on AIX 5..7.
10698         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
10699         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
10700         Use a different value for gl_cv_func_getcwd_path_max. Move the
10701         definition of HAVE_PARTLY_WORKING_GETCWD from here...
10702         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
10703         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
10704         Define HAVE_MINIMALLY_WORKING_GETCWD.
10705         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
10706         where it is not even minimally working, that is, on AIX.
10707         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
10708         m4/getcwd-path-max.m4.
10709         (main): Update exit code computation.
10710         * doc/posix-functions/getcwd.texi: Mention list of platforms where
10711         getcwd does not handle long file names.
10712
10713 2011-11-20  Bruno Haible  <bruno@clisp.org>
10714
10715         getcwd: Fix bug from 2009-09-10.
10716         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
10717         like "no".
10718
10719 2011-11-20  Simon Josefsson  <simon@josefsson.org>
10720
10721         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
10722
10723 2011-11-20  Bruno Haible  <bruno@clisp.org>
10724
10725         fma tests: Avoid shadowing local variables.
10726         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
10727         expected.
10728
10729 2011-11-20  Bruno Haible  <bruno@clisp.org>
10730
10731         copysignf tests: Fix.
10732         * tests/test-copysignf.c: Fix signature check.
10733
10734 2011-11-20  Bruno Haible  <bruno@clisp.org>
10735
10736         fma: Remove unused code.
10737         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
10738         unused macros.
10739
10740 2011-11-20  Bruno Haible  <bruno@clisp.org>
10741
10742         sethostname: Fix doc about AIX.
10743         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
10744         sethostname; it has it.
10745
10746         sethostname: Mention more portability problems.
10747         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
10748         problem.
10749         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
10750
10751 2011-11-19  Bruno Haible  <bruno@clisp.org>
10752
10753         Depend on module fcntl-h when AT_FDCWD is used.
10754         * modules/utimens (Depends-on): Add fcntl-h.
10755         * modules/areadlinkat (Depends-on): Likewise.
10756         * modules/areadlinkat-with-size (Depends-on): Likewise.
10757         * modules/faccessat (Depends-on): Likewise.
10758         * modules/fchmodat (Depends-on): Likewise.
10759         * modules/fchownat (Depends-on): Likewise.
10760         * modules/getcwd (Depends-on): Likewise.
10761         * modules/mkdirat (Depends-on): Likewise.
10762         * modules/mkfifoat (Depends-on): Likewise.
10763         * modules/readlinkat (Depends-on): Likewise.
10764         * modules/symlinkat (Depends-on): Likewise.
10765         * modules/dup2-tests (Depends-on): Likewise.
10766         * modules/fdutimensat-tests (Depends-on): Likewise.
10767         * modules/futimens-tests (Depends-on): Likewise.
10768
10769 2011-11-19  Bruno Haible  <bruno@clisp.org>
10770
10771         euidaccess: Update a comment.
10772         * lib/euidaccess.c: Update comment about platforms with faccessat.
10773
10774 2011-11-19  Bruno Haible  <bruno@clisp.org>
10775
10776         openat: Fix file list.
10777         * modules/openat (Files): Remove lib/at-func.c.
10778
10779 2011-11-19  Bruno Haible  <bruno@clisp.org>
10780
10781         fstatat: Simplify.
10782         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
10783         gnulib should define rpl_fstatat, there is a
10784         "#define fstatat rpl_fstatat" in <sys/stat.h>.
10785
10786 2011-11-19  Bruno Haible  <bruno@clisp.org>
10787
10788         Ensure 'inline' can be used in tests/test-utimens-common.h.
10789         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
10790         * modules/futimens-tests (configure.ac): Likewise.
10791         * modules/utimens-tests (configure.ac): Likewise.
10792         * modules/utimensat-tests (configure.ac): Likewise.
10793
10794 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10795
10796         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
10797         not hash_insert0.
10798         (hash_insert_if_absent): Doc fix.
10799
10800 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10801
10802         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
10803
10804 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10805
10806         test-getcwd: disambiguate exit status
10807         * tests/test-getcwd.c (test_long_name): Return 0..7.
10808         (main): Exit with an unambiguous exit status.  The old
10809         code yielded a mysterious mixture of two failure codes.
10810
10811         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
10812         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
10813         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
10814         rpl_fstatat or fstatat.  This should fix the other problem
10815         reported by Kai Habel in
10816         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10817         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
10818         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
10819         and I reproduced it on a Solaris 8 host we still have in production.
10820
10821 2011-11-18  Jim Meyering  <meyering@redhat.com>
10822
10823         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
10824         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
10825         Add a sentence to the comment.
10826         (hash_insert0): New function that simply calls hash_insert_if_absent.
10827         * lib/hash.h (hash_insert_if_absent): Declare it.
10828         (hash_insert0): Add deprecation attribute.
10829         (_GL_ATTRIBUTE_DEPRECATED): Define.
10830         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
10831         not hash_insert0.
10832         * NEWS: Mention it, even though it's not really an incompatible change.
10833
10834 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
10835
10836         openat: avoid compilation failure due to lack of <errno.h> inclusion
10837         * lib/openat.c: Include <errno.h>.
10838
10839 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10840
10841         * modules/getcwd (Depends-on): Add fdopendir.
10842         This fixes one of the two problems reported by Kai Habel in
10843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10844
10845         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
10846         stdalign problem reported by Ian Beckwith in
10847         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
10848         * modules/crypto/gc-arcfour (Depends-on):
10849         Depend conditionally on crypto/arcfour.
10850         * modules/crypto/gc-arctwo (Depends-on):
10851         Depend conditionally on crypto/arctwo.
10852         * modules/crypto/gc-des (Depends-on):
10853         Depend conditionally on crypto/des.
10854         * modules/crypto/gc-hmac-md5 (Depends-on):
10855         Depend conditionally on crypto/hmac-md5.
10856         * modules/crypto/gc-hmac-sha1 (Depends-on):
10857         Depend conditionally on crypto/hmac-sha1.
10858         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
10859         * modules/crypto/gc-md4 (Depends-on):
10860         Depend conditionally on crypto/md4.
10861         * modules/crypto/gc-md5 (Depends-on):
10862         Depend conditionally on crypto/md5.
10863         * modules/crypto/gc-rijndael (Depends-on):
10864         Depend conditionally on crypto/rijndael.
10865         * modules/crypto/gc-sha1 (Depends-on):
10866         Depend conditionally on crypto/sha1.
10867         * modules/crypto/gc-arcfour:
10868         * modules/crypto/gc-arctwo:
10869         * modules/crypto/gc-des:
10870         * modules/crypto/gc-hmac-md5:
10871         * modules/crypto/gc-hmac-sha1:
10872         * modules/crypto/gc-md2:
10873         * modules/crypto/gc-md4:
10874         * modules/crypto/gc-md5:
10875         * modules/crypto/gc-rijndael:
10876         * modules/crypto/gc-sha1:
10877         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
10878         now that the conditional dependencies do the work for us.
10879
10880 2011-11-17  Jim Meyering  <meyering@redhat.com>
10881
10882         tests: factor st_ctime-comparison out of two headers
10883         * tests/test-utimens-common.h (ctime_compare): Define.
10884         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
10885         * tests/test-lutimens.h (test_lutimens): Likewise.
10886         * tests/test-utimens.h (test_utimens): Likewise.
10887
10888         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
10889         Invoke the test program via an init.sh-using wrapper.
10890         * tests/test-getcwd.sh: New file.
10891         * modules/getcwd-tests (Files): Add it.
10892         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
10893
10894 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
10895
10896         gitlog-to-changelog: support multi-author commits.
10897         The FSF cares about keeping track of all authors of patches to its
10898         projects, but Git doesn't provide obvious support for multi-author
10899         changesets. Consensus seems to be forming around the use of extra
10900         Signed-off-by inspired lines in the log message formatted as
10901         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
10902         multi-author commits between version control systems.
10903         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
10904         log message and output in standard ChangeLog multi-author format.
10905         Reported by Peter Rosin <peda@lysator.liu.se>
10906
10907 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
10908             Bruno Haible  <bruno@clisp.org>
10909
10910         Fix some modules' file list.
10911         * modules/fstatat (Files): Add m4/lstat.m4.
10912         * modules/openat (Files): Likewise.
10913         * modules/unlinkat (Files): Likewise.
10914
10915 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
10916
10917         maint.mk: fix tight-scope.mk generation in VPATH builds.
10918         * top/maint.mk (tight-scope.mk): Make sure to prefix file
10919         reference with $(srcdir) so that the file is found correctly even
10920         when running `make syntax-check' in a VPATH build.
10921
10922 2011-11-13  Bruno Haible  <bruno@clisp.org>
10923             Jim Meyering  <meyering@redhat.com>
10924
10925         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
10926         * tests/init.sh (compare): Remove "No differences encountered" or
10927         synonymous output from the 'diff' program.
10928
10929 2011-11-13  Bruno Haible  <bruno@clisp.org>
10930
10931         Makefile: Tweak indentation.
10932         * Makefile: Use tab as first character in every line that contains rule
10933         commands.
10934
10935 2011-11-13  Bruno Haible  <bruno@clisp.org>
10936
10937         Syntax check for copyright statements.
10938         * check-copyright: New file.
10939         * Makefile (sc_check_copyright): New rule.
10940
10941 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10942
10943         * build-aux/git-version-gen: Add --prefix to configure the tag
10944         match string.
10945
10946 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10947
10948         * build-aux/git-version-gen: Add --help and --version.
10949
10950 2011-11-12  Jim Meyering  <meyering@redhat.com>
10951
10952         revamp the other test-exclude?.sh scripts to use init.sh, too
10953         * tests/test-exclude1.sh: Use init.sh.
10954         * tests/test-exclude2.sh: Likewise.
10955         * tests/test-exclude3.sh: Likewise.
10956         * tests/test-exclude4.sh: Likewise.
10957         * tests/test-exclude5.sh: Likewise.
10958         * tests/test-exclude6.sh: Likewise.
10959         * tests/test-exclude7.sh: Likewise.
10960         * tests/test-exclude8.sh: Likewise.
10961         * modules/exclude-tests (Files): List init.sh.
10962
10963         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
10964         These shell scripts ignored failure of the binary test-exclude,
10965         so making the latter return 77 didn't cause them to be skipped.
10966         * tests/test-exclude5.sh: Exit with test-exclude's error status
10967         when that program fails.  Revamp to use init.sh.
10968         * tests/test-exclude2.sh: Likewise.
10969
10970         test-exclude: fix a typo
10971         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
10972
10973 2011-11-11  Bruno Haible  <bruno@clisp.org>
10974
10975         obstack: Fix compilation error on MSVC 9.
10976         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
10977
10978 2011-11-11  Jim Meyering  <meyering@redhat.com>
10979
10980         test-exclude: skip tests rather than failing on deficient systems
10981         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
10982         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
10983         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
10984         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
10985
10986 2011-11-10  Bruno Haible  <bruno@clisp.org>
10987
10988         ptsname_r test: Avoid gcc warning on glibc systems.
10989         * tests/test-ptsname_r.c (null_ptr): New function.
10990         (test_errors): Use it.
10991
10992 2011-11-10  Bruno Haible  <bruno@clisp.org>
10993
10994         ptsname_r: Avoid compilation error on OSF/1 5.1.
10995         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
10996         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
10997         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
10998         function is not declared or incompatibly declared.
10999         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
11000         * modules/ptsname_r (Depends-on, configure.ac): Update.
11001         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
11002
11003 2011-11-10  Bruno Haible  <bruno@clisp.org>
11004
11005         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
11006         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
11007         When cross-compiling, guess yes on all platforms except AIX.
11008         Reported by Ludovic Courtès <ludo@gnu.org>.
11009
11010 2011-11-09  Bruno Haible  <bruno@clisp.org>
11011
11012         ptsname_r tests: Fix bugs.
11013         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
11014         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
11015
11016 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11017
11018         fstatat: work with cross-compilation
11019         Problem reported by Ludovic Courtès in
11020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
11021         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
11022         "cross-compiling" and assume the bug is present.  Replace
11023         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
11024         an inverted sense, to be more conservative about our assumptions.
11025         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
11026
11027 2011-11-09  Bruno Haible  <bruno@clisp.org>
11028
11029         Improve MODULES.html output.
11030         * modules/mkfifoat (Description): Use the word "function".
11031         * modules/readlinkat (Description): Likewise.
11032         * modules/symlinkat (Description): Likewise.
11033
11034 2011-11-09  Eric Blake  <eblake@redhat.com>
11035
11036         ptsname_r-tests: new test module
11037         * modules/ptsname_r-tests: New module.
11038         * tests/test-ptsname_r.c: New file.
11039
11040         ptsname_r: new module
11041         * modules/ptsname_r: New module.
11042         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
11043         * lib/ptsname.c (__ptsname_r): Split...
11044         * lib/ptsname_r.c: ...into new file.
11045         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11046         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
11047         * modules/stdlib (Makefile.am): Substitute witnesses.
11048         * lib/stdlib.in.h (ptsname_r): Declare it.
11049         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
11050         * MODULES.html.sh (Misc): Likewise.
11051         * modules/ptsname (Depends-on): Alter dependency.
11052         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
11053
11054 2011-11-09  Jim Meyering  <meyering@redhat.com>
11055
11056         announce-gen: be more concise when there's only one URL+tarball
11057         * build-aux/announce-gen (get_tool_versions): When you distribute
11058         only one type of tarball, combine the first two "Here are..."
11059         sections and make the key-checking grammar independent of
11060         how many tarballs there are.
11061
11062 2011-11-09  Eric Blake  <eblake@redhat.com>
11063
11064         openpty: provide a stub on mingw
11065         * lib/pty.in.h (includes): Provide forward declarations.
11066         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
11067
11068         raise: fix mingw handling of SIGPIPE
11069         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
11070
11071 2011-11-08  Bruno Haible  <bruno@clisp.org>
11072
11073         More conditional dependencies.
11074         * modules/faccessat (Depends-on): Add conditions.
11075         * modules/fchmodat (Depends-on): Likewise.
11076         * modules/fchownat (Depends-on): Likewise.
11077         * modules/fstatat (Depends-on): Likewise.
11078         * modules/mkfifoat (Depends-on): Likewise.
11079         * modules/readlinkat (Depends-on): Likewise.
11080         * modules/symlinkat (Depends-on): Likewise.
11081         * modules/unlinkat (Depends-on): Likewise.
11082         * modules/utimensat (Depends-on): Likewise.
11083         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
11084         * modules/linkat (Depends-on): Refine the conditions.
11085         * modules/renameat (Depends-on): Likewise.
11086
11087 2011-11-08  Bruno Haible  <bruno@clisp.org>
11088
11089         faccessat: Move AC_LIBOBJ invocation to module description.
11090         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
11091         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
11092         invocation from here...
11093         * modules/faccessat (configure.ac): ... to here. Invoke
11094         gl_PREREQ_FACCESSAT.
11095
11096 2011-11-08  Bruno Haible  <bruno@clisp.org>
11097
11098         faccessat: Simplify autoconf macro.
11099         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
11100         gl_FUNC_EUIDACCESS.
11101
11102 2011-11-08  Bruno Haible  <bruno@clisp.org>
11103
11104         renameat: Fix dependencies.
11105         * modules/renameat (Depends-on): Add stdbool.
11106
11107 2011-11-08  Bruno Haible  <bruno@clisp.org>
11108
11109         mkfifoat: Fix module description.
11110         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
11111         not gl_UNISTD_MODULE_INDICATOR.
11112
11113 2011-11-08  Bruno Haible  <bruno@clisp.org>
11114
11115         fstatat: Remove unused dependency.
11116         * modules/fstatat (Depends-on): Remove fstat.
11117
11118 2011-11-08  Simon Josefsson  <simon@josefsson.org>
11119
11120         GNUmakefile: behave when Makefile is missing.
11121         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
11122
11123 2011-11-08  Bruno Haible  <bruno@clisp.org>
11124
11125         openat: Conditionalize dependencies.
11126         * lib/openat.c: Reduce the scope of some #includes.
11127         * modules/openat (Depends-on): Add conditions.
11128
11129 2011-11-07  Jim Meyering  <meyering@redhat.com>
11130
11131         maint.mk: extract GPG key ID without using a temporary file
11132         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
11133         without using a temporary file.  Based on a suggestion from Werner Koch
11134         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
11135
11136 2011-11-07  Eric Blake  <eblake@redhat.com>
11137
11138         grantpt: fix typo
11139         * lib/stdlib.in.h (grantpt): Check correct function.
11140
11141         maint.mk: silence new syntax check
11142         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
11143
11144 2011-11-06  Bruno Haible  <bruno@clisp.org>
11145
11146         Doc about floating-point and math API.
11147         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
11148         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
11149
11150 2011-11-06  Bruno Haible  <bruno@clisp.org>
11151
11152         stdalign tests: Skip the test when compiled by Sun C.
11153         * tests/test-stdalign.c (main): Skip the test on Sun C.
11154
11155 2011-11-06  Bruno Haible  <bruno@clisp.org>
11156
11157         ansi-c++-opt: Complete the 2011-06-05 change.
11158         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
11159         does not support namespaces, set the variable to "no", not to ":".
11160
11161 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11162
11163         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
11164
11165 2011-11-06  Bruno Haible  <bruno@clisp.org>
11166
11167         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
11168         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
11169         (minus_zerol) [HP-UX]: New macro.
11170         (unary_minus) [HP-UX]: New function.
11171         (copysignl) [HP-UX]: Use unary_minus function.
11172
11173 2011-11-06  Bruno Haible  <bruno@clisp.org>
11174
11175         ldexp, ldexpf, ldexpl: Enhance tests.
11176         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
11177         and tests/test-ldexpl.c.
11178         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
11179         LDEXP, MIN_EXP, MAX_EXP): New macros.
11180         Include test-ldexp.h.
11181         (main): Just call test_function.
11182         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
11183         infinity.h, nan.h.
11184         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11185         MAX_EXP): New macros.
11186         Include test-ldexp.h.
11187         (x, y): Remove variables.
11188         (main): Just call test_function.
11189         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
11190         infinity.h, nan.h.
11191         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11192         MAX_EXP): New macros.
11193         Include test-ldexp.h.
11194         (x, y): Remove variables.
11195         (main): Just call test_function.
11196         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
11197         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
11198         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11199         (Depends-on): Add isnand-nolibm, signbit, float.
11200         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
11201         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11202         (Depends-on): Add isnanf-nolibm, signbit, float.
11203
11204 2011-11-06  Bruno Haible  <bruno@clisp.org>
11205
11206         math tests: Cosmetics.
11207         * tests/test-math-c++.cc: Reorder declarations.
11208
11209 2011-11-05  Bruno Haible  <bruno@clisp.org>
11210
11211         fma*: Simplify test.
11212         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
11213         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
11214
11215         Tests for module 'fmal'.
11216         * modules/fmal-tests: New file.
11217         * tests/test-fmal1.c: New file.
11218         * tests/test-fmal2.c: New file.
11219
11220         New module 'fmal'.
11221         * lib/math.in.h (fmal): New declaration.
11222         * lib/fmal.c: New file.
11223         * m4/fmal.m4: New file.
11224         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
11225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
11226         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
11227         REPLACE_FMAL.
11228         * modules/fmal: New file.
11229         * doc/posix-functions/fmal.texi: Mention the new module and the various
11230         bugs.
11231
11232         Tests for module 'fmaf'.
11233         * modules/fmaf-tests: New file.
11234         * tests/test-fmaf1.c: New file.
11235         * tests/test-fmaf2.c: New file.
11236
11237         New module 'fmaf'.
11238         * lib/math.in.h (fmaf): New declaration.
11239         * lib/fmaf.c: New file.
11240         * m4/fmaf.m4: New file.
11241         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
11242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
11243         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
11244         REPLACE_FMAF.
11245         * modules/fmaf: New file.
11246         * doc/posix-functions/fmaf.texi: Mention the new module and the various
11247         bugs.
11248
11249         Tests for module 'fma'.
11250         * modules/fma-tests: New file.
11251         * tests/test-fma1.c: New file.
11252         * tests/test-fma1.h: New file.
11253         * tests/test-fma2.c: New file.
11254         * tests/test-fma2.h: New file.
11255
11256         New module 'fma'.
11257         * lib/math.in.h (fma): New declaration.
11258         * lib/fma.c: New file.
11259         * m4/fma.m4: New file.
11260         * m4/fegetround.m4: New file.
11261         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
11262         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
11263         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
11264         REPLACE_FMA.
11265         * modules/fma: New file.
11266         * doc/posix-functions/fma.texi: Mention the new module and the various
11267         bugs.
11268
11269         Extend gl_MATHFUNC.
11270         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
11271         Support 'void' as argument type.
11272         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
11273
11274 2011-11-05  Jim Meyering  <meyering@redhat.com>
11275
11276         maint.mk: also prohibit inclusion of dirent.h without use
11277         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
11278
11279 2011-11-05  Bruno Haible  <bruno@clisp.org>
11280
11281         ldexpl tests: Avoid test failure on MSVC 9.
11282         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
11283         value. Needed in order to enforce the conversion from a value greater
11284         than LDBL_MAX to Infinity.
11285
11286 2011-11-05  Bruno Haible  <bruno@clisp.org>
11287
11288         New modules 'at-internal', 'openat-h', split off from module 'openat'.
11289         * modules/at-internal: New file, extracted from modules/openat.
11290         * modules/openat-h: New file.
11291         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
11292         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
11293         * modules/openat (Description): Add reference to POSIX function.
11294         (Files): Remove lib/openat.h, lib/openat-proc.c.
11295         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
11296         intprops, unistd.
11297         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11298         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
11299         gl_FCNTL_MODULE_INDICATOR.
11300         (Include): Remove unistd.h, openat.h.
11301         * modules/areadlinkat (Files): Add lib/at-func.c.
11302         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11303         openat-die, openat-h, save-cwd.
11304         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
11305         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11306         openat-die, openat-h, save-cwd, unistd.
11307         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
11308         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11309         openat-h, save-cwd. Remove fcntl-h, openat.
11310         * modules/fchmodat (Files): Remove lib/openat.h.
11311         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11312         openat, stdbool, unistd.
11313         * modules/fchownat (Files): Remove lib/openat.h.
11314         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11315         openat, stdbool, sys_stat.
11316         * modules/fdopendir (Files): Remove lib/openat-priv.h,
11317         lib/openat-proc.c.
11318         (Depends-on): Add at-internal.
11319         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
11320         * modules/fstatat (Files): Remove lib/openat.h.
11321         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11322         stdbool, unistd.
11323         * modules/fts (Depends-on): Add openat-h.
11324         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11325         openat.
11326         * modules/mkdirat (Files): Remove lib/openat.h.
11327         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11328         openat, stdbool, sys_stat.
11329         * modules/mkfifoat (Files): Add lib/at-func.c.
11330         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11331         openat-h, save-cwd. Remove fcntl-h, openat.
11332         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11333         * modules/readlinkat (Files): Add lib/at-func.c.
11334         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11335         openat-h, save-cwd. Remove fcntl-h, openat.
11336         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11337         openat.
11338         * modules/selinux-at (Files): Add lib/at-func.c.
11339         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11340         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11341         * modules/symlinkat (Files): Add lib/at-func.c.
11342         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11343         openat-h, save-cwd. Remove fcntl-h, openat.
11344         * modules/unlinkat (Files): Remove lib/openat.h.
11345         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11346         stdbool.
11347         * modules/utimensat (Files): Add lib/at-func.c.
11348         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11349         openat-die, openat-h, save-cwd.
11350         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11351         * modules/fdutimensat-tests (Depends-on): Add openat.
11352         * modules/fstatat-tests (Depends-on): Add openat-h.
11353         * modules/readlinkat-tests (Depends-on): Add openat.
11354         * modules/symlinkat-tests (Depends-on): Add openat.
11355
11356 2011-11-05  Bruno Haible  <bruno@clisp.org>
11357
11358         openat: Include <stdbool.h>.
11359         * lib/openat.c: Include <stdbool.h>.
11360
11361 2011-11-04  Bruno Haible  <bruno@clisp.org>
11362
11363         fchownat, renameat, unlinkat: Fix dependencies.
11364         * modules/fchownat (Depends-on): Add fstatat.
11365         * modules/renameat (Depends-on): Likewise.
11366         * modules/unlinkat (Depends-on): Likewise.
11367
11368 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11369
11370         openat: remove direct dependency on dirent
11371         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11372         and hasn't been needed ever since fdopendir was split into its own
11373         module on 2009-08-31.
11374         * modules/openat (Depends-on): Remove dirent.
11375
11376 2011-11-04  Bruno Haible  <bruno@clisp.org>
11377
11378         renameat: Optimize code size.
11379         * modules/renameat (configure.ac): Don't compile at-func2.c if
11380         REPLACE_RENAMEAT is 1.
11381
11382 2011-11-04  Bruno Haible  <bruno@clisp.org>
11383
11384         openat tests: Fix file list.
11385         * modules/openat-tests (Files): Add tests/test-open.h.
11386
11387 2011-11-04  Bruno Haible  <bruno@clisp.org>
11388
11389         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
11390         * modules/fchmodat (Depends-on): Add openat-die.
11391         * modules/fchownat (Depends-on): Likewise.
11392         * modules/linkat (Depends-on): Likewise.
11393         * modules/renameat (Depends-on): Likewise.
11394         * modules/openat (Depends-on): Add dirent.
11395
11396 2011-11-04  Jim Meyering  <meyering@redhat.com>
11397
11398         at-func*.c: fix comments
11399         * lib/at-func2.c: Correct/improve first-line comment.
11400         * lib/at-func.c: Correct grammar in first-line comment.
11401
11402 2011-11-04  Bruno Haible  <bruno@clisp.org>
11403
11404         New module 'mkdirat', split off from module 'openat'.
11405         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11406         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11407         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11408         * modules/mkdirat: New file, extracted from modules/openat.
11409         * modules/openat (Files): Remove lib/mkdirat.c.
11410         (Depends-on): Remove mkdir.
11411         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11412         (Include): Remove <sys/stat.h>.
11413         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11414         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11415         tests/test-mkdir.h.
11416         (Depends-on): Remove ignore-value.
11417         (Makefile.am): Remove rules for test-mkdirat.
11418         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11419         of module 'openat'.
11420         * NEWS: Mention the change.
11421
11422 2011-11-04  Bruno Haible  <bruno@clisp.org>
11423
11424         closedir: Avoid warning on mingw.
11425         * lib/closedir.c: Include <unistd.h>.
11426
11427 2011-11-04  Bruno Haible  <bruno@clisp.org>
11428
11429         New module 'fstatat', split off from module 'openat'.
11430         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11431         defined.
11432         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11433         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11434         gl_FUNC_FSTATAT.
11435         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11436         * modules/fstatat: New file, extracted from modules/openat.
11437         * modules/openat (Files): Remove lib/fstatat.c.
11438         (Depends-on): Remove lstat.
11439         (configure.ac): Remove AC_LIBOBJ of fstatat.
11440         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11441         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11442         tests/test-lstat.h, tests/test-stat.h.
11443         (Depends-on): Remove getcwd-lgpl.
11444         (Makefile.am): Remove rules for test-fstatat.
11445         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11446         of module 'openat'.
11447         * NEWS: Mention the change.
11448         * modules/getcwd (Depends-on): Add fstatat.
11449         * modules/linkat (Depends-on): Likewise.
11450         * modules/mkfifoat-tests (Depends-on): Likewise.
11451         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11452
11453 2011-11-03  Bruno Haible  <bruno@clisp.org>
11454
11455         New module 'unlinkat', split off from module 'openat'.
11456         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11457         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11458         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11459         * modules/unlinkat: New file, extracted from modules/openat. Correct
11460         the dependency conditions.
11461         * modules/openat (Files): Remove lib/unlinkat.c.
11462         (Depends-on): Remove rmdir, unlink.
11463         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11464         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11465         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11466         tests/test-rmdir.h, tests/test-unlink.h.
11467         (Depends-on): Remove unlinkdir.
11468         (Makefile.am): Remove rules for test-unlinkat.
11469         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11470         of module 'openat'.
11471         * NEWS: Mention the change.
11472         * modules/linkat-tests (Depends-on): Add unlinkat.
11473         * modules/mkfifoat-tests (Depends-on): Likewise.
11474         * modules/readlinkat-tests (Depends-on): Likewise.
11475
11476 2011-11-02  Bruno Haible  <bruno@clisp.org>
11477
11478         New module 'fchmodat', split off from module 'openat'.
11479         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
11480         defined.
11481         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
11482         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
11483         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
11484         * modules/fchmodat: New file, extracted from modules/openat.
11485         * modules/openat (Files): Remove lib/fchmodat.c.
11486         (configure.ac): Remove AC_LIBOBJ of fchmodat.
11487         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
11488         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
11489         (Makefile.am): Remove rules for test-fchmodat.
11490         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
11491         of module 'openat'.
11492         * NEWS: Mention the change.
11493
11494 2011-11-02  Jim Meyering  <meyering@redhat.com>
11495
11496         putenv: indent #definition of "environ" to placate cppi
11497         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
11498
11499         gitlog-to-changelog: provide a ChangeLog-repair mechanism
11500         Git logs are often treated as immutable, because editing them
11501         changes the SHA1 checksums of all descendants.  Thus, errors in
11502         git logs tend to stay there forever.  However, when we generate
11503         a ChangeLog file -- typically for distribution -- from that git log,
11504         we can actually make corrections in the generated file.  The key
11505         lies in recording in machine-readable/applicable form the desired
11506         corrections.  See --help for description and an example.
11507         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
11508         (usage): Describe it; alphabetize option descriptions.
11509         (main): Honor the new option, carefully.
11510
11511 2011-11-01  Jim Meyering  <meyering@redhat.com>
11512
11513         gitlog-to-changelog: avoid an infloop
11514         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
11515         that ends up being empty.
11516
11517 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11518
11519         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
11520         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
11521         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
11522         contains (possibly-quoted) backslashes.  This should avoid
11523         all-too-common shell bugs if COMPLICATED contains backslashes in
11524         the "wrong" places.  Reported by David Evans in
11525         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
11526         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
11527         because we want ASCII ranges.  Is there some reason we don't use
11528         the C locale everywhere in this script?
11529         (func_module, top level): Avoid unwanted pathname expansion when
11530         $repo_url_prefix or $repo_url_suffix_repl contain shell
11531         metacharacters like '?' and '*'.
11532
11533 2011-11-01  Bruno Haible  <bruno@clisp.org>
11534
11535         fchownat: Improve description.
11536         * modules/fchownat (Description): Add link to function.
11537
11538 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11539
11540         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
11541         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
11542         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
11543         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
11544
11545 2011-11-01  Bruno Haible  <bruno@clisp.org>
11546
11547         alignof: Avoid collision with stdalign module.
11548         * lib/alignof.h (alignof): Remove macro.
11549         * NEWS: Mention the change.
11550         Reported by Paul Eggert.
11551
11552 2011-11-01  Bruno Haible  <bruno@clisp.org>
11553
11554         New module 'fchownat', split off from module 'openat'.
11555         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
11556         defined.
11557         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
11558         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
11559         invoke gl_FUNC_FCHOWNAT.
11560         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
11561         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
11562         * modules/fchownat: New file, extracted from modules/openat.
11563         * modules/openat (Files): Remove lib/fchownat.c.
11564         (Depends-on): Remove lchown.
11565         (configure.ac): Remove AC_LIBOBJ of fchownat.
11566         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
11567         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
11568         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
11569         (Depends-on): Remove mgetgroups, usleep, stat-time.
11570         (configure.ac): Remove test for getegid.
11571         (Makefile.am): Remove rules for test-fchownat.
11572         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
11573         of module 'openat'.
11574         * NEWS: Mention the change.
11575
11576 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11577
11578         stdalign: port better to MSVC and to Sun C 5.11
11579         This fixes some of the problems reported by Bruno Haible in
11580         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
11581         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
11582         shortcomings of MSVC and of Sun C 5.11.
11583         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
11584         around __declspec arg.
11585         * modules/stdalign-tests (Files): Add tests/macros.h.
11586         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
11587         Include macros.h, for ASSERT.
11588         (DECLARE_ALIGNED): Remove.
11589         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
11590         to catch bug), and to 1 if not (simplifies the rest of the code).
11591         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
11592         (CHECK_AUTO): Remove.
11593         (CHECK_ALIGNED): Check only the alignment of the static vars,
11594         since auto var alignment isn't supported by Sun C 5.11.
11595         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
11596         ASSERT failures are easier to diagnose.
11597
11598 2011-10-31  Bruno Haible  <bruno@clisp.org>
11599
11600         doc about some IRIX 5.3 problems.
11601         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
11602         on IRIX 5.3.
11603         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
11604         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
11605         5.3.
11606         * doc/posix-functions/grantpt.texi: Likewise.
11607         * doc/posix-functions/unlockpt.texi: Likewise.
11608         * doc/posix-functions/lgamma.texi: Likewise.
11609         * doc/posix-functions/nextafter.texi: Likewise.
11610         * doc/posix-functions/remainder.texi: Likewise.
11611         * doc/posix-functions/select.texi: Mention misplaced declaration on
11612         IRIX 5.3.
11613         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11614
11615 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
11616
11617         gitlog-to-changelog: fix git-log invocation.
11618         git-log mishandles date strings before 1970-01-01 UTC, and there is
11619         no use to specify --since=1970-01-01 by default anyway.
11620         * build-aux/gitlog-to-changelog: By default, when no --since option
11621         was given, do not specify explicit --since option to git-log.
11622
11623 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
11624
11625         gitlog-to-changelog: new option --append-dot.
11626         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
11627         first non-blank line of each commit message terminated with a dot.
11628
11629 2011-10-30  Bruno Haible  <bruno@clisp.org>
11630
11631         ffsl, ffsll: Avoid compilation error due to 'restrict'.
11632         * lib/ffsl.h: Include <config.h>.
11633         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
11634
11635 2011-10-30  Jim Meyering  <meyering@redhat.com>
11636
11637         GNUmakefile: reenable "make syntax-check" for most projects
11638         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
11639         build-aux variable", "syntax-check" would do nothing but succeed with
11640         the "No version control files detected..." diagnostic (unless you
11641         happened to override _build-aux via cfg.mk).
11642         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
11643         to precede inclusion of maint.mk.  Otherwise, these variables would
11644         be used undefined in any project that does not override the default.
11645
11646 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
11647
11648         gitlog-to-changelog: treat a message with only blank lines as empty.
11649         * build-aux/gitlog-to-changelog: Move the code that removes leading and
11650         trailing blank lines before the code that issues a warning about an
11651         empty commit message.
11652
11653 2011-10-30  Jim Meyering  <meyering@redhat.com>
11654
11655         test-parse-datetime.c: avoid new DST-related false positive test failure
11656         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
11657         based on the time/date we'll convert, not the current time.
11658         Otherwise, the moment we cross a DST boundary like today's in
11659         Europe, (CEST to CET), that offset ends up being one hour off.
11660
11661 2011-10-27  Bruno Haible  <bruno@clisp.org>
11662
11663         fstat: Tweak documentation.
11664         * modules/fstat (Description): More precise description.
11665
11666 2011-10-27  Bruno Haible  <bruno@clisp.org>
11667
11668         Update documentation regarding 'largefile' module.
11669         * doc/posix-functions/fstat.texi: Tweak wording.
11670         * doc/posix-functions/opendir.texi: Mention that the module fixes the
11671         problems with huge directories and/or small ino_t types.
11672         * doc/posix-functions/readdir.texi: Likewise.
11673         * doc/posix-functions/rewinddir.texi: Likewise.
11674
11675 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
11676
11677         maint.mk: don't maintain a second build-aux variable.
11678         * maint.mk (build_aux): Removed.  The maintainer-makefile module
11679         depends on GNUmakefile, which already maintains a cfg.mk
11680         overridable $(_build-aux) for projects with a non-standard
11681         build-aux directory location, although without the $(srcdir)
11682         prefix.  Use that variable consistently instead of introducing a
11683         second one.  Adjust all call sites.
11684
11685 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
11686
11687         Add stdalign module and use it in other modules.
11688         This is based on a previous proposal by Bruno Haible
11689         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
11690
11691         stdalign: new module
11692         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
11693         * modules/stdalign: New files.
11694         * MODULES.html.sh (c1x_core_properties): Add stdalign.
11695         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
11696
11697         stdalign-tests: new module
11698         * modules/stdalign-tests, tests/test-stdalign.c: New files.
11699
11700         argp: use stdalign
11701         * lib/argp-parse.c: Include <stdalign.h>.
11702         (alignof): Remove.
11703         * modules/argp (Depends-on): Add stdalign.
11704
11705         crypto libraries: use stdalign
11706         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
11707         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
11708         Do not include <stdlib.h> twice, in md4.c.
11709         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
11710         because we are accessing a pointer's bit-pattern, not a size.
11711         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
11712         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
11713         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
11714         * modules/crypto/sha512: Likewise.
11715
11716         sys_socket: use stdalign, not alignof
11717         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
11718         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
11719
11720 2011-10-27  Bruno Haible  <bruno@clisp.org>
11721
11722         raise test: Avoid a test failure on Linux/MIPS.
11723         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
11724         because 99 is a valid signal on Linux/MIPS.
11725
11726 2011-10-27  Bruno Haible  <bruno@clisp.org>
11727
11728         nonblocking tests: Fix test failure on Linux/MIPS.
11729         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
11730         Set to 270000.
11731
11732 2011-10-27  Bruno Haible  <bruno@clisp.org>
11733
11734         utimensat: Work around problem on Linux/hppa.
11735         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
11736         values.
11737         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
11738
11739 2011-10-25  Jim Meyering  <meyering@redhat.com>
11740
11741         maint.mk: fix a bug in sc_prohibit_stddef_without_use
11742         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
11743         after symbols like NULL, size_t, etc.
11744         Reported by Alfred M. Szmidt.
11745
11746         maint.mk: exempt ENODATA from a syntax-check rule
11747         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
11748         from the sc_prohibit_always-defined_macros syntax-check rule.
11749         Add a comment.  See this for more details:
11750         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
11751
11752 2011-10-23  Jim Meyering  <meyering@redhat.com>
11753
11754         fts: close parent dir FD before returning from post-traversal fts_read
11755         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
11756         unlink A, even though an FD open on A remained.  This is suboptimal
11757         (holding a file descriptor open longer than needed), but otherwise not
11758         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
11759         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
11760         that represents a real problem: it causes the removal of A to fail
11761         with e.g., "rm: cannot remove `A': Device or resource busy"
11762
11763         fts visits each directory twice and keeps a cache (fts_fd_ring) of
11764         directory file descriptors.  After completing the final, FTS_DP,
11765         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
11766         cache, but then proceeded to add a new FD to it via the subsequent
11767         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
11768         final file descriptor would be closed only via fts_close's call to
11769         fd_ring_clear.  Now, it is usually closed earlier, via the final
11770         FTS_DP-returning fts_read call.
11771         * lib/fts.c (restore_initial_cwd): New function, converted from
11772         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
11773         Update callers.
11774         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
11775         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
11776
11777 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
11778             Bruno Haible  <bruno@clisp.org>
11779             Jim Meyering  <jim@meyering.net>
11780
11781         readme-release: improve safety of release prep instructions.
11782         * README-release: Don't git pull all branches when only master
11783         is needed for the release process.
11784         Run make maintainer-clean before changing trees and merging.
11785         Don't try to run ./configure right after git pull in case files
11786         that influence the bootstrap process have changed, move the
11787         ./configure step to after running ./bootstrap.
11788         Don't bootstrap "one last time"... it's the first time!
11789
11790 2011-10-22  Bruno Haible  <bruno@clisp.org>
11791
11792         errno, strerror-override: Support for MSVC 10.
11793         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
11794         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
11795         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
11796         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
11797         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
11798         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
11799         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
11800         Assign values compatible with MSVC 10.
11801         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
11802         New macros.
11803         (GNULIB_defined_EWINSOCK): New macro.
11804         * lib/strerror-override.c (strerror_override): Update accordingly.
11805         * lib/strerror-override.h: Likewise.
11806         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
11807         longer equal to the corresponding errno value.
11808         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11809
11810 2011-10-22  Bruno Haible  <bruno@clisp.org>
11811
11812         perror: Recognize when test program crashes.
11813         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
11814         strerror, set gl_cv_func_perror_works to no.
11815         Reported by Daniel Richard G. <skunk@iskunk.org>.
11816
11817         perror: Fix indentation.
11818         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
11819
11820 2011-10-22  Bruno Haible  <bruno@clisp.org>
11821
11822         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
11823         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
11824         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
11825         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
11826         functions, not as a macro.
11827         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
11828         macros.
11829         (isfinite, isinf, isnan, signbit): Check overloaded functions and
11830         absence of macro.
11831         Suggested by Eric Blake.
11832         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11833
11834 2011-10-21  Bruno Haible  <bruno@clisp.org>
11835
11836         relocatable-prog-wrapper: Don't leave object files behind.
11837         * build-aux/install-reloc: Re-synchronize list of .o files to be
11838         removed with list of compilation units.
11839
11840 2011-10-20  Bruno Haible  <bruno@clisp.org>
11841
11842         openpty, posix_openpt: Remove code duplication.
11843         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
11844         * lib/openpty.c: Include <stdlib.h>.
11845         (openpty): Use posix_openpt on all platforms except IRIX.
11846         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
11847
11848 2011-10-20  Bruno Haible  <bruno@clisp.org>
11849
11850         unlockpt: Detect invalid argument.
11851         * lib/unlockpt.c: Include <fcntl.h>.
11852         (unlockpt): Check whether fd is valid, using fcntl().
11853         * modules/unlockpt (Depends-on): Add fcntl-h.
11854
11855 2011-10-20  Bruno Haible  <bruno@clisp.org>
11856
11857         openpty: Avoid compilation error on AIX 6.1.
11858         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
11859
11860 2011-10-20  Bruno Haible  <bruno@clisp.org>
11861
11862         posix_openpt: Support for OpenBSD.
11863         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
11864         (posix_openpt) [OpenBSD]: New code.
11865         * lib/grantpt.c: Include <fcntl.h>.
11866         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
11867         * modules/grantpt (Depends-on): Add fcntl-h.
11868
11869 2011-10-20  Bruno Haible  <bruno@clisp.org>
11870
11871         posix_openpt test: Coding style.
11872         * tests/test-posix_openpt.c: Use GNU coding style.
11873
11874 2011-10-20  Bruno Haible  <bruno@clisp.org>
11875
11876         grantpt: Support --avoid=pt_chown.
11877         * modules/grantpt (Files): Add lib/pty-private.h.
11878
11879 2011-10-20  Bruno Haible  <bruno@clisp.org>
11880
11881         posix_openpt: Fix autoconf macro.
11882         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
11883         unneeded check for _getpty.
11884
11885 2011-10-20  Bruno Haible  <bruno@clisp.org>
11886
11887         openpty: Update comments.
11888         * lib/openpty.c: Add comments about Minix.
11889
11890 2011-10-19  Eric Blake  <eblake@redhat.com>
11891
11892         openpty: relax license
11893         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
11894
11895         pt_chown: use configmake to simplify build
11896         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
11897
11898         ptsname and others: relax license
11899         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
11900         * modules/unlockpt (License): Likewise.
11901         * modules/pt_chown (License): Likewise.
11902         * modules/ptsname (License): Likewise.
11903         * modules/ttyname_r (License): Likewise.
11904
11905 2011-10-19  Jim Meyering  <meyering@redhat.com>
11906
11907         posix_openpt: remove spurious #endif
11908         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
11909
11910 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
11911
11912         maint.mk: Respect $(build_aux) in web-manual rule.
11913         * top/maint.mk (web-manual): Find gen-announce script in user's
11914         $(build_aux) directory instead of hard-coding 'build-aux'.
11915
11916 2011-10-19  Bruno Haible  <bruno@clisp.org>
11917
11918         posix_openpt: Fix compilation error.
11919         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
11920         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
11921         Mention the openpty module as an alternative.
11922
11923 2011-10-19  Bruno Haible  <bruno@clisp.org>
11924
11925         Support for old NeXTstep 3.3 frexp().
11926         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
11927         execution time of the test to 5 seconds.
11928         Reported by Daniel Richard G. <skunk@iskunk.org>.
11929
11930 2011-10-19  Bruno Haible  <bruno@clisp.org>
11931
11932         Support for old NeXTstep 3.3 sed.
11933         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
11934         part, use /.../, not \|...|. Escape periods in the header file name.
11935         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11936         Reported by Daniel Richard G. <skunk@iskunk.org>.
11937
11938 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11939
11940         Support for old NeXTstep 3.3 gcc.
11941         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
11942         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
11943         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
11944         * lib/spawn.in.h (_Restrict_arr_): Likewise.
11945         * lib/regex.h (_Restrict_arr_): Likewise.
11946         * lib/regex_internal.h (re_token_t): Likewise.
11947         * lib/regexec.c (check_node_accept_bytes): Likewise.
11948         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
11949
11950 2011-10-18  Eric Blake  <eblake@redhat.com>
11951
11952         posix_openpt: new module
11953         * modules/posix_openpt: New module.
11954         * m4/posix_openpt.m4: New file.
11955         * lib/posix_openpt.c: Likewise.
11956         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11957         (gl_STDLIB_H_DEFAULTS): Set defaults.
11958         * modules/stdlib (Makefile.am): Substitute macros.
11959         * lib/stdlib.in.h (posix_openpt): Declare.
11960         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
11961         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
11962         * modules/posix_openpt-tests: New test module.
11963         * tests/test-posix_openpt.c: New test.
11964
11965 2011-10-15  Bruno Haible  <bruno@clisp.org>
11966
11967         xstrtoll: Fix compilation failure.
11968         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
11969         from lib/strtol.c.
11970         * doc/posix-headers/limits.texi: Mention missing numerical limits on
11971         some platforms.
11972         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11973
11974 2011-10-15  Bruno Haible  <bruno@clisp.org>
11975
11976         vasnprintf: Optimize bit search operation.
11977         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
11978         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
11979         gl_DOUBLE_EXPONENT_LOCATION.
11980         * modules/vasnprintf (Files): Add m4/exponentd.m4.
11981         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11982         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11983         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11984         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11985         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11986         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11987         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11988         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
11989
11990 2011-10-15  Bruno Haible  <bruno@clisp.org>
11991
11992         vasnprintf: Fix comments.
11993         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
11994
11995 2011-10-14  Bruno Haible  <bruno@clisp.org>
11996
11997         Tests for module 'integer_length_ll'.
11998         * modules/integer_length_ll-tests: New file.
11999         * tests/test-integer_length_ll.c: New file.
12000
12001         New module 'integer_length_ll'.
12002         * lib/integer_length_ll.c: New file.
12003         * modules/integer_length_ll: New file.
12004
12005 2011-10-14  Bruno Haible  <bruno@clisp.org>
12006
12007         Tests for module 'integer_length_l'.
12008         * modules/integer_length_l-tests: New file.
12009         * tests/test-integer_length_l.c: New file.
12010
12011         New module 'integer_length_l'.
12012         * lib/integer_length_l.c: New file.
12013         * modules/integer_length_l: New file.
12014
12015 2011-10-14  Bruno Haible  <bruno@clisp.org>
12016
12017         Tests for module 'integer_length'.
12018         * modules/integer_length-tests: New file.
12019         * tests/test-integer_length.c: New file.
12020
12021         New module 'integer_length'.
12022         * lib/integer_length.h: New file.
12023         * lib/integer_length.c: New file.
12024         * modules/integer_length: New file.
12025
12026 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12027
12028         popen: Fix dependency conditions.
12029         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
12030
12031 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12032
12033         perror: Fix autoconf test.
12034         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
12035         <stdlib.h> and <string.h>.
12036
12037 2011-10-14  Bruno Haible  <bruno@clisp.org>
12038
12039         ffsl: Optimize on 64-bit platforms.
12040         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
12041         unrolling.
12042
12043 2011-10-13  Bruno Haible  <bruno@clisp.org>
12044
12045         ffsl: Optimize on 32-bit platforms.
12046         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
12047         use ffs() without a loop.
12048
12049         ffsl, ffsll: Optimize for GCC.
12050         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
12051         * lib/ffsl.c (GCC_BUILTIN): New macro.
12052         * lib/ffsll.c (GCC_BUILTIN): Likewise.
12053
12054 2011-10-13  Bruno Haible  <bruno@clisp.org>
12055
12056         ffs, bcopy, memset: Support symbol renaming via config.h.
12057         * lib/ffs.c: Include <config.h>.
12058         * lib/bcopy.c: Likewise.
12059         * lib/memset.c: Likewise.
12060
12061 2011-10-10  Bruno Haible  <bruno@clisp.org>
12062
12063         atanl: Simplify for platforms where 'long double' == 'double'.
12064         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12065         alternative implementation.
12066         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12067         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12068         * modules/atanl (Depends-on): Add atan. Update conditions.
12069
12070 2011-10-10  Bruno Haible  <bruno@clisp.org>
12071
12072         acosl: Simplify for platforms where 'long double' == 'double'.
12073         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12074         alternative implementation.
12075         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12076         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12077         * modules/acosl (Depends-on): Add acos. Update conditions.
12078
12079 2011-10-10  Bruno Haible  <bruno@clisp.org>
12080
12081         asinl: Simplify for platforms where 'long double' == 'double'.
12082         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12083         alternative implementation.
12084         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12085         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12086         * modules/asinl (Depends-on): Add asin. Update conditions.
12087
12088 2011-10-10  Bruno Haible  <bruno@clisp.org>
12089
12090         tanl: Simplify for platforms where 'long double' == 'double'.
12091         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12092         implementation.
12093         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12094         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12095         * modules/tanl (Depends-on): Add tan. Update conditions.
12096         (configure.ac): Don't compile trigl.c if
12097         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12098
12099 2011-10-10  Bruno Haible  <bruno@clisp.org>
12100
12101         cosl: Simplify for platforms where 'long double' == 'double'.
12102         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12103         implementation.
12104         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12105         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12106         * modules/cosl (Depends-on): Add cos. Update conditions.
12107         (configure.ac): Don't compile sincosl.c and trigl.c if
12108         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12109
12110 2011-10-10  Bruno Haible  <bruno@clisp.org>
12111
12112         sinl: Simplify for platforms where 'long double' == 'double'.
12113         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12114         implementation.
12115         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12116         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12117         * modules/sinl (Depends-on): Add sin. Update conditions.
12118         (configure.ac): Don't compile sincosl.c and trigl.c if
12119         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12120
12121 2011-10-10  Bruno Haible  <bruno@clisp.org>
12122
12123         logl: Simplify for platforms where 'long double' == 'double'.
12124         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12125         implementation.
12126         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12127         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12128         * modules/logl (Depends-on): Add log. Update conditions.
12129
12130 2011-10-10  Bruno Haible  <bruno@clisp.org>
12131
12132         expl: Simplify for platforms where 'long double' == 'double'.
12133         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12134         implementation.
12135         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12136         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12137         * modules/expl (Depends-on): Add exp. Update conditions.
12138
12139 2011-10-10  Bruno Haible  <bruno@clisp.org>
12140
12141         sqrtl: Simplify for platforms where 'long double' == 'double'.
12142         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12143         alternative implementation.
12144         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12145         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12146         * modules/sqrtl (Depends-on): Update conditions.
12147
12148 2011-10-10  Bruno Haible  <bruno@clisp.org>
12149
12150         ldexpl: Simplify for platforms where 'long double' == 'double'.
12151         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12152         alternative implementation.
12153         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12154         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12155         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
12156
12157 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
12158
12159         ffsll: set correct witness
12160         * modules/ffsll (configure.ac): Fix typo.
12161
12162 2011-10-10  Bruno Haible  <bruno@clisp.org>
12163
12164         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
12165         * lib/printf-frexpl.c: Include <config.h>.
12166         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12167         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
12168         second time.
12169         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
12170         gl_LONG_DOUBLE_VS_DOUBLE.
12171         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
12172         conditions.
12173
12174 2011-10-10  Bruno Haible  <bruno@clisp.org>
12175
12176         frexpl: Simplify for platforms where 'long double' == 'double'.
12177         * lib/frexpl.c: Include <config.h>.
12178         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12179         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12180         time.
12181         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12182         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12183         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
12184         * modules/frexpl (Depends-on): Add frexp. Update conditions.
12185         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
12186         conditions.
12187
12188 2011-10-10  Jim Meyering  <meyering@redhat.com>
12189
12190         test-renameat: don't leave behind a temporary file
12191         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
12192           ERROR: files left in build directory after distclean:
12193           ./gltests/test-renameat.too
12194           make[1]: *** [distcleancheck] Error 1
12195         Reported by Tom G. Christensen.
12196
12197 2011-10-09  Bruno Haible  <bruno@clisp.org>
12198
12199         rint: Determine RINT_LIBM correctly on AIX 7.
12200         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
12201         directly, not only through a function pointer. Also accept an optional
12202         4th argument with extra code.
12203         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
12204         rintf() call by gcc when optimizing.
12205
12206         mathfunc.m4: Refactor.
12207         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
12208         m4 variable.
12209
12210 2011-10-09  Bruno Haible  <bruno@clisp.org>
12211
12212         rintl: Simplify for platforms where 'long double' == 'double'.
12213         * lib/rintl.c: Include <config.h>.
12214         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12215         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12216         time.
12217         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12218         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12219         * modules/rintl (Depends-on): Add rint. Update conditions.
12220
12221 2011-10-09  Bruno Haible  <bruno@clisp.org>
12222
12223         roundl: Simplify for platforms where 'long double' == 'double'.
12224         * lib/roundl.c: Include <config.h>.
12225         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12226         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12227         time.
12228         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12229         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12230         * modules/roundl (Depends-on): Add round. Update conditions.
12231
12232 2011-10-09  Bruno Haible  <bruno@clisp.org>
12233
12234         truncl: Simplify for platforms where 'long double' == 'double'.
12235         * lib/truncl.c: Include <config.h>.
12236         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12237         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12238         time.
12239         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12240         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12241         * modules/truncl (Depends-on): Add trunc. Update conditions.
12242
12243 2011-10-09  Bruno Haible  <bruno@clisp.org>
12244
12245         ceill: Simplify for platforms where 'long double' == 'double'.
12246         * lib/ceill.c: Include <config.h>.
12247         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12248         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12249         time.
12250         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12251         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12252         * modules/ceill (Depends-on): Add ceil. Update conditions.
12253
12254 2011-10-09  Bruno Haible  <bruno@clisp.org>
12255
12256         floorl: Simplify for platforms where 'long double' == 'double'.
12257         * lib/floorl.c: Include <config.h>.
12258         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12259         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12260         time.
12261         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12262         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12263         * modules/floorl (Depends-on): Add floor. Update conditions.
12264
12265 2011-10-09  Bruno Haible  <bruno@clisp.org>
12266
12267         rint: Fix ordering constraints.
12268         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
12269         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
12270         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
12271
12272 2011-10-09  Bruno Haible  <bruno@clisp.org>
12273
12274         copysignl: Simplify for platforms where 'long double' == 'double'.
12275         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12276         alternative.
12277         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12278         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12279         * modules/copysignl (Depends-on): Add copysign. Update conditions.
12280
12281 2011-10-09  Bruno Haible  <bruno@clisp.org>
12282
12283         Tests for module 'rintl'.
12284         * modules/rintl-tests: New file.
12285         * tests/test-rintl.c: New file.
12286
12287         New module 'rintl'.
12288         * lib/math.in.h (rintl): New declaration.
12289         * lib/rintl.c: New file.
12290         * m4/rintl.m4: New file.
12291         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
12292         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
12293         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
12294         * modules/rintl: New file.
12295         * tests/test-math-c++.cc: Check the declaration of rintl.
12296         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12297         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
12298         * doc/posix-functions/rintl.texi: Mention the new module.
12299
12300 2011-10-09  Bruno Haible  <bruno@clisp.org>
12301
12302         Tests for module 'rintf'.
12303         * modules/rintf-tests: New file.
12304         * tests/test-rintf.c: New file.
12305
12306         New module 'rintf'.
12307         * lib/math.in.h (rintf): New declaration.
12308         * lib/rintf.c: New file.
12309         * m4/rintf.m4: New file.
12310         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
12311         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
12312         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
12313         * modules/rintf: New file.
12314         * tests/test-math-c++.cc: Check the declaration of rintf.
12315         * doc/posix-functions/rintf.texi: Mention the new module.
12316
12317 2011-10-09  Bruno Haible  <bruno@clisp.org>
12318
12319         rint: Support for MSVC.
12320         * lib/math.in.h (rint): New declaration.
12321         * lib/rint.c: New file.
12322         * m4/rint.m4: New file.
12323         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12324         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12325         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12326         * modules/rint (Description): Fix.
12327         (Files): Add lib/rint.c, m4/rint.m4.
12328         (Depends-on): Add math.
12329         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12330         gl_MATH_MODULE_INDICATOR.
12331         * tests/test-math-c++.cc: Check the declaration of rint.
12332         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12333         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12334         * doc/posix-functions/rint.texi: Mention the replacement provided by
12335         the module.
12336
12337         rint tests: More tests.
12338         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12339         minus-zero.h, infinity.h, nan.h.
12340         (main): Skip the test if the current rounding mode is not standard. Add
12341         tests for negative numbers, minus zero, infinity, NaN.
12342         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12343         tests/nan.h.
12344         (Depends-on): Add isnand-nolibm.
12345
12346 2011-10-09  Bruno Haible  <bruno@clisp.org>
12347
12348         Tests for module 'copysignl'.
12349         * modules/copysignl-tests: New file.
12350         * tests/test-copysignl.c: New file.
12351
12352         New module 'copysignl'.
12353         * lib/math.in.h (copysignl): New declaration.
12354         * lib/copysignl.c: New file.
12355         * m4/copysignl.m4: New file.
12356         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12357         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12358         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12359         HAVE_COPYSIGNL.
12360         * modules/copysignl: New file.
12361         * tests/test-math-c++.cc: Check the declaration of copysignl.
12362         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12363         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12364         * doc/posix-functions/copysignl.texi: Mention the new module.
12365
12366 2011-10-09  Bruno Haible  <bruno@clisp.org>
12367
12368         Tests for module 'copysignf'.
12369         * modules/copysignf-tests: New file.
12370         * tests/test-copysignf.c: New file.
12371
12372         New module 'copysignf'.
12373         * lib/math.in.h (copysignf): New declaration.
12374         * lib/copysignf.c: New file.
12375         * m4/copysignf.m4: New file.
12376         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12378         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12379         HAVE_COPYSIGNF.
12380         * modules/copysignf: New file.
12381         * tests/test-math-c++.cc: Check the declaration of copysignf.
12382         * doc/posix-functions/copysignf.texi: Mention the new module.
12383
12384 2011-10-09  Bruno Haible  <bruno@clisp.org>
12385
12386         Ensure that HAVE_* variables are set to 1 before they are set to 0.
12387         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
12388         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
12389         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12390         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
12391         gl_SIGNAL_H_DEFAULTS.
12392
12393 2011-10-09  Bruno Haible  <bruno@clisp.org>
12394
12395         poll: Make macro safer.
12396         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12397         ac_cv_header_poll_h is not set.
12398
12399 2011-10-09  Bruno Haible  <bruno@clisp.org>
12400
12401         copysign: Provide replacement.
12402         * lib/math.in.h (copysign): New declaration.
12403         * lib/copysign.c: New file.
12404         * m4/copysign.m4: New file.
12405         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12406         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12407         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12408         HAVE_COPYSIGN.
12409         * modules/copysign (Description): Clarify.
12410         (Files): Add lib/copysign.c, m4/copysign.m4.
12411         (Depends-on): Add math, signbit.
12412         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12413         gl_MATH_MODULE_INDICATOR.
12414         * tests/test-math-c++.cc: Check the declaration of copysign.
12415         * doc/posix-functions/copysign.texi: Mention the effects of the module
12416         on Minix and MSVC.
12417
12418 2011-10-09  Bruno Haible  <bruno@clisp.org>
12419
12420         isinf: Ensure macro on AIX 5.1.
12421         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12422         macro.
12423         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12424
12425 2011-10-09  Bruno Haible  <bruno@clisp.org>
12426
12427         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12428         * modules/snprintf-posix-tests (configure.ac): Require
12429         gl_LONG_DOUBLE_VS_DOUBLE.
12430         * modules/sprintf-posix-tests (configure.ac): Likewise.
12431         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12432         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12433         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12434         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12435         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12436         tests on platforms where 'long double' is the same as 'double'.
12437         * tests/test-sprintf-posix.h (test_function): Likewise.
12438         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12439         * tests/test-vasprintf-posix.c (test_function): Likewise.
12440
12441         *printf: Fix for platforms where 'long double' == 'double'.
12442         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12443         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12444         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12445         * modules/fprintf-posix (Files): Likewise.
12446         * modules/obstack-printf-posix (Files): Likewise.
12447         * modules/snprintf-posix (Files): Likewise.
12448         * modules/sprintf-posix (Files): Likewise.
12449         * modules/vasnprintf (Files): Likewise.
12450         * modules/vasnprintf-posix (Files): Likewise.
12451         * modules/vasprintf-posix (Files): Likewise.
12452         * modules/vdprintf-posix (Files): Likewise.
12453         * modules/vfprintf-posix (Files): Likewise.
12454         * modules/vsnprintf-posix (Files): Likewise.
12455         * modules/vsprintf-posix (Files): Likewise.
12456         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12457         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12458         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12459         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12460         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12461         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12462         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12463
12464         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12465         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12466         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12467         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12468         'long double'.
12469         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12470
12471         isinf: Fix for platforms where 'long double' == 'double'.
12472         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12473         Don't blindly assume 80-bit 'long double'.
12474
12475         isfinite: Fix for platforms where 'long double' == 'double'.
12476         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12477         Don't blindly assume 80-bit 'long double'.
12478
12479         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
12480         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
12481         * modules/isfinite-tests (configure.ac): Require
12482         gl_LONG_DOUBLE_VS_DOUBLE.
12483         * modules/isinf-tests (configure.ac): Likewise.
12484         * modules/isnan-tests (configure.ac): Likewise.
12485         * modules/isnanl-tests (configure.ac): Likewise.
12486         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
12487         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
12488         tests on platforms where 'long double' is the same as 'double'.
12489         * tests/test-isinf.c (test_isinfl): Likewise.
12490         * tests/test-isnan.c (test_long_double): Likewise.
12491         * tests/test-isnanl.h (main): Likewise.
12492
12493 2011-10-08  Bruno Haible  <bruno@clisp.org>
12494
12495         Tests for module 'tanhf'.
12496         * modules/tanhf-tests: New file.
12497         * tests/test-tanhf.c: New file.
12498
12499         New module 'tanhf'.
12500         * lib/math.in.h (tanhf): New declaration.
12501         * lib/tanhf.c: New file.
12502         * m4/tanhf.m4: New file.
12503         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
12504         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
12505         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
12506         * modules/tanhf: New file.
12507         * tests/test-math-c++.cc: Check the declaration of tanhf.
12508         * doc/posix-functions/tanhf.texi: Mention the new module.
12509
12510         tanh: Use a .m4 file.
12511         * m4/tanh.m4: New file.
12512         * modules/tanh (Files): Add it.
12513         (configure.ac): Just invoke gl_FUNC_TANH.
12514
12515 2011-10-08  Bruno Haible  <bruno@clisp.org>
12516
12517         Tests for module 'coshf'.
12518         * modules/coshf-tests: New file.
12519         * tests/test-coshf.c: New file.
12520
12521         New module 'coshf'.
12522         * lib/math.in.h (coshf): New declaration.
12523         * lib/coshf.c: New file.
12524         * m4/coshf.m4: New file.
12525         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
12526         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
12527         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
12528         * modules/coshf: New file.
12529         * tests/test-math-c++.cc: Check the declaration of coshf.
12530         * doc/posix-functions/coshf.texi: Mention the new module.
12531
12532         cosh: Use a .m4 file.
12533         * m4/cosh.m4: New file.
12534         * modules/cosh (Files): Add it.
12535         (configure.ac): Just invoke gl_FUNC_COSH.
12536
12537 2011-10-08  Bruno Haible  <bruno@clisp.org>
12538
12539         Tests for module 'sinhf'.
12540         * modules/sinhf-tests: New file.
12541         * tests/test-sinhf.c: New file.
12542
12543         New module 'sinhf'.
12544         * lib/math.in.h (sinhf): New declaration.
12545         * lib/sinhf.c: New file.
12546         * m4/sinhf.m4: New file.
12547         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
12548         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
12549         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
12550         * modules/sinhf: New file.
12551         * tests/test-math-c++.cc: Check the declaration of sinhf.
12552         * doc/posix-functions/sinhf.texi: Mention the new module.
12553
12554         sinh: Use a .m4 file.
12555         * m4/sinh.m4: New file.
12556         * modules/sinh (Files): Add it.
12557         (configure.ac): Just invoke gl_FUNC_SINH.
12558
12559 2011-10-08  Bruno Haible  <bruno@clisp.org>
12560
12561         Tests for module 'atan2f'.
12562         * modules/atan2f-tests: New file.
12563         * tests/test-atan2f.c: New file.
12564
12565         New module 'atan2f'.
12566         * lib/math.in.h (atan2f): New declaration.
12567         * lib/atan2f.c: New file.
12568         * m4/atan2f.m4: New file.
12569         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
12570         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
12571         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
12572         * modules/atan2f: New file.
12573         * tests/test-math-c++.cc: Check the declaration of atan2f.
12574         * doc/posix-functions/atan2f.texi: Mention the new module.
12575
12576         atan2: Use a .m4 file.
12577         * m4/atan2.m4: New file.
12578         * modules/atan2 (Files): Add it.
12579         (configure.ac): Just invoke gl_FUNC_ATAN2.
12580
12581 2011-10-08  Bruno Haible  <bruno@clisp.org>
12582
12583         Tests for module 'atanf'.
12584         * modules/atanf-tests: New file.
12585         * tests/test-atanf.c: New file.
12586
12587         New module 'atanf'.
12588         * lib/math.in.h (atanf): New declaration.
12589         * lib/atanf.c: New file.
12590         * m4/atanf.m4: New file.
12591         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
12592         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
12593         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
12594         * modules/atanf: New file.
12595         * tests/test-math-c++.cc: Check the declaration of atanf.
12596         * doc/posix-functions/atanf.texi: Mention the new module.
12597
12598         atan: Use a .m4 file.
12599         * m4/atan.m4: New file.
12600         * modules/atan (Files): Add it.
12601         (configure.ac): Just invoke gl_FUNC_ATAN.
12602
12603 2011-10-08  Bruno Haible  <bruno@clisp.org>
12604
12605         Tests for module 'acosf'.
12606         * modules/acosf-tests: New file.
12607         * tests/test-acosf.c: New file.
12608
12609         New module 'acosf'.
12610         * lib/math.in.h (acosf): New declaration.
12611         * lib/acosf.c: New file.
12612         * m4/acosf.m4: New file.
12613         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
12614         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
12615         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
12616         * modules/acosf: New file.
12617         * tests/test-math-c++.cc: Check the declaration of acosf.
12618         * doc/posix-functions/acosf.texi: Mention the new module.
12619
12620         acos: Use a .m4 file.
12621         * m4/acos.m4: New file.
12622         * modules/acos (Files): Add it.
12623         (configure.ac): Just invoke gl_FUNC_ACOS.
12624
12625 2011-10-08  Bruno Haible  <bruno@clisp.org>
12626
12627         Tests for module 'asinf'.
12628         * modules/asinf-tests: New file.
12629         * tests/test-asinf.c: New file.
12630
12631         New module 'asinf'.
12632         * lib/math.in.h (asinf): New declaration.
12633         * lib/asinf.c: New file.
12634         * m4/asinf.m4: New file.
12635         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
12636         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
12637         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
12638         * modules/asinf: New file.
12639         * tests/test-math-c++.cc: Check the declaration of asinf.
12640         * doc/posix-functions/asinf.texi: Mention the new module.
12641
12642         asin: Use a .m4 file.
12643         * m4/asin.m4: New file.
12644         * modules/asin (Files): Add it.
12645         (configure.ac): Just invoke gl_FUNC_ASIN.
12646
12647 2011-10-08  Bruno Haible  <bruno@clisp.org>
12648
12649         Tests for module 'tanf'.
12650         * modules/tanf-tests: New file.
12651         * tests/test-tanf.c: New file.
12652
12653         New module 'tanf'.
12654         * lib/math.in.h (tanf): New declaration.
12655         * lib/tanf.c: New file.
12656         * m4/tanf.m4: New file.
12657         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
12658         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
12659         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
12660         * modules/tanf: New file.
12661         * tests/test-math-c++.cc: Check the declaration of tanf.
12662         * doc/posix-functions/tanf.texi: Mention the new module.
12663
12664         tan: Use a .m4 file.
12665         * m4/tan.m4: New file.
12666         * modules/tan (Files): Add it.
12667         (configure.ac): Just invoke gl_FUNC_TAN.
12668
12669 2011-10-08  Bruno Haible  <bruno@clisp.org>
12670
12671         Tests for module 'cosf'.
12672         * modules/cosf-tests: New file.
12673         * tests/test-cosf.c: New file.
12674
12675         New module 'cosf'.
12676         * lib/math.in.h (cosf): New declaration.
12677         * lib/cosf.c: New file.
12678         * m4/cosf.m4: New file.
12679         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
12680         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
12681         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
12682         * modules/cosf: New file.
12683         * tests/test-math-c++.cc: Check the declaration of cosf.
12684         * doc/posix-functions/cosf.texi: Mention the new module.
12685
12686         cos: Use a .m4 file.
12687         * m4/cos.m4: New file.
12688         * modules/cos (Files): Add it.
12689         (configure.ac): Just invoke gl_FUNC_COS.
12690
12691 2011-10-08  Bruno Haible  <bruno@clisp.org>
12692
12693         Tests for module 'sinf'.
12694         * modules/sinf-tests: New file.
12695         * tests/test-sinf.c: New file.
12696
12697         New module 'sinf'.
12698         * lib/math.in.h (sinf): New declaration.
12699         * lib/sinf.c: New file.
12700         * m4/sinf.m4: New file.
12701         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
12702         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
12703         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
12704         * modules/sinf: New file.
12705         * tests/test-math-c++.cc: Check the declaration of sinf.
12706         * doc/posix-functions/sinf.texi: Mention the new module.
12707
12708         sin: Use a .m4 file.
12709         * m4/sin.m4: New file.
12710         * modules/sin (Files): Add it.
12711         (configure.ac): Just invoke gl_FUNC_SIN.
12712
12713 2011-10-08  Bruno Haible  <bruno@clisp.org>
12714
12715         Tests for module 'powf'.
12716         * modules/powf-tests: New file.
12717         * tests/test-powf.c: New file.
12718
12719         New module 'powf'.
12720         * lib/math.in.h (powf): New declaration.
12721         * lib/powf.c: New file.
12722         * m4/powf.m4: New file.
12723         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
12724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
12725         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
12726         * modules/powf: New file.
12727         * tests/test-math-c++.cc: Check the declaration of powf.
12728         * doc/posix-functions/powf.texi: Mention the new module.
12729
12730         pow: Use a .m4 file.
12731         * m4/pow.m4: New file.
12732         * modules/pow (Files): Add it.
12733         (configure.ac): Just invoke gl_FUNC_POW.
12734
12735 2011-10-08  Bruno Haible  <bruno@clisp.org>
12736
12737         Tests for module 'log10f'.
12738         * modules/log10f-tests: New file.
12739         * tests/test-log10f.c: New file.
12740
12741         New module 'log10f'.
12742         * lib/math.in.h (log10f): New declaration.
12743         * lib/log10f.c: New file.
12744         * m4/log10f.m4: New file.
12745         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
12746         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
12747         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
12748         * modules/log10f: New file.
12749         * tests/test-math-c++.cc: Check the declaration of log10f.
12750         * doc/posix-functions/log10f.texi: Mention the new module.
12751
12752         log10: Use a .m4 file.
12753         * m4/log10.m4: New file.
12754         * modules/log10 (Files): Add it.
12755         (configure.ac): Just invoke gl_FUNC_LOG10.
12756
12757 2011-10-08  Bruno Haible  <bruno@clisp.org>
12758
12759         Tests for module 'logf'.
12760         * modules/logf-tests: New file.
12761         * tests/test-logf.c: New file.
12762
12763         New module 'logf'.
12764         * lib/math.in.h (logf): New declaration.
12765         * lib/logf.c: New file.
12766         * m4/logf.m4: New file.
12767         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
12768         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
12769         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
12770         * modules/logf: New file.
12771         * tests/test-math-c++.cc: Check the declaration of logf.
12772         * doc/posix-functions/logf.texi: Mention the new module.
12773
12774         log: Use a .m4 file.
12775         * m4/log.m4: New file.
12776         * modules/log (Files): Add it.
12777         (configure.ac): Just invoke gl_FUNC_LOG.
12778
12779 2011-10-08  Bruno Haible  <bruno@clisp.org>
12780
12781         Tests for module 'expf'.
12782         * modules/expf-tests: New file.
12783         * tests/test-expf.c: New file.
12784
12785         New module 'expf'.
12786         * lib/math.in.h (expf): New declaration.
12787         * lib/expf.c: New file.
12788         * m4/expf.m4: New file.
12789         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
12790         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
12791         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
12792         * modules/expf: New file.
12793         * tests/test-math-c++.cc: Check the declaration of expf.
12794         * doc/posix-functions/expf.texi: Mention the new module.
12795
12796         exp: Use a .m4 file.
12797         * m4/exp.m4: New file.
12798         * modules/exp (Files): Add it.
12799         (configure.ac): Just invoke gl_FUNC_EXP.
12800
12801 2011-10-08  Bruno Haible  <bruno@clisp.org>
12802
12803         Tests for module 'sqrtf'.
12804         * modules/sqrtf-tests: New file.
12805         * tests/test-sqrtf.c: New file.
12806
12807         New module 'sqrtf'.
12808         * lib/math.in.h (sqrtf): New declaration.
12809         * lib/sqrtf.c: New file.
12810         * m4/sqrtf.m4: New file.
12811         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
12812         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
12813         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
12814         * modules/sqrtf: New file.
12815         * tests/test-math-c++.cc: Check the declaration of sqrtf.
12816         * doc/posix-functions/sqrtf.texi: Mention the new module.
12817
12818 2011-10-08  Bruno Haible  <bruno@clisp.org>
12819
12820         Tests: Avoid link failures w.r.t. libintl.
12821         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
12822         $(LIBINTL).
12823         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
12824         $(LIBINTL).
12825         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
12826         against $(LIBINTL).
12827         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
12828         $(LIBINTL).
12829         * modules/openat-tests (Makefile.am): Link test-fchmodat against
12830         $(LIBINTL).
12831         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
12832
12833 2011-10-08  Bruno Haible  <bruno@clisp.org>
12834
12835         pow tests: Defeat compiler optimizations.
12836         * tests/test-pow.c (main): Assign arguments to x and y before use.
12837
12838 2011-10-08  Bruno Haible  <bruno@clisp.org>
12839
12840         gnulib-tool: Improve last commit.
12841         * gnulib-tool (func_modules_transitive_closure): Simplify code.
12842         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
12843         ignore dependencies that are not among the modules list.
12844
12845 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
12846
12847         gnulib-tool: don't follow dependencies to avoided modules
12848         This fixes a bug that is related to the previous one.
12849         * gnulib-tool (func_modules_transitive_closure)
12850         (func_emit_autoconf_snippets):
12851         Check whether a dependency is acceptable before using it.
12852         (--extract-dependencies): Report an error if --avoid is also used,
12853         since this combination of options is not yet supported.
12854
12855         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
12856         Problem reported by Peter Dyballa in
12857         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
12858         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
12859         when echoing "$condition".
12860
12861 2011-10-07  Bruno Haible  <bruno@clisp.org>
12862
12863         Fix documentation about math functions on MacOS X.
12864         * doc/posix-functions/exp2.texi: Don't say the function is missing on
12865         MacOS X 10.5.
12866         * doc/posix-functions/fdim.texi: Likewise.
12867         * doc/posix-functions/feclearexcept.texi: Likewise.
12868         * doc/posix-functions/fegetenv.texi: Likewise.
12869         * doc/posix-functions/fegetround.texi: Likewise.
12870         * doc/posix-functions/feholdexcept.texi: Likewise.
12871         * doc/posix-functions/feraiseexcept.texi: Likewise.
12872         * doc/posix-functions/fesetenv.texi: Likewise.
12873         * doc/posix-functions/fesetround.texi: Likewise.
12874         * doc/posix-functions/fetestexcept.texi: Likewise.
12875         * doc/posix-functions/feupdateenv.texi: Likewise.
12876         * doc/posix-functions/fmax.texi: Likewise.
12877         * doc/posix-functions/fmin.texi: Likewise.
12878         * doc/posix-functions/log2.texi: Likewise.
12879         * doc/posix-functions/modff.texi: Likewise.
12880         * doc/posix-functions/nan.texi: Likewise.
12881         * doc/posix-functions/nanf.texi: Likewise.
12882         * doc/posix-functions/nextafterf.texi: Likewise.
12883         * doc/posix-functions/remquo.texi: Likewise.
12884
12885 2011-10-07  Bruno Haible  <bruno@clisp.org>
12886
12887         modff: Drop assumption about library that defines modff.
12888         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
12889         AC_CHECK_FUNCS.
12890         * modules/modff (Files): Add m4/mathfunc.m4.
12891
12892 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
12893
12894         raise tests: Avoid a GCC warning.
12895         * tests/test-raise.c (handler): Use _Noreturn.
12896
12897 2011-10-07  Bruno Haible  <bruno@clisp.org>
12898
12899         Tests for module 'ldexpf'.
12900         * modules/ldexpf-tests: New file.
12901         * tests/test-ldexpf.c: New file.
12902
12903         New module 'ldexpf'.
12904         * lib/math.in.h (ldexpf): New declaration.
12905         * lib/ldexpf.c: New file.
12906         * m4/ldexpf.m4: New file.
12907         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
12908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
12909         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
12910         * modules/ldexpf: New file.
12911         * tests/test-math-c++.cc: Check the declaration of ldexpf.
12912         * doc/posix-functions/ldexpf.texi: Mention the new module.
12913
12914 2011-10-06  Bruno Haible  <bruno@clisp.org>
12915
12916         frexpf: Work around problems on IRIX and mingw.
12917         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
12918         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
12919         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
12920         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
12921         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
12922         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
12923         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
12924
12925 2011-10-06  Bruno Haible  <bruno@clisp.org>
12926
12927         fabsf: Drop assumption about library that defines fabsf.
12928         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
12929         AC_CHECK_FUNCS.
12930         * modules/fabsf (Files): Add m4/mathfunc.m4.
12931
12932 2011-10-06  Bruno Haible  <bruno@clisp.org>
12933
12934         frexpf: Drop assumption about library that defines frexpf.
12935         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
12936         'int *', 'float *', 'long double *', 'float', 'long double'.
12937         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
12938         AC_CHECK_FUNCS.
12939         * modules/frexpf (Files): Add m4/mathfunc.m4.
12940
12941         Tests for module 'frexpf'.
12942         * modules/frexpf-tests: New file.
12943         * tests/test-frexpf.c: New file.
12944
12945         New module 'frexpf'.
12946         * lib/math.in.h (frexpf): New declaration.
12947         * lib/frexpf.c: New file.
12948         * m4/frexpf.m4: New file.
12949         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
12950         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
12951         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
12952         * modules/frexpf: New file.
12953         * tests/test-math-c++.cc: Check the declaration of frexpf.
12954         * doc/posix-functions/frexpf.texi: Mention the new module.
12955
12956 2011-10-06  Bruno Haible  <bruno@clisp.org>
12957
12958         math: Sort function declarations of math.in.h.
12959         * lib/math.in.h (frexp, logb): Move declarations.
12960
12961 2011-10-05  Bruno Haible  <bruno@clisp.org>
12962
12963         Tests for module 'modff'.
12964         * modules/modff-tests: New file.
12965         * tests/test-modff.c: New file.
12966
12967         New module 'modff'.
12968         * lib/math.in.h (modff): New declaration.
12969         * lib/modff.c: New file.
12970         * m4/modff.m4: New file.
12971         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
12972         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
12973         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
12974         * modules/modff: New file.
12975         * tests/test-math-c++.cc: Check the declaration of modff.
12976         * doc/posix-functions/modff.texi: Mention the new module.
12977
12978         modf tests: Make test sharper.
12979         * tests/test-modf.c (main): Strengthen upper bound.
12980
12981         modf: Use a .m4 file.
12982         * m4/modf.m4: New file.
12983         * modules/modf (Files): Add it.
12984         (configure.ac): Just invoke gl_FUNC_MODF.
12985
12986 2011-10-05  Bruno Haible  <bruno@clisp.org>
12987
12988         Tests for module 'fmodf'.
12989         * modules/fmodf-tests: New file.
12990         * tests/test-fmodf.c: New file.
12991
12992         New module 'fmodf'.
12993         * lib/math.in.h (fmodf): New declaration.
12994         * lib/fmodf.c: New file.
12995         * m4/fmodf.m4: New file.
12996         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
12997         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
12998         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
12999         * modules/fmodf: New file.
13000         * tests/test-math-c++.cc: Check the declaration of fmodf.
13001         * doc/posix-functions/fmodf.texi: Mention the new module.
13002
13003         fmod: Use a .m4 file.
13004         * m4/fmod.m4: New file.
13005         * modules/fmod (Files): Add it.
13006         (configure.ac): Just invoke gl_FUNC_FMOD.
13007
13008 2011-10-05  Bruno Haible  <bruno@clisp.org>
13009
13010         Tests for module 'fabsf'.
13011         * modules/fabsf-tests: New file.
13012         * tests/test-fabsf.c: New file.
13013
13014         New module 'fabsf'.
13015         * lib/math.in.h (fabsf): New declaration.
13016         * lib/fabsf.c: New file.
13017         * m4/fabsf.m4: New file.
13018         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
13019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
13020         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
13021         * modules/fabsf: New file.
13022         * tests/test-math-c++.cc: Check the declaration of fabsf.
13023         * doc/posix-functions/fabsf.texi: Mention the new module.
13024
13025         fabs: Use a .m4 file.
13026         * m4/fabs.m4: New file.
13027         * modules/fabs (Files): Add it.
13028         (configure.ac): Just invoke gl_FUNC_FABS.
13029
13030 2011-10-05  Jim Meyering  <meyering@redhat.com>
13031
13032         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
13033         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
13034         ls -lL regression introduced in coreutils-8.12, it does so at the
13035         cost of an additional stat call in the common case.  Besides, now
13036         that the kernel change that prompted commit 95f7c57f has been reverted
13037         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
13038         we have no use for commit 95f7c57f, "file-has-acl: use
13039         acl_extended_file_nofollow if available".
13040
13041 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
13042
13043         file-has-acl: revert unintended change in behavior of ls -L
13044         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
13045         derived from...
13046         (file_has_acl): ...code here.  Call it.
13047         This problem was introduced with 2011-07-22 commit 95f7c57f,
13048         "file-has-acl: use acl_extended_file_nofollow if available".
13049         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
13050
13051 2011-10-03  Bruno Haible  <bruno@clisp.org>
13052
13053         poll: Avoid link errors on MSVC.
13054         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
13055         * modules/poll (Depends-on): Add sockets.
13056         (Link): New section.
13057         * NEWS: Mention the change.
13058         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
13059         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
13060         $(LIB_POLL) instead of $(LIBSOCKET).
13061
13062 2011-10-03  Bruno Haible  <bruno@clisp.org>
13063
13064         sys_select tests: Fix link error on MSVC 9.
13065         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
13066         with $(LIB_SELECT) instead of $(LIBSOCKET).
13067
13068 2011-10-03  Bruno Haible  <bruno@clisp.org>
13069
13070         sys_select: Fix compilation error on mingw.
13071         * lib/sys_select.in.h: On native Windows, include <io.h>.
13072
13073 2011-10-03  Bruno Haible  <bruno@clisp.org>
13074
13075         wmemset: Support for MSVC.
13076         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
13077         whether wmemset() exists.
13078
13079 2011-10-03  Bruno Haible  <bruno@clisp.org>
13080
13081         wmemmove: Support for MSVC.
13082         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
13083         whether wmemmove() exists.
13084
13085 2011-10-03  Bruno Haible  <bruno@clisp.org>
13086
13087         wmemcpy: Support for MSVC.
13088         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
13089         whether wmemcpy() exists.
13090
13091 2011-10-03  Bruno Haible  <bruno@clisp.org>
13092
13093         wmemcmp: Support for MSVC.
13094         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
13095         whether wmemcmp() exists.
13096
13097 2011-10-03  Bruno Haible  <bruno@clisp.org>
13098
13099         wmemchr: Support for MSVC.
13100         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
13101         whether wmemchr() exists.
13102
13103 2011-10-03  Bruno Haible  <bruno@clisp.org>
13104
13105         glthread/*, strsignal: Support for MSVC.
13106         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
13107         including <winsock.h> on MSVC 9.
13108         * lib/glthread/lock.h: Likewise.
13109         * lib/glthread/thread.h: Likewise.
13110         * lib/glthread/tls.h: Likewise.
13111         * lib/glthread/yield.h: Likewise.
13112         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
13113         if HAVE_UNISTD_H is false.
13114         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
13115
13116 2011-10-03  Bruno Haible  <bruno@clisp.org>
13117
13118         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
13119         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
13120         Set to 100000.
13121
13122 2011-10-03  Bruno Haible  <bruno@clisp.org>
13123
13124         acl: Fix specification.
13125         * lib/file-has-acl.c (file_has_acl): Fix specification.
13126
13127 2011-10-03  Bruno Haible  <bruno@clisp.org>
13128
13129         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
13130         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
13131         (compute_curr_prefix, shared_library_fullname,
13132         find_shared_library_fullname, get_shared_library_fullname, relocate):
13133         Use it together with PIC && INSTALLDIR.
13134         Reported by <jojelino@gmail.com>
13135         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
13136
13137 2011-10-01  Jim Meyering  <meyering@redhat.com>
13138
13139         maint.mk: adjust a release-related rule not to require use of gzip
13140         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
13141         Instead, check each file in $(DIST_ARCHIVES).  This is better for
13142         projects that build only .tar.xz files.  Also fix an erroneous test.
13143
13144         test-linkat: don't leave behind a temporary file
13145         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
13146         Otherwise, coreutils' "make distcheck" would fail with this:
13147           Only in /c/cu/tests/torture/coreutils/test/\
13148             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
13149           make[2]: *** [my-distcheck] Error 1
13150
13151         float, math: add omitted file
13152         * lib/itold.c: Add file, required for yesterday's float change.
13153
13154 2011-10-01  Bruno Haible  <bruno@clisp.org>
13155
13156         isinf: Fix for OpenBSD/x86.
13157         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
13158         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
13159         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
13160
13161 2011-10-01  Bruno Haible  <bruno@clisp.org>
13162
13163         isfinite: Fix syntax error in configure test.
13164         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
13165
13166         isfinite: Fix typo.
13167         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
13168         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
13169
13170 2011-10-01  Bruno Haible  <bruno@clisp.org>
13171
13172         nonblocking tests: Fix test failure on Linux/IA-64.
13173         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
13174         Set to 270000.
13175
13176 2011-10-01  Bruno Haible  <bruno@clisp.org>
13177
13178         mkfifoat tests: Fix a test failure on mingw.
13179         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
13180         with error ENOSYS.
13181
13182 2011-09-30  Bruno Haible  <bruno@clisp.org>
13183
13184         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
13185         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
13186         'long double'. Set REPLACE_ITOLD.
13187         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
13188         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
13189         * lib/itold.c: New file.
13190         * modules/float (Files): Add lib/itold.c.
13191         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
13192         (Makefile.am): Substitute REPLACE_ITOLD.
13193         * modules/math (Depends-on): Add float.
13194         (Makefile.am): Substitute REPLACE_ITOLD.
13195         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
13196         * doc/posix-headers/math.texi: Likewise.
13197         * doc/posix-functions/logl.texi: Likewise.
13198
13199 2011-09-30  Bruno Haible  <bruno@clisp.org>
13200
13201         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
13202         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
13203         Set to 140000.
13204
13205 2011-09-30  Bruno Haible  <bruno@clisp.org>
13206
13207         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
13208         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
13209         invocation, say "right after AC_PROG_CC_STDC", not "right after
13210         AC_PROG_CC".
13211         Reported by Gary V. Vaughan <gary@gnu.org>.
13212
13213 2011-09-30  Bruno Haible  <bruno@clisp.org>
13214
13215         Centralize C99 requirement.
13216         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
13217         * modules/stdarg (configure.ac-early): Invoke it instead of
13218         AC_PROG_CC_STDC.
13219         Reported by Gary V. Vaughan and Paul Eggert.
13220
13221 2011-09-29  Bruno Haible  <bruno@clisp.org>
13222
13223         float: Fix LDBL_MAX value on Linux/PowerPC.
13224         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
13225         on Linux/PowerPC.
13226         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
13227         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
13228         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
13229         platform.
13230         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
13231
13232 2011-09-29  Bruno Haible  <bruno@clisp.org>
13233
13234         doc: Improve doc about gl_EARLY.
13235         * doc/gnulib-tool.texi (Initial import): Mention where to place an
13236         AC_PROG_CC_STDC invocation.
13237         Reported by Gary V. Vaughan <gary@gnu.org>.
13238
13239 2011-09-28  Bruno Haible  <bruno@clisp.org>
13240
13241         fgetc, fputc, fread, fwrite tests: Fix link error.
13242         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
13243         on non-MSVC platforms.
13244         * tests/test-fputc.c (main): Likewise.
13245         * tests/test-fread.c (main): Likewise.
13246         * tests/test-fwrite.c (main): Likewise.
13247         Reported by Jim Meyering.
13248
13249 2011-09-27  Bruno Haible  <bruno@clisp.org>
13250
13251         fputc, fwrite tests: Avoid test failure on MSVC.
13252         * tests/test-fgetc.c: Include msvc-inval.h.
13253         (main): Invoke gl_msvc_inval_ensure_handler.
13254         * tests/test-fputc.c: Include msvc-inval.h.
13255         (main): Invoke gl_msvc_inval_ensure_handler.
13256         * tests/test-fread.c: Include msvc-inval.h.
13257         (main): Invoke gl_msvc_inval_ensure_handler.
13258         * tests/test-fwrite.c: Include msvc-inval.h.
13259         (main): Invoke gl_msvc_inval_ensure_handler.
13260         * modules/fgetc-tests (Depends-on): Add msvc-inval.
13261         * modules/fputc-tests (Depends-on): Likewise.
13262         * modules/fread-tests (Depends-on): Likewise.
13263         * modules/fwrite-tests (Depends-on): Likewise.
13264
13265 2011-09-27  Bruno Haible  <bruno@clisp.org>
13266
13267         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
13268         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
13269         (raise): Remove older, duplicated declaration.
13270         (_gl_raise_SIGPIPE): New declaration.
13271         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
13272         (rpl_raise): Remove function.
13273         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
13274         a gnulib-defined SIGPIPE here.
13275         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
13276         'sigprocmask' has detected missing signal-blocking and the module
13277         'sigpipe' is enabled.
13278         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13279
13280 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
13281
13282         base64-tests: avoid memory leak
13283         * tests/test-base64.c (main): Plug memory leak.
13284
13285         base32: new module
13286         * modules/base32: New module.
13287         * lib/base32.c: New file.
13288         * lib/base32.h: Likewise.
13289         * m4/base32.m4: Likewise.
13290         * modules/base32-tests: New test.
13291         * tests/test-base32.c: Likewise.
13292         * MODULES.html.sh (Misc): Mention it.
13293
13294 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13295
13296         gnulib: use more-standard license notice wording
13297         * gnulib-tool (func_emit_copyright_notice): When emitting a
13298         license notice into a file, use the standard wording as suggested
13299         by the current information for GNU maintainers, except say "file"
13300         rather than "program".  The new wording gives a license version
13301         number, which addresses an issue raised by Glenn Morris in
13302         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
13303         * m4/onceonly.m4: Use that same wording here, too.
13304
13305         dup2: minor simplification
13306         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
13307         as lib/dup2.c no longer uses 'inline'.
13308
13309 2011-09-25  Bruno Haible  <bruno@clisp.org>
13310
13311         strings: Fix compilation error on MSVC.
13312         * lib/strings.in.h: Include <stddef.h> for size_t.
13313
13314 2011-09-25  Bruno Haible  <bruno@clisp.org>
13315
13316         fflush et al.: Document limitation on MSVC.
13317         * doc/posix-functions/fflush.texi: Document possible crash in handling
13318         mode other than DEFAULT_HANDLING.
13319         * doc/posix-functions/fgetc.texi: Likewise.
13320         * doc/posix-functions/fputc.texi: Likewise.
13321         * doc/posix-functions/fread.texi: Likewise.
13322         * doc/posix-functions/fwrite.texi: Likewise.
13323
13324 2011-09-25  Bruno Haible  <bruno@clisp.org>
13325
13326         msvc-inval: Allow three invalid parameter handling modes.
13327         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13328         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13329         macros.
13330         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13331         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13332         SANE_LIBRARY_HANDLING as a no-op.
13333         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13334         <stdlib.h>.
13335         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13336
13337 2011-09-25  Bruno Haible  <bruno@clisp.org>
13338
13339         msvc-inval: Make handler multithread-safe.
13340         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13341         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13342         declarations.
13343         (gl_msvc_inval_current): New declaration.
13344         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13345         Operate on the structure returned by gl_msvc_inval_current().
13346         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13347         Remove varaiables.
13348         (tls_index, tls_initialized): New variables.
13349         (not_per_thread): New variable.
13350         (gl_msvc_inval_current): New function.
13351         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13352         returned by gl_msvc_inval_current().
13353
13354 2011-09-25  Bruno Haible  <bruno@clisp.org>
13355
13356         msvc-inval: Install handler globally.
13357         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13358         !_MSC_VER.
13359         (gl_msvc_invalid_parameter_handler): Remove declaration.
13360         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13361         declarations.
13362         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13363         Install the handler globally, don't uninstall it.
13364         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13365         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13366         currently valid, call RaiseException instead.
13367         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13368         for !_MSC_VER.
13369
13370 2011-09-25  Bruno Haible  <bruno@clisp.org>
13371
13372         strerror_r-posix: Fix for MSVC 9.
13373         * lib/strerror_r.c (local_snprintf): New function.
13374         (snprintf): Define to local_snprintf, not to _snprintf.
13375
13376 2011-09-25  Bruno Haible  <bruno@clisp.org>
13377
13378         ftruncate: Support for MSVC 9.
13379         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13380         (chsize_nothrow): New function.
13381         (chsize): Redefine as a macro.
13382         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13383         * modules/ftruncate (Depends-on): Add msvc-inval.
13384
13385 2011-09-25  Bruno Haible  <bruno@clisp.org>
13386
13387         New module 'fstat'.
13388         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
13389         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
13390         * lib/fchdir.c (rpl_fstat): Remove function.
13391         * m4/fstat.m4: New file.
13392         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
13393         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13394         declared.
13395         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13396         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13397         * modules/fstat: New file.
13398         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13399         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13400         is set.
13401         * doc/posix-functions/fstat.texi: Mention the new module and the
13402         problem on MSVC.
13403         * NEWS: Mention the change.
13404         * modules/acl (Depends-on): Add fstat.
13405         * modules/chdir-safer (Depends-on): Likewise.
13406         * modules/chown (Depends-on): Likewise.
13407         * modules/copy-file (Depends-on): Likewise.
13408         * modules/fchdir (Depends-on): Likewise.
13409         * modules/fdopendir (Depends-on): Likewise.
13410         * modules/fopen (Depends-on): Likewise.
13411         * modules/fts (Depends-on): Likewise.
13412         * modules/getcwd (Depends-on): Likewise.
13413         * modules/isapipe (Depends-on): Likewise.
13414         * modules/linkat (Depends-on): Likewise.
13415         * modules/lseek (Depends-on): Likewise.
13416         * modules/mkdir-p (Depends-on): Likewise.
13417         * modules/open (Depends-on): Likewise.
13418         * modules/openat (Depends-on): Likewise.
13419         * modules/read-file (Depends-on): Likewise.
13420         * modules/renameat (Depends-on): Likewise.
13421         * modules/utimens (Depends-on): Likewise.
13422
13423 2011-09-25  Bruno Haible  <bruno@clisp.org>
13424
13425         linkat: Fix compilation on MSVC 9.
13426         * lib/linkat.c: Don't include <stdint.h>.
13427
13428 2011-09-25  Bruno Haible  <bruno@clisp.org>
13429
13430         fclose: Support for MSVC 9.
13431         * lib/fclose.c: Include msvc-inval.h.
13432         (fclose_nothrow): New function.
13433         (rpl_fclose): Use it.
13434         * modules/fclose (Depends-on): Add msvc-inval.
13435         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13436
13437 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13438
13439         dup2: minor simplifications
13440         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13441         that it's a performance win.
13442         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13443         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13444
13445 2011-09-24  Jim Meyering  <meyering@redhat.com>
13446
13447         test-futimens: avoid a warning from gcc -Wshadow
13448         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13449         to avoid a shadowing warning.
13450
13451 2011-09-24  Bruno Haible  <bruno@clisp.org>
13452
13453         fdopen: Support for MSVC 9.
13454         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13455         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13456         * lib/fdopen.c: Include msvc-inval.h.
13457         (fdopen_nothrow): New function.
13458         (rpl_fdopen): Use it.
13459         * modules/fdopen (Depends-on): Add msvc-inval.
13460         * modules/fclose-tests (Depends-on): Add fdopen.
13461         * modules/fflush-tests (Depends-on): Likewise.
13462         * modules/fgetc-tests (Depends-on): Likewise.
13463         * modules/fputc-tests (Depends-on): Likewise.
13464         * modules/fread-tests (Depends-on): Likewise.
13465         * modules/freopen-tests (Depends-on): Likewise.
13466         * modules/fseeko-tests (Depends-on): Likewise.
13467         * modules/ftello-tests (Depends-on): Likewise.
13468         * modules/fwrite-tests  (Depends-on): Likewise.
13469         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13470
13471 2011-09-24  Bruno Haible  <bruno@clisp.org>
13472
13473         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13474         * modules/fgetc-tests (Depends-on): Add unistd.
13475         * modules/fputc-tests (Depends-on): Likewise.
13476         * modules/fread-tests (Depends-on): Likewise.
13477         * modules/fwrite-tests (Depends-on): Likewise.
13478
13479 2011-09-24  Bruno Haible  <bruno@clisp.org>
13480
13481         dup: Simplify autoconf test.
13482         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
13483         on gl_MSVC_INVAL's result.
13484
13485 2011-09-24  Bruno Haible  <bruno@clisp.org>
13486
13487         Tests for function fwrite().
13488         * modules/fwrite-tests: New file.
13489         * tests/test-fwrite.c: New file.
13490         * modules/stdio-tests (Depends-on): Add fwrite-tests.
13491
13492         Tests for function fread().
13493         * modules/fread-tests: New file.
13494         * tests/test-fread.c: New file.
13495         * modules/stdio-tests (Depends-on): Add fread-tests.
13496
13497         Activate fputc tests.
13498         * modules/stdio-tests (Depends-on): Add fputc-tests.
13499
13500         Enhance fgetc, fputc tests.
13501         * tests/test-fgetc.c (main): Also test the stream's error indicator.
13502         * tests/test-fputc.c (main): Likewise.
13503
13504 2011-09-24  Bruno Haible  <bruno@clisp.org>
13505
13506         write: Support for MSVC 9.
13507         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13508         is not 1.
13509         * lib/write.c (write_nothrow): New function.
13510         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
13511         not 1. Use write_nothrow.
13512         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
13513         invalid parameter handler.
13514         (gl_PREREQ_WRITE): New macro.
13515         * modules/write (Depends-on): Add msvc-inval.
13516         (configure.ac): Invoke gl_PREREQ_WRITE.
13517         * doc/posix-functions/write.texi: Mention the problem on MSVC.
13518
13519 2011-09-24  Bruno Haible  <bruno@clisp.org>
13520
13521         read: Fix last commit.
13522         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
13523
13524 2011-09-24  Bruno Haible  <bruno@clisp.org>
13525
13526         dup2: Fix last commit.
13527         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
13528         (rpl_dup2): Disable fcntl workaround on native Windows.
13529
13530         sigprocmask: Make code safer.
13531         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
13532         section that changes macro definitions for this compilation unit.
13533
13534 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13535
13536         dup2: clarify by coalescing Windows-specific material
13537         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
13538         "msvc-nothrow.h"' to the Windows-specific section, so that the
13539         Emacs source need not contain these include files.
13540         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
13541         Windows-specific fixes into this function rather than just the
13542         nothrow fix, as this shortens and clarifies the code.  Always
13543         define as a function, as that's a bit cleaner than having it be
13544         sometimes a function and sometimes a macro.
13545         (rpl_dup2): Move the Windows-specific stuff out of here and into
13546         ms_windows_dup2.  Don't protect the Haiku-related fix with
13547         "#if !defined __linux__", as the same code also works around
13548         a Linux kernel bug, and it doesn't add any system calls on any
13549         platform.  Add comment about FreeBSD 6.1.
13550
13551         sigprocmask: move #include directive
13552         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
13553         Windows-specific section, so that the Emacs source need not
13554         contain msvc-inval.h.
13555
13556 2011-09-23  Bruno Haible  <bruno@clisp.org>
13557
13558         read: Support for MSVC 9.
13559         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13560         is not 1.
13561         * lib/read.c (read_nothrow): New function.
13562         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
13563         read_nothrow.
13564         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
13565         invalid parameter handler.
13566         (gl_PREREQ_READ): New macro.
13567         * modules/read (Depends-on): Add msvc-inval.
13568         (configure.ac): Invoke gl_PREREQ_READ.
13569         * doc/posix-functions/read.texi: Mention the problem on MSVC.
13570
13571 2011-09-23  Bruno Haible  <bruno@clisp.org>
13572
13573         close: Support for MSVC 9.
13574         * lib/close.c: Include <errno.h>, msvc-inval.h.
13575         (close_nothrow): New function.
13576         (rpl_close): Use it.
13577         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
13578         invalid parameter handler.
13579         * modules/close (Depends-on): Add msvc-inval.
13580         * modules/dup2-tests (Depends-on): Add close.
13581         * modules/dup3-tests (Depends-on): Likewise.
13582         * modules/fcntl-tests (Depends-on): Likewise.
13583         * modules/spawn-pipe-tests (Depends-on): Likewise.
13584         * modules/unistd-safer-tests (Depends-on): Likewise.
13585         * doc/posix-functions/close.texi: Mention the problem on MSVC.
13586
13587 2011-09-23  Bruno Haible  <bruno@clisp.org>
13588
13589         New module 'dup'.
13590         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
13591         Allow replacement.
13592         * lib/dup.c: New file.
13593         * lib/fchdir.c (rpl_dup): Remove function.
13594         * m4/dup.m4: New file.
13595         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
13596         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
13597         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
13598         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
13599         * modules/dup: New file.
13600         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
13601         'dup' module is in use.
13602         * modules/fdopendir (Depends-on): Add dup.
13603         * modules/fdutimensat-tests (Depends-on): Likewise.
13604         * modules/fts (Depends-on): Likewise.
13605         * modules/futimens-tests (Depends-on): Likewise.
13606         * modules/posix_spawnp-tests (Depends-on): Likewise.
13607         * modules/unistd-safer-tests (Depends-on): Likewise.
13608         * modules/utimens-tests (Depends-on): Likewise.
13609         * doc/posix-functions/dup.texi: Mention the new module and the problem
13610         on MSVC.
13611
13612 2011-09-23  Bruno Haible  <bruno@clisp.org>
13613
13614         getdtablesize: Support for MSVC 9.
13615         * lib/getdtablesize.c: Include msvc-inval.h.
13616         (_setmaxstdio_nothrow): New function.
13617         (_setmaxstdio): Redefine it.
13618         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
13619         * modules/getdtablesize (Depends-on): Add msvc-inval.
13620         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
13621
13622 2011-09-23  Bruno Haible  <bruno@clisp.org>
13623
13624         signal-h: Rename from signal.
13625         * modules/signal-h: Renamed from modules/signal.
13626         * modules/pthread_sigmask (Depends-on): Update.
13627         * modules/raise (Depends-on): Likewise.
13628         * modules/sigaction (Depends-on): Likewise.
13629         * modules/sigpipe (Depends-on): Likewise.
13630         * modules/sigprocmask (Depends-on): Likewise.
13631         * modules/sys_select (Depends-on): Likewise.
13632         * modules/signal-h-tests: Renamed from modules/signal-tests.
13633         (Files, Depends-on, Makefile.am): Update.
13634         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
13635         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
13636         (Files, Makefile.am): Update.
13637         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
13638         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
13639         * modules/signal: New placeholder file.
13640         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
13641         * doc/posix-headers/signal.texi: Update.
13642         * NEWS: Mention the change.
13643
13644 2011-09-23  Bruno Haible  <bruno@clisp.org>
13645
13646         sigprocmask: Avoid crashes through signal() on MSVC 9.
13647         * lib/sigprocmask.c: Include msvc-inval.h.
13648         (signal_nothrow): New function.
13649         (signal): Redefine it.
13650         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
13651         * modules/sigprocmask (Depends-on): Add msvc-inval.
13652         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
13653
13654 2011-09-23  Bruno Haible  <bruno@clisp.org>
13655
13656         Tests for module 'raise'.
13657         * modules/raise-tests: New file.
13658         * tests/test-raise.c: New file.
13659
13660         raise: Support for MSVC.
13661         * lib/signal.in.h (raise): New declaration.
13662         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
13663         for native Windows platforms.
13664         * m4/raise.m4: New file.
13665         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
13666         HAVE_RAISE, REPLACE_RAISE.
13667         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
13668         REPLACE_RAISE.
13669         * modules/raise (Status, Notice): Remove fields.
13670         (Files): Add m4/raise.m4.
13671         (Depends-on): Add signal, msvc-inval.
13672         (configure.ac): Use the common idioms.
13673         (Maintainer): Add me.
13674         * tests/test-signal-c++.cc: Check the signature of raise.
13675         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
13676
13677 2011-09-23  Bruno Haible  <bruno@clisp.org>
13678
13679         pipe2: Fix compilation on pre-C99 compilers.
13680         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
13681
13682 2011-09-23  Bruno Haible  <bruno@clisp.org>
13683
13684         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
13685         * lib/msvc-nothrow.h: New file.
13686         * lib/msvc-nothrow.c: New file.
13687         * m4/msvc-nothrow.m4: New file.
13688         * modules/msvc-nothrow: New file.
13689         * lib/dup2.c: Include msvc-nothrow.h.
13690         (rpl_dup2): No need to protect _get_osfhandle call here.
13691         * lib/accept4.c: Include msvc-nothrow.h.
13692         * lib/error.c: Likewise.
13693         * lib/fcntl.c: Likewise.
13694         * lib/lseek.c: Likewise.
13695         * lib/nonblocking.c: Likewise.
13696         * lib/poll.c: Likewise.
13697         * lib/read.c: Likewise.
13698         * lib/select.c: Likewise.
13699         * lib/sockets.h: Likewise.
13700         * lib/sockets.c: Likewise.
13701         * lib/stdio-read.c: Likewise.
13702         * lib/stdio-write.c: Likewise.
13703         * lib/write.c: Likewise.
13704         * lib/w32sock.h: Likewise.
13705         * lib/w32spawn.h: Likewise.
13706         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
13707         * lib/fsync.c: Likewise.
13708         * lib/isapipe.c: Likewise.
13709         * modules/dup2 (Depends-on): Add msvc-nothrow.
13710         * modules/accept4 (Depends-on): Likewise.
13711         * modules/error (Depends-on): Likewise.
13712         * modules/fcntl (Depends-on): Likewise.
13713         * modules/lseek (Depends-on): Likewise.
13714         * modules/nonblocking (Depends-on): Likewise.
13715         * modules/poll (Depends-on): Likewise.
13716         * modules/read (Depends-on): Likewise.
13717         * modules/select (Depends-on): Likewise.
13718         * modules/sockets (Depends-on): Likewise.
13719         * modules/sigpipe (Depends-on): Likewise.
13720         * modules/write (Depends-on): Likewise.
13721         * modules/accept (Depends-on): Likewise.
13722         * modules/bind (Depends-on): Likewise.
13723         * modules/connect (Depends-on): Likewise.
13724         * modules/gethostname (Depends-on): Likewise.
13725         * modules/getpeername (Depends-on): Likewise.
13726         * modules/getsockname (Depends-on): Likewise.
13727         * modules/getsockopt (Depends-on): Likewise.
13728         * modules/ioctl (Depends-on): Likewise.
13729         * modules/listen (Depends-on): Likewise.
13730         * modules/recv (Depends-on): Likewise.
13731         * modules/recvfrom (Depends-on): Likewise.
13732         * modules/send (Depends-on): Likewise.
13733         * modules/sendto (Depends-on): Likewise.
13734         * modules/setsockopt (Depends-on): Likewise.
13735         * modules/shutdown (Depends-on): Likewise.
13736         * modules/socket (Depends-on): Likewise.
13737         * modules/execute (Depends-on): Likewise.
13738         * modules/spawn-pipe (Depends-on): Likewise.
13739         * modules/flock (Depends-on): Likewise.
13740         * modules/fsync (Depends-on): Likewise.
13741         * modules/isapipe (Depends-on): Likewise.
13742         * tests/test-cloexec.c: Include msvc-nothrow.h.
13743         * tests/test-dup-safer.c: Likewise.
13744         * tests/test-dup2.c: Likewise.
13745         * tests/test-dup3.c: Likewise.
13746         * tests/test-fcntl.c: Likewise.
13747         * tests/test-pipe.c: Likewise.
13748         * tests/test-pipe2.c: Likewise.
13749         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
13750         * modules/unistd-safer-tests (Depends-on): Likewise.
13751         * modules/dup2-tests (Depends-on): Likewise.
13752         * modules/dup3-tests (Depends-on): Likewise.
13753         * modules/fcntl-tests (Depends-on): Likewise.
13754         * modules/pipe-posix-tests (Depends-on): Likewise.
13755         * modules/pipe2-tests (Depends-on): Likewise.
13756
13757 2011-09-23  Bruno Haible  <bruno@clisp.org>
13758
13759         dup2: Make code more maintainable.
13760         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
13761         (rpl_dup2): Use it.
13762         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
13763         * modules/dup2 (configure.ac): Invoke it.
13764         Reported by Paul Eggert.
13765
13766 2011-09-23  Bruno Haible  <bruno@clisp.org>
13767
13768         msvc-inval: Fix compilation error.
13769         * lib/msvc-inval.h: Include <excpt.h>.
13770
13771 2011-09-23  Bruno Haible  <bruno@clisp.org>
13772
13773         mkdir: Tweak for MSVC 9.
13774         * lib/sys_stat.in.h: Update comments.
13775         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
13776
13777         Tests for module 'chdir'.
13778         * modules/chdir-tests: New file.
13779         * tests/test-chdir.c: New file.
13780
13781         New module 'chdir'.
13782         * modules/chdir: New file.
13783         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
13784         (chdir): New declaration.
13785         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
13786         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
13787         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
13788         * tests/test-unistd-c++.cc: Check signature of chdir.
13789         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
13790         * modules/chdir-long (Depends-on): Add chdir.
13791         * modules/fchdir (Depends-on): Likewise.
13792         * modules/rename (Depends-on): Likewise.
13793         * modules/savewd (Depends-on): Likewise.
13794
13795         rmdir: Support for mingw, MSVC 9.
13796         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
13797         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
13798
13799         getcwd: Tweak for MSVC 9.
13800         * lib/unistd.in.h: Update comments.
13801         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
13802
13803 2011-09-22  Bruno Haible  <bruno@clisp.org>
13804
13805         strerror_r-posix: Avoid a link error on MSVC.
13806         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
13807         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
13808
13809 2011-09-22  Bruno Haible  <bruno@clisp.org>
13810
13811         select: Avoid link errors on MSVC.
13812         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
13813         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
13814         * modules/pselect (Link): Likewise.
13815         * NEWS: Mention the change.
13816         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
13817         test-select-stdin against $(LIB_SELECT).
13818         * modules/pselect-tests (Makefile.am): Link test-pselect against
13819         $(LIB_SELECT).
13820
13821 2011-09-22  Bruno Haible  <bruno@clisp.org>
13822
13823         select: Avoid compilation error on MSVC.
13824         * lib/select.c: Don't include <stdbool.h>.
13825
13826 2011-09-21  Bruno Haible  <bruno@clisp.org>
13827
13828         Consolidate all uses of PATH_MAX in *.m4 files.
13829         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
13830         macros.
13831         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
13832         and gl_PATHMAX_SNIPPET.
13833         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13834         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13835         * modules/chdir-long (Files): Add m4/pathmax.m4.
13836         * modules/getcwd (Files): Likewise.
13837
13838 2011-09-21  Bruno Haible  <bruno@clisp.org>
13839
13840         ftruncate: Un-deprecate, concentrate on Win32 support.
13841         * modules/ftruncate (Status, Notice): Remove sections.
13842         (Depends-on): Add largefile.
13843         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
13844         non-mingw platforms.
13845         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
13846         include <io.h>.
13847         * modules/perror-tests (Depends-on): Add ftruncate.
13848         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
13849         'ftruncate' module.
13850
13851 2011-09-21  Bruno Haible  <bruno@clisp.org>
13852
13853         Add dependencies to new dirent related modules.
13854         * modules/opendir (Depends-on): Add closedir.
13855         * modules/getcwd (Depends-on): Add opendir, closedir.
13856         * modules/dirent-safer-tests (Depends-on): Likewise.
13857         * modules/fdopendir-tests (Depends-on): Likewise.
13858         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
13859         * modules/renameat-tests (Depends-on): Likewise.
13860
13861 2011-09-21  Bruno Haible  <bruno@clisp.org>
13862
13863         opendir: Avoid compilation error on mingw.
13864         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
13865         * modules/opendir (Depends-on): Add unistd.
13866
13867 2011-09-21  Bruno Haible  <bruno@clisp.org>
13868
13869         ftruncate tests: Avoid a test failure on mingw.
13870         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
13871
13872 2011-09-21  Bruno Haible  <bruno@clisp.org>
13873
13874         select tests: Avoid test failures on OSF/1 5.1 and mingw.
13875         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
13876         native Windows.
13877
13878 2011-09-21  Bruno Haible  <bruno@clisp.org>
13879
13880         New module 'fdopen'.
13881         * lib/stdio.in.h (fdopen): New declaration.
13882         * lib/fdopen.c: New file.
13883         * m4/fdopen.m4: New file.
13884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
13885         REPLACE_FDOPEN.
13886         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
13887         REPLACE_FDOPEN.
13888         * modules/fdopen: New file.
13889         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
13890         * tests/test-stdio-c++.cc: Check signature of fdopen.
13891         * doc/posix-functions/fdopen.texi: Mention the new module.
13892
13893 2011-09-21  Bruno Haible  <bruno@clisp.org>
13894
13895         unlockpt tests: Avoid test failure on NetBSD 5.1.
13896         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
13897         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
13898
13899 2011-09-21  Bruno Haible  <bruno@clisp.org>
13900
13901         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
13902         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
13903         * tests/test-getlogin_r.c (main): Likewise.
13904
13905 2011-09-20  Bruno Haible  <bruno@clisp.org>
13906
13907         time tests: Don't require pid_t.
13908         * doc/posix-headers/time.texi: Revert last change.
13909         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
13910         * tests/test-time.c: Comment out the check for pid_t.
13911
13912 2011-09-20  Bruno Haible  <bruno@clisp.org>
13913
13914         fsync tests: Avoid a test failure on mingw.
13915         * tests/test-fsync.c (main): Allow a failure with EIO.
13916
13917 2011-09-20  Bruno Haible  <bruno@clisp.org>
13918
13919         euidaccess: Update comments.
13920         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
13921
13922 2011-09-20  Bruno Haible  <bruno@clisp.org>
13923
13924         Ensure EBADF returns for socket functions on mingw.
13925         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
13926         descriptor is invalid.
13927         * lib/bind.c (rpl_bind): Likewise.
13928         * lib/connect.c (rpl_connect): Likewise.
13929         * lib/getpeername.c (rpl_getpeername): Likewise.
13930         * lib/getsockname.c (rpl_getsockname): Likewise.
13931         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13932         * lib/listen.c (rpl_listen): Likewise.
13933         * lib/recv.c (rpl_recv): Likewise.
13934         * lib/recvfrom.c (rpl_recvfrom): Likewise.
13935         * lib/send.c (rpl_send): Likewise.
13936         * lib/sendto.c (rpl_sendto): Likewise.
13937         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13938         * lib/shutdown.c (rpl_shutdown): Likewise.
13939
13940 2011-09-20  Bruno Haible  <bruno@clisp.org>
13941
13942         select tests: EBADF tests.
13943         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
13944         test_bad_fd): New functions.
13945         (test_function): Invoke also test_bad_fd.
13946
13947 2011-09-20  Bruno Haible  <bruno@clisp.org>
13948
13949         Tests for module 'posix_spawn_file_actions_addopen.
13950         * modules/posix_spawn_file_actions_addopen-tests: New file.
13951         * tests/test-posix_spawn_file_actions_addopen.c: New file.
13952
13953         Tests for module 'posix_spawn_file_actions_adddup2'.
13954         * modules/posix_spawn_file_actions_adddup2-tests: New file.
13955         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
13956
13957         Tests for module 'posix_spawn_file_actions_addclose'.
13958         * modules/posix_spawn_file_actions_addclose-tests: New file.
13959         * tests/test-posix_spawn_file_actions_addclose.c: New file.
13960
13961 2011-09-20  Bruno Haible  <bruno@clisp.org>
13962
13963         Tests for module 'unlockpt'.
13964         * modules/unlockpt-tests: New file.
13965         * tests/test-unlockpt.c: New file.
13966         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
13967
13968         Tests for module 'grantpt'.
13969         * modules/grantpt-tests: New file.
13970         * tests/test-grantpt.c: New file.
13971         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
13972
13973 2011-09-20  Bruno Haible  <bruno@clisp.org>
13974
13975         freopen tests: EBADF tests.
13976         * tests/test-freopen.c: Include errno.h, unistd.h.
13977         (main): Add tests for EBADF, commented out for the moment.
13978
13979         fclose tests: EBADF tests.
13980         * tests/test-fclose.c (main): Add tests for EBADF.
13981
13982         fflush tests: EBADF tests.
13983         * tests/test-fflush.c: Include errno.h, macros.h.
13984         (main): Add tests for EBADF.
13985
13986         ftello tests: EBADF tests.
13987         * tests/test-ftello4.sh: New file.
13988         * tests/test-ftello4.c: New file.
13989         * modules/ftello-tests (Files): Add them.
13990         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
13991
13992         fseeko tests: EBADF tests.
13993         * tests/test-fseeko4.sh: New file.
13994         * tests/test-fseeko4.c: New file.
13995         * modules/fseeko-tests (Files): Add them.
13996         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
13997
13998         Tests for function fputc().
13999         * modules/fputc-tests: New file.
14000         * tests/test-fputc.c: New file.
14001         * modules/stdio-tests (Depends-on): Add fputc-tests.
14002
14003         Tests for function fgetc().
14004         * modules/fgetc-tests: New file.
14005         * tests/test-fgetc.c: New file.
14006         * modules/stdio-tests (Depends-on): Add fgetc-tests.
14007
14008         Tests for function fdopen().
14009         * modules/fdopen-tests: New file.
14010         * tests/test-fdopen.c: New file.
14011         * modules/stdio-tests (Depends-on): Add fdopen-tests.
14012
14013         Tests for module 'vdprintf'.
14014         * modules/vdprintf-tests: New file.
14015         * tests/test-vdprintf.c: New file.
14016
14017         Tests for module 'dprintf'.
14018         * modules/dprintf-tests: New file.
14019         * tests/test-dprintf.c: New file.
14020
14021 2011-09-20  Bruno Haible  <bruno@clisp.org>
14022
14023         Tests for module 'ioctl'.
14024         * modules/ioctl-tests: New file.
14025         * tests/test-ioctl.c: New file.
14026
14027 2011-09-20  Bruno Haible  <bruno@clisp.org>
14028
14029         fcntl tests: EBADF tests.
14030         * tests/test-fcntl.c (main): Add more tests for EBADF.
14031
14032 2011-09-20  Bruno Haible  <bruno@clisp.org>
14033
14034         utimensat tests: EBADF tests.
14035         * tests/test-utimensat.c (main): Add tests for EBADF.
14036
14037         renameat tests: EBADF tests.
14038         * tests/test-renameat.c (main): Add tests for EBADF.
14039
14040         mkfifoat tests: EBADF tests.
14041         * tests/test-mkfifoat.c (main): Add tests for EBADF.
14042
14043         readlinkat tests: EBADF tests.
14044         * tests/test-readlinkat.c (main): Add tests for EBADF.
14045
14046         symlinkat tests: EBADF tests.
14047         * tests/test-symlinkat.c (main): Add tests for EBADF.
14048
14049         linkat tests: EBADF tests.
14050         * tests/test-linkat.c (main): Add tests for EBADF.
14051
14052         Tests for module 'faccessat'.
14053         * modules/faccessat-tests: New file.
14054         * tests/test-faccessat.c: New file.
14055
14056         fdopendir tests: EBADF tests.
14057         * tests/test-fdopendir.c (main): Add more tests for EBADF.
14058
14059         openat tests: EBADF tests.
14060         * tests/test-fchownat.c (main): Add tests for EBADF.
14061         * tests/test-fstatat.c (main): Likewise.
14062         * tests/test-mkdirat.c (main): Likewise.
14063         * tests/test-openat.c (main): Likewise.
14064         * tests/test-unlinkat.c (main): Likewise.
14065         * tests/test-fchmodat.c: New file.
14066         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
14067         (Makefile.am): Also run 'test-fchmodat'.
14068
14069 2011-09-20  Bruno Haible  <bruno@clisp.org>
14070
14071         utimens, futimens, fdutimensat tests: EBADF tests.
14072         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
14073
14074         Tests for function fstat().
14075         * modules/fstat-tests: New file.
14076         * tests/test-fstat.c: New file.
14077         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
14078
14079 2011-09-20  Bruno Haible  <bruno@clisp.org>
14080
14081         test-ttyname_r tests: EBADF tests.
14082         * tests/test-ttyname_r.c (main): Add tests for EBADF.
14083
14084         Tests for module 'isatty'.
14085         * modules/isatty-tests: New file.
14086         * tests/test-isatty.c: New file.
14087
14088         Tests for module 'write'.
14089         * modules/write-tests: New file.
14090         * tests/test-write.c: New file.
14091
14092         Tests for module 'read'.
14093         * modules/read-tests: New file.
14094         * tests/test-read.c: New file.
14095
14096         pwrite tests: EBADF tests.
14097         * tests/test-pwrite.c (main): Add tests for EBADF.
14098
14099         pread tests: EBADF tests.
14100         * tests/test-pread.c (main): Add tests for EBADF.
14101
14102         lseek tests: EBADF tests.
14103         * tests/test-lseek.c (main): Add more tests for EBADF.
14104
14105         Tests for module 'ftruncate'.
14106         * modules/ftruncate-tests: New file.
14107         * tests/test-ftruncate.sh: New file.
14108         * tests/test-ftruncate.c: New file.
14109
14110         fsync tests: EBADF tests.
14111         * tests/test-fsync.c (main): Add more tests for EBADF.
14112
14113         fdatasync tests: EBADF tests.
14114         * tests/test-fdatasync.c (main): Add more tests for EBADF.
14115
14116         Tests for module 'fchown'.
14117         * modules/fchown-tests: New file.
14118         * tests/test-fchown.c: New file.
14119
14120         Tests for module 'fchmod'.
14121         * modules/fchmod-tests: New file.
14122         * tests/test-fchmod.c: New file.
14123
14124         fchdir tests: EBADF tests.
14125         * tests/test-fchdir.c (main): Add more tests for EBADF.
14126
14127         dup2 tests: EBADF tests.
14128         * tests/test-dup2.c (main): Add more tests for EBADF.
14129
14130         Tests for module 'dup'.
14131         * modules/dup-tests: New file.
14132         * tests/test-dup.c: New file.
14133
14134         Tests for module 'close'.
14135         * modules/close-tests: New file.
14136         * tests/test-close.c: New file.
14137
14138 2011-09-20  Bruno Haible  <bruno@clisp.org>
14139
14140         Tests for module 'shutdown'.
14141         * modules/shutdown-tests: New file.
14142         * tests/test-shutdown.c: New file.
14143
14144         Tests for module 'setsockopt'.
14145         * modules/setsockopt-tests: New file.
14146         * tests/test-setsockopt.c: New file.
14147
14148         Tests for module 'sendto'.
14149         * modules/sendto-tests: New file.
14150         * tests/test-sendto.c: New file.
14151
14152         Tests for module 'send'.
14153         * modules/send-tests: New file.
14154         * tests/test-send.c: New file.
14155
14156         Tests for module 'recvfrom'.
14157         * modules/recvfrom-tests: New file.
14158         * tests/test-recvfrom.c: New file.
14159
14160         Tests for module 'recv'.
14161         * modules/recv-tests: New file.
14162         * tests/test-recv.c: New file.
14163
14164         Tests for module 'listen'.
14165         * modules/listen-tests: New file.
14166         * tests/test-listen.c: New file.
14167
14168         Tests for module 'getsockopt'.
14169         * modules/getsockopt-tests: New file.
14170         * tests/test-getsockopt.c: New file.
14171
14172         Tests for module 'getsockname'.
14173         * modules/getsockname-tests: New file.
14174         * tests/test-getsockname.c: New file.
14175
14176         Tests for module 'getpeername'.
14177         * modules/getpeername-tests: New file.
14178         * tests/test-getpeername.c: New file.
14179
14180         Tests for module 'connect'.
14181         * modules/connect-tests: New file.
14182         * tests/test-connect.c: New file.
14183
14184         Tests for module 'bind'.
14185         * modules/bind-tests: New file.
14186         * tests/test-bind.c: New file.
14187
14188         accept4 tests: Fix for native Windows.
14189         * tests/test-accept4.c: Include sockets.h.
14190         (main): Invoke gl_sockets_startup.
14191         * modules/accept4-tests (Depends-on): Add sockets.
14192
14193         accept tests: Fix for native Windows.
14194         * tests/test-accept.c: Include sockets.h.
14195         (main): Invoke gl_sockets_startup.
14196         * modules/accept-tests (Depends-on): Add sockets.
14197
14198 2011-09-19  Bruno Haible  <bruno@clisp.org>
14199
14200         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
14201         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
14202         do...while(0).
14203         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
14204         Suggested by Paul Eggert.
14205
14206 2011-09-19  Bruno Haible  <bruno@clisp.org>
14207
14208         sched: Ensure pid_t is defined.
14209         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
14210         not define pid_t.
14211         * lib/sched.in.h: Include <sys/types.h>.
14212         * doc/posix-headers/sched.texi: Mention the pid_t problem.
14213         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14214
14215 2011-09-19  Bruno Haible  <bruno@clisp.org>
14216
14217         msvc-inval: Ensure the entire expansion is a single statement.
14218         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
14219         of braces.
14220
14221 2011-09-19  Jim Meyering  <meyering@redhat.com>
14222
14223         tests: use printf, not echo in init.sh's warn_ function
14224         * tests/init.sh (warn_): Use printf, not echo.  The latter would
14225         misbehave when given strings containing a backslash or starting
14226         with e.g., -n.  James Youngman suggested setting IFS.
14227
14228 2011-09-19  Eric Blake  <eblake@redhat.com>
14229
14230         futimens: enhance test
14231         * tests/test-futimens.h (test_futimens): Also check for EBADF on
14232         closed non-negative fd.
14233
14234         date: accept 'hence' as opposite of 'ago'
14235         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
14236         * tests/test-parse-datetime.c (main): Enhance test.
14237         Suggested by Jesse Wilson.
14238
14239 2011-09-19  Jim Meyering  <meyering@redhat.com>
14240
14241         getcwd: don't fail in a deep directory on a system without openat
14242         Before this change, getcwd would fail when called from a directory
14243         of depth PATH_MAX / 3 or greater.  That was due to the fact that
14244         the non-openat implementation used "..", "../..", "../../..", etc.
14245         to access ancestor directories.  With too many, that string would
14246         be longer than PATH_MAX.
14247         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
14248         using gnulib's openat replacement.
14249         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
14250         we're using the replacement function.
14251
14252 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
14253
14254         maint.mk: avoid warnings from perl about missing files
14255         * top/maint.mk (def_sym_regex): Ignore files listed in
14256         $(gl_other_headers_) that do not exist, say because a project
14257         does not use a corresponding module.
14258
14259 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14260
14261         stat: use pathmax.h only if needed
14262         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
14263         This is better for Emacs, which does not have a mingw port and
14264         therefore can avoid the pathmax module.
14265
14266         utimens: remove dependency on dup2
14267         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
14268         to work around the Linux kernel bug.
14269         * modules/utimens (Depends-on): Remove dup2.
14270
14271 2011-09-18  Bruno Haible  <bruno@clisp.org>
14272
14273         inet_ntop, inet_pton: Look for it also in libresolv.
14274         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
14275         libnsl, search for it in libresolv.
14276         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14277         Needed on Solaris 7.
14278
14279 2011-09-18  Bruno Haible  <bruno@clisp.org>
14280
14281         accept, accept4 tests: Avoid link error on Solaris.
14282         * modules/accept-tests (Makefile.am): Link test-accept against
14283         $(LIBSOCKET).
14284         * modules/accept4-tests (Makefile.am): Link test-accept4 against
14285         $(LIBSOCKET).
14286
14287         accept4: Avoid link error on Solaris.
14288         * modules/accept4 (Link): New section.
14289
14290         socket functions: Avoid link errors on Solaris.
14291         * modules/accept (Depends-on): Add socketlib.
14292         (Link): New section.
14293         * modules/bind (Depends-on): Add socketlib.
14294         (Link): New section.
14295         * modules/connect (Depends-on): Add socketlib.
14296         (Link): New section.
14297         * modules/getpeername (Depends-on): Add socketlib.
14298         (Link): New section.
14299         * modules/getsockname (Depends-on): Add socketlib.
14300         (Link): New section.
14301         * modules/getsockopt (Depends-on): Add socketlib.
14302         (Link): New section.
14303         * modules/listen (Depends-on): Add socketlib.
14304         (Link): New section.
14305         * modules/recv (Depends-on): Add socketlib.
14306         (Link): New section.
14307         * modules/recvfrom (Depends-on): Add socketlib.
14308         (Link): New section.
14309         * modules/send (Depends-on): Add socketlib.
14310         (Link): New section.
14311         * modules/sendto (Depends-on): Add socketlib.
14312         (Link): New section.
14313         * modules/setsockopt (Depends-on): Add socketlib.
14314         (Link): New section.
14315         * modules/shutdown (Depends-on): Add socketlib.
14316         (Link): New section.
14317         * modules/socket (Depends-on): Add socketlib.
14318         (Link): New section.
14319
14320 2011-09-18  Bruno Haible  <bruno@clisp.org>
14321
14322         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
14323         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14324         than 5 seconds.
14325         * modules/ptsname-tests (configure.ac): Test for alarm.
14326
14327 2011-09-18  Bruno Haible  <bruno@clisp.org>
14328
14329         posix_spawn_file_actions_add*: Fix module dependencies.
14330         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14331         posix_spawn_file_actions_init.
14332         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14333         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14334
14335 2011-09-18  Bruno Haible  <bruno@clisp.org>
14336
14337         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14338         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14339         * tests/test-renameat.c (main): Likewise.
14340
14341 2011-09-18  Bruno Haible  <bruno@clisp.org>
14342
14343         Tests for module 'accept4'.
14344         * modules/accept4-tests: New file.
14345         * tests/test-accept4.c: New file.
14346
14347 2011-09-18  Bruno Haible  <bruno@clisp.org>
14348
14349         Tests for module 'accept'.
14350         * modules/accept-tests: New file.
14351         * tests/test-accept.c: New file.
14352
14353 2011-09-18  Bruno Haible  <bruno@clisp.org>
14354
14355         dup2: Support for MSVC.
14356         * lib/dup2.c: Include msvc-inval.h.
14357         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14358         _get_osfhandle calls.
14359         * modules/dup2 (Depends-on): Add msvc-inval.
14360         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14361
14362         New module 'msvc-inval'.
14363         * lib/msvc-inval.h: New file.
14364         * lib/msvc-inval.c: New file.
14365         * m4/msvc-inval.m4: New file.
14366         * modules/msvc-inval: New file.
14367
14368 2011-09-17  Bruno Haible  <bruno@clisp.org>
14369
14370         Tests for module 'pclose'.
14371         * modules/pclose-tests: New file.
14372
14373         New module 'pclose'.
14374         * lib/stdio.in.h (pclose): New declaration.
14375         * lib/pclose.c: New file.
14376         * m4/pclose.m4: New file.
14377         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14378         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14379         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14380         * modules/pclose: New file.
14381         * modules/popen-tests (Depends-on): Add pclose.
14382         * modules/popen-safer-tests (Depends-on): Likewise.
14383         * doc/posix-functions/pclose.texi: Mention the new module.
14384
14385 2011-09-17  Bruno Haible  <bruno@clisp.org>
14386
14387         popen: Support for MSVC.
14388         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
14389         * lib/popen.c (popen): Provide alternate definition for native Windows.
14390         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
14391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
14392         * modules/popen (Depends-on, configure.ac): Update condition.
14393         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14394         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14395         fixed.
14396
14397 2011-09-17  Bruno Haible  <bruno@clisp.org>
14398
14399         isnanl, isnand, isnanf: Work around MSVC bug.
14400         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14401
14402 2011-09-17  Bruno Haible  <bruno@clisp.org>
14403
14404         sys_socket tests: Fix recent mistake.
14405         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14406
14407 2011-09-17  Bruno Haible  <bruno@clisp.org>
14408
14409         putenv: Support for MSVC.
14410         * modules/putenv (Depends-on): Add environ.
14411         * lib/putenv.c (environ): Disable declaration.
14412         * lib/unistd.in.h: Update comment.
14413
14414 2011-09-17  Bruno Haible  <bruno@clisp.org>
14415
14416         math: Avoid macro redefinition warnings on MSVC.
14417         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14418         Undefine before redefining.
14419
14420 2011-09-17  Bruno Haible  <bruno@clisp.org>
14421
14422         doc: Mention functions which are declared as macros.
14423         * doc/posix-functions/*[fl].texi: Mention that some functions are
14424         defined as macros with arguments only.
14425
14426 2011-09-17  Bruno Haible  <bruno@clisp.org>
14427
14428         Add dependencies to new dirent related modules.
14429         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14430         * modules/fts (Depends-on): Likewise.
14431         * modules/glob (Depends-on): Likewise.
14432         * modules/savedir (Depends-on): Likewise.
14433         * modules/scandir (Depends-on): Likewise.
14434         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14435         * modules/fdopendir (Depends-on): Add opendir.
14436
14437 2011-09-17  Bruno Haible  <bruno@clisp.org>
14438
14439         inet_pton: Support for MSVC on Windows Vista or newer.
14440         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14441         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14442         HAVE_DECL_INET_PTON is defined.
14443         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14444         On platforms with <winsock2.h>, test whether inet_pton is declared in
14445         <ws2tcpip.h>. If so, arrange to replace it.
14446         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14447         REPLACE_INET_PTON.
14448         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14449         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14450         (Depends-on, configure.ac): Update condition.
14451         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14452
14453 2011-09-17  Bruno Haible  <bruno@clisp.org>
14454
14455         inet_ntop: Support for MSVC on Windows Vista or newer.
14456         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14457         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14458         HAVE_DECL_INET_NTOP is defined.
14459         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14460         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14461         <ws2tcpip.h>. If so, arrange to replace it.
14462         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14463         REPLACE_INET_NTOP.
14464         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14465         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14466         (Depends-on, configure.ac): Update condition.
14467         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14468
14469 2011-09-16  Eric Blake  <eblake@redhat.com>
14470
14471         test-fsync: yet another enhancement
14472         * tests/test-fsync.c (main): Also test behavior on read-only text
14473         file.
14474
14475 2011-09-16  Bruno Haible  <bruno@clisp.org>
14476
14477         Enhance fsync, fdatasync tests.
14478         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
14479         * tests/test-fdatasync.c (main): Likewise.
14480
14481 2011-09-16  Bruno Haible  <bruno@clisp.org>
14482
14483         Support for MSVC compiler: Ensure mode_t gets defined.
14484         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
14485         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14486         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14487         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
14488         * tests/test-fcntl-h.c: Check that mode_t is defined.
14489         * tests/test-sys_stat.c: Likewise.
14490         * tests/test-sys_types.c: Likewise.
14491         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
14492         * doc/posix-headers/sys_stat.texi: Likewise.
14493         * doc/posix-headers/sys_types.texi: Likewise.
14494
14495 2011-09-16  Bruno Haible  <bruno@clisp.org>
14496
14497         sys_stat: Support for MSVC.
14498         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
14499         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
14500         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
14501         MSVC.
14502
14503 2011-09-16  Bruno Haible  <bruno@clisp.org>
14504
14505         Support for MSVC compiler: Ensure off_t gets defined.
14506         * lib/unistd.in.h: Include <sys/types.h>.
14507         * tests/test-fcntl-h.c: Check that off_t is defined.
14508         * tests/test-sys_stat.c: Likewise.
14509         * tests/test-sys_types.c: Likewise.
14510
14511 2011-09-16  Eric Blake  <eblake@redhat.com>
14512
14513         fdatasync: port to Solaris
14514         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
14515         * modules/fdatasync (Link): Document it.
14516         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
14517
14518         fdatasync: port to MacOS X 10.7
14519         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
14520         declared.
14521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
14522         * modules/unistd (Makefile.am): Substitute it.
14523         * lib/unistd.in.h (fdatasync): Declare on MacOS.
14524         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
14525
14526         fdatasync: minor improvements
14527         * modules/fdatasync (Depends-on): Add condition for fsync.
14528         * lib/fdatasync.c (fdatasync): Add comment.
14529         * tests/test-unistd-c++.cc: Test fdatasync.
14530
14531         unistd: update refs to newer POSIX
14532         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
14533         Suggested by Bruno Haible.
14534
14535         fdatasync: new module
14536         * modules/fsync (Description): Document difference to fdatasync.
14537         * modules/fdatasync: New module.
14538         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
14539         * lib/fdatasync.c (fdatasync): Likewise.
14540         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
14541         defaults.
14542         * modules/unistd (Makefile.am): Set witnesses.
14543         * lib/unistd.in.h (fdatasync): Declare.
14544         * MODULES.html.sh: Document it.
14545         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
14546         * modules/fdatasync-tests: New test.
14547         * tests/test-fdatasync.c: Likewise.
14548
14549 2011-09-16  Eric Blake  <eblake@redhat.com>
14550
14551         test-fsync: enhance tests
14552         * modules/fsync-tests (Depends-on): Add errno, for mingw.
14553         * tests/test-fsync.c (main): Enhance test.
14554
14555 2011-09-15  Bruno Haible  <bruno@clisp.org>
14556
14557         Support for MSVC compiler: Ensure ssize_t gets defined.
14558         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
14559         * doc/posix-headers/stdio.texi: Likewise.
14560         * modules/stdio (Depends-on): Add ssize_t.
14561         * modules/sys_socket (Depends-on): Likewise.
14562         * modules/sys_types (Depends-on): Likewise.
14563         * modules/sys_uio (Depends-on): Likewise.
14564         * modules/unistd (Depends-on): Likewise.
14565         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
14566         * tests/test-sys_types.c: Check that ssize_t is defined.
14567
14568 2011-09-14  Bruno Haible  <bruno@clisp.org>
14569
14570         Avoid using #, the m4 comment starter character, near brackets.
14571         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
14572         delimiter character in sed expressions.
14573         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
14574         Suggested by Eric Blake.
14575
14576         Properly quote AC_CHECK_DECLS' 4th argument.
14577         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
14578         argument.
14579         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14580         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14581         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14582         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14583         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14584         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
14585         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
14586         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
14587         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
14588         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14589         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
14590         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14591         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14592         * m4/isinf.m4 (gl_ISINF): Likewise.
14593         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14594         * m4/readutmp.m4 (gl_READUTMP): Likewise.
14595         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14596         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14597         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14598         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14599         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14600         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14601         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
14602         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14603         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14604         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14605         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
14606         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14607         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14608         Reported by Eric Blake.
14609
14610         Properly quote AC_CHECK_DECL's 4th argument.
14611         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
14612         argument.
14613         * m4/argp.m4 (gl_ARGP): Likewise.
14614         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14615         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14616         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14617         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14618         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
14619         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
14620         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
14621         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14622         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14623         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14624         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14625         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14626         Reported by Eric Blake.
14627
14628 2011-09-14  Eric Blake  <eblake@redhat.com>
14629
14630         opendir: avoid compile warning
14631         * lib/opendir.c (includes): Always include errno.h.
14632         Reported by Tatsuro MATSUOKA.
14633
14634 2011-09-14  Jim Meyering  <meyering@redhat.com>
14635
14636         maint.mk: sc_tight_scope: propagate failure from sub-make
14637         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
14638         Reported by Martin von Gagern.
14639
14640 2011-09-13  Bruno Haible  <bruno@clisp.org>
14641
14642         tempname: Support for MSVC.
14643         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
14644         MSVC.
14645         * modules/tempname (Depends-on): Add fcntl-h.
14646
14647 2011-09-13  Bruno Haible  <bruno@clisp.org>
14648
14649         sys_time: Support for MSVC.
14650         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
14651         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
14652         include <winsock2.h>.
14653         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
14654         function declarations that collide with POSIX.
14655         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
14656         (Makefile.am): Substitute HAVE_WINSOCK2_H.
14657
14658 2011-09-13  Bruno Haible  <bruno@clisp.org>
14659
14660         stat: Support for MSVC.
14661         * lib/stat.c: Include pathmax.h.
14662         * modules/stat (Depends-on): Add pathmax.
14663
14664         pathmax: Support for native Windows.
14665         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
14666
14667 2011-09-12  Bruno Haible  <bruno@clisp.org>
14668
14669         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
14670         * lib/dirent.in.h (struct dirent): New type.
14671         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
14672         DT_WHT): New macros.
14673         (DIR): New type.
14674         (opendir, closedir): Declare only if the module 'opendir' is enabled.
14675         (readdir, rewinddir): New declarations.
14676         * lib/dirent-private.h: New file.
14677         * lib/opendir.c: New file.
14678         * lib/readdir.c: New file.
14679         * lib/rewinddir.c: New file.
14680         * lib/closedir.c: New file.
14681         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
14682         * m4/opendir.m4: New file.
14683         * m4/readdir.m4: New file.
14684         * m4/rewinddir.m4: New file.
14685         * m4/closedir.m4: New file.
14686         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
14687         REPLACE_CLOSEDIR here.
14688         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
14689         readdir, rewinddir are declared.
14690         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
14691         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
14692         HAVE_REWINDDIR, HAVE_CLOSEDIR.
14693         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
14694         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
14695         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
14696         * modules/opendir: New file.
14697         * modules/readdir: New file.
14698         * modules/rewinddir: New file.
14699         * modules/closedir: New file.
14700         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
14701         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
14702         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
14703         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
14704         * NEWS: Mention the 'fchdir' change.
14705
14706 2011-09-11  Bruno Haible  <bruno@clisp.org>
14707
14708         asm-underscore.m4: Support for MSVC.
14709         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
14710         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
14711
14712 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
14713
14714         Doc about crypt functions.
14715         * doc/posix-functions/crypt.texi: Expand range of glibc versions
14716         needing for _GNU_SOURCE to get crypt.
14717         * doc/posix-functions/encrypt.texi: Likewise.
14718         * doc/posix-functions/setkey.texi: Likewise.
14719
14720 2011-09-11  Bruno Haible  <bruno@clisp.org>
14721
14722         doc: Update regarding MSVC 9.
14723         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
14724         tested".
14725         * doc/posix-functions/*.texi: Update with info about MSVC 9.
14726         * doc/posix-headers/*.texi: Likewise.
14727         * doc/pastposix-functions/*.texi: Likewise.
14728         * doc/glibc-functions/*.texi: Likewise.
14729         * doc/glibc-headers/*.texi: Likewise.
14730
14731 2011-09-11  Bruno Haible  <bruno@clisp.org>
14732
14733         unistd et al.: Don't assume <unistd.h> exists.
14734         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
14735         does not exist.
14736         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
14737         exist. But include <stdlib.h>.
14738         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
14739         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
14740         symlink() does not exist.
14741         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
14742         include <io.h> instead.
14743         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
14744         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
14745         include <direct.h> instead.
14746         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14747         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14748         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
14749         <io.h> instead.
14750         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
14751         correctly if the system does not have hard links.
14752         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
14753         <direct.h> instead.
14754         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
14755         it when looking for function declarations.
14756         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
14757         <direct.h> and <io.h> instead.
14758         * doc/posix-headers/unistd.texi: More details about MSVC problem.
14759
14760 2011-09-11  Bruno Haible  <bruno@clisp.org>
14761
14762         strcase: Support for MSVC.
14763         * modules/strcase (Status, Notice): Remove obsoletion mark.
14764         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
14765         * doc/posix-functions/strncasecmp.texi: Likewise.
14766
14767         strings: Don't assume <strings.h> exists.
14768         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
14769         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
14770         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
14771         * doc/posix-headers/strings.texi: Mention the MSVC problem.
14772
14773 2011-09-11  Bruno Haible  <bruno@clisp.org>
14774
14775         dirent: Don't assume <dirent.h> exists.
14776         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
14777         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
14778         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
14779         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
14780
14781 2011-09-11  Bruno Haible  <bruno@clisp.org>
14782
14783         Fix wint_t on MSVC.
14784         * lib/wchar.in.h (wint_t): On MSVC, override it.
14785         * lib/wctype.in.h (wint_t): Likewise.
14786         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
14787         MSVC.
14788         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
14789         * doc/posix-headers/wctype.texi: Likewise.
14790
14791 2011-09-11  Bruno Haible  <bruno@clisp.org>
14792
14793         sys_types: Fix typo.
14794         * lib/sys_types.in.h: Fix typo in comment.
14795         Reported by Paul Eggert.
14796
14797         Support for MSVC compiler: Ensure size_t gets defined.
14798         * modules/strings (Depends-on): Add 'sys_types'.
14799         * modules/sys_uio (Depends-on): Likewise.
14800         * lib/sys_uio.in.h: Update comment.
14801
14802         C++ tests for module 'sys_types'.
14803         * modules/sys_types-c++-tests: New file.
14804         * tests/test-sys_types-c++.cc: New file.
14805
14806         Tests for module 'sys_types'.
14807         * modules/sys_types-tests: New file.
14808         * tests/test-sys_types.c: New file.
14809
14810         New module 'sys_types'.
14811         * lib/sys_types.in.h: New file.
14812         * m4/sys_types_h.m4: New file.
14813         * modules/sys_types: New file.
14814         * doc/posix-headers/sys_types.texi: Mention the new module and the
14815         size_t problem on MSVC 9.
14816
14817 2011-09-11  Bruno Haible  <bruno@clisp.org>
14818
14819         Support for MSVC compiler: Avoid division by a literal 0.
14820         * lib/math.in.h (NAN): Define through a function call also on MSVC.
14821         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
14822         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
14823         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
14824         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
14825         * tests/infinity.h: New file.
14826         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
14827         on MSVC.
14828         * tests/test-ceilf1.c: Include infinity.h.
14829         (main): Use Infinityf.
14830         * tests/test-ceil1.c: Include infinity.h.
14831         (main): Use Infinityd.
14832         * tests/test-ceill.c: Include infinity.h.
14833         (main): Use Infinityl.
14834         * tests/test-dprintf-posix.c: Include infinity.h.
14835         (test_function): Use Infinityd.
14836         * tests/test-floorf1.c: Include infinity.h.
14837         (main): Use Infinityf.
14838         * tests/test-floor1.c: Include infinity.h.
14839         (main): Use Infinityd.
14840         * tests/test-floorl.c: Include infinity.h.
14841         (main): Use Infinityl.
14842         * tests/test-fprintf-posix.c: Include infinity.h.
14843         (test_function): Use Infinityd.
14844         * tests/test-frexp.c: Include infinity.h.
14845         (main): Use Infinityd.
14846         * tests/test-frexpl.c: Include infinity.h.
14847         (main): Use Infinityl.
14848         * tests/test-isfinite.c: Include infinity.h.
14849         (test_isfinitef): Use Infinityf.
14850         (test_isfinited): Use Infinityd.
14851         (test_isfinitel): Use Infinityl.
14852         * tests/test-isinf.c: Include infinity.h.
14853         (test_isinff): Use Infinityf.
14854         (test_isinfd): Use Infinityd.
14855         (test_isinfl): Use Infinityl.
14856         * tests/test-isnan.c: Include infinity.h.
14857         (test_float): Use Infinityf.
14858         (test_double): Use Infinityd.
14859         (test_long_double): Use Infinityl.
14860         * tests/test-isnanf.h: Include infinity.h.
14861         (main): Use Infinityf.
14862         * tests/test-isnand.h: Include infinity.h.
14863         (main): Use Infinityd.
14864         * tests/test-isnanl.h: Include infinity.h.
14865         (main): Use Infinityl.
14866         * tests/test-ldexpl.c: Include infinity.h.
14867         (main): Use Infinityl.
14868         * tests/test-printf-posix.h: Include infinity.h.
14869         (test_function): Use Infinityd.
14870         * tests/test-roundf1.c: Include infinity.h.
14871         (main): Use Infinityf.
14872         * tests/test-round1.c: Include infinity.h.
14873         (main): Use Infinityd.
14874         * tests/test-roundl.c: Include infinity.h.
14875         (main): Use Infinityl.
14876         * tests/test-signbit.c: Include infinity.h.
14877         (test_signbitf): Use Infinityf.
14878         (test_signbitd): Use Infinityd.
14879         (test_signbitl): Use Infinityl.
14880         * tests/test-snprintf-posix.h: Include infinity.h.
14881         (test_function): Use Infinityd, Infinityl.
14882         * tests/test-sprintf-posix.h: Include infinity.h.
14883         (test_function): Use Infinityd, Infinityl.
14884         * tests/test-truncf1.c: Include infinity.h.
14885         (main): Use Infinityf.
14886         * tests/test-trunc1.c: Include infinity.h.
14887         (main): Use Infinityd.
14888         * tests/test-truncl.c: Include infinity.h.
14889         (main): Use Infinityl.
14890         * tests/test-vasnprintf-posix.c: Include infinity.h.
14891         (test_function): Use Infinityd, Infinityl.
14892         * tests/test-vasprintf-posix.c: Include infinity.h.
14893         (test_function): Use Infinityd, Infinityl.
14894         * modules/ceilf-tests (Files): Add tests/infinity.h.
14895         * modules/ceil-tests (Files): Likewise.
14896         * modules/ceill-tests (Files): Likewise.
14897         * modules/dprintf-posix-tests (Files): Likewise.
14898         * modules/floorf-tests (Files): Likewise.
14899         * modules/floor-tests (Files): Likewise.
14900         * modules/floorl-tests (Files): Likewise.
14901         * modules/fprintf-posix-tests (Files): Likewise.
14902         * modules/frexp-tests (Files): Likewise.
14903         * modules/frexp-nolibm-tests (Files): Likewise.
14904         * modules/frexpl-tests (Files): Likewise.
14905         * modules/frexpl-nolibm-tests (Files): Likewise.
14906         * modules/isfinite-tests (Files): Likewise.
14907         * modules/isinf-tests (Files): Likewise.
14908         * modules/isnan-tests (Files): Likewise.
14909         * modules/isnanf-tests (Files): Likewise.
14910         * modules/isnanf-nolibm-tests (Files): Likewise.
14911         * modules/isnand-tests (Files): Likewise.
14912         * modules/isnand-nolibm-tests (Files): Likewise.
14913         * modules/isnanl-tests (Files): Likewise.
14914         * modules/isnanl-nolibm-tests (Files): Likewise.
14915         * modules/ldexpl-tests (Files): Likewise.
14916         * modules/printf-posix-tests (Files): Likewise.
14917         * modules/roundf-tests (Files): Likewise.
14918         * modules/round-tests (Files): Likewise.
14919         * modules/roundl-tests (Files): Likewise.
14920         * modules/signbit-tests (Files): Likewise.
14921         * modules/snprintf-posix-tests (Files): Likewise.
14922         * modules/sprintf-posix-tests (Files): Likewise.
14923         * modules/truncf-tests (Files): Likewise.
14924         * modules/trunc-tests (Files): Likewise.
14925         * modules/truncl-tests (Files): Likewise.
14926         * modules/vasnprintf-posix-tests (Files): Likewise.
14927         * modules/vasprintf-posix-tests (Files): Likewise.
14928         * modules/vdprintf-posix-tests (Files): Likewise.
14929         * modules/vfprintf-posix-tests (Files): Likewise.
14930         * modules/vprintf-posix-tests (Files): Likewise.
14931         * modules/vsnprintf-posix-tests (Files): Likewise.
14932         * modules/vsprintf-posix-tests (Files): Likewise.
14933         * modules/xprintf-posix-tests (Files): Likewise.
14934
14935 2011-09-11  Bruno Haible  <bruno@clisp.org>
14936
14937         Ensure pid_t gets defined.
14938         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
14939         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14940         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14941         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14942         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14943         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14944         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
14945         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14946         * tests/test-fcntl-h.c: Check that pid_t is defined.
14947         * tests/test-sched.c: Likewise.
14948         * tests/test-termios.c: Likewise.
14949         * tests/test-time.c: Likewise.
14950         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
14951         * doc/posix-headers/signal.texi: Likewise.
14952         * doc/posix-headers/sys_types.texi: Likewise.
14953         * doc/posix-headers/time.texi: Likewise.
14954
14955 2011-09-11  Bruno Haible  <bruno@clisp.org>
14956
14957         acl: Fix compilation on Solaris 10 (older version).
14958         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
14959         of ACE_EVERYONE.
14960         * lib/set-mode-acl.c (qset_acl): Likewise.
14961         Reported by Christian Jullien <eligis@orange.fr>.
14962
14963 2011-09-10  Bruno Haible  <bruno@clisp.org>
14964
14965         iconv, unsetenv: Add support for MSVC compiler.
14966         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
14967         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
14968
14969 2011-09-10  Bruno Haible  <bruno@clisp.org>
14970
14971         *printf: Add support for MSVC compiler.
14972         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
14973         handles the exception caused by the %n directive. When cross-compiling,
14974         guess no on native Windows.
14975         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14976         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
14977         emulate it through vsnprintf.
14978         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
14979         * doc/posix-functions/dprintf.texi: Update documentation regarding
14980         MSVC 9.
14981         * doc/posix-functions/fprintf.texi: Likewise.
14982         * doc/posix-functions/printf.texi: Likewise.
14983         * doc/posix-functions/snprintf.texi: Likewise.
14984         * doc/posix-functions/sprintf.texi: Likewise.
14985         * doc/posix-functions/swprintf.texi: Likewise.
14986         * doc/posix-functions/vdprintf.texi: Likewise.
14987         * doc/posix-functions/vfprintf.texi: Likewise.
14988         * doc/posix-functions/vprintf.texi: Likewise.
14989         * doc/posix-functions/vsnprintf.texi: Likewise.
14990         * doc/posix-functions/vsprintf.texi: Likewise.
14991         * doc/glibc-functions/asprintf.texi: Likewise.
14992         * doc/glibc-functions/obstack_printf.texi: Likewise.
14993         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14994         * doc/glibc-functions/vasprintf.texi: Likewise.
14995
14996 2011-09-10  Bruno Haible  <bruno@clisp.org>
14997
14998         nocrash: Add support for native Windows.
14999         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
15000
15001 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
15002             Bruno Haible  <bruno@clisp.org>
15003
15004         absolute-header, include-next: Add support for MSVC compiler.
15005         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
15006         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
15007         directory separator in #line directives.
15008         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
15009         recognize also backslash as directory separator in #line directives.
15010
15011 2011-09-08  Jim Meyering  <meyering@redhat.com>
15012
15013         maint.mk: mark the post-release commit log with "maint: " prefix
15014         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
15015         one-line commit-log summary.
15016
15017 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
15018             Bruno Haible  <bruno@clisp.org>
15019
15020         Doc about crypt functions.
15021         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
15022         systems.
15023         * doc/posix-functions/encrypt.texi: Likewise.
15024         * doc/posix-functions/setkey.texi: Likewise.
15025
15026 2011-09-08  Simon Josefsson  <simon@josefsson.org>
15027
15028         * lib/gc.h: Fix copyright header.
15029
15030 2011-09-07  Bruno Haible  <bruno@clisp.org>
15031
15032         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
15033         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
15034         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
15035
15036 2011-09-07  Bruno Haible  <bruno@clisp.org>
15037
15038         openat: Work around compilation error with OSF/1 5.1 DTK cc.
15039         * lib/fopen.c: Use different syntax for include of <stdio.h>.
15040         * lib/freopen.c: Likewise.
15041         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
15042         * lib/lstat.c: Likewise.
15043         * lib/stat.c: Likewise.
15044         * lib/open.c: Use different syntax for include of <fcntl.h>.
15045         * lib/openat.c: Include fcntl.h again, explicitly.
15046
15047 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
15048
15049         parse-datetime: document the newly accepted format
15050         * doc/parse-datetime.texi (Combined date and time of day items):
15051         New section.
15052
15053 2011-09-06  Bruno Haible  <bruno@clisp.org>
15054
15055         acl: Fix a test failure on newer Solaris 10 with ZFS.
15056         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
15057         ENOSYS as no ACL.
15058         Reported by Jim Meyering.
15059
15060 2011-09-06  Bruno Haible  <bruno@clisp.org>
15061
15062         acl: Update for AIX >= 5.3 with NFS.
15063         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
15064         ENOSYS as no ACL.
15065
15066         acl: Fix a test failure on AIX >= 5.3 with NFS.
15067         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
15068         as no ACL.
15069
15070 2011-09-06  Bruno Haible  <bruno@clisp.org>
15071
15072         acl: Fix a test failure on IRIX 6.5 with NFS.
15073         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
15074         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
15075         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
15076         * lib/copy-acl.c (qcopy_acl): Likewise.
15077
15078 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15079
15080         openat: port to AIX 7.1 with large files
15081         AIX 7.1 does a "#define openat open64at" if large files are in use,
15082         so we can't simply #undef openat.  Use the orig_openat trick (similar
15083         to orig_open in lib/open.c) to work around the problem.  Problem
15084         reported by Kevin Brott for GNU tar, in the thread containing
15085         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
15086         * lib/openat.c (__need_system_fcntl_h): Define first.
15087         Include <fcntl.h> and <sys/types.h> before undefining.
15088         (orig_openat) [HAVE_OPENAT]: New inline function.
15089         (openat) [HAVE_OPENAT]: Do not undef.
15090         (rpl_openat): Use orig_openat, not openat.
15091
15092 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15093             Bruno Haible  <bruno@clisp.org>
15094
15095         acl: Avoid errors on NonStop Kernel.
15096         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
15097         ENOTSUP errors.
15098
15099 2011-09-05  Bruno Haible  <bruno@clisp.org>
15100
15101         acl: Clean up Solaris code.
15102         * lib/acl-internal.h: Remove no-op #if.
15103         * lib/file-has-acl.c: Likewise.
15104         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
15105         * lib/copy-acl.c (qcopy_acl): Likewise.
15106
15107 2011-09-05  Bruno Haible  <bruno@clisp.org>
15108
15109         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
15110         binaries built on the original Solaris 10.
15111         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
15112         trivial.
15113
15114 2011-09-05  Bruno Haible  <bruno@clisp.org>
15115
15116         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15117         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
15118         10.
15119         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
15120         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
15121         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
15122         instead of acl_get, facl_get, acl_set, facl_set.
15123
15124 2011-09-05  Bruno Haible  <bruno@clisp.org>
15125
15126         copy-file: Try unit tests on more file systems.
15127         * tests/test-copy-file-1.sh: New file.
15128         * tests/test-copy-file-2.sh: New file.
15129         * modules/copy-file-tests (Files): Add them.
15130         (Makefile.am): Add them to TESTS.
15131
15132         acl: Try unit tests on more file systems.
15133         * tests/test-file-has-acl-1.sh: New file.
15134         * tests/test-file-has-acl-2.sh: New file.
15135         * tests/test-set-mode-acl-1.sh: New file.
15136         * tests/test-set-mode-acl-2.sh: New file.
15137         * tests/test-copy-acl-1.sh: New file.
15138         * tests/test-copy-acl-2.sh: New file.
15139         * modules/acl-tests (Files): Add them.
15140         (Makefile.am): Add them to TESTS.
15141
15142 2011-09-04  Bruno Haible  <bruno@clisp.org>
15143
15144         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15145         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
15146         10.
15147         (OLD_ALLOW, OLD_DENY): New macros.
15148         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
15149         ACE_ACCESS_ALLOWED_ACE_TYPE.
15150         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
15151         ACE_ACCESS_DENIED_ACE_TYPE.
15152         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
15153         (NEW_ACE_EXECUTE): Fix value.
15154         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
15155         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
15156         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
15157         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
15158         NEW_ACE_SYNCHRONIZE): New macros.
15159         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
15160         instead of acl_fromtext, acl_set, facl_set.
15161         Fixes a coreutils/tests/cp/perm failure.
15162
15163 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
15164
15165         openat: test for fstatat (..., 0) bug
15166         Further testing with tar suggests that fstatat (..., 0)
15167         does not work in general, on AIX 7.1; see
15168         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
15169         So, give up entirely on AIX 7.1's fstatat, and fall back on our
15170         replacement fstatat (which is what older AIX releases were using
15171         anyway).
15172         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
15173         use is now changed to orig_fstatat.  This was probably the right
15174         thing to do anyway.
15175         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
15176         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
15177         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
15178         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
15179         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
15180         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
15181         if the bug is found.
15182
15183         openat: test for fstatat (AT_FDCWD, ..., 0) bug
15184         This tests for another fstatat bug on AIX 7.1:
15185         fstatat (AT_FDCWD, ..., 0) does not work.  See
15186         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
15187         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
15188         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
15189         (rpl_fstatat): Adjust so that it works around either (or both)
15190         bugs if present.
15191         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
15192
15193 2011-09-03  Karl Berry  <karl@gnu.org>
15194
15195         * doc/regex.texi (Character Class Operators): Avoid literal ":"
15196         in index entries.
15197
15198 2011-09-02  Bruno Haible  <bruno@clisp.org>
15199
15200         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
15201         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
15202         values of AR, ARFLAGS, RANLIB.
15203         Reported by John W. Eaton <jwe@gnu.org> for Octave.
15204
15205 2011-09-02  Bruno Haible  <bruno@clisp.org>
15206
15207         Find 'ar' program that fits with --host argument.
15208         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
15209
15210 2011-09-02  Bruno Haible  <bruno@clisp.org>
15211
15212         tests: init.sh: Support any non-GNU diff.
15213         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
15214         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
15215         Solaris 8.
15216
15217 2011-09-02  Bruno Haible  <bruno@clisp.org>
15218
15219         tests: init.sh: work also with any non-GNU diff that supports -u
15220         * tests/init.sh: Relax check for diff -u support.
15221         Rather than checking for GNU diff via --version, simply check
15222         for support for -u itself.  Useful at least on OpenBSD 4.9,
15223         AIX 7.1, IRIX 6.5, and Solaris 10.
15224
15225 2011-09-01  Bruno Haible  <bruno@clisp.org>
15226
15227         strtoimax, strtoumax: Document problem on HP-UX 11.
15228         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
15229         * doc/posix-functions/strtoumax.texi: Likewise.
15230
15231 2011-09-01  Bruno Haible  <bruno@clisp.org>
15232
15233         strtoumax: Avoid link error on OSF/1 with DTK cc.
15234         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
15235         defined as a function.
15236         * modules/strtoumax (Depends-on, configure.ac): Test only whether
15237         strtoumax is defined, not whether it is declared.
15238
15239 2011-09-01  Bruno Haible  <bruno@clisp.org>
15240
15241         strtoimax: Avoid link error on OSF/1 with DTK cc.
15242         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
15243         defined as a function.
15244         * modules/strtoimax (Depends-on, configure.ac): Test only whether
15245         strtoimax is defined, not whether it is declared.
15246
15247 2011-09-01  Bruno Haible  <bruno@clisp.org>
15248
15249         imaxdiv: Avoid link error on OSF/1 with DTK cc.
15250         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
15251         as a function.
15252         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
15253         whether it is declared.
15254
15255 2011-09-01  Bruno Haible  <bruno@clisp.org>
15256
15257         imaxabs: Avoid link error on OSF/1 with DTK cc.
15258         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
15259         as a function.
15260         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
15261         whether it is declared.
15262
15263 2011-09-01  Bruno Haible  <bruno@clisp.org>
15264
15265         Tests for module 'strtoumax'.
15266         * modules/strtoumax-tests: New file.
15267         * tests/test-strtoumax.c: New file.
15268
15269         Tests for module 'strtoimax'.
15270         * modules/strtoimax-tests: New file.
15271         * tests/test-strtoimax.c: New file.
15272
15273         Tests for module 'imaxdiv'.
15274         * modules/imaxdiv-tests: New file.
15275         * tests/test-imaxdiv.c: New file.
15276
15277         Tests for module 'imaxabs'.
15278         * modules/imaxabs-tests: New file.
15279         * tests/test-imaxabs.c: New file.
15280
15281 2011-09-01  Bruno Haible  <bruno@clisp.org>
15282
15283         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
15284         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
15285         pthread_create.
15286
15287 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15288
15289         openat: work around AIX 7.1 fstatat issue
15290         This should fix the problem that was not properly fixed
15291         in the previous change, dated 2011-08-30.
15292         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
15293         __need_system_stat_h defined.
15294         (orig_fstatat) [HAVE_FSTATAT]: New function.
15295         (rpl_fstatat): Go back to the old way of doing things,
15296         except call orig_fstatat instead of fstatat.
15297         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
15298         Remove unnecessary check whether fstatat fills in st_size etc.
15299
15300 2011-09-01  Bruno Haible  <bruno@clisp.org>
15301
15302         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
15303         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
15304         just include the system's header.
15305
15306 2011-08-31  Jim Meyering  <meyering@redhat.com>
15307
15308         tests: avoid spurious assertion failure in test-float.c on ppc64
15309         * tests/test-float.c (test_long_double): Comment out an assertion,
15310         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
15311         with gcc-4.4.4.
15312
15313         maint: indent with spaces, not TABs
15314         I need to get in the habit of running gnulib's "make check".
15315         Both of these would have been caught.
15316         * m4/largefile.m4: Indent with spaces, not TABs.
15317         * lib/parse-datetime.y (iso_8601_time): Likewise.
15318         Spotted by Pádraig Brady.
15319
15320         test-parse-datetime.c: accommodate a relatively strict gcc warning
15321         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
15322         to avoid a warning from gcc's -Werror=missing-declarations.
15323         Insert a few spaces-before-funcall-parenthesis.
15324
15325 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15326
15327         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15328         The parser now accepts ISO 8601 date-time strings with "T" as the
15329         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15330         with a space between the date and time strings.  Now it also parses
15331         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15332         variants like "2004-02-29T16:21:42.333-07:00"
15333         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15334         of day representation using the 'T' separator character.
15335         * doc/parse-datetime.texi (General date syntax): replace use of
15336         deprecated --iso-8601 option with --rfc-3339 in example of date
15337         command output formats that can be parsed.
15338         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15339         lib/parse-datetime.y.
15340         (gmt_offset): New function.
15341         (main): Add additional test cases to validate ISO8601 extended
15342         date and time of day parsing.
15343
15344 2011-08-31  Bruno Haible  <bruno@clisp.org>
15345
15346         freopen: Documentation.
15347         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15348         name.
15349         Reported by Claudio Bley <claudio.bley@gmail.com>.
15350
15351 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15352
15353         freopen: Don't crash if the filename argument is NULL.
15354         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15355         NULL.
15356
15357 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15358
15359         openat: work around AIX 7.1 fstatat bug
15360         Problem reported by Kevin Brott for GNU tar, in the thread containing
15361         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15362         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15363         FSTATAT_ST_SIZE_ETC_BROKEN.
15364         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15365         rpl_fstatat.
15366         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15367         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15368         AC_CHECK_FUNCS_ONCE for fstatat.
15369         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15370         fchmodat, mkdirat, openat and unlinkat.
15371
15372 2011-08-30  Bruno Haible  <bruno@clisp.org>
15373
15374         Avoid endless recursions if config.h includes some header files.
15375         * lib/fopen.c (__need_FILE): Define already before including config.h.
15376         * lib/freopen.c (__need_FILE): Likewise.
15377         * lib/open.c (__need_system_fcntl_h): Likewise.
15378         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15379         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15380         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15381
15382 2011-08-25  Karl Berry  <karl@gnu.org>
15383
15384         * config/srclist.txt (ylwrap): new try.
15385         * build-aux/ylwrap: new file.
15386
15387 2011-08-23  Bruno Haible  <bruno@clisp.org>
15388
15389         tmpdir: Use a good default directory on native Windows.
15390         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
15391         (P_tmpdir): Default to _P_tmpdir on native Windows.
15392         (path_search): On native Windows, try the value returned by GetTempPath
15393         before trying P_tmpdir.
15394         * modules/tmpdir (Depends-on): Add pathmax.
15395         Suggested by John Darrington <john@darrington.wattle.id.au>.
15396
15397 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15398
15399         doc: fix typo in README-release
15400         * top/README-release: Capitalize first word of a sentence.
15401
15402 2011-08-19  Jim Meyering  <meyering@redhat.com>
15403
15404         fts: do not exhaust memory when processing million-entry directories
15405         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15406         directory would require about 256*N bytes of memory.  Thus, it was
15407         easy to construct a directory too large to be processed by any of
15408         those tools.  With this change, fts' maximum memory utilization is
15409         now limited to around 30MB.
15410         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15411         (fts_read): When we've processed the final entry (i.e., when
15412         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15413         using the parent entry to read any remaining entries.  Dispatch
15414         depending on what fts_build returns:
15415         - NULL+stop, aka failure: stop
15416         - NULL otherwise: move up in the dir hierarchy
15417         - non-NULL: handle this new entry
15418         (fts_build): Declare and use new local, continue_readdir.
15419         Prepare to be called from fts_read, when the entries
15420         from a partially-read directory have just been exhausted.
15421         In that case, we'll skip the opendir and instead use the parent's
15422         fts_dirp and derive dir_fd from that.
15423         Finally, in the readdir loop, if we read max_entries entries,
15424         exit the loop ensuring *not* to call closedir.  This is required
15425         so that fts_dirp can be reused on a subsequent call.
15426         Prompted by Ben England's report of memory exhaustion in find
15427         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15428
15429         maint: fts: move decl of `dp' down into while loop; split a long line
15430         * lib/fts.c (fts_build): No semantic change.
15431
15432         fts: add/use new struct member, fts_dirp
15433         We are about to use this to manage any directory with
15434         too many entries to read all of them into memory at once.
15435         To do that, we'll need to save the DIR* pointer in each
15436         affected FTSENT struct.
15437         * lib/fts_.h: Include <dirent.h>.
15438         (struct FTSENT) [fts_dirp]: New member.
15439         * lib/fts.c (closedir_and_clear): Define.
15440         Use it in place of closedir so that we are sure to
15441         clear the new fts_dirp member when done with it.
15442         (fts_alloc): Initialize the new member.
15443         (fts_lfree): Free, if needed.
15444
15445         maint: fts: give __opendir2 a new parameter and rename
15446         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15447         than surreptitiously using sole caller's "dir_fd".
15448         (fts_opendir): Rename from __opendir2.
15449
15450         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15451         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15452
15453         maint: fts.c: correct off-by-one indentation
15454         * lib/fts.c (fts_build): Correct indentation, change style
15455         of a couple of block comments, and bracing style.
15456
15457         maint: fts.c: move __opendir2 #define "up" out of function body
15458         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15459
15460         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15461         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15462         out for a long time and besides was useful only on BSD systems.
15463
15464 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15465
15466         regex: port to Stratus OpenVOS
15467         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15468         define to empty, rather than attempting nonportable optimizations.
15469         Problem reported by Paul Green in:
15470         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15471         and fix suggested by Eric Blake in:
15472         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15473
15474 2011-08-17  Eric Blake  <eblake@redhat.com>
15475
15476         getcwd: fix test failures on mingw
15477         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
15478         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
15479         test if long directory cannot be created, and allow mingw errno.
15480
15481         getcwd-lgpl: fix m4 to match relaxed test for BSD
15482         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
15483         (gl_FUNC_GETCWD_SIGNATURE): New macro.
15484         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
15485         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
15486         signature problem.
15487
15488         getcwd: fix compilation on mingw64
15489         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
15490         getcwd.
15491         Reported by Marc-André Lureau.
15492
15493         pipe2: silence compiler warning
15494         * lib/pipe2.c (pipe2): Hide label if it is not used.
15495
15496 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
15497
15498         relocatable-prog: fix link error
15499         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
15500         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
15501         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
15502         into modules/relocatable-lib without noticing that
15503         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
15504         also needs to build relocatable.c.
15505
15506 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15507
15508         getaddrinfo: fix sh typo in gai_strerrorA decl checking
15509         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
15510         shell code: it contained a 'break' that was not in a loop.
15511         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
15512         via a shell-language loop; this may have been true in old Autoconf
15513         versions, but it's not true in Autoconf 2.68.  I found this bug
15514         when testing coreutils git on Solaris 8, whose shell complains
15515         about the syntax error.
15516
15517 2011-08-12  Simon Josefsson  <simon@josefsson.org>
15518
15519         * lib/base64.c: Fix comment to reference RFC 4648.
15520         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
15521         <gvtulder@gmail.com>.
15522
15523 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15524
15525         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
15526
15527         po/Makefile.in.in: fix make -q problem
15528         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
15529         rule, since there's no file named 'check-macro-version' and its
15530         use as a file breaks make -q.
15531         (all): Don't depend on check-macro-version.
15532         (CHECK_MACRO_VERSION): New macro.
15533         (stamp-po): Use it.
15534
15535         configmake: fix make -q problem
15536         * modules/configmake (configmake.h): Update configmake.h's time stamp
15537         even if the file does not change.  Otherwise, 'make -q' fails.
15538         Problem reported by Simon Josefsson in
15539         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
15540
15541 2011-08-11  Jim Meyering  <meyering@redhat.com>
15542
15543         git-version-gen: correct the advice in a comment
15544         * build-aux/git-version-gen: Correct comment.
15545         Don't recommend to list .tarball-version in .gitignore.
15546
15547 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15548
15549         base64: fix off-by-one buffer size bug
15550         Problem and (trivial) fix reported by Gijs van Tulder in
15551         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
15552         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
15553         * tests/test-base64.c (main): Catch the bug.
15554
15555 2011-08-10  Eric Blake  <eblake@redhat.com>
15556
15557         closein: correct comments
15558         * lib/closein.c (close_stdin): Improve comments.
15559
15560 2011-08-09  Bruno Haible  <bruno@clisp.org>
15561
15562         More tests for 'fseeko'.
15563         * tests/test-fseeko3.c: New file, from Eric Blake.
15564         * tests/test-fseeko3.sh: New file.
15565         * modules/fseeko-tests (Files): Add them.
15566         (TESTS): Add test-fseeko3.sh.
15567         (check_PROGRAMS): Add test-fseeko3.
15568
15569 2011-08-09  Eric Blake  <eblake@redhat.com>
15570
15571         fseeko: remove unneeded hack
15572         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
15573
15574         fseeko: fix bug on glibc
15575         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
15576         Reported by John W. Eaton.
15577
15578 2011-08-08  Bruno Haible  <bruno@clisp.org>
15579
15580         unictype/base: Fix interoperability with preinstalled libunistring.
15581         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
15582         Reported by Simon Josefsson.
15583
15584 2011-08-08  Bruno Haible  <bruno@clisp.org>
15585
15586         iswblank: Detect declaration correctly.
15587         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
15588         AC_CHECK_DECLS invocation.
15589
15590 2011-08-08  Bruno Haible  <bruno@clisp.org>
15591
15592         tcgetsid: Detect declaration correctly.
15593         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
15594         AC_CHECK_DECLS invocation.
15595         Reported by Simon Josefsson.
15596
15597 2011-08-08  Eric Blake  <eblake@redhat.com>
15598
15599         largefile: fix typo that regressed large file support
15600         * modules/largefile (configure.ac-early): Fix section name.
15601
15602 2011-08-06  Karl Berry  <karl@gnu.org>
15603
15604         * MODULES.html.sh (func_all_files): _Noreturn is no longer
15605         a separate module.
15606
15607 2011-08-05  Simon Josefsson  <simon@josefsson.org>
15608
15609         openat: Fix warnings and commens when building unlinkat.c on Hurd.
15610         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
15611         get prototype for free.
15612
15613 2011-08-04  Bruno Haible  <bruno@clisp.org>
15614
15615         Tests for module 'pathmax'.
15616         * modules/pathmax-tests: New file.
15617         * tests/test-pathmax.c: New file.
15618
15619         canonicalize-lgpl: Support larger filenames on the Hurd.
15620         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
15621         Reported by Paul Eggert.
15622
15623         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
15624         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
15625         * lib/chdir-long.h: Include pathmax.h.
15626         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
15627         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
15628         (PATH_MAX): Remove code that is done by pathmax.h.
15629         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
15630         * lib/tmpfile.c: Add a comment.
15631         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
15632         * modules/chdir-long (Depends-on): Add pathmax.
15633         * modules/getcwd (Depends-on): Add pathmax.
15634         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
15635         is not defined.
15636         * doc/posix-headers/limits.texi: Mention the pathmax module.
15637         * NEWS: Mention the change.
15638
15639 2011-08-02  Bruno Haible  <bruno@clisp.org>
15640
15641         pthread_sigmask: Actually use results of gl_THREADLIB.
15642         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
15643         gl_THREADLIB, not gl_[]THREADLIB.
15644         Reported by Eric Blake.
15645
15646 2011-08-02  Jim Meyering  <meyering@redhat.com>
15647
15648         maint.mk: relax the default _gl_TS_function_match regexp
15649         * top/maint.mk (_gl_TS_function_match): Don't require at least one
15650         space between function name and "(" in an "extern" declaration.
15651         That would fail to match a decl with no space there: extern void foo();
15652
15653 2011-07-31  Iain Nicol  <iain@thenicols.net>
15654
15655         git-version-gen: document that EXTRA_DIST must include .version
15656         * build-aux/git-version-gen: In the how-to-use comment, document
15657         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
15658         will fail when run from an unpacked distribution tarball.
15659
15660 2011-08-01  Bruno Haible  <bruno@clisp.org>
15661
15662         wctype-h: Fix last change.
15663         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
15664         REPLACE_TOWLOWER to 0.
15665         Reported by Sam Steingold <sds@gnu.org>.
15666
15667 2011-07-31  Bruno Haible  <bruno@clisp.org>
15668
15669         frexpl: Update autoconf test.
15670         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
15671         according to changes of 2011-06-20.
15672
15673 2011-07-31  Bruno Haible  <bruno@clisp.org>
15674
15675         sys_utsname: Add support for Minix.
15676         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
15677         <sys/utsname.h>.
15678         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15679         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
15680
15681 2011-07-31  Bruno Haible  <bruno@clisp.org>
15682
15683         strings: Add support for Minix.
15684         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
15685         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15686         * doc/posix-headers/strings.texi: Document the Minix problem.
15687
15688 2011-07-31  Bruno Haible  <bruno@clisp.org>
15689
15690         wctype-h: Add support for Minix.
15691         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
15692         REPLACE_TOWLOWER.
15693         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
15694         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
15695         REPLACE_ISWCNTRL.
15696
15697 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
15698
15699         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
15700         This is a performance improvement for 64-bit hosts: it causes the
15701         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
15702
15703 2011-07-31  Bruno Haible  <bruno@clisp.org>
15704
15705         stdioext: Add support for Minix.
15706         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
15707         * lib/fpurge.c (fpurge): Likewise.
15708         * lib/freadahead.c (freadahead): Likewise.
15709         * lib/freadable.c (freadable): Likewise.
15710         * lib/freading.c (freading): Likewise.
15711         * lib/freadptr.c (freadptr): Likewise.
15712         * lib/freadseek.c (freadptrinc): Likewise.
15713         * lib/fseeko.c (rpl_fseeko): Likewise.
15714         * lib/fseterr.c (fseterr): Likewise.
15715         * lib/fwritable.c (fwritable): Likewise.
15716         * lib/fwriting.c (fwriting): Likewise.
15717         * lib/fflush.c (clear_ungetc_buffer): Update comment.
15718         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
15719
15720 2011-07-31  Bruno Haible  <bruno@clisp.org>
15721
15722         errno: Port to Minix.
15723         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
15724         ECONNABORTED are defined.
15725         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
15726         GNULIB_defined_ECONNABORTED): New macros.
15727         * lib/strerror-override.h (strerror_override): Test also
15728         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
15729         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
15730         ECONNABORTED.
15731         * doc/posix-headers/errno.texi: Mention the Minix problem.
15732
15733 2011-07-31  Bruno Haible  <bruno@clisp.org>
15734
15735         Work around declaration collisions on Minix.
15736         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
15737         defined, set REPLACE_MBSINIT.
15738         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
15739         defined, set REPLACE_MBRTOWC.
15740         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
15741         set REPLACE_MBRLEN.
15742         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
15743         defined, set REPLACE_MBSRTOWCS.
15744         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
15745         defined, set REPLACE_WCRTOMB.
15746         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
15747         defined, set REPLACE_WCSRTOMBS.
15748
15749 2011-07-31  Bruno Haible  <bruno@clisp.org>
15750
15751         Add support for Minix with ACK compiler.
15752         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
15753         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
15754         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
15755
15756 2011-07-31  Bruno Haible  <bruno@clisp.org>
15757
15758         Documentation about Minix.
15759         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
15760         * doc/glibc-headers/*.texi: Likewise.
15761         * doc/posix-functions/*.texi: Likewise.
15762         * doc/glibc-functions/*.texi: Likewise.
15763
15764 2011-07-31  Bruno Haible  <bruno@clisp.org>
15765
15766         snippet/warn-on-use: Fix indentation.
15767         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
15768
15769 2011-07-25  Jim Meyering  <meyering@redhat.com>
15770
15771         tests: test-update-copyright.sh: remove unnecessary "rm" commands
15772         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
15773         commands.
15774
15775 2011-07-27  Jim Meyering  <meyering@redhat.com>
15776
15777         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
15778         * top/maint.mk (gl_extract_significant_defines_): Now that
15779         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
15780         gnulib/lib/signal.in.h, and now that we recommend to
15781         define-if-undefined those two symbols in application code,
15782         we must filter them out of the "significant" list.
15783         This avoids a "make syntax-check" failure in coreutils.
15784
15785 2011-07-26  Eric Blake  <eblake@redhat.com>
15786
15787         warnings: add comments about previous patch
15788         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
15789         * m4/include_next.m4: Likewise.
15790         * m4/warn-on-use.m4: Likewise.
15791         * m4/warnings.m4: Likewise, and simplify use.
15792         Suggested by Stefano Lattarini.
15793
15794         include-next, warnings: support older autoconf
15795         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
15796         AS_VAR_PUSHDEF in a way that works with older autoconf.
15797         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
15798         Reported by Daniel P. Berrange.
15799
15800 2011-07-25  Bruno Haible  <bruno@clisp.org>
15801
15802         fseek, ftell: Fix doc.
15803         * doc/posix-functions/fseek.texi: Reword statement about
15804         AC_SYS_LARGEFILE.
15805         * doc/posix-functions/ftell.texi: Likewise.
15806
15807 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15808             Bruno Haible  <bruno@clisp.org>
15809
15810         Add dependencies to the 'largefile' module.
15811         * modules/fopen (Depends-on): Add 'largefile'.
15812         * modules/freopen (Depends-on): Likewise.
15813         * modules/fseeko (Depends-on): Likewise.
15814         * modules/ftello (Depends-on): Likewise.
15815         * modules/glob (Depends-on): Likewise.
15816         * modules/lseek (Depends-on): Likewise.
15817         * modules/lstat (Depends-on): Likewise.
15818         * modules/mkostemp (Depends-on): Likewise.
15819         * modules/mkostemps (Depends-on): Likewise.
15820         * modules/mkstemp (Depends-on): Likewise.
15821         * modules/mkstemps (Depends-on): Likewise.
15822         * modules/open (Depends-on): Likewise.
15823         * modules/openat (Depends-on): Likewise.
15824         * modules/pread (Depends-on): Likewise.
15825         * modules/pwrite (Depends-on): Likewise.
15826         * modules/scandir (Depends-on): Likewise.
15827         * modules/stat (Depends-on): Likewise.
15828         * modules/tmpfile (Depends-on): Likewise.
15829         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
15830         since the containing module now depends on the largefile module.
15831         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
15832         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
15833         off_t is fixed by gnulib.
15834         * doc/posix-functions/freopen.texi: Likewise.
15835         * doc/posix-functions/fseeko.texi: Likewise.
15836         * doc/posix-functions/fstatat.texi: Likewise.
15837         * doc/posix-functions/ftello.texi: Likewise.
15838         * doc/posix-functions/glob.texi: Likewise.
15839         * doc/posix-functions/lseek.texi: Likewise.
15840         * doc/posix-functions/lstat.texi: Likewise.
15841         * doc/posix-functions/mkstemp.texi: Likewise.
15842         * doc/posix-functions/open.texi: Likewise.
15843         * doc/posix-functions/openat.texi: Likewise.
15844         * doc/posix-functions/pread.texi: Likewise.
15845         * doc/posix-functions/pwrite.texi: Likewise.
15846         * doc/posix-functions/scandir.texi: Likewise.
15847         * doc/posix-functions/stat.texi: Likewise.
15848         * doc/posix-functions/tmpfile.texi: Likewise.
15849         * doc/glibc-functions/mkostemp.texi: Likewise.
15850         * doc/glibc-functions/mkostemps.texi: Likewise.
15851         * doc/glibc-functions/mkstemps.texi: Likewise.
15852
15853 2011-07-25  Bruno Haible  <bruno@clisp.org>
15854
15855         fcntl: Move AC_LIBOBJ invocation to module description.
15856         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
15857         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
15858
15859         fcntl: Remove call-in from fchdir.m4.
15860         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
15861         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
15862
15863         dup3: Remove potential call-in from fchdir.m4.
15864         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
15865         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
15866
15867         dup2: Move AC_LIBOBJ invocation to module description.
15868         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
15869         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
15870         Don't invoke AC_LIBOBJ.
15871         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
15872
15873         dup2: Remove call-in from fchdir.m4.
15874         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
15875         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
15876
15877         fclose: Move AC_LIBOBJ invocation to module description.
15878         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
15879         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
15880         to 1.
15881         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
15882
15883         fclose: Remove call-in from close.m4.
15884         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
15885         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
15886
15887         close: Move AC_LIBOBJ invocation to module description.
15888         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
15889         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
15890         1.
15891         * modules/close (configure.ac): Invoke AC_LIBOBJ.
15892
15893         close: Remove call-in from fchdir.m4.
15894         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
15895         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
15896
15897         open: Move AC_LIBOBJ invocation to module description.
15898         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
15899         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
15900         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
15901
15902         open: Remove call-in from fchdir.m4.
15903         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
15904         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
15905
15906         fchdir: Start to remove gl_REPLACE_* idiom.
15907         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
15908         (gl_FUNC_FCHDIR): Invoke it.
15909
15910 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15911
15912         * lib/ftell.c (ftell): Comment out cast.
15913
15914         close: use gl_REPLACE_FCLOSE only if defined
15915         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
15916         is defined.  The close module doesn't depend on the fclose module
15917         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
15918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
15919         I reproduced the problem with "./gnulib-tool --test close sys_socket".
15920
15921 2011-07-24  Jim Meyering  <meyering@redhat.com>
15922
15923         test-select.h: avoid warning when using gcc's -Wmissing-declarations
15924         * tests/test-select.h (test_function): Declare as "static".
15925
15926 2011-07-24  Bruno Haible  <bruno@clisp.org>
15927
15928         doc: Mention the effects of AC_SYS_LARGEFILE.
15929         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
15930         on this function.
15931         * doc/posix-functions/aio_error.texi: Likewise.
15932         * doc/posix-functions/aio_fsync.texi: Likewise.
15933         * doc/posix-functions/aio_read.texi: Likewise.
15934         * doc/posix-functions/aio_return.texi: Likewise.
15935         * doc/posix-functions/aio_suspend.texi: Likewise.
15936         * doc/posix-functions/aio_write.texi: Likewise.
15937         * doc/posix-functions/fgetpos.texi: Likewise.
15938         * doc/posix-functions/fopen.texi: Likewise.
15939         * doc/posix-functions/freopen.texi: Likewise.
15940         * doc/posix-functions/fsetpos.texi: Likewise.
15941         * doc/posix-functions/fstatvfs.texi: Likewise.
15942         * doc/posix-functions/ftruncate.texi: Likewise.
15943         * doc/posix-functions/ftw.texi: Likewise.
15944         * doc/posix-functions/getrlimit.texi: Likewise.
15945         * doc/posix-functions/glob.texi: Likewise.
15946         * doc/posix-functions/lio_listio.texi: Likewise.
15947         * doc/posix-functions/lockf.texi: Likewise.
15948         * doc/posix-functions/mkstemp.texi: Likewise.
15949         * doc/posix-functions/mmap.texi: Likewise.
15950         * doc/posix-functions/nftw.texi: Likewise.
15951         * doc/posix-functions/openat.texi: Likewise.
15952         * doc/posix-functions/opendir.texi: Likewise.
15953         * doc/posix-functions/posix_fadvise.texi: Likewise.
15954         * doc/posix-functions/posix_fallocate.texi: Likewise.
15955         * doc/posix-functions/pread.texi: Likewise.
15956         * doc/posix-functions/pwrite.texi: Likewise.
15957         * doc/posix-functions/readdir.texi: Likewise.
15958         * doc/posix-functions/readdir_r.texi: Likewise.
15959         * doc/posix-functions/rewinddir.texi: Likewise.
15960         * doc/posix-functions/scandir.texi: Likewise.
15961         * doc/posix-functions/seekdir.texi: Likewise.
15962         * doc/posix-functions/setrlimit.texi: Likewise.
15963         * doc/posix-functions/statvfs.texi: Likewise.
15964         * doc/posix-functions/telldir.texi: Likewise.
15965         * doc/posix-functions/tmpfile.texi: Likewise.
15966         * doc/posix-functions/truncate.texi: Likewise.
15967         * doc/glibc-functions/fallocate.texi: Likewise.
15968         * doc/glibc-functions/fstatfs.texi: Likewise.
15969         * doc/glibc-functions/fts_children.texi: Likewise.
15970         * doc/glibc-functions/fts_read.texi: Likewise.
15971         * doc/glibc-functions/getdirentries.texi: Likewise.
15972         * doc/glibc-functions/mkostemp.texi: Likewise.
15973         * doc/glibc-functions/mkostemps.texi: Likewise.
15974         * doc/glibc-functions/mkstemps.texi: Likewise.
15975         * doc/glibc-functions/preadv.texi: Likewise.
15976         * doc/glibc-functions/pwritev.texi: Likewise.
15977         * doc/glibc-functions/sendfile.texi: Likewise.
15978         * doc/glibc-functions/statfs.texi: Likewise.
15979
15980 2011-07-24  Bruno Haible  <bruno@clisp.org>
15981
15982         doc: Fix typo.
15983         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
15984
15985 2011-07-24  Bruno Haible  <bruno@clisp.org>
15986
15987         doc: Mention fsusage.
15988         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
15989
15990 2011-07-24  Bruno Haible  <bruno@clisp.org>
15991
15992         doc: Mention new glibc headers and functions.
15993         * doc/glibc-headers/gshadow.texi: New file.
15994         * doc/glibc-functions/endsgent.texi: New file.
15995         * doc/glibc-functions/fgetsgent.texi: New file.
15996         * doc/glibc-functions/fgetsgent_r.texi: New file.
15997         * doc/glibc-functions/getsgent.texi: New file.
15998         * doc/glibc-functions/getsgent_r.texi: New file.
15999         * doc/glibc-functions/getsgnam.texi: New file.
16000         * doc/glibc-functions/getsgnam_r.texi: New file.
16001         * doc/glibc-functions/putsgent.texi: New file.
16002         * doc/glibc-functions/setsgent.texi: New file.
16003         * doc/glibc-functions/sgetsgent.texi: New file.
16004         * doc/glibc-functions/sgetsgent_r.texi: New file.
16005         * doc/glibc-functions/malloc_info.texi: New file.
16006         * doc/glibc-functions/preadv.texi: New file.
16007         * doc/glibc-functions/pwritev.texi: New file.
16008         * doc/glibc-functions/register_printf_modifier.texi: New file.
16009         * doc/glibc-functions/register_printf_specifier.texi: New file.
16010         * doc/glibc-functions/register_printf_type.texi: New file.
16011         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
16012         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
16013         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
16014         * doc/glibc-functions/pthread_getname_np.texi: New file.
16015         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
16016         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
16017         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
16018         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
16019         * doc/glibc-functions/pthread_setname_np.texi: New file.
16020         * doc/glibc-functions/pthread_sigqueue.texi: New file.
16021         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
16022         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
16023         * doc/glibc-functions/qsort_r.texi: New file.
16024         * doc/glibc-functions/quick_exit.texi: New file.
16025         * doc/glibc-functions/syncfs.texi: New file.
16026         * doc/gnulib.texi: Include them.
16027         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
16028         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
16029         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
16030         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
16031         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
16032         * doc/glibc-functions/execvpe.texi: Likewise.
16033
16034 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16035
16036         ftell: don't include <unistd.h>
16037         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
16038         guaranteed to define off_t, and the ftell module depends on the
16039         stdio module.
16040
16041         ftell: do not assume wraparound signed arithmetic
16042         * lib/ftell.c: Include <limits.h>.
16043         (ftell): Don't assume wraparound signed arithmetic.
16044
16045 2011-07-24  Bruno Haible  <bruno@clisp.org>
16046
16047         close: No longer depend on module 'fclose'.
16048         * modules/close (Depends-on): Remove fclose.
16049         * NEWS: Mention the change.
16050         Suggested by Sam Steingold <sds@gnu.org>.
16051
16052 2011-07-24  Bruno Haible  <bruno@clisp.org>
16053
16054         fsusage: Enable large volume support on AIX >= 5.2.
16055         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
16056         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
16057         instead of STAT_STATVFS.
16058         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
16059
16060         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
16061         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
16062         f_blocks field only on MacOS X.
16063
16064         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
16065         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
16066         * modules/fsusage (Depends-on): Add largefile.
16067
16068 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16069
16070         * README: Modernize discussion of signed integers.
16071         Assuming overflow wraparound is no longer safe.
16072         Mention ones' complement and signed magnitude.
16073
16074 2011-07-22  Bruno Haible  <bruno@clisp.org>
16075
16076         select tests, pselect tests: Refactor.
16077         * tests/test-select.h: New file, extracted from tests/test-select.c.
16078         (select_fn): New type.
16079         (test, do_select, do_select_nowait, do_select_wait, test_tty,
16080         test_connect_first, test_accept_first, test_pair, test_socket_pair,
16081         test_pipe): Add my_select argument.
16082         (test_function): Renamed from main. Add my_select argument.
16083         * tests/test-select.c: Move most code to tests/test-select.h. Include
16084         test-select.h.
16085         * modules/select-tests (Files): Add tests/test-select.h.
16086         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
16087         (my_select, main): New functions.
16088         * modules/pselect-tests (Files): Add tests/test-select.h,
16089         tests/macros.h, tests/signature.h.
16090         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
16091         (configure.ac): Check for <sys/wait.h>.
16092
16093 2011-07-22  Bruno Haible  <bruno@clisp.org>
16094
16095         sys_select tests: Check the signature of FD_*.
16096         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
16097         signature tests from here...
16098         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
16099         here.
16100         * modules/sys_select-tests (Files): Add tests/signature.h.
16101
16102 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16103
16104         largefile: new module, replacing large-inode
16105         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
16106         * MODULES.html.sh: Add largefile, remove large-inode.
16107         * modules/largefile, m4/largefile.m4: New files.
16108         * modules/large-inode, m4/large-inode.m4: Remove.
16109
16110         fsusage: port to MacOS X 10.7 with 4 TiB file systems
16111         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
16112         implementations that use only 32 bits to count blocks.
16113         On typical hosts with 1024-byte blocks, this fails with file
16114         systems as small as 4 TiB.  Problem reported by Herb Wartens
16115         <http://debbugs.gnu.org/9140> and this should also fix a similar
16116         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
16117
16118         large-inode: New module
16119         * MODULES.html.sh: Add it.
16120         * modules/large-inode, m4/large-inode.m4: New files.
16121
16122         extensions: Enable extensions on MacOS X 10.5 and later.
16123         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
16124
16125 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
16126
16127         file-has-acl: use acl_extended_file_nofollow if available
16128         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
16129         (acl_extended_file): New macro.
16130         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
16131         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
16132
16133 2011-07-21  Bruno Haible  <bruno@clisp.org>
16134
16135         Declare system functions in a way that works with C++.
16136         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
16137         declare fdopendir as extern "C".
16138         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
16139         declare frexpl as extern "C".
16140         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
16141         declare gai_strerror as extern "C".
16142         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
16143         programs, declare gai_strerror as extern "C".
16144         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
16145         declare getlogin_r as extern "C".
16146         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
16147         as extern "C".
16148         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
16149         declare ldexpl as extern "C".
16150         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
16151         as extern "C".
16152         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
16153         program, declare getmntinfo as extern "C".
16154         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
16155         stpncpy as extern "C".
16156         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
16157         program, declare __xpg_strerror_r as extern "C".
16158         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
16159         strndup as extern "C".
16160         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
16161         declare memset and bzero as extern "C".
16162         Reported by Sam Steingold <sds@gnu.org>.
16163
16164 2011-07-12  Jim Meyering  <meyering@redhat.com>
16165
16166         maint.mk: prohibit inclusion of "verify.h" without use
16167         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
16168
16169 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16170
16171         timer-time: A new module to check for timer_settime()
16172         * m4/timer_time.m4: Check for the posix function.
16173         * modules/timer-time: Add the new module.
16174         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
16175         Mention it.
16176
16177 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
16178             Bruno Haible  <bruno@clisp.org>
16179
16180         pthread_sigmask: assume POSIX threads if --avoid=threadlib
16181         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
16182         not defined, assume POSIX threads and look for pthread_sigmask in
16183         $LIBS, without changing $CPPFLAGS.
16184
16185 2011-07-19  Bruno Haible  <bruno@clisp.org>
16186
16187         strstr: Update cross-compilation guess.
16188         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
16189         CPUs, guess no, in view of glibc
16190         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
16191         Suggested by Eric Blake. Reported by Reuben Thomas.
16192
16193 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16194
16195         getopt-gnu: suppress core dumps from detection code
16196         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
16197         to suppress core dumps that may well occur on glibc systems.
16198         * modules/getopt-gnu: Depend on nocrash.
16199
16200 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16201
16202         pthread_sigmask: ensure usleep is declared
16203         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
16204         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
16205
16206 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16207
16208         doc: Document NonStop portability issues.
16209         * doc/posix-functions/sigaction.texi (sigaction):
16210         * doc/posix-headers/signal.texi (signal.h):
16211         Document NonStop.  See Joachim Schmitz in
16212         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
16213
16214 2011-07-15  Bruno Haible  <bruno@clisp.org>
16215
16216         ffsl, ffsll: Avoid unportable behaviour.
16217         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
16218
16219 2011-07-15  Bruno Haible  <bruno@clisp.org>
16220
16221         ffs: More tests.
16222         * tests/test-ffs.c (NBITS): New macro.
16223         (main): Add more tests.
16224         * tests/test-ffsl.c (NBITS): New macro.
16225         (main): Add more tests.
16226         * tests/test-ffsll.c (NBITS): New macro.
16227         (main): Add more tests.
16228
16229 2011-07-15  Eric Blake  <eblake@redhat.com>
16230
16231         ffsl, ffsll: new modules
16232         * modules/ffsl: New file.
16233         * modules/ffsll: Likewise.
16234         * m4/ffsl.m4: Likewise.
16235         * m4/ffsll.m4: Likewise.
16236         * lib/ffsl.c: Likewise.
16237         * lib/ffsl.h: Likewise.
16238         * lib/ffsll.c: Likewise.
16239         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
16240         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
16241         * modules/string (Makefile.am): Substitute witnesses.
16242         * lib/strings.in.h (ffsl, ffsll): Declare.
16243         * modules/ffsl-tests: New test file.
16244         * modules/ffsll-tests: Likewise.
16245         * tests/test-ffsl.c: Likewise.
16246         * tests/test-ffsll.c: Likewise.
16247         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16248         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
16249         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
16250
16251         ffs: fix m4 prerequisite
16252         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
16253
16254         ffs: avoid undefined behavior
16255         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
16256         * tests/test-ffs.c (naive, main): Avoid signed shifts.
16257         Reported by Bruno Haible.
16258
16259 2011-07-12  Bruno Haible  <bruno@clisp.org>
16260
16261         pthread_sigmask: Rely on module 'threadlib'.
16262         * modules/pthread_sigmask (Depends-on): Add threadlib.
16263         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
16264         is defined.
16265
16266 2011-07-12  Bruno Haible  <bruno@clisp.org>
16267
16268         regex: Depend on module 'strcase'.
16269         * modules/regex (Depends-on): Add strcase, for strcasecmp().
16270
16271 2011-07-12  Jim Meyering  <meyering@redhat.com>
16272
16273         warn-on-use: fix typo in file name
16274         * modules/snippet/warn-on-use (Files): Correct file name:
16275         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
16276
16277 2011-07-12  Bruno Haible  <bruno@clisp.org>
16278
16279         strings: Document module.
16280         * doc/posix-headers/strings.texi: Mention module 'strings'.
16281
16282 2011-07-12  Bruno Haible  <bruno@clisp.org>
16283
16284         Rename module '_Noreturn' to 'snippet/_Noreturn'.
16285         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
16286         (Files, Makefile.am): Update.
16287         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
16288         * modules/stdlib (Depends-on): Update.
16289
16290 2011-07-12  Bruno Haible  <bruno@clisp.org>
16291
16292         * NEWS: Mention the changes.
16293
16294         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
16295         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
16296         (Files, Makefile.am): Update.
16297         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
16298         * modules/arpa_inet (Depends-on): Update.
16299         * modules/ctype (Depends-on): Update.
16300         * modules/dirent (Depends-on): Update.
16301         * modules/fcntl-h (Depends-on): Update.
16302         * modules/glob (Depends-on): Update.
16303         * modules/iconv-h (Depends-on): Update.
16304         * modules/inttypes-incomplete (Depends-on): Update.
16305         * modules/langinfo (Depends-on): Update.
16306         * modules/locale (Depends-on): Update.
16307         * modules/math (Depends-on): Update.
16308         * modules/netdb (Depends-on): Update.
16309         * modules/poll-h (Depends-on): Update.
16310         * modules/pty (Depends-on): Update.
16311         * modules/search (Depends-on): Update.
16312         * modules/signal (Depends-on): Update.
16313         * modules/spawn (Depends-on): Update.
16314         * modules/stdio (Depends-on): Update.
16315         * modules/stdlib (Depends-on): Update.
16316         * modules/string (Depends-on): Update.
16317         * modules/strings (Depends-on): Update.
16318         * modules/sys_file (Depends-on): Update.
16319         * modules/sys_ioctl (Depends-on): Update.
16320         * modules/sys_select (Depends-on): Update.
16321         * modules/sys_socket (Depends-on): Update.
16322         * modules/sys_stat (Depends-on): Update.
16323         * modules/sys_time (Depends-on): Update.
16324         * modules/sys_times (Depends-on): Update.
16325         * modules/sys_utsname (Depends-on): Update.
16326         * modules/sys_wait (Depends-on): Update.
16327         * modules/termios (Depends-on): Update.
16328         * modules/time (Depends-on): Update.
16329         * modules/unistd (Depends-on): Update.
16330         * modules/wchar (Depends-on): Update.
16331         * modules/wctype-h (Depends-on): Update.
16332         * MODULES.html.sh (Support for building libraries and executables):
16333         Update.
16334
16335         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16336         * modules/snippet/unused-parameter: Renamed from
16337         modules/unused-parameter.
16338         (Files, Makefile.am): Update.
16339         * build-aux/snippet/unused-parameter.h: Renamed from
16340         build-aux/unused-parameter.h.
16341         * modules/selinux-h (Depends-on): Update.
16342         * modules/unistr/base (Depends-on): Update.
16343         * MODULES.html.sh (Core language properties): Update.
16344
16345         Rename module 'link-warning' to 'snippet/link-warning'.
16346         * modules/snippet/link-warning: Renamed from modules/link-warning.
16347         (Files, Makefile.am): Update.
16348         * build-aux/snippet/link-warning.h: Renamed from
16349         build-aux/link-warning.h.
16350         * MODULES.html.sh (Support for building libraries and executables):
16351         Update.
16352
16353         Rename module 'c++defs' to 'snippet/c++defs'.
16354         * modules/snippet/c++defs: Renamed from modules/c++defs.
16355         (Files, Makefile.am): Update.
16356         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16357         * modules/arpa_inet (Depends-on): Update.
16358         * modules/ctype (Depends-on): Update.
16359         * modules/dirent (Depends-on): Update.
16360         * modules/fcntl-h (Depends-on): Update.
16361         * modules/glob (Depends-on): Update.
16362         * modules/iconv-h (Depends-on): Update.
16363         * modules/langinfo (Depends-on): Update.
16364         * modules/locale (Depends-on): Update.
16365         * modules/math (Depends-on): Update.
16366         * modules/netdb (Depends-on): Update.
16367         * modules/poll-h (Depends-on): Update.
16368         * modules/pty (Depends-on): Update.
16369         * modules/search (Depends-on): Update.
16370         * modules/signal (Depends-on): Update.
16371         * modules/spawn (Depends-on): Update.
16372         * modules/stdio (Depends-on): Update.
16373         * modules/stdlib (Depends-on): Update.
16374         * modules/string (Depends-on): Update.
16375         * modules/strings (Depends-on): Update.
16376         * modules/sys_ioctl (Depends-on): Update.
16377         * modules/sys_select (Depends-on): Update.
16378         * modules/sys_socket (Depends-on): Update.
16379         * modules/sys_stat (Depends-on): Update.
16380         * modules/sys_time (Depends-on): Update.
16381         * modules/sys_wait (Depends-on): Update.
16382         * modules/termios (Depends-on): Update.
16383         * modules/time (Depends-on): Update.
16384         * modules/unistd (Depends-on): Update.
16385         * modules/wchar (Depends-on): Update.
16386         * modules/wctype-h (Depends-on): Update.
16387
16388         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
16389         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
16390         (Files, Makefile.am): Update.
16391         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
16392         * modules/argv-iter (Depends-on): Update.
16393         * modules/arpa_inet (Depends-on): Update.
16394         * modules/dirent (Depends-on): Update.
16395         * modules/fcntl-h (Depends-on): Update.
16396         * modules/fnmatch (Depends-on): Update.
16397         * modules/getopt-posix (Depends-on): Update.
16398         * modules/glob (Depends-on): Update.
16399         * modules/iconv-h (Depends-on): Update.
16400         * modules/inttypes-incomplete (Depends-on): Update.
16401         * modules/locale (Depends-on): Update.
16402         * modules/math (Depends-on): Update.
16403         * modules/netdb (Depends-on): Update.
16404         * modules/search (Depends-on): Update.
16405         * modules/signal (Depends-on): Update.
16406         * modules/spawn (Depends-on): Update.
16407         * modules/stdio (Depends-on): Update.
16408         * modules/stdlib (Depends-on): Update.
16409         * modules/string (Depends-on): Update.
16410         * modules/strings (Depends-on): Update.
16411         * modules/sys_socket (Depends-on): Update.
16412         * modules/sys_stat (Depends-on): Update.
16413         * modules/sys_time (Depends-on): Update.
16414         * modules/sys_times (Depends-on): Update.
16415         * modules/sys_utsname (Depends-on): Update.
16416         * modules/time (Depends-on): Update.
16417         * modules/unistd (Depends-on): Update.
16418         * modules/wchar (Depends-on): Update.
16419         * MODULES.html.sh (Support for building libraries and executables):
16420         Update.
16421
16422 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16423
16424         Improvements on _Noreturn and related modules.
16425
16426         modules/_Exit-tests: test _Noreturn too
16427         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16428         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16429         (main): Use them.
16430
16431         stdnoreturn, stdnoreturn-tests: remove modules
16432         They're not needed here and a bit premature for use elsewhere.  See
16433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16434         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16435         * tests/test-stdnoreturn.c: Remove files.
16436         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16437         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16438         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16439         and using noreturn.
16440         * modules/openat, modules/sigpipe-die, modules/xalloc:
16441         * modules/xmemdup0, modules/xstrtol:
16442         Remove dependency on stdnoreturn.
16443
16444         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16445         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16446         Reparenthesize to avoid GCC warning.
16447         Support Microsoft's syntax.
16448         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16449
16450         _Noreturn-tests: remove module
16451         * modules/_Noreturn-tests: Remove.
16452         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16453         * tests/test-_Noreturn.c: Remove.
16454         * tests/test-stdnoreturn.c: Merge from the old
16455         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16456
16457 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16458
16459         _Noreturn, stdnoreturn, and related modules.
16460
16461         * top/maint.mk: Adjust to new noreturn support.
16462         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16463         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16464
16465         xalloc: use stdnoreturn.h
16466         * lib/xalloc.h: Include <stdnoreturn.h>.
16467         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16468         * modules/xalloc (Depends-on): Add stdnoreturn.
16469
16470         xstrtol: use stdnoreturn.h
16471         * lib/xstrtol.h: Include <stdnoreturn.h>.
16472         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16473         * modules/xstrtol (Depends-on): Add stdnoreturn.
16474
16475         xmemdup0: use stdnoreturn.h
16476         * lib/xmemdup0.h: Include <stdnoreturn.h>.
16477         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16478         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
16479
16480         sigpipe-die: use stdnoreturn.h
16481         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
16482         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16483         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
16484
16485         openat: use stdnoreturn.h
16486         * lib/openat.h: Include <stdnoreturn.h>.
16487         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16488         * modules/openat (Depends-on): Add stdnoreturn.
16489
16490         * lib/openat-die.c (openat_save_fail): Modernize comment.
16491
16492         * lib/xalloc-die.c (xalloc_die): Modernize comment.
16493
16494         * lib/glthread/thread.h: Modernize comment.
16495
16496         obstack: use _Noreturn
16497         * lib/obstack.c (__attribute__): Remove macro.
16498         (print_and_abort): Use _Noreturn.
16499
16500         c-stack: use _Noreturn
16501         * lib/c-stack.c (die, overflow_handler, segv_handler):
16502         Use _Noreturn rather than __attribute__((noreturn)).
16503
16504         argmatch-tests, exclude_tests: use _Noreturn
16505         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
16506         Remove.
16507         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
16508
16509         stdlib: use _Noreturn
16510         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
16511         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
16512         * modules/stdlib (Depends-on): Add _Noreturn.
16513         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
16514
16515         stdnoreturn-tests: new module
16516         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
16517
16518         stdnoreturn: new module
16519         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
16520         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
16521
16522         _Noreturn-tests: new module
16523         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
16524
16525         _Noreturn: new module
16526         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
16527         New section, mentioning it.
16528         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
16529
16530         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
16531
16532 2011-07-11  Eric Blake  <eblake@redhat.com>
16533
16534         ffs: new module
16535         * modules/ffs: New file.
16536         * m4/ffs.m4: Likewise.
16537         * lib/ffs.c: Likewise.
16538         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
16539         * modules/strings (Makefile.am): Substitute witness.
16540         (Depends-on): Add c++defs.
16541         * lib/strings.in.h (ffs): Declare.
16542         * modules/ffs-tests: New test file.
16543         * tests/test-ffs.c: Test new module.
16544         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16545         * doc/posix-functions/ffs.texi (ffs): Likewise.
16546
16547         regex: avoid compiler warning
16548         * lib/regex.c (includes): Include <strings.h>, for use of
16549         strcasecmp in regcomp.c.
16550         Reported by Joachim Schmitz.
16551
16552 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16553
16554         stdint: respect system's intmax_t if INTMAX_MAX
16555         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
16556         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
16557         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
16558         long but int64_t is long long, and where we will clash with the
16559         system intmax_t if we override it.  See
16560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
16561         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
16562         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
16563         similarly for UINTMAX_C.
16564
16565 2011-07-08  Bruno Haible  <bruno@clisp.org>
16566
16567         pthread_sigmask tests: Avoid a compiler warning.
16568         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
16569         non-zero.
16570
16571         sigprocmask tests: A better way to avoid a compiler warning.
16572         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
16573         (main): Complain if system() returns non-zero.
16574         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
16575
16576 2011-07-08  Bruno Haible  <bruno@clisp.org>
16577
16578         pthread_sigmask: Work around IRIX bug.
16579         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
16580         bug.
16581         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
16582         there may be unblocked pending signals.
16583         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
16584
16585 2011-07-08  Bruno Haible  <bruno@clisp.org>
16586
16587         pthread_sigmask: Work around Cygwin bug.
16588         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
16589         bug.
16590         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
16591         the system's pthread_sigmask function.
16592         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
16593
16594 2011-07-08  Bruno Haible  <bruno@clisp.org>
16595
16596         pthread_sigmask: Work around bug in single-threaded implementation.
16597         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
16598         FreeBSD, HP-UX, Solaris bug.
16599         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
16600         * lib/pthread_sigmask.c: Include <stddef.h>.
16601         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
16602         the system's pthread_sigmask function.
16603         * modules/pthread_sigmask (configure.ac): Invoke
16604         gl_PREREQ_PTHREAD_SIGMASK.
16605         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
16606         HP-UX, Solaris.
16607
16608 2011-07-08  Eric Blake  <eblake@redhat.com>
16609
16610         test-sigprocmask: avoid compiler warning
16611         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
16612         * tests/test-sigprocmask.c (main): Use it to silence warning.
16613         Reported by Jim Meyering.
16614
16615         test-snprintf: avoid compiler warning
16616         * tests/test-snprintf.c (main): Avoid shadowed declaration.
16617         * tests/test-vsnprintf.c (main): Likewise.
16618         Reported by Jim Meyering.
16619
16620 2011-07-08  Bruno Haible  <bruno@clisp.org>
16621
16622         Tests for module 'pthread_sigmask'.
16623         * modules/pthread_sigmask-tests: New file.
16624         * tests/test-pthread_sigmask1.c: New file, based on
16625         tests/test-sigprocmask.c.
16626         * tests/test-pthread_sigmask2.c: New file.
16627
16628 2011-07-08  Jim Meyering  <meyering@redhat.com>
16629
16630         test-getopt.h: avoid warning about an unused variable
16631         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
16632
16633 2011-07-07  Jim Meyering  <meyering@redhat.com>
16634
16635         maint: reduce list of files exempt from sc_prohibit_leading_TABs
16636         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
16637         now that it no longer contains leading TABs.
16638         Remove unused "url=FIXME" statement.
16639
16640 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16641
16642         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
16643         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16644         When gl_THREADLIB is not in use, assume that the POSIX sematics
16645         are desired.  This is better for Emacs, which uses POSIX semantics
16646         on GNUish and/or POSIXish platforms, and does not use threads at
16647         all otherwise.
16648
16649         pthread_sigmask: fix typo when testing for libraries
16650         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16651         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
16652
16653 2011-07-08  Eric Blake  <eblake@redhat.com>
16654
16655         fts: introduce FTS_NOATIME
16656         * lib/fts_.h (FTS_NOATIME): New bit flag.
16657         (FTS_OPTIONMASK): Adjust.
16658         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
16659         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
16660
16661 2011-07-08  Bruno Haible  <bruno@clisp.org>
16662
16663         Tests for module 'thread'.
16664         * modules/thread-tests: New file.
16665         * tests/test-thread_self.c: New file.
16666         * tests/test-thread_create.cc: New file.
16667
16668 2011-07-08  Bruno Haible  <bruno@clisp.org>
16669
16670         thread: Avoid gcc warnings when using gl_thread_self().
16671         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
16672         'void *'.
16673         (gl_thread_self_pointer): Update.
16674
16675 2011-07-07  Bruno Haible  <bruno@clisp.org>
16676
16677         signal-c++-tests: Check declaration of pthread_sigmask.
16678         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
16679         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
16680         $(LIB_PTHREAD_SIGMASK).
16681
16682 2011-07-07  Bruno Haible  <bruno@clisp.org>
16683
16684         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
16685         * lib/signal.in.h (pthread_sigmask): Override if
16686         REPLACE_PTHREAD_SIGMASK is 1.
16687         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16688         REPLACE_PTHREAD_SIGMASK.
16689         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
16690         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
16691         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
16692         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16693         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
16694
16695 2011-07-07  Bruno Haible  <bruno@clisp.org>
16696
16697         pthread_sigmask: Ensure declaration in <signal.h>.
16698         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
16699         include <pthread.h>.
16700         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
16701         problem.
16702
16703 2011-07-07  Bruno Haible  <bruno@clisp.org>
16704
16705         pthread_sigmask: Document the module.
16706         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
16707
16708 2011-07-07  Bruno Haible  <bruno@clisp.org>
16709
16710         pthread_sigmask: Follow gnulib conventions.
16711         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
16712         gl_PTHREAD_SIGMASK.
16713         * modules/pthread_sigmask (configure.ac): Update.
16714
16715 2011-07-07  Bruno Haible  <bruno@clisp.org>
16716
16717         pthread_sigmask: Make declaration C++ safe.
16718         * lib/signal.in.h: In two special conditions, just do an #include_next.
16719         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16720         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
16721         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16722         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16723         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
16724         not REPLACE_PTHREAD_MASK.
16725         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
16726         not REPLACE_PTHREAD_MASK.
16727         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16728
16729 2011-07-07  Bruno Haible  <bruno@clisp.org>
16730
16731         pthread_sigmask: Fix return value.
16732         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
16733         * lib/pthread_sigmask.c: New file.
16734         * modules/pthread_sigmask (Files): Add it.
16735         (configure.ac): Invoke AC_LIBOBJ.
16736
16737 2011-07-07  Eric Blake  <eblake@redhat.com>
16738
16739         getopt: more portable argv creation
16740         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
16741         const, use char arrays rather than strings.
16742         Suggested by Paul Eggert.
16743
16744 2011-07-07  Bruno Haible  <bruno@clisp.org>
16745
16746         Tests for module 'sigprocmask'.
16747         * modules/sigprocmask-tests: New file.
16748         * tests/test-sigprocmask.c: New file.
16749
16750 2011-07-07  Bruno Haible  <bruno@clisp.org>
16751
16752         float tests: Tweak.
16753         * tests/test-float.c (main): Tweak skip message.
16754
16755 2011-07-07  Eric Blake  <eblake@redhat.com>
16756
16757         getopt: avoid compiler warning during configure
16758         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
16759         assigning string literals to non-const pointer.
16760
16761         getopt-gnu: avoid crash in glibc getopt
16762         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
16763         * tests/test-getopt.h (test_getopt): Enhance test.
16764         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16765         * doc/posix-functions/getopt.texi (getopt): Document it.
16766         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16767         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16768         Likewise.
16769
16770 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16771
16772         getopt: handle W; without long options in getopt [BZ #12922]
16773         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
16774         but no long options are defined, just return 'W'.
16775
16776 2011-07-07  Bruno Haible  <bruno@clisp.org>
16777
16778         Avoid literal tabs.
16779         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
16780         variable containing a tab instead of a literal tab.
16781         Reported by Jim Meyering.
16782
16783 2011-07-07  Bruno Haible  <bruno@clisp.org>
16784
16785         Comments.
16786         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
16787
16788 2011-07-06  Bruno Haible  <bruno@clisp.org>
16789
16790         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
16791         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
16792         <winsock2.h>.
16793         (rpl_fd_isset, FD_ISSET): New definitions, copied from
16794         lib/sys_socket.in.h.
16795         (close, gethostname): Hide declarations from <winsock2.h>.
16796         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16797         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
16798         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
16799         (select): Don't override if gnulib's <sys/select.h> was already
16800         included.
16801         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16802         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16803         setsockopt, shutdown, select): Tweak indentation.
16804
16805 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16806
16807         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
16808         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
16809         in an application that does not use the sys_select module.
16810
16811 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
16812
16813         poll: do not return 0 on timeout=-1
16814         * lib/poll.c: Loop with yield if no events occurred.
16815
16816 2011-07-06  Eric Blake  <eblake@redhat.com>
16817
16818         pthread_sigmask: always replace when not using pthread
16819         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
16820         replacement when using some threading other than pthread.  Fix
16821         logic bug.
16822
16823 2011-07-06  Bruno Haible  <bruno@clisp.org>
16824
16825         Comments.
16826         * m4/printf.m4: Update comments about mingw.
16827
16828 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16829
16830         sys_select: define sigset_t more portably
16831         * lib/sys_select.in.h: Always include <sys/types.h>, since
16832         we now need sigset_t and mingw defines it there.
16833         Include <signal.h> before split inclusion guard, to avoid
16834         mishaps on Solaris, whose <signal.h> eventually includes us.
16835         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
16836         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
16837         which come from ...
16838         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
16839         gl_CHECK_TYPE_SIGSET_T.
16840         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
16841         does the real work.
16842         * modules/sys_select (Depends-on): Add 'signal'.
16843
16844         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
16845         Suggested by Bruno Haible.
16846
16847         pselect: Use pthread_sigmask, not sigprocmask.
16848         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
16849         multithreaded apps better than sigprocmask does.
16850         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
16851         sigprocmask directly.
16852
16853 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16854
16855         * lib/pselect.c (pselect): Use plain name, without "rpl_".
16856         Don't #undef,  since we don't need any underlying pselect.
16857         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
16858         (Depends-on): Add select.
16859         (Link): Add $(LIBSOCKET).
16860         These changes suggested by Bruno Haible.
16861
16862         pselect: document better
16863         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16864         * doc/posix-functions/pselect.texi (pselect): Document new module.
16865
16866         pthread_sigmask: new module
16867         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16868         * doc/posix-functions/pthread_sigmask.texi: Document new module.
16869         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
16870         This is done only as a macro; I don't know how well that'll
16871         work for C++.  Move <sys/types.h> include before the include_next,
16872         to avoid mishap on Solaris.
16873         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
16874         * modules/signal (Makefile.am): Substitute the check's results.
16875         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
16876
16877         test-pselect: new module
16878         * modules/pselect-tests, tests/test-pselect.c: New files.
16879         * tests/test-select.c, tests/test-sys_select-c++.cc:
16880         If TEST_PSELECT is defined, test pselect instead of testing select.
16881
16882         * tests/test-sys_select.c (sigset_t): Test for it, too.
16883         Suggested by Bruno Haible.
16884
16885 2011-07-05  Eric Blake  <eblake@redhat.com>
16886
16887         snprintf: guarantee %1$d, for libintl
16888         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
16889         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
16890         * doc/posix-functions/snprintf.texi (snprintf): Update.
16891         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16892         * tests/test-snprintf.c (main): Enhance test.
16893         * tests/test-vsnprintf.c (main): Likewise.
16894
16895 2011-07-05  Jim Meyering  <meyering@redhat.com>
16896
16897         maint: exempt stdio-read.c and stdio-write.c from the cppi check
16898         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
16899         per Bruno's request, to accommodate this idiom (no space after "#")
16900         even when the function is inside an #if block:
16901         char *
16902         gets (char *s)
16903         #undef gets
16904         {
16905           ...
16906         }
16907
16908 2011-07-04  Jim Meyering  <meyering@redhat.com>
16909
16910         maint: indent with spaces, not TABs, and add a rule to check this
16911         * tests/test-userspec.c: Indent with spaces, not TABs.
16912         * tests/test-argp.c: Likewise.
16913         * tests/test-c-stack2.sh: Likewise.
16914         * tests/test-parse-duration.sh: Likewise
16915         * m4/strtod.m4: Likewise.
16916         * m4/alloca.m4: Likewise.
16917         * m4/pselect.m4: Likewise.
16918         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
16919
16920 2011-07-03  Jim Meyering  <meyering@redhat.com>
16921
16922         maint.mk: correct omissions in prohibit_argmatch_without_use check
16923         This rule would mistakenly report that argmatch.h is included without
16924         use even when both the argmatch and invalid_arg macro were used.
16925         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
16926         of argmatch and invalid_arg.
16927
16928 2011-07-03  Bruno Haible  <bruno@clisp.org>
16929
16930         Comments about EINTR.
16931         * lib/safe-read.h: Explain the purpose of this module.
16932         * lib/safe-write.h: Likewise.
16933         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
16934         module.
16935         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
16936         module.
16937         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16938
16939 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
16940
16941         xnanosleep: Rewrite to use new dtotimespec module.
16942         It has the conversion code that used to be in xnanosleep.
16943         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
16944         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
16945         (TIME_T_MAX): Remove.
16946         (xnanosleep): Rewrite in terms of dtotimespec.
16947         * modules/xnanosleep (Depends-on): Add dtotimespec.
16948         Remove intprops, stdbool.
16949
16950         timespec-add, timespec-sub: new modules
16951         * lib/timespec.h (timespec_add, timespec_sub): New decls.
16952         * lib/timespec-add.c, lib/timespec-sub.c:
16953         * modules/timespec-add, modules/timespec-sub: New files.
16954
16955         dtotimespec: new module
16956         * lib/timespec.h (dtotimespec): New decl.
16957         * lib/dtotimespec.c, modules/dtotimespec: New files.
16958
16959         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
16960
16961         pselect: new module
16962         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
16963         (pselect): New decls.
16964         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
16965         since the standard pselect decl uses 'restrict'.
16966         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
16967         HAVE_PSELECT, REPLACE_PSELECT.
16968         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
16969         HAVE_PSELECT, REPLACE_PSELECT.
16970         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
16971
16972         sys_select: don't depend on sys_socket
16973         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
16974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
16975         This fix works on GNU and GNU-like platforms, but has not been tested
16976         on native Windows.
16977         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
16978         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
16979         gl_HEADER_SYS_SOCKET.
16980         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
16981         gl_PREREQ_SYS_H_WINSOCK2.
16982
16983 2011-06-29  Eric Blake  <eblake@redhat.com>
16984
16985         pipe2: fix C89 compile problem
16986         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
16987         Reported by Bruno Haible.
16988
16989         pipe, pipe2: don't corrupt fd on error
16990         * lib/pipe.c (pipe): Leave fd unchanged on error.
16991         * lib/pipe2.c (pipe2): Likewise.
16992         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
16993         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16994
16995 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
16996
16997         mmap-anon: do not use regular expressions inadvertently
16998         * m4/mmap-anon.m4: Remove trailing period from strings sought
16999         in the output.
17000
17001 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
17002
17003         nanosleep: fix integer overflow problem
17004         * lib/nanosleep.c (my_usleep): Don't assume signed integer
17005         arithmetic wraps around on overflow.
17006
17007         nanosleep: simplify carrying
17008         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
17009         first call to the underyling nanosleep, not for the last one.
17010         This doesn't fix any bugs, but it simplifies the computation of
17011         the remaining delay.  Found while auditing integer overflow issues.
17012
17013         dup2: remove test for existence of fcntl
17014         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
17015         "#if HAVE_FCNTL", in the configure-time test program.
17016         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
17017         and therefore speeds up "configure" a bit.  Found while
17018         adding the dup2 module to Emacs.
17019
17020 2011-06-24  Eric Blake  <eblake@redhat.com>
17021
17022         maint.mk: enhance useless header checks
17023         * top/maint.mk (_sc_header_without_use): Check both include
17024         styles.
17025         (sc_prohibit_assert_without_use)
17026         (sc_prohibit_close_stream_without_use)
17027         (sc_prohibit_getopt_without_use)
17028         (sc_prohibit_quotearg_without_use)
17029         (sc_prohibit_quote_without_use)
17030         (sc_prohibit_long_options_without_use)
17031         (sc_prohibit_inttostr_without_use)
17032         (sc_prohibit_ignore_value_without_use)
17033         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
17034         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
17035         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
17036         (sc_prohibit_hash_pjw_without_use)
17037         (sc_prohibit_safe_read_without_use)
17038         (sc_prohibit_argmatch_without_use)
17039         (sc_prohibit_canonicalize_without_use)
17040         (sc_prohibit_root_dev_ino_without_use)
17041         (sc_prohibit_openat_without_use)
17042         (sc_prohibit_c_ctype_without_use)
17043         (sc_prohibit_signal_without_use)
17044         (sc_prohibit_stdio--_without_use)
17045         (sc_prohibit_stdio-safer_without_use)
17046         (sc_prohibit_strings_without_use)
17047         (sc_prohibit_intprops_without_use)
17048         (sc_prohibit_stddef_without_use)
17049         (sc_prohibit_xfreopen_without_use): Update clients.
17050
17051 2011-06-24  Jim Meyering  <meyering@redhat.com>
17052
17053         syntax-check: keep one maint.mk rule in sync with its header
17054         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
17055         of the bug Eric has just fixed, with today's commit 25e4c2ec.
17056         I prefer to avoid temporary files here, so use <(...), but that
17057         is not supported by /bin/sh, so...
17058         (SHELL): Define to /bin/bash.
17059
17060 2011-06-24  Eric Blake  <eblake@redhat.com>
17061
17062         maint.mk: update sc_prohibit_intprops_without_use
17063         * top/maint.mk (_intprops_names): Match recent changes.
17064
17065 2011-06-24  Bruno Haible  <bruno@clisp.org>
17066
17067         strerror-override: No-op tweak.
17068         * lib/strerror-override.h (strerror_override): Reorder conditions,
17069         for consistency with lib/strerror-override.c.
17070
17071 2011-06-23  Eric Blake  <eblake@redhat.com>
17072
17073         maint.mk: test further PATH_MAX issues
17074         * top/maint.mk (sc_prohibit_path_max_array): Rename...
17075         (sc_prohibit_path_max_allocation): ...and also test alloca.
17076         Suggested by Jim Meyering.
17077
17078 2011-06-22  Eric Blake  <eblake@redhat.com>
17079
17080         maint.mk: add syntax-check to avoid char[PATH_MAX]
17081         * top/maint.mk (sc_prohibit_path_max_array): New rule.
17082
17083         stat: be robust to PATH_MAX definition
17084         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
17085         * modules/stat (Depends-on): Add verify.
17086
17087         link: work around IRIX bug
17088         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
17089         * lib/link.c (rpl_link): Work around it.
17090         * tests/test-link.h (test_link): Enhance test.
17091         * doc/posix-functions/link.texi (link): Document the bug.
17092
17093         getopt: silence clang warning
17094         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
17095         dereference.
17096         Reported by Gustavo Martin Domato.
17097
17098 2011-06-22  Jim Meyering  <meyering@redhat.com>
17099
17100         bootstrap: do not insert a blank line into each .gitignore file
17101         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
17102
17103 2011-06-21  Eric Blake  <eblake@redhat.com>
17104
17105         perror: test for output mismatch
17106         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
17107         perror on IRIX.
17108
17109         strerror_r: fix OpenBSD behavior on out-of-range
17110         * lib/strerror_r.c (strerror_r): Always use maximal string.
17111         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17112
17113         strerror_r: fix OpenBSD behavior on 0
17114         * lib/strerror-override.c (strerror_override): Also override 0
17115         when needed.
17116         * lib/strerror-override.h (strerror_override): Likewise.
17117         * lib/strerror.c (strerror): Simplify, now that 0 override is done
17118         earlier.
17119         * lib/strerror_r.c (strerror_r): Likewise.
17120         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
17121         behavior...
17122         (gl_FUNC_STRERROR_0): ...into new macro.
17123         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
17124         is overridden.
17125         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
17126         * modules/strerror-override (Files): Add strerror.m4.
17127         (configure.ac): Also provide override for 0 when needed.
17128         * doc/posix-functions/strerror.texi (strerror): Document this.
17129         * doc/posix-functions/perror.texi (perror): Likewise.
17130
17131         perror: adjust array size
17132         * modules/perror (Depends-on): Add strerror-override.
17133         * lib/perror.c (perror): Use it to avoid magic number.
17134
17135         strerror-override: reduce size
17136         * lib/strerror-override.c (strerror_override): Use fewer lines.
17137
17138 2011-06-20  Bruno Haible  <bruno@clisp.org>
17139
17140         pathmax: Ensure correct value for PATH_MAX on HP-UX.
17141         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
17142
17143 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17144
17145         alloca: port to compilers that can optimize like GCC 4.6.0
17146         * lib/alloca.c (find_stack_direction): New signature, taken from
17147         Autoconf git.  This works with GCC 4.6.0.  This code should never
17148         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
17149         be used with other compilers that optimize as well as GCC 4.6.0 does.
17150         (alloca): Adjust to new signature.
17151         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
17152         New macro, which patches Autoconf in a similar way.
17153
17154         c-stack: stop worrying about stack direction
17155         * lib/c-stack.c (find_stack_direction): Remove.
17156         (segv_handler): Don't worry about stack direction growth, as it's
17157         too much of a pain to configure this correctly, given how compilers
17158         are optimizing-away our stack-growth detection code.  Instead, assume
17159         that any access to just before or just after the stack is OK.
17160         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
17161         Don't require AC_FUNC_ALLOCA; no longer needed.
17162
17163 2011-06-20  Eric Blake  <eblake@redhat.com>
17164
17165         test-stat: don't allocate PATH_MAX bytes
17166         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
17167         PATH_MAX-sized buffer.
17168         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
17169         * modules/stat-tests (Depends-on): Likewise.
17170         * tests/test-fstatat.c (includes): Drop pathmax.h.
17171         * tests/test-stat.c (includes): Likewise.
17172         Reported by Bruno Haible.
17173
17174 2011-06-20  Bruno Haible  <bruno@clisp.org>
17175
17176         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
17177         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
17178         * lib/float.c: New file.
17179         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
17180         REPLACE_FLOAT_LDBL.
17181         * modules/float (Files): Add lib/float.c.
17182         (configure.ac): Invoke AC_LIBOBJ.
17183         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
17184
17185 2011-06-20  Bruno Haible  <bruno@clisp.org>
17186
17187         Tests for module 'float'.
17188         * modules/float-tests: New file.
17189         * tests/test-float.c: New file.
17190
17191 2011-06-19  Bruno Haible  <bruno@clisp.org>
17192
17193         isinf: Coding style.
17194         * lib/isinf.c: Use GNU coding style.
17195
17196 2011-06-19  Bruno Haible  <bruno@clisp.org>
17197
17198         linkat test: Avoid test failure on AIX 7.1.
17199         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
17200         * tests/test-link.h (test_link): Likewise.
17201
17202 2011-06-19  Bruno Haible  <bruno@clisp.org>
17203
17204         pread test: Avoid test failure on OpenBSD 4.9.
17205         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
17206
17207 2011-06-19  Bruno Haible  <bruno@clisp.org>
17208
17209         sprintf-posix: Fix test failure on AIX 7.1.
17210         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
17211         * doc/posix-functions/dprintf.texi: Mention limited precision problem
17212         on AIX.
17213         * doc/posix-functions/fprintf.texi: Likewise.
17214         * doc/posix-functions/printf.texi: Likewise.
17215         * doc/posix-functions/snprintf.texi: Likewise.
17216         * doc/posix-functions/sprintf.texi: Likewise.
17217         * doc/posix-functions/vdprintf.texi: Likewise.
17218         * doc/posix-functions/vfprintf.texi: Likewise.
17219         * doc/posix-functions/vprintf.texi: Likewise.
17220         * doc/posix-functions/vsnprintf.texi: Likewise.
17221         * doc/posix-functions/vsprintf.texi: Likewise.
17222
17223 2011-06-19  Bruno Haible  <bruno@clisp.org>
17224
17225         roundl-ieee: Fix test failure on AIX 7.1.
17226         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
17227         * doc/posix-functions/roundl.texi: Mention problem with negative
17228         arguments.
17229
17230 2011-06-19  Bruno Haible  <bruno@clisp.org>
17231
17232         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17233         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
17234         * doc/posix-functions/round.texi: Mention problem with negative
17235         arguments.
17236         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
17237
17238 2011-06-19  Bruno Haible  <bruno@clisp.org>
17239
17240         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17241         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
17242         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
17243         * doc/posix-functions/roundf.texi: Mention problem with negative
17244         arguments.
17245         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
17246
17247 2011-06-19  Bruno Haible  <bruno@clisp.org>
17248
17249         ceilf-ieee: Work around bug on MacOS X 10.5.
17250         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
17251
17252         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
17253         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
17254         IEEE compliant, avoid compiler optimizations.
17255         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
17256         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17257         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
17258         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17259         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17260         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17261         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17262         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17263         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17264         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
17265
17266 2011-06-19  Bruno Haible  <bruno@clisp.org>
17267
17268         ceilf-ieee: Work around bug on AIX 7.1.
17269         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
17270         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
17271
17272 2011-06-19  Bruno Haible  <bruno@clisp.org>
17273
17274         ceil-ieee: Work around bug on AIX 7.1.
17275         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
17276         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
17277
17278 2011-06-18  Bruno Haible  <bruno@clisp.org>
17279
17280         fsync test: Avoid test failure on MacOS X and AIX.
17281         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
17282         EINVAL.
17283
17284 2011-06-18  Bruno Haible  <bruno@clisp.org>
17285
17286         openat, fdopendir tests: Fix link errors.
17287         * modules/openat-tests (Depends-on): Add progname.
17288         * modules/fdopendir-tests (Depends-on): Likewise.
17289         * tests/test-fchownat.c: Include progname.h.
17290         (main): Call set_program_name.
17291         * tests/test-fstatat.c: Include progname.h.
17292         (main): Call set_program_name.
17293         * tests/test-mkdirat.c: Include progname.h.
17294         (main): Call set_program_name.
17295         * tests/test-openat.c: Include progname.h.
17296         (main): Call set_program_name.
17297         * tests/test-unlinkat.c: Include progname.h.
17298         (main): Call set_program_name.
17299         * tests/test-fdopendir.c: Include progname.h.
17300         (main): Call set_program_name.
17301
17302 2011-06-18  Bruno Haible  <bruno@clisp.org>
17303
17304         Doc update.
17305         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
17306         HP-UX.
17307         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
17308
17309 2011-06-18  Bruno Haible  <bruno@clisp.org>
17310
17311         getcwd tests: Avoid compilation error on HP-UX 11.31.
17312         * modules/getcwd-tests (Depends-on): Add pathmax.
17313         * tests/test-getcwd.c: Include pathmax.h.
17314
17315 2011-06-18  Bruno Haible  <bruno@clisp.org>
17316
17317         isfinite, isinf: Fix link error on AIX 6 and 7.
17318         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
17319         needed, also test the macro with a 'float' argument.
17320         * m4/isinf.m4 (gl_ISINF): Likewise.
17321
17322 2011-06-18  Bruno Haible  <bruno@clisp.org>
17323
17324         getloadavg: Don't clobber LIBS. Regression from previous commit.
17325         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17326         AC_CHECK_LIB from here...
17327         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17328         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17329         gl_func_getloadavg_done.
17330         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17331
17332 2011-06-18  Bruno Haible  <bruno@clisp.org>
17333
17334         clean-temp: Improve documentation.
17335         * lib/clean-temp.h: Explain better how to use this module.
17336         Reported by John Darrington <john@darrington.wattle.id.au>.
17337
17338 2011-06-17  Bruno Haible  <bruno@clisp.org>
17339
17340         pread, pwrite: Avoid cc warning on AIX.
17341         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17342         (pwrite): Likewise.
17343
17344 2011-06-17  Bruno Haible  <bruno@clisp.org>
17345
17346         spawn-pipe tests: Fix link error.
17347         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17348         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17349
17350 2011-06-17  Bruno Haible  <bruno@clisp.org>
17351
17352         Tests: Remove unnecessary dependency.
17353         * modules/canonicalize-tests (Depends-on): Remove progname.
17354         * modules/chown-tests (Depends-on): Likewise.
17355         * modules/dirname-tests (Depends-on): Likewise.
17356         * modules/fdopendir-tests (Depends-on): Likewise.
17357         * modules/fdutimensat-tests (Depends-on): Likewise.
17358         * modules/hash-tests (Depends-on): Likewise.
17359         * modules/lchown-tests (Depends-on): Likewise.
17360         * modules/linkat-tests (Depends-on): Likewise.
17361         * modules/renameat-tests (Depends-on): Likewise.
17362         * modules/spawn-pipe-tests (Depends-on): Likewise.
17363         * modules/utimensat-tests (Depends-on): Likewise.
17364
17365 2011-06-17  Bruno Haible  <bruno@clisp.org>
17366
17367         spawn-pipe tests: Fix link error.
17368         * tests/test-spawn-pipe-child.c: Undefine fflush.
17369
17370 2011-06-17  Bruno Haible  <bruno@clisp.org>
17371
17372         Fix tests link errors.
17373         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17374         * modules/chown-tests (Makefile.am): Don't link test-chown with
17375         LIBINTL.
17376         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17377         LIBINTL.
17378         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17379         LIBINTL.
17380         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17381         LIBINTL.
17382
17383 2011-06-16  Bruno Haible  <bruno@clisp.org>
17384
17385         crypto/gc-sha1: Fix recent regression.
17386         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
17387         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
17388
17389         crypto/gc-md5: Fix recent regression.
17390         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
17391
17392         crypto/gc-md4: Fix recent regression.
17393         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17394         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17395
17396         crypto/gc-arctwo: Fix recent regression.
17397         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17398         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17399
17400         crypto/gc-rijndael: Fix recent regression.
17401         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17402         (configure.ac): Invoke AC_LIBOBJ here.
17403         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17404         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17405
17406         crypto/gc-hmac-sha1: Fix recent regression.
17407         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17408         (configure.ac): Invoke AC_LIBOBJ here.
17409         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17410         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17411
17412         crypto/gc-hmac-md5: Fix recent regression.
17413         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17414         (configure.ac): Invoke AC_LIBOBJ here.
17415         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17416         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17417
17418         crypto/gc-des: Fix recent regression.
17419         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17420         (configure.ac): Invoke AC_LIBOBJ here.
17421         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17422         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17423
17424         crypto/gc-arcfour: Fix recent regression.
17425         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17426         (configure.ac): Invoke AC_LIBOBJ here.
17427         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17428         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17429
17430 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17431
17432         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17433         After the 2011-05-21 change, this macro requires
17434         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17435         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17436
17437 2011-06-16  Bruno Haible  <bruno@clisp.org>
17438
17439         fprintftime: Move AC_LIBOBJ invocations to module description.
17440         * m4/fprintftime.m4: Remove file.
17441         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17442         (configure.ac): Remove gl_FPRINTFTIME call.
17443         (Makefile.am): Augment lib_SOURCES.
17444         Reported by Jim Meyering.
17445
17446 2011-06-16  Bruno Haible  <bruno@clisp.org>
17447
17448         tmpfile-safer: Finish 2011-05-23 commit.
17449         * m4/stdio-safer.m4: Really remove file.
17450         Reported by Jim Meyering.
17451
17452 2011-06-16  Bruno Haible  <bruno@clisp.org>
17453
17454         syntax-check: Fix typo.
17455         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17456         printf-posix.m4.
17457         Reported by Jim Meyering.
17458
17459 2011-06-13  Jim Meyering  <meyering@redhat.com>
17460
17461         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17462         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17463
17464 2011-05-23  Bruno Haible  <bruno@clisp.org>
17465
17466         yesno: Move AC_LIBOBJ invocations to module description.
17467         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17468         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17469
17470 2011-05-23  Bruno Haible  <bruno@clisp.org>
17471
17472         xstrtol: Move AC_LIBOBJ invocations to module description.
17473         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17474         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17475
17476 2011-05-23  Bruno Haible  <bruno@clisp.org>
17477
17478         xstrtold: Move AC_LIBOBJ invocations to module description.
17479         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17480         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
17481
17482 2011-05-23  Bruno Haible  <bruno@clisp.org>
17483
17484         xstrtod: Move AC_LIBOBJ invocations to module description.
17485         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17486         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
17487
17488 2011-05-23  Bruno Haible  <bruno@clisp.org>
17489
17490         xnanosleep: Move AC_LIBOBJ invocations to module description.
17491         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
17492         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
17493
17494 2011-05-23  Bruno Haible  <bruno@clisp.org>
17495
17496         xgetcwd: Move AC_LIBOBJ invocations to module description.
17497         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
17498         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
17499
17500 2011-05-23  Bruno Haible  <bruno@clisp.org>
17501
17502         xalloc: Move AC_LIBOBJ invocations to module description.
17503         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
17504         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
17505
17506 2011-05-23  Bruno Haible  <bruno@clisp.org>
17507
17508         write-any-file: Move AC_LIBOBJ invocations to module description.
17509         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
17510         invocation.
17511         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
17512
17513 2011-05-23  Bruno Haible  <bruno@clisp.org>
17514
17515         utimens: Move AC_LIBOBJ invocations to module description.
17516         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
17517         * modules/utimens (Makefile.am): Augment lib_SOURCES.
17518
17519 2011-05-23  Bruno Haible  <bruno@clisp.org>
17520
17521         utimecmp: Move AC_LIBOBJ invocations to module description.
17522         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
17523         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
17524
17525 2011-05-23  Bruno Haible  <bruno@clisp.org>
17526
17527         userspec: Move AC_LIBOBJ invocations to module description.
17528         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
17529         * modules/userspec (Makefile.am): Augment lib_SOURCES.
17530
17531 2011-05-23  Bruno Haible  <bruno@clisp.org>
17532
17533         unlinkdir: Move AC_LIBOBJ invocations to module description.
17534         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
17535         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
17536
17537 2011-05-23  Bruno Haible  <bruno@clisp.org>
17538
17539         unistd-safer: Move AC_LIBOBJ invocations to module description.
17540         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
17541         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
17542
17543 2011-05-23  Bruno Haible  <bruno@clisp.org>
17544
17545         tempname: Move AC_LIBOBJ invocations to module description.
17546         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
17547         * modules/tempname (Makefile.am): Augment lib_SOURCES.
17548
17549 2011-05-23  Bruno Haible  <bruno@clisp.org>
17550
17551         strftime: Move AC_LIBOBJ invocations to module description.
17552         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
17553         * modules/strftime (Makefile.am): Augment lib_SOURCES.
17554
17555 2011-05-23  Bruno Haible  <bruno@clisp.org>
17556
17557         stdlib-safer: Move AC_LIBOBJ invocations to module description.
17558         * m4/stdlib-safer.m4: Remove file.
17559         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
17560         (configure.ac): Remove gl_STDLIB_SAFER call.
17561         (Makefile.am): Augment lib_SOURCES.
17562
17563 2011-05-23  Bruno Haible  <bruno@clisp.org>
17564
17565         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
17566         * m4/stdio-safer.m4: Remove file.
17567         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
17568         (configure.ac): Remove gl_TMPFILE_SAFER call.
17569         (Makefile.am): Augment lib_SOURCES.
17570
17571 2011-05-23  Bruno Haible  <bruno@clisp.org>
17572
17573         popen-safer: Move AC_LIBOBJ invocations to module description.
17574         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
17575         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
17576         (configure.ac): Remove gl_POPEN_SAFER call.
17577         (Makefile.am): Augment lib_SOURCES.
17578
17579 2011-05-23  Bruno Haible  <bruno@clisp.org>
17580
17581         freopen-safer: Move AC_LIBOBJ invocations to module description.
17582         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
17583         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
17584         (configure.ac): Remove gl_FREOPEN_SAFER call.
17585         (Makefile.am): Augment lib_SOURCES.
17586
17587 2011-05-23  Bruno Haible  <bruno@clisp.org>
17588
17589         fopen-safer: Move AC_LIBOBJ invocations to module description.
17590         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
17591         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
17592         (configure.ac): Remove gl_FOPEN_SAFER call.
17593         (Makefile.am): Augment lib_SOURCES.
17594
17595 2011-05-23  Bruno Haible  <bruno@clisp.org>
17596
17597         crypto/sha512: Move AC_LIBOBJ invocations to module description.
17598         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
17599         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
17600
17601 2011-05-23  Bruno Haible  <bruno@clisp.org>
17602
17603         crypto/sha256: Move AC_LIBOBJ invocations to module description.
17604         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
17605         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
17606
17607 2011-05-23  Bruno Haible  <bruno@clisp.org>
17608
17609         crypto/sha1: Move AC_LIBOBJ invocations to module description.
17610         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
17611         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
17612
17613 2011-05-23  Bruno Haible  <bruno@clisp.org>
17614
17615         settime: Move AC_LIBOBJ invocations to module description.
17616         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
17617         * modules/settime (Makefile.am): Augment lib_SOURCES.
17618
17619 2011-05-23  Bruno Haible  <bruno@clisp.org>
17620
17621         savedir: Move AC_LIBOBJ invocations to module description.
17622         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
17623         * modules/savedir (Makefile.am): Augment lib_SOURCES.
17624
17625 2011-05-23  Bruno Haible  <bruno@clisp.org>
17626
17627         save-cwd: Move AC_LIBOBJ invocations to module description.
17628         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
17629         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
17630
17631 2011-05-23  Bruno Haible  <bruno@clisp.org>
17632
17633         same: Move AC_LIBOBJ invocations to module description.
17634         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
17635         * modules/same (Makefile.am): Augment lib_SOURCES.
17636
17637 2011-05-23  Bruno Haible  <bruno@clisp.org>
17638
17639         safe-write: Move AC_LIBOBJ invocations to module description.
17640         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
17641         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
17642         instead of gl_SAFE_WRITE.
17643         (Makefile.am): Augment lib_SOURCES.
17644
17645 2011-05-23  Bruno Haible  <bruno@clisp.org>
17646
17647         safe-read: Move AC_LIBOBJ invocations to module description.
17648         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
17649         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
17650         of gl_SAFE_READ.
17651         (Makefile.am): Augment lib_SOURCES.
17652
17653 2011-05-23  Bruno Haible  <bruno@clisp.org>
17654
17655         safe-alloc: Move AC_LIBOBJ invocations to module description.
17656         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
17657         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
17658
17659 2011-05-23  Bruno Haible  <bruno@clisp.org>
17660
17661         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
17662         * m4/rijndael.m4: Remove file.
17663         * modules/crypto/rijndael (Files): Remove it.
17664         (configure.ac): Remove gl_RIJNDAEL call.
17665         (Makefile.am): Augment lib_SOURCES.
17666
17667 2011-05-23  Bruno Haible  <bruno@clisp.org>
17668
17669         readtokens: Move AC_LIBOBJ invocations to module description.
17670         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
17671         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
17672
17673 2011-05-23  Bruno Haible  <bruno@clisp.org>
17674
17675         read-file: Move AC_LIBOBJ invocations to module description.
17676         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
17677         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
17678         of gl_FUNC_READ_FILE.
17679         (Makefile.am): Augment lib_SOURCES.
17680
17681 2011-05-23  Bruno Haible  <bruno@clisp.org>
17682
17683         quotearg: Move AC_LIBOBJ invocations to module description.
17684         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
17685         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
17686
17687 2011-05-23  Bruno Haible  <bruno@clisp.org>
17688
17689         quote: Move AC_LIBOBJ invocations to module description.
17690         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
17691         * modules/quote (Makefile.am): Augment lib_SOURCES.
17692
17693 2011-05-23  Bruno Haible  <bruno@clisp.org>
17694
17695         posixver: Move AC_LIBOBJ invocations to module description.
17696         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
17697         * modules/posixver (Makefile.am): Augment lib_SOURCES.
17698
17699 2011-05-23  Bruno Haible  <bruno@clisp.org>
17700
17701         posixtm: Move AC_LIBOBJ invocations to module description.
17702         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
17703         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
17704
17705 2011-05-23  Bruno Haible  <bruno@clisp.org>
17706
17707         physmem: Move AC_LIBOBJ invocations to module description.
17708         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
17709         * modules/physmem (Makefile.am): Augment lib_SOURCES.
17710
17711 2011-05-23  Bruno Haible  <bruno@clisp.org>
17712
17713         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
17714         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
17715         invocation.
17716         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
17717
17718 2011-05-23  Bruno Haible  <bruno@clisp.org>
17719
17720         mpsort: Move AC_LIBOBJ invocations to module description.
17721         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
17722         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
17723
17724 2011-05-23  Bruno Haible  <bruno@clisp.org>
17725
17726         modechange: Move AC_LIBOBJ invocations to module description.
17727         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
17728         * modules/modechange (Makefile.am): Augment lib_SOURCES.
17729
17730 2011-05-23  Bruno Haible  <bruno@clisp.org>
17731
17732         mkdir-p: Move AC_LIBOBJ invocations to module description.
17733         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
17734         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
17735
17736 2011-05-23  Bruno Haible  <bruno@clisp.org>
17737
17738         mkancesdirs: Move AC_LIBOBJ invocations to module description.
17739         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
17740         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
17741
17742 2011-05-23  Bruno Haible  <bruno@clisp.org>
17743
17744         mgetgroups: Move AC_LIBOBJ invocations to module description.
17745         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
17746         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
17747
17748 2011-05-23  Bruno Haible  <bruno@clisp.org>
17749
17750         memxor: Move AC_LIBOBJ invocations to module description.
17751         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
17752         * modules/memxor (Makefile.am): Augment lib_SOURCES.
17753
17754 2011-05-23  Bruno Haible  <bruno@clisp.org>
17755
17756         memcoll: Move AC_LIBOBJ invocations to module description.
17757         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
17758         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
17759
17760 2011-05-23  Bruno Haible  <bruno@clisp.org>
17761
17762         memcasecmp: Move AC_LIBOBJ invocations to module description.
17763         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
17764         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
17765
17766 2011-05-23  Bruno Haible  <bruno@clisp.org>
17767
17768         crypto/md5: Move AC_LIBOBJ invocations to module description.
17769         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
17770         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
17771
17772 2011-05-23  Bruno Haible  <bruno@clisp.org>
17773
17774         crypto/md4: Move AC_LIBOBJ invocations to module description.
17775         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
17776         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
17777
17778 2011-05-23  Bruno Haible  <bruno@clisp.org>
17779
17780         crypto/md2: Move AC_LIBOBJ invocations to module description.
17781         * m4/md2.m4: Remove file.
17782         * modules/crypto/md2 (Files): Remove it.
17783         (configure.ac): Remove gl_MD2 call.
17784         (Makefile.am): Augment lib_SOURCES.
17785
17786 2011-05-23  Bruno Haible  <bruno@clisp.org>
17787
17788         long-options: Move AC_LIBOBJ invocations to module description.
17789         * m4/long-options.m4: Remove file.
17790         * modules/long-options (Files): Remove it.
17791         (configure.ac): Remove gl_LONG_OPTIONS call.
17792         (Makefile.am): Augment lib_SOURCES.
17793
17794 2011-05-23  Bruno Haible  <bruno@clisp.org>
17795
17796         i-ring: Move AC_LIBOBJ invocations to module description.
17797         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
17798         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
17799
17800 2011-05-23  Bruno Haible  <bruno@clisp.org>
17801
17802         idcache: Move AC_LIBOBJ invocations to module description.
17803         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
17804         * modules/idcache (Makefile.am): Augment lib_SOURCES.
17805
17806 2011-05-23  Bruno Haible  <bruno@clisp.org>
17807
17808         human: Move AC_LIBOBJ invocations to module description.
17809         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
17810         * modules/human (Makefile.am): Augment lib_SOURCES.
17811
17812 2011-05-23  Bruno Haible  <bruno@clisp.org>
17813
17814         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
17815         * m4/hmac-sha1.m4: Remove file.
17816         * modules/crypto/hmac-sha1 (Files): Remove it.
17817         (configure.ac): Remove gl_HMAC_SHA1 call.
17818         (Makefile.am): Augment lib_SOURCES.
17819
17820 2011-05-23  Bruno Haible  <bruno@clisp.org>
17821
17822         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
17823         * m4/hmac-md5.m4: Remove file.
17824         * modules/crypto/hmac-md5 (Files): Remove it.
17825         (configure.ac): Remove gl_HMAC_MD5 call.
17826         (Makefile.am): Augment lib_SOURCES.
17827
17828 2011-05-23  Bruno Haible  <bruno@clisp.org>
17829
17830         hash: Move AC_LIBOBJ invocations to module description.
17831         * m4/hash.m4: Remove file.
17832         * modules/hash (Files): Remove it.
17833         (configure.ac): Remove gl_HASH call.
17834         (Makefile.am): Augment lib_SOURCES.
17835
17836 2011-05-23  Bruno Haible  <bruno@clisp.org>
17837
17838         hard-locale: Move AC_LIBOBJ invocations to module description.
17839         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
17840         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
17841
17842 2011-05-23  Bruno Haible  <bruno@clisp.org>
17843
17844         getugroups: Move AC_LIBOBJ invocations to module description.
17845         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
17846         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
17847
17848 2011-05-23  Bruno Haible  <bruno@clisp.org>
17849
17850         gettime: Move AC_LIBOBJ invocations to module description.
17851         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
17852         * modules/gettime (Makefile.am): Augment lib_SOURCES.
17853
17854 2011-05-23  Bruno Haible  <bruno@clisp.org>
17855
17856         getndelim2: Move AC_LIBOBJ invocations to module description.
17857         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
17858         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
17859
17860 2011-05-23  Bruno Haible  <bruno@clisp.org>
17861
17862         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
17863         * m4/gc-pbkdf2-sha1.m4: Remove file.
17864         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
17865         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
17866         (Makefile.am): Augment lib_SOURCES.
17867
17868 2011-05-23  Bruno Haible  <bruno@clisp.org>
17869
17870         fts: Move AC_LIBOBJ invocations to module description.
17871         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
17872         * modules/fts (configure.ac): ... to here.
17873
17874 2011-05-23  Bruno Haible  <bruno@clisp.org>
17875
17876         file-type: Move AC_LIBOBJ invocations to module description.
17877         * m4/file-type.m4: Remove file.
17878         * modules/file-type (Files): Remove it.
17879         (configure.ac): Remove gl_FILE_TYPE call.
17880         (Makefile.am): Augment lib_SOURCES.
17881
17882 2011-05-23  Bruno Haible  <bruno@clisp.org>
17883
17884         filenamecat*: Respect rules for use of AC_LIBOBJ.
17885         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
17886         Remove AC_LIBOBJ invocation.
17887         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
17888         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
17889
17890 2011-05-23  Bruno Haible  <bruno@clisp.org>
17891
17892         filemode: Move AC_LIBOBJ invocations to module description.
17893         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
17894         * modules/filemode (Makefile.am): Augment lib_SOURCES.
17895
17896 2011-05-23  Bruno Haible  <bruno@clisp.org>
17897
17898         openat-safer: Move AC_LIBOBJ invocations to module description.
17899         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
17900         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
17901
17902 2011-05-23  Bruno Haible  <bruno@clisp.org>
17903
17904         fcntl-safer: Move AC_LIBOBJ invocations to module description.
17905         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
17906         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
17907
17908 2011-05-23  Bruno Haible  <bruno@clisp.org>
17909
17910         exclude: Move AC_LIBOBJ invocations to module description.
17911         * m4/exclude.m4: Remove file.
17912         * modules/exclude (Files): Remove it.
17913         (configure.ac): Remove gl_EXCLUDE call.
17914         (Makefile.am): Augment lib_SOURCES.
17915
17916 2011-05-23  Bruno Haible  <bruno@clisp.org>
17917
17918         dirname*: Respect rules for use of AC_LIBOBJ.
17919         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
17920         invocations.
17921         * modules/dirname (Makefile.am): Augment lib_SOURCES.
17922         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
17923
17924 2011-05-23  Bruno Haible  <bruno@clisp.org>
17925
17926         dirent-safer: Move AC_LIBOBJ invocations to module description.
17927         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
17928         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
17929
17930 2011-05-23  Bruno Haible  <bruno@clisp.org>
17931
17932         crypto/des: Move AC_LIBOBJ invocations to module description.
17933         * m4/des.m4: Remove file.
17934         * modules/crypto/des (Files): Remove it.
17935         (configure.ac): Remove gl_DES call.
17936         (Makefile.am): Augment lib_SOURCES.
17937
17938 2011-05-23  Bruno Haible  <bruno@clisp.org>
17939
17940         cycle-check: Move AC_LIBOBJ invocations to module description.
17941         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
17942         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
17943
17944 2011-05-23  Bruno Haible  <bruno@clisp.org>
17945
17946         c-strtold: Move AC_LIBOBJ invocations to module description.
17947         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
17948         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
17949
17950 2011-05-23  Bruno Haible  <bruno@clisp.org>
17951
17952         c-strtod: Move AC_LIBOBJ invocations to module description.
17953         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
17954         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
17955
17956 2011-05-23  Bruno Haible  <bruno@clisp.org>
17957
17958         crc: Move AC_LIBOBJ invocations to module description.
17959         * m4/crc.m4: Remove file.
17960         * modules/crc (Files): Remove it.
17961         (configure.ac): Remove gl_CRC call.
17962         (Makefile.am): Augment lib_SOURCES.
17963
17964 2011-05-23  Bruno Haible  <bruno@clisp.org>
17965
17966         close-stream: Move AC_LIBOBJ invocations to module description.
17967         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
17968         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
17969
17970 2011-05-23  Bruno Haible  <bruno@clisp.org>
17971
17972         closeout: Move AC_LIBOBJ invocations to module description.
17973         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
17974         * modules/closeout (Makefile.am): Augment lib_SOURCES.
17975
17976 2011-05-23  Bruno Haible  <bruno@clisp.org>
17977
17978         closein: Move AC_LIBOBJ invocations to module description.
17979         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
17980         * modules/closein (Makefile.am): Augment lib_SOURCES.
17981
17982 2011-05-23  Bruno Haible  <bruno@clisp.org>
17983
17984         cloexec: Move AC_LIBOBJ invocations to module description.
17985         * m4/cloexec.m4: Remove file.
17986         * modules/cloexec (Files): Remove it.
17987         (configure.ac): Remove gl_CLOEXEC call.
17988         (Makefile.am): Augment lib_SOURCES.
17989
17990 2011-05-23  Bruno Haible  <bruno@clisp.org>
17991
17992         check-version: Move AC_LIBOBJ invocations to module description.
17993         * m4/check-version.m4: Remove file.
17994         * modules/check-version (Files): Remove it.
17995         (configure.ac): Remove gl_CHECK_VERSION call.
17996         (Makefile.am): Augment lib_SOURCES.
17997
17998 2011-05-23  Bruno Haible  <bruno@clisp.org>
17999
18000         chdir-safer: Move AC_LIBOBJ invocations to module description.
18001         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
18002         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
18003
18004 2011-05-23  Bruno Haible  <bruno@clisp.org>
18005
18006         canonicalize: Move AC_LIBOBJ invocations to module description.
18007         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
18008         AC_LIBOBJ invocation.
18009         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
18010
18011 2011-05-23  Bruno Haible  <bruno@clisp.org>
18012
18013         canon-host: Move AC_LIBOBJ invocations to module description.
18014         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
18015         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
18016         instead of gl_CANON_HOST.
18017         (Makefile.am): Augment lib_SOURCES.
18018
18019 2011-05-23  Bruno Haible  <bruno@clisp.org>
18020
18021         backupfile: Move AC_LIBOBJ invocations to module description.
18022         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
18023         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
18024
18025 2011-05-23  Bruno Haible  <bruno@clisp.org>
18026
18027         argmatch: Move AC_LIBOBJ invocations to module description.
18028         * m4/argmatch.m4: Remove file.
18029         * modules/argmatch (Files): Remove it.
18030         (configure.ac): Remove gl_ARGMATCH call.
18031         (Makefile.am): Augment lib_SOURCES.
18032
18033 2011-05-23  Bruno Haible  <bruno@clisp.org>
18034
18035         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
18036         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
18037         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
18038
18039 2011-05-23  Bruno Haible  <bruno@clisp.org>
18040
18041         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
18042         * m4/arcfour.m4: Remove file.
18043         * modules/crypto/arcfour (Files): Remove it.
18044         (configure.ac): Remove gl_ARCFOUR call.
18045         (Makefile.am): Augment lib_SOURCES.
18046
18047 2011-05-22  Bruno Haible  <bruno@clisp.org>
18048
18049         write: Move AC_LIBOBJ invocations to module description.
18050         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
18051         * modules/write (configure.ac): ... to here.
18052
18053 2011-05-22  Bruno Haible  <bruno@clisp.org>
18054
18055         wmemset: Move AC_LIBOBJ invocations to module description.
18056         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
18057         here...
18058         * modules/wmemset (configure.ac): ... to here.
18059
18060 2011-05-22  Bruno Haible  <bruno@clisp.org>
18061
18062         wmemmove: Move AC_LIBOBJ invocations to module description.
18063         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
18064         here...
18065         * modules/wmemmove (configure.ac): ... to here.
18066
18067 2011-05-22  Bruno Haible  <bruno@clisp.org>
18068
18069         wmemcpy: Move AC_LIBOBJ invocations to module description.
18070         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
18071         here...
18072         * modules/wmemcpy (configure.ac): ... to here.
18073
18074 2011-05-22  Bruno Haible  <bruno@clisp.org>
18075
18076         wmemcmp: Move AC_LIBOBJ invocations to module description.
18077         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
18078         here...
18079         * modules/wmemcmp (configure.ac): ... to here.
18080
18081 2011-05-22  Bruno Haible  <bruno@clisp.org>
18082
18083         wmemchr: Move AC_LIBOBJ invocations to module description.
18084         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
18085         here...
18086         * modules/wmemchr (configure.ac): ... to here.
18087
18088 2011-05-22  Bruno Haible  <bruno@clisp.org>
18089
18090         wcswidth: Move AC_LIBOBJ invocations to module description.
18091         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
18092         here...
18093         * modules/wcswidth (configure.ac): ... to here.
18094
18095 2011-05-22  Bruno Haible  <bruno@clisp.org>
18096
18097         wcwidth: Respect rules for use of AC_LIBOBJ.
18098         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
18099         invocation from here...
18100         * modules/wcwidth (configure.ac): ... to here.
18101         (Depends-on): Update conditions.
18102
18103 2011-05-22  Bruno Haible  <bruno@clisp.org>
18104
18105         wctype: Move AC_LIBOBJ invocations to module description.
18106         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
18107         invocation from here...
18108         * modules/wctype (configure.ac): ... to here.
18109         (Depends-on): Update conditions.
18110
18111 2011-05-22  Bruno Haible  <bruno@clisp.org>
18112
18113         wctrans: Move AC_LIBOBJ invocations to module description.
18114         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
18115         invocation from here...
18116         * modules/wctrans (configure.ac): ... to here.
18117
18118 2011-05-22  Bruno Haible  <bruno@clisp.org>
18119
18120         wctomb: Move AC_LIBOBJ invocations to module description.
18121         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
18122         invocations from here...
18123         * modules/wctomb (configure.ac): ... to here.
18124
18125 2011-05-22  Bruno Haible  <bruno@clisp.org>
18126
18127         wctob: Move AC_LIBOBJ invocations to module description.
18128         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
18129         gl_PREREQ_WCTOB invocations from here...
18130         * modules/wctob (configure.ac): ... to here.
18131         (Depends-on): Update conditions.
18132
18133 2011-05-22  Bruno Haible  <bruno@clisp.org>
18134
18135         wcsxfrm: Move AC_LIBOBJ invocations to module description.
18136         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
18137         here...
18138         * modules/wcsxfrm (configure.ac): ... to here.
18139
18140 2011-05-22  Bruno Haible  <bruno@clisp.org>
18141
18142         wcstok: Move AC_LIBOBJ invocations to module description.
18143         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
18144         * modules/wcstok (configure.ac): ... to here.
18145
18146 2011-05-22  Bruno Haible  <bruno@clisp.org>
18147
18148         wcsstr: Move AC_LIBOBJ invocations to module description.
18149         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
18150         * modules/wcsstr (configure.ac): ... to here.
18151
18152 2011-05-22  Bruno Haible  <bruno@clisp.org>
18153
18154         wcsspn: Move AC_LIBOBJ invocations to module description.
18155         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
18156         * modules/wcsspn (configure.ac): ... to here.
18157
18158 2011-05-22  Bruno Haible  <bruno@clisp.org>
18159
18160         wcsrtombs: Move AC_LIBOBJ invocations to module description.
18161         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
18162         gl_PREREQ_WCSRTOMBS invocations from here...
18163         * modules/wcsrtombs (configure.ac): ... to here.
18164
18165 2011-05-22  Bruno Haible  <bruno@clisp.org>
18166
18167         wcsrchr: Move AC_LIBOBJ invocations to module description.
18168         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
18169         here...
18170         * modules/wcsrchr (configure.ac): ... to here.
18171
18172 2011-05-22  Bruno Haible  <bruno@clisp.org>
18173
18174         wcspbrk: Move AC_LIBOBJ invocations to module description.
18175         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
18176         here...
18177         * modules/wcspbrk (configure.ac): ... to here.
18178
18179 2011-05-22  Bruno Haible  <bruno@clisp.org>
18180
18181         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
18182         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
18183         gl_PREREQ_WCSNRTOMBS invocations from here...
18184         * modules/wcsnrtombs (configure.ac): ... to here.
18185
18186 2011-05-22  Bruno Haible  <bruno@clisp.org>
18187
18188         wcsnlen: Move AC_LIBOBJ invocations to module description.
18189         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
18190         here...
18191         * modules/wcsnlen (configure.ac): ... to here.
18192
18193 2011-05-22  Bruno Haible  <bruno@clisp.org>
18194
18195         wcsncpy: Move AC_LIBOBJ invocations to module description.
18196         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
18197         here...
18198         * modules/wcsncpy (configure.ac): ... to here.
18199
18200 2011-05-22  Bruno Haible  <bruno@clisp.org>
18201
18202         wcsncmp: Move AC_LIBOBJ invocations to module description.
18203         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
18204         here...
18205         * modules/wcsncmp (configure.ac): ... to here.
18206
18207 2011-05-22  Bruno Haible  <bruno@clisp.org>
18208
18209         wcsncat: Move AC_LIBOBJ invocations to module description.
18210         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
18211         here...
18212         * modules/wcsncat (configure.ac): ... to here.
18213
18214 2011-05-22  Bruno Haible  <bruno@clisp.org>
18215
18216         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
18217         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
18218         from here...
18219         * modules/wcsncasecmp (configure.ac): ... to here.
18220
18221 2011-05-22  Bruno Haible  <bruno@clisp.org>
18222
18223         wcslen: Move AC_LIBOBJ invocations to module description.
18224         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
18225         * modules/wcslen (configure.ac): ... to here.
18226
18227 2011-05-22  Bruno Haible  <bruno@clisp.org>
18228
18229         wcsdup: Move AC_LIBOBJ invocations to module description.
18230         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
18231         * modules/wcsdup (configure.ac): ... to here.
18232
18233 2011-05-22  Bruno Haible  <bruno@clisp.org>
18234
18235         wcscspn: Move AC_LIBOBJ invocations to module description.
18236         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
18237         here...
18238         * modules/wcscspn (configure.ac): ... to here.
18239
18240 2011-05-22  Bruno Haible  <bruno@clisp.org>
18241
18242         wcscpy: Move AC_LIBOBJ invocations to module description.
18243         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
18244         * modules/wcscpy (configure.ac): ... to here.
18245
18246 2011-05-22  Bruno Haible  <bruno@clisp.org>
18247
18248         wcscoll: Move AC_LIBOBJ invocations to module description.
18249         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
18250         here...
18251         * modules/wcscoll (configure.ac): ... to here.
18252
18253 2011-05-22  Bruno Haible  <bruno@clisp.org>
18254
18255         wcscmp: Move AC_LIBOBJ invocations to module description.
18256         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
18257         * modules/wcscmp (configure.ac): ... to here.
18258
18259 2011-05-22  Bruno Haible  <bruno@clisp.org>
18260
18261         wcschr: Move AC_LIBOBJ invocations to module description.
18262         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
18263         * modules/wcschr (configure.ac): ... to here.
18264
18265 2011-05-22  Bruno Haible  <bruno@clisp.org>
18266
18267         wcscat: Move AC_LIBOBJ invocations to module description.
18268         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
18269         * modules/wcscat (configure.ac): ... to here.
18270
18271 2011-05-22  Bruno Haible  <bruno@clisp.org>
18272
18273         wcscasecmp: Move AC_LIBOBJ invocations to module description.
18274         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
18275         here...
18276         * modules/wcscasecmp (configure.ac): ... to here.
18277
18278 2011-05-22  Bruno Haible  <bruno@clisp.org>
18279
18280         wcrtomb: Move AC_LIBOBJ invocations to module description.
18281         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
18282         invocations from here...
18283         * modules/wcrtomb (configure.ac): ... to here.
18284
18285 2011-05-22  Bruno Haible  <bruno@clisp.org>
18286
18287         wcpncpy: Move AC_LIBOBJ invocations to module description.
18288         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
18289         here...
18290         * modules/wcpncpy (configure.ac): ... to here.
18291
18292 2011-05-22  Bruno Haible  <bruno@clisp.org>
18293
18294         wcpcpy: Move AC_LIBOBJ invocations to module description.
18295         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
18296         * modules/wcpcpy (configure.ac): ... to here.
18297
18298 2011-05-22  Bruno Haible  <bruno@clisp.org>
18299
18300         waitpid: Move AC_LIBOBJ invocations to module description.
18301         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
18302         invocation from here...
18303         * modules/waitpid (configure.ac): ... to here.
18304
18305 2011-05-22  Bruno Haible  <bruno@clisp.org>
18306
18307         utimensat: Move AC_LIBOBJ invocations to module description.
18308         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
18309         here...
18310         * modules/utimensat (configure.ac): ... to here.
18311
18312 2011-05-22  Bruno Haible  <bruno@clisp.org>
18313
18314         usleep: Move AC_LIBOBJ invocations to module description.
18315         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
18316         here...
18317         * modules/usleep (configure.ac): ... to here.
18318
18319 2011-05-22  Bruno Haible  <bruno@clisp.org>
18320
18321         unlockpt: Move AC_LIBOBJ invocations to module description.
18322         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
18323         gl_PREREQ_UNLOCKPT invocations from here...
18324         * modules/unlockpt (configure.ac): ... to here.
18325
18326 2011-05-22  Bruno Haible  <bruno@clisp.org>
18327
18328         unlink: Respect rules for use of AC_LIBOBJ.
18329         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18330         * modules/unlink (configure.ac): ... to here.
18331
18332 2011-05-22  Bruno Haible  <bruno@clisp.org>
18333
18334         uname: Move AC_LIBOBJ invocations to module description.
18335         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18336         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18337         here...
18338         * modules/uname (configure.ac): ... to here.
18339
18340 2011-05-22  Bruno Haible  <bruno@clisp.org>
18341
18342         ttyname_r: Move AC_LIBOBJ invocations to module description.
18343         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18344         gl_PREREQ_TTYNAME_R invocations from here...
18345         * modules/ttyname_r (configure.ac): ... to here.
18346
18347 2011-05-22  Bruno Haible  <bruno@clisp.org>
18348
18349         tsearch: Move AC_LIBOBJ invocations to module description.
18350         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18351         invocations from here...
18352         * modules/tsearch (configure.ac): ... to here.
18353
18354 2011-05-22  Bruno Haible  <bruno@clisp.org>
18355
18356         towctrans: Move AC_LIBOBJ invocations to module description.
18357         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18358         AC_LIBOBJ invocation from here...
18359         * modules/towctrans (configure.ac): ... to here.
18360
18361 2011-05-22  Bruno Haible  <bruno@clisp.org>
18362
18363         tmpfile: Move AC_LIBOBJ invocations to module description.
18364         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18365         invocations from here...
18366         * modules/tmpfile (configure.ac): ... to here.
18367
18368 2011-05-22  Bruno Haible  <bruno@clisp.org>
18369
18370         times: Move AC_LIBOBJ invocations to module description.
18371         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18372         * modules/times (configure.ac): ... to here.
18373
18374 2011-05-22  Bruno Haible  <bruno@clisp.org>
18375
18376         time_r: Move AC_LIBOBJ invocations to module description.
18377         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18378         invocations from here...
18379         * modules/time_r (configure.ac): ... to here.
18380
18381 2011-05-22  Bruno Haible  <bruno@clisp.org>
18382
18383         timegm: Move AC_LIBOBJ invocations to module description.
18384         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18385         invocations from here...
18386         * modules/timegm (configure.ac): ... to here.
18387
18388 2011-05-22  Bruno Haible  <bruno@clisp.org>
18389
18390         tcgetsid: Move AC_LIBOBJ invocations to module description.
18391         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
18392         and gl_PREREQ_TCGETSID invocations from here...
18393         * modules/tcgetsid (configure.ac): ... to here.
18394         (Depends-on): Update conditions.
18395
18396 2011-05-22  Bruno Haible  <bruno@clisp.org>
18397
18398         symlinkat: Move AC_LIBOBJ invocations to module description.
18399         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18400         here...
18401         * modules/symlinkat (configure.ac): ... to here.
18402
18403 2011-05-22  Bruno Haible  <bruno@clisp.org>
18404
18405         symlink: Move AC_LIBOBJ invocations to module description.
18406         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18407         here...
18408         * modules/symlink (configure.ac): ... to here.
18409
18410 2011-05-22  Bruno Haible  <bruno@clisp.org>
18411
18412         strverscmp: Move AC_LIBOBJ invocations to module description.
18413         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18414         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18415         from here...
18416         * modules/strverscmp (configure.ac): ... to here.
18417
18418 2011-05-22  Bruno Haible  <bruno@clisp.org>
18419
18420         strtok_r: Move AC_LIBOBJ invocations to module description.
18421         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18422         and gl_PREREQ_STRTOK_R invocations from here...
18423         * modules/strtok_r (configure.ac): ... to here.
18424         (Depends-on): Update conditions.
18425
18426 2011-05-22  Bruno Haible  <bruno@clisp.org>
18427
18428         strtoumax: Move AC_LIBOBJ invocations to module description.
18429         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18430         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18431         from here...
18432         * modules/strtoumax (configure.ac): ... to here.
18433
18434 2011-05-22  Bruno Haible  <bruno@clisp.org>
18435
18436         strtoimax: Move AC_LIBOBJ invocations to module description.
18437         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18438         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18439         from here...
18440         * modules/strtoimax (configure.ac): ... to here.
18441
18442 2011-05-22  Bruno Haible  <bruno@clisp.org>
18443
18444         strtoull: Move AC_LIBOBJ invocations to module description.
18445         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18446         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18447         from here...
18448         * modules/strtoull (configure.ac): ... to here.
18449
18450 2011-05-22  Bruno Haible  <bruno@clisp.org>
18451
18452         strtoll: Move AC_LIBOBJ invocations to module description.
18453         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18454         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18455         here...
18456         * modules/strtoll (configure.ac): ... to here.
18457
18458 2011-05-22  Bruno Haible  <bruno@clisp.org>
18459
18460         strtoul: Move AC_LIBOBJ invocations to module description.
18461         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18462         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18463         * modules/strtoul (configure.ac): ... to here.
18464
18465 2011-05-22  Bruno Haible  <bruno@clisp.org>
18466
18467         strtol: Move AC_LIBOBJ invocations to module description.
18468         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18469         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18470         * modules/strtol (configure.ac): ... to here.
18471
18472 2011-05-22  Bruno Haible  <bruno@clisp.org>
18473
18474         strtod: Move AC_LIBOBJ invocations to module description.
18475         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18476         invocations from here...
18477         * modules/strtod (configure.ac): ... to here.
18478
18479 2011-05-22  Bruno Haible  <bruno@clisp.org>
18480
18481         strstr*: Move AC_LIBOBJ invocations to module description.
18482         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
18483         invocations from here...
18484         * modules/strstr-simple (configure.ac): ... to here.
18485         * modules/strstr (configure.ac): ... and here.
18486
18487 2011-05-22  Bruno Haible  <bruno@clisp.org>
18488
18489         strsignal: Move AC_LIBOBJ invocations to module description.
18490         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
18491         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
18492         * modules/strsignal (configure.ac): ... to here.
18493         (Depends-on): Update conditions.
18494
18495 2011-05-22  Bruno Haible  <bruno@clisp.org>
18496
18497         strsep: Move AC_LIBOBJ invocations to module description.
18498         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
18499         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
18500         here...
18501         * modules/strsep (configure.ac): ... to here.
18502
18503 2011-05-22  Bruno Haible  <bruno@clisp.org>
18504
18505         strptime: Move AC_LIBOBJ invocations to module description.
18506         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
18507         gl_PREREQ_STRPTIME invocations from here...
18508         * modules/strptime (configure.ac): ... to here.
18509
18510 2011-05-22  Bruno Haible  <bruno@clisp.org>
18511
18512         strpbrk: Move AC_LIBOBJ invocations to module description.
18513         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
18514         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
18515         here...
18516         * modules/strpbrk (configure.ac): ... to here.
18517
18518 2011-05-22  Bruno Haible  <bruno@clisp.org>
18519
18520         strnlen: Move AC_LIBOBJ invocations to module description.
18521         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
18522         invocations from here...
18523         * modules/strnlen (configure.ac): ... to here.
18524
18525 2011-05-22  Bruno Haible  <bruno@clisp.org>
18526
18527         strndup: Move AC_LIBOBJ invocations to module description.
18528         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
18529         invocations from here...
18530         * modules/strndup (configure.ac): ... to here.
18531         (Depends-on): Update conditions.
18532
18533 2011-05-22  Bruno Haible  <bruno@clisp.org>
18534
18535         strncat: Move AC_LIBOBJ invocations to module description.
18536         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
18537         invocations from here...
18538         * modules/strncat (configure.ac): ... to here.
18539
18540 2011-05-22  Bruno Haible  <bruno@clisp.org>
18541
18542         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
18543         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
18544         invocations from here...
18545         * modules/strdup (configure.ac): ... to here.
18546         * modules/strdup-posix (configure.ac): ... and here.
18547
18548 2011-05-22  Bruno Haible  <bruno@clisp.org>
18549
18550         strcspn: Move AC_LIBOBJ invocations to module description.
18551         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
18552         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
18553         here...
18554         * modules/strcspn (configure.ac): ... to here.
18555
18556 2011-05-22  Bruno Haible  <bruno@clisp.org>
18557
18558         strchrnul: Move AC_LIBOBJ invocations to module description.
18559         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
18560         gl_PREREQ_STRCHRNUL invocations from here...
18561         * modules/strchrnul (configure.ac): ... to here.
18562
18563 2011-05-22  Bruno Haible  <bruno@clisp.org>
18564
18565         strcasestr*: Move AC_LIBOBJ invocations to module description.
18566         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18567         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
18568         * modules/strcasestr-simple (configure.ac): ... to here.
18569         * modules/strcasestr (configure.ac): ... and here.
18570
18571 2011-05-22  Bruno Haible  <bruno@clisp.org>
18572
18573         strcase: Move AC_LIBOBJ invocations to module description.
18574         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
18575         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
18576         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
18577         gl_PREREQ_STRNCASECMP invocations from here...
18578         * modules/strcase (configure.ac): ... to here.
18579
18580 2011-05-22  Bruno Haible  <bruno@clisp.org>
18581
18582         stpncpy: Move AC_LIBOBJ invocations to module description.
18583         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
18584         here...
18585         * modules/stpncpy (configure.ac): ... to here.
18586
18587 2011-05-22  Bruno Haible  <bruno@clisp.org>
18588
18589         stpcpy: Move AC_LIBOBJ invocations to module description.
18590         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
18591         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
18592         here...
18593         * modules/stpcpy (configure.ac): ... to here.
18594
18595 2011-05-21  Bruno Haible  <bruno@clisp.org>
18596
18597         stat: Move AC_LIBOBJ invocations to module description.
18598         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
18599         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
18600         here...
18601         * modules/stat (configure.ac): ... to here.
18602
18603 2011-05-21  Bruno Haible  <bruno@clisp.org>
18604
18605         sleep: Move AC_LIBOBJ invocations to module description.
18606         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
18607         * modules/sleep (configure.ac): ... to here.
18608
18609 2011-05-21  Bruno Haible  <bruno@clisp.org>
18610
18611         signbit: Move AC_LIBOBJ invocations to module description.
18612         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
18613         * modules/signbit (configure.ac): ... to here.
18614
18615 2011-05-21  Bruno Haible  <bruno@clisp.org>
18616
18617         sigprocmask: Move AC_LIBOBJ invocations to module description.
18618         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
18619         gl_PREREQ_SIGPROMASK invocations from here...
18620         * modules/sigprocmask (configure.ac): ... to here.
18621
18622 2011-05-21  Bruno Haible  <bruno@clisp.org>
18623
18624         sigaction: Move AC_LIBOBJ invocations to module description.
18625         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
18626         gl_PREREQ_SIGACTION invocations from here...
18627         * modules/sigaction (configure.ac): ... to here.
18628
18629 2011-05-21  Bruno Haible  <bruno@clisp.org>
18630
18631         sig2str: Move AC_LIBOBJ invocations to module description.
18632         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
18633         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
18634         here...
18635         * modules/sig2str (configure.ac): ... to here.
18636
18637 2011-05-21  Bruno Haible  <bruno@clisp.org>
18638
18639         setlocale: Move AC_LIBOBJ invocations to module description.
18640         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
18641         gl_PREREQ_SETLOCALE invocations from here...
18642         * modules/setlocale (configure.ac): ... to here.
18643
18644 2011-05-21  Bruno Haible  <bruno@clisp.org>
18645
18646         unsetenv: Move AC_LIBOBJ invocations to module description.
18647         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
18648         and gl_PREREQ_UNSETENV invocations from here...
18649         * modules/unsetenv (configure.ac): ... to here.
18650         (Depends-on): Update.
18651
18652 2011-05-21  Bruno Haible  <bruno@clisp.org>
18653
18654         setenv: Move AC_LIBOBJ invocations to module description.
18655         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
18656         here...
18657         * modules/setenv (configure.ac): ... to here.
18658
18659 2011-05-21  Bruno Haible  <bruno@clisp.org>
18660
18661         selinux-h: Move AC_LIBOBJ invocations to module description.
18662         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
18663         AC_LIBOBJ invocation from here...
18664         * modules/selinux-h (configure.ac): ... to here.
18665
18666 2011-05-21  Bruno Haible  <bruno@clisp.org>
18667
18668         select: Respect rules for use of AC_LIBOBJ.
18669         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
18670         here...
18671         * modules/select (configure.ac): ... to here.
18672
18673 2011-05-21  Bruno Haible  <bruno@clisp.org>
18674
18675         scandir: Move AC_LIBOBJ invocations to module description.
18676         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
18677         invocations from here...
18678         * modules/scandir (configure.ac): ... to here.
18679
18680 2011-05-21  Bruno Haible  <bruno@clisp.org>
18681
18682         rpmatch: Move AC_LIBOBJ invocations to module description.
18683         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
18684         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
18685         here...
18686         * modules/rpmatch (configure.ac): ... to here.
18687
18688 2011-05-21  Bruno Haible  <bruno@clisp.org>
18689
18690         rmdir: Respect rules for use of AC_LIBOBJ.
18691         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
18692         * modules/rmdir (configure.ac): ... to here.
18693
18694 2011-05-21  Bruno Haible  <bruno@clisp.org>
18695
18696         renameat: Move AC_LIBOBJ invocations to module description.
18697         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
18698         here...
18699         * modules/renameat (configure.ac): ... to here.
18700
18701 2011-05-21  Bruno Haible  <bruno@clisp.org>
18702
18703         rename: Respect rules for use of AC_LIBOBJ.
18704         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
18705         here...
18706         * modules/rename (configure.ac): ... to here.
18707
18708 2011-05-21  Bruno Haible  <bruno@clisp.org>
18709
18710         remove: Move AC_LIBOBJ invocations to module description.
18711         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
18712         here...
18713         * modules/remove (configure.ac): ... to here.
18714
18715 2011-05-21  Bruno Haible  <bruno@clisp.org>
18716
18717         relocatable-lib: Move AC_LIBOBJ invocations to module description.
18718         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
18719         macro.
18720         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
18721         * modules/relocatable-lib (configure.ac): ... to here.
18722         * modules/relocatable-prog-wrapper (configure.ac): Invoke
18723         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
18724
18725 2011-05-21  Bruno Haible  <bruno@clisp.org>
18726
18727         relocatable-prog: Move AC_LIBOBJ invocations to module description.
18728         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
18729         here...
18730         * modules/relocatable-prog (configure.ac): ... to here.
18731
18732 2011-05-21  Bruno Haible  <bruno@clisp.org>
18733
18734         regex: Move AC_LIBOBJ invocations to module description.
18735         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
18736         invocations from here...
18737         * modules/regex (configure.ac): ... to here.
18738
18739 2011-05-21  Bruno Haible  <bruno@clisp.org>
18740
18741         realloc-*: Move AC_LIBOBJ invocations to module description.
18742         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
18743         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
18744         AC_LIBOBJ invocations from here...
18745         * modules/realloc-gnu (configure.ac): ... to here.
18746         * modules/realloc-posix (configure.ac): ... and here.
18747
18748 2011-05-21  Bruno Haible  <bruno@clisp.org>
18749
18750         readutmp: Move AC_LIBOBJ invocations to module description.
18751         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
18752         * modules/readutmp (configure.ac): ... to here.
18753
18754 2011-05-21  Bruno Haible  <bruno@clisp.org>
18755
18756         readlinkat: Move AC_LIBOBJ invocations to module description.
18757         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
18758         here...
18759         * modules/readlinkat (configure.ac): ... to here.
18760
18761 2011-05-21  Bruno Haible  <bruno@clisp.org>
18762
18763         readlink: Move AC_LIBOBJ invocations to module description.
18764         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
18765         gl_PREREQ_READLINK invocations from here...
18766         * modules/readlink (configure.ac): ... to here.
18767
18768 2011-05-21  Bruno Haible  <bruno@clisp.org>
18769
18770         readline: Move AC_LIBOBJ invocations to module description.
18771         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
18772         gl_PREREQ_READLINE invocations from here...
18773         * modules/readline (configure.ac): ... to here.
18774
18775 2011-05-21  Bruno Haible  <bruno@clisp.org>
18776
18777         read: Move AC_LIBOBJ invocations to module description.
18778         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
18779         * modules/read (configure.ac): ... to here.
18780
18781 2011-05-21  Bruno Haible  <bruno@clisp.org>
18782
18783         rawmemchr: Move AC_LIBOBJ invocations to module description.
18784         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
18785         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
18786         from here...
18787         * modules/rawmemchr (configure.ac): ... to here.
18788
18789 2011-05-21  Bruno Haible  <bruno@clisp.org>
18790
18791         random_r: Move AC_LIBOBJ invocations to module description.
18792         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
18793         gl_PREREQ_RANDOM_R invocations from here...
18794         * modules/random_r (configure.ac): ... to here.
18795
18796 2011-05-21  Bruno Haible  <bruno@clisp.org>
18797
18798         pwrite: Move AC_LIBOBJ invocations to module description.
18799         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
18800         * modules/pwrite (configure.ac): ... to here.
18801
18802 2011-05-21  Bruno Haible  <bruno@clisp.org>
18803
18804         putenv: Move AC_LIBOBJ invocations to module description.
18805         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
18806         * modules/putenv (configure.ac): ... to here.
18807
18808 2011-05-21  Bruno Haible  <bruno@clisp.org>
18809
18810         login_tty: Move AC_LIBOBJ invocations to module description.
18811         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
18812         * modules/login_tty (configure.ac): ... to here.
18813
18814 2011-05-21  Bruno Haible  <bruno@clisp.org>
18815
18816         openpty: Move AC_LIBOBJ invocations to module description.
18817         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
18818         * modules/openpty (configure.ac): ... to here.
18819
18820 2011-05-21  Bruno Haible  <bruno@clisp.org>
18821
18822         forkpty: Move AC_LIBOBJ invocations to module description.
18823         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
18824         * modules/forkpty (configure.ac): ... to here.
18825
18826 2011-05-21  Bruno Haible  <bruno@clisp.org>
18827
18828         ptsname: Move AC_LIBOBJ invocations to module description.
18829         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
18830         invocations from here...
18831         * modules/ptsname (configure.ac): ... to here.
18832
18833 2011-05-21  Bruno Haible  <bruno@clisp.org>
18834
18835         pread: Move AC_LIBOBJ invocations to module description.
18836         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
18837         * modules/pread (configure.ac): ... to here.
18838
18839 2011-05-21  Bruno Haible  <bruno@clisp.org>
18840
18841         posix_spawn*: Move AC_LIBOBJ invocations to module description.
18842         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
18843         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
18844         * modules/posix_spawn (configure.ac): ... to here.
18845         * modules/posix_spawnp (configure.ac): ... and here.
18846
18847 2011-05-21  Bruno Haible  <bruno@clisp.org>
18848
18849         popen: Move AC_LIBOBJ invocations to module description.
18850         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
18851         invocations from here...
18852         * modules/popen (configure.ac): ... to here.
18853
18854 2011-05-21  Bruno Haible  <bruno@clisp.org>
18855
18856         poll: Move AC_LIBOBJ invocations to module description.
18857         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
18858         invocations from here...
18859         * modules/poll (configure.ac): ... to here.
18860
18861 2011-05-21  Bruno Haible  <bruno@clisp.org>
18862
18863         pipe-posix: Move AC_LIBOBJ invocations to module description.
18864         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
18865         * modules/pipe-posix (configure.ac): ... to here.
18866
18867 2011-05-21  Bruno Haible  <bruno@clisp.org>
18868
18869         openat: Respect rules for use of AC_LIBOBJ.
18870         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
18871         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18872         * modules/openat (configure.ac): ... to here.
18873
18874 2011-05-21  Bruno Haible  <bruno@clisp.org>
18875
18876         obstack-printf*: Move AC_LIBOBJ invocations to module description.
18877         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
18878         invocation from here...
18879         * modules/obstack-printf (configure.ac): ... to here.
18880         * modules/obstack-printf-posix (configure.ac): ... and here.
18881
18882 2011-05-21  Bruno Haible  <bruno@clisp.org>
18883
18884         nl_langinfo: Move AC_LIBOBJ invocations to module description.
18885         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
18886         from here...
18887         * modules/nl_langinfo (configure.ac): ... to here.
18888
18889 2011-05-21  Bruno Haible  <bruno@clisp.org>
18890
18891         nanosleep: Move AC_LIBOBJ invocations to module description.
18892         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
18893         gl_PREREQ_NANOSLEEP invocations from here...
18894         * modules/nanosleep (configure.ac): ... to here.
18895
18896 2011-05-21  Bruno Haible  <bruno@clisp.org>
18897
18898         mountlist: Move AC_LIBOBJ invocations to module description.
18899         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
18900         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
18901         * modules/mountlist (configure.ac): ... to here.
18902
18903 2011-05-21  Bruno Haible  <bruno@clisp.org>
18904
18905         mktime: Respect rules for use of AC_LIBOBJ.
18906         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
18907         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
18908         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
18909         (gl_FUNC_MKTIME_INTERNAL): ... and here...
18910         * modules/mktime (configure.ac): ... to here.
18911         * modules/mktime-internal (configure.ac): ... and here.
18912         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
18913
18914 2011-05-21  Bruno Haible  <bruno@clisp.org>
18915
18916         mkstemps: Move AC_LIBOBJ invocations to module description.
18917         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
18918         here...
18919         * modules/mkstemps (configure.ac): ... to here.
18920
18921 2011-05-21  Bruno Haible  <bruno@clisp.org>
18922
18923         mkstemp: Move AC_LIBOBJ invocations to module description.
18924         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
18925         gl_PREREQ_MKSTEMP invocations from here...
18926         * modules/mkstemp (configure.ac): ... to here.
18927
18928 2011-05-21  Bruno Haible  <bruno@clisp.org>
18929
18930         mkostemps: Move AC_LIBOBJ invocations to module description.
18931         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
18932         here...
18933         * modules/mkostemps (configure.ac): ... to here.
18934
18935 2011-05-21  Bruno Haible  <bruno@clisp.org>
18936
18937         mkostemp: Move AC_LIBOBJ invocations to module description.
18938         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
18939         gl_PREREQ_MKOSTEMP invocations from here...
18940         * modules/mkostemp (configure.ac): ... to here.
18941
18942 2011-05-21  Bruno Haible  <bruno@clisp.org>
18943
18944         mknod: Move AC_LIBOBJ invocations to module description.
18945         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
18946         * modules/mknod (configure.ac): ... to here.
18947
18948 2011-05-21  Bruno Haible  <bruno@clisp.org>
18949
18950         mkfifoat: Move AC_LIBOBJ invocations to module description.
18951         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
18952         here...
18953         * modules/mkfifoat (configure.ac): ... to here.
18954
18955 2011-05-21  Bruno Haible  <bruno@clisp.org>
18956
18957         mkfifo: Respect rules for use of AC_LIBOBJ.
18958         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
18959         here...
18960         * modules/mkfifo (configure.ac): ... to here.
18961
18962 2011-05-21  Bruno Haible  <bruno@clisp.org>
18963
18964         mkdtemp: Move AC_LIBOBJ invocations to module description.
18965         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
18966         invocations from here...
18967         * modules/mkdtemp (configure.ac): ... to here.
18968
18969 2011-05-21  Bruno Haible  <bruno@clisp.org>
18970
18971         mkdir: Move AC_LIBOBJ invocations to module description.
18972         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
18973         * modules/mkdir (configure.ac): ... to here.
18974
18975 2011-05-21  Bruno Haible  <bruno@clisp.org>
18976
18977         memset: Move AC_LIBOBJ invocations to module description.
18978         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
18979         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
18980         here...
18981         * modules/memset (configure.ac): ... to here.
18982
18983 2011-05-21  Bruno Haible  <bruno@clisp.org>
18984
18985         memrchr: Move AC_LIBOBJ invocations to module description.
18986         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
18987         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
18988         here...
18989         * modules/memrchr (configure.ac): ... to here.
18990
18991 2011-05-21  Bruno Haible  <bruno@clisp.org>
18992
18993         mempcpy: Move AC_LIBOBJ invocations to module description.
18994         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
18995         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
18996         here...
18997         * modules/mempcpy (configure.ac): ... to here.
18998
18999 2011-05-21  Bruno Haible  <bruno@clisp.org>
19000
19001         memmove: Move AC_LIBOBJ invocations to module description.
19002         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
19003         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
19004         here...
19005         * modules/memmove (configure.ac): ... to here.
19006
19007 2011-05-21  Bruno Haible  <bruno@clisp.org>
19008
19009         memmem*: Move AC_LIBOBJ invocations to module description.
19010         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
19011         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
19012         here...
19013         (gl_FUNC_MEMMEM): ... and here...
19014         * modules/memmem-simple (configure.ac): ... to here.
19015         * modules/memmem (configure.ac): ... and here.
19016
19017 2011-05-21  Bruno Haible  <bruno@clisp.org>
19018
19019         memcpy: Move AC_LIBOBJ invocations to module description.
19020         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
19021         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
19022         here...
19023         * modules/memcpy (configure.ac): ... to here.
19024
19025 2011-05-21  Bruno Haible  <bruno@clisp.org>
19026
19027         memcmp: Simplify autoconf macro.
19028         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
19029         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
19030         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
19031
19032 2011-05-21  Bruno Haible  <bruno@clisp.org>
19033
19034         memcmp: Move AC_LIBOBJ invocations to module description.
19035         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
19036         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
19037         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
19038         * modules/memcmp (configure.ac): ... to here.
19039         (Depends-on): Update conditions.
19040
19041 2011-05-21  Bruno Haible  <bruno@clisp.org>
19042
19043         memchr: Respect rules for use of AC_LIBOBJ.
19044         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
19045         invocations from here...
19046         * modules/memchr (configure.ac): ... to here.
19047
19048 2011-05-21  Bruno Haible  <bruno@clisp.org>
19049
19050         mbtowc: Move AC_LIBOBJ invocations to module description.
19051         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
19052         invocations from here...
19053         * modules/mbtowc (configure.ac): ... to here.
19054
19055 2011-05-21  Bruno Haible  <bruno@clisp.org>
19056
19057         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
19058         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
19059         gl_PREREQ_MBSRTOWCS invocations from here...
19060         * modules/mbsrtowcs (configure.ac): ... to here.
19061
19062 2011-05-21  Bruno Haible  <bruno@clisp.org>
19063
19064         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
19065         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
19066         gl_PREREQ_MBSNRTOWCS invocations from here...
19067         * modules/mbsnrtowcs (configure.ac): ... to here.
19068
19069 2011-05-21  Bruno Haible  <bruno@clisp.org>
19070
19071         mbsinit: Move AC_LIBOBJ invocations to module description.
19072         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
19073         invocations from here...
19074         * modules/mbsinit (configure.ac): ... to here.
19075
19076 2011-05-21  Bruno Haible  <bruno@clisp.org>
19077
19078         mbrlen: Move AC_LIBOBJ invocations to module description.
19079         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
19080         invocations from here...
19081         * modules/mbrlen (configure.ac): ... to here.
19082
19083 2011-05-21  Bruno Haible  <bruno@clisp.org>
19084
19085         mbrtowc: Respect rules for use of AC_LIBOBJ.
19086         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
19087         invocations from here...
19088         * modules/mbrtowc (configure.ac): ... to here.
19089
19090 2011-05-21  Bruno Haible  <bruno@clisp.org>
19091
19092         malloc-*: Move AC_LIBOBJ invocations to module description.
19093         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
19094         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
19095         AC_LIBOBJ invocations from here...
19096         * modules/malloc-gnu (configure.ac): ... to here.
19097         * modules/malloc-posix (configure.ac): ... and here.
19098
19099 2011-05-21  Bruno Haible  <bruno@clisp.org>
19100
19101         lstat, openat: Respect rules for use of AC_LIBOBJ.
19102         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
19103         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
19104         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
19105         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
19106         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
19107         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
19108         here.
19109         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19110
19111 2011-05-21  Bruno Haible  <bruno@clisp.org>
19112
19113         lseek: Move AC_LIBOBJ invocations to module description.
19114         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
19115         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19116         * modules/lseek (configure.ac): ... to here.
19117
19118 2011-05-21  Bruno Haible  <bruno@clisp.org>
19119
19120         linkat: Move AC_LIBOBJ invocations to module description.
19121         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
19122         here...
19123         * modules/linkat (configure.ac): ... to here.
19124
19125 2011-05-21  Bruno Haible  <bruno@clisp.org>
19126
19127         link: Respect rules for use of AC_LIBOBJ.
19128         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
19129         * modules/link (configure.ac): ... to here.
19130
19131 2011-05-21  Bruno Haible  <bruno@clisp.org>
19132
19133         lchown: Move AC_LIBOBJ invocations to module description.
19134         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19135         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19136         * modules/lchown (configure.ac): ... to here.
19137
19138 2011-05-21  Bruno Haible  <bruno@clisp.org>
19139
19140         iswctype: Move AC_LIBOBJ invocations to module description.
19141         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
19142         here...
19143         * modules/iswctype (configure.ac): ... to here.
19144
19145 2011-05-21  Bruno Haible  <bruno@clisp.org>
19146
19147         iswblank: Move AC_LIBOBJ invocations to module description.
19148         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
19149         here...
19150         * modules/iswblank (configure.ac): ... to here.
19151
19152 2011-05-21  Bruno Haible  <bruno@clisp.org>
19153
19154         atanl: Move AC_LIBOBJ invocations to module description.
19155         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
19156         * modules/atanl (configure.ac): ... to here.
19157
19158 2011-05-21  Bruno Haible  <bruno@clisp.org>
19159
19160         acosl: Move AC_LIBOBJ invocations to module description.
19161         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
19162         * modules/acosl (configure.ac): ... to here.
19163
19164 2011-05-21  Bruno Haible  <bruno@clisp.org>
19165
19166         asinl: Respect rules for use of AC_LIBOBJ.
19167         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
19168         * modules/asinl (configure.ac): ... to here.
19169
19170 2011-05-21  Bruno Haible  <bruno@clisp.org>
19171
19172         tanl: Move AC_LIBOBJ invocations to module description.
19173         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
19174         * modules/tanl (configure.ac): ... to here.
19175
19176 2011-05-21  Bruno Haible  <bruno@clisp.org>
19177
19178         cosl: Move AC_LIBOBJ invocations to module description.
19179         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
19180         * modules/cosl (configure.ac): ... to here.
19181
19182 2011-05-21  Bruno Haible  <bruno@clisp.org>
19183
19184         sinl: Move AC_LIBOBJ invocations to module description.
19185         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
19186         * modules/sinl (configure.ac): ... to here.
19187
19188 2011-05-21  Bruno Haible  <bruno@clisp.org>
19189
19190         logl: Move AC_LIBOBJ invocations to module description.
19191         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
19192         * modules/logl (configure.ac): ... to here.
19193
19194 2011-05-21  Bruno Haible  <bruno@clisp.org>
19195
19196         expl: Move AC_LIBOBJ invocations to module description.
19197         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
19198         * modules/expl (configure.ac): ... to here.
19199
19200 2011-05-21  Bruno Haible  <bruno@clisp.org>
19201
19202         roundl: Move AC_LIBOBJ invocations to module description.
19203         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
19204         * modules/roundl (configure.ac): ... to here.
19205
19206 2011-05-21  Bruno Haible  <bruno@clisp.org>
19207
19208         round: Move AC_LIBOBJ invocations to module description.
19209         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
19210         * modules/round (configure.ac): ... to here.
19211
19212 2011-05-21  Bruno Haible  <bruno@clisp.org>
19213
19214         roundf: Move AC_LIBOBJ invocations to module description.
19215         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
19216         * modules/roundf (configure.ac): ... to here.
19217
19218 2011-05-21  Bruno Haible  <bruno@clisp.org>
19219
19220         truncl: Move AC_LIBOBJ invocations to module description.
19221         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
19222         * modules/truncl (configure.ac): ... to here.
19223
19224 2011-05-21  Bruno Haible  <bruno@clisp.org>
19225
19226         trunc: Move AC_LIBOBJ invocations to module description.
19227         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
19228         * modules/trunc (configure.ac): ... to here.
19229
19230 2011-05-21  Bruno Haible  <bruno@clisp.org>
19231
19232         truncf: Move AC_LIBOBJ invocations to module description.
19233         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
19234         * modules/truncf (configure.ac): ... to here.
19235
19236 2011-05-21  Bruno Haible  <bruno@clisp.org>
19237
19238         ceill: Move AC_LIBOBJ invocations to module description.
19239         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
19240         * modules/ceill (configure.ac): ... to here.
19241
19242 2011-05-21  Bruno Haible  <bruno@clisp.org>
19243
19244         ceil: Move AC_LIBOBJ invocations to module description.
19245         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
19246         * modules/ceil (configure.ac): ... to here.
19247
19248 2011-05-21  Bruno Haible  <bruno@clisp.org>
19249
19250         ceilf: Move AC_LIBOBJ invocations to module description.
19251         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
19252         * modules/ceilf (configure.ac): ... to here.
19253
19254 2011-05-21  Bruno Haible  <bruno@clisp.org>
19255
19256         floorl: Respect rules for use of AC_LIBOBJ.
19257         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
19258         * modules/floorl (configure.ac): ... to here.
19259
19260 2011-05-21  Bruno Haible  <bruno@clisp.org>
19261
19262         floor: Respect rules for use of AC_LIBOBJ.
19263         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
19264         * modules/floor (configure.ac): ... to here.
19265
19266 2011-05-21  Bruno Haible  <bruno@clisp.org>
19267
19268         floorf: Move AC_LIBOBJ invocations to module description.
19269         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
19270         * modules/floorf (configure.ac): ... to here.
19271
19272 2011-05-20  Bruno Haible  <bruno@clisp.org>
19273
19274         sqrtl: Respect rules for use of AC_LIBOBJ.
19275         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
19276         * modules/sqrtl (configure.ac): ... to here.
19277
19278 2011-05-20  Bruno Haible  <bruno@clisp.org>
19279
19280         ldexpl: Respect rules for use of AC_LIBOBJ.
19281         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
19282         * modules/ldexpl (configure.ac): ... to here.
19283
19284 2011-05-20  Bruno Haible  <bruno@clisp.org>
19285
19286         frexpl*: Respect rules for use of AC_LIBOBJ.
19287         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
19288         invocation from here...
19289         * modules/frexpl (configure.ac): ... to here.
19290         * modules/frexpl-nolibm (configure.ac): ... and here.
19291
19292 2011-05-20  Bruno Haible  <bruno@clisp.org>
19293
19294         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
19295         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
19296         invocation from here...
19297         * modules/frexp (configure.ac): ... to here.
19298         * modules/frexp-nolibm (configure.ac): ... and here.
19299
19300 2011-05-20  Bruno Haible  <bruno@clisp.org>
19301
19302         isnan: Respect rules for use of AC_LIBOBJ.
19303         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
19304         invocations here.
19305         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
19306         REPLACE_ISNAN.
19307         * modules/isnand (configure.ac): Likewise.
19308         * modules/isnanl (configure.ac): Likewise.
19309
19310 2011-05-20  Bruno Haible  <bruno@clisp.org>
19311
19312         isnanl*: Respect rules for use of AC_LIBOBJ.
19313         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
19314         invocation from here...
19315         * modules/isnanl (configure.ac): ... to here.
19316         * modules/isnanl-nolibm (configure.ac): ... and here.
19317
19318 2011-05-20  Bruno Haible  <bruno@clisp.org>
19319
19320         isnand*: Move AC_LIBOBJ invocations to module description.
19321         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
19322         invocation from here...
19323         * modules/isnand (configure.ac): ... to here.
19324         * modules/isnand-nolibm (configure.ac): ... and here.
19325
19326 2011-05-20  Bruno Haible  <bruno@clisp.org>
19327
19328         isnanf*: Move AC_LIBOBJ invocations to module description.
19329         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19330         invocation from here...
19331         * modules/isnanf (configure.ac): ... to here.
19332         * modules/isnanf-nolibm (configure.ac): ... and here.
19333
19334 2011-05-20  Bruno Haible  <bruno@clisp.org>
19335
19336         isnan*: Separate the AC_LIBOBJ invocations.
19337         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19338         AC_LIBOBJ invocation.
19339         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19340         here.
19341         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19342         AC_LIBOBJ invocation.
19343         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19344         here.
19345         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19346         AC_LIBOBJ invocation.
19347         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19348         here.
19349         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19350
19351 2011-05-08  Bruno Haible  <bruno@clisp.org>
19352
19353         isinf: Move AC_LIBOBJ invocations to module description.
19354         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19355         * modules/isinf (configure.ac): ... to here.
19356
19357 2011-05-08  Bruno Haible  <bruno@clisp.org>
19358
19359         isfinite: Move AC_LIBOBJ invocations to module description.
19360         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19361         * modules/isfinite (configure.ac): ... to here.
19362
19363 2011-05-08  Bruno Haible  <bruno@clisp.org>
19364
19365         isblank: Move AC_LIBOBJ invocations to module description.
19366         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19367         here...
19368         * modules/isblank (configure.ac): ... to here.
19369
19370 2011-05-08  Bruno Haible  <bruno@clisp.org>
19371
19372         isapipe: Move AC_LIBOBJ invocations to module description.
19373         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19374         gl_PREREQ_ISAPIPE invocations from here...
19375         * modules/isapipe (configure.ac): ... to here.
19376         (Depends-on): Update condition.
19377
19378 2011-05-08  Bruno Haible  <bruno@clisp.org>
19379
19380         ioctl: Move AC_LIBOBJ invocations to module description.
19381         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19382         invocations from here...
19383         * modules/ioctl (configure.ac): ... to here.
19384         (Depends-on): Update condition.
19385
19386 2011-05-08  Bruno Haible  <bruno@clisp.org>
19387
19388         imaxdiv: Move AC_LIBOBJ invocations to module description.
19389         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
19390         invocations from here...
19391         * modules/imaxdiv (configure.ac): ... to here.
19392
19393 2011-05-08  Bruno Haible  <bruno@clisp.org>
19394
19395         imaxabs: Move AC_LIBOBJ invocations to module description.
19396         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19397         invocations from here...
19398         * modules/imaxabs (configure.ac): ... to here.
19399
19400 2011-05-08  Bruno Haible  <bruno@clisp.org>
19401
19402         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19403         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19404         AC_LIBOBJ invocations from here...
19405         * modules/getaddrinfo (configure.ac): ... to here.
19406         (Depends-on): Add conditions.
19407
19408 2011-05-08  Bruno Haible  <bruno@clisp.org>
19409
19410         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19411         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19412         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19413         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19414         (gl_PREREQ_INET_PTON): ... from here.
19415         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19416         gl_PREREQ_INET_PTON here.
19417         (Depends-on): Update condition.
19418
19419 2011-05-08  Bruno Haible  <bruno@clisp.org>
19420
19421         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19422         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19423         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19424         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19425         (gl_PREREQ_INET_NTOP): ... from here.
19426         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19427         gl_PREREQ_INET_NTOP here.
19428         (Depends-on): Update condition.
19429
19430 2011-05-08  Bruno Haible  <bruno@clisp.org>
19431
19432         iconv_open: Move AC_LIBOBJ invocations to module description.
19433         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19434         AC_LIBOBJ invocations from here...
19435         * modules/iconv_open (configure.ac): ... to here.
19436
19437 2011-05-08  Bruno Haible  <bruno@clisp.org>
19438
19439         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19440         If module 'iconv_open' is among the main modules and module
19441         'iconv_open-utf' is among the tests dependencies, then
19442         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19443         return the special iconv_t values. Therefore iconv() and iconv_close()
19444         must support these special iconv_t values, already in lib, not only in
19445         tests.
19446         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19447         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19448         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19449         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19450         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19451         (Depends-on): Add the dependencies of iconv_open-utf.
19452         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19453         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19454         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19455
19456 2011-05-08  Bruno Haible  <bruno@clisp.org>
19457
19458         group-member: Move AC_LIBOBJ invocations to module description.
19459         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19460         gl_PREREQ_GROUP_MEMBER invocations from here...
19461         * modules/group-member (configure.ac): ... to here.
19462
19463 2011-05-08  Bruno Haible  <bruno@clisp.org>
19464
19465         grantpt: Move AC_LIBOBJ invocations to module description.
19466         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19467         invocations from here...
19468         * modules/grantpt (configure.ac): ... to here.
19469
19470 2011-05-08  Bruno Haible  <bruno@clisp.org>
19471
19472         glob: Move AC_LIBOBJ invocations to module description.
19473         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19474         from here...
19475         * modules/glob (configure.ac): ... to here.
19476
19477 2011-05-08  Bruno Haible  <bruno@clisp.org>
19478
19479         getusershell: Move AC_LIBOBJ invocations to module description.
19480         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
19481         Move AC_LIBOBJ invocation from here...
19482         * modules/getusershell (configure.ac): ... to here.
19483         (Depends-on): Update condition.
19484
19485 2011-05-08  Bruno Haible  <bruno@clisp.org>
19486
19487         gettimeofday: Move AC_LIBOBJ invocations to module description.
19488         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19489         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
19490         gl_PREREQ_GETTIMEOFDAY invocations from here...
19491         * modules/gettimeofday (configure.ac): ... to here.
19492
19493 2011-05-08  Bruno Haible  <bruno@clisp.org>
19494
19495         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
19496         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
19497         just gl_FUNC_TZSET.
19498         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
19499         (gl_FUNC_TZSET_CLOBBER): Remove actions.
19500         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
19501         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
19502
19503 2011-05-08  Bruno Haible  <bruno@clisp.org>
19504
19505         getsubopt: Move AC_LIBOBJ invocations to module description.
19506         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
19507         gl_PREREQ_GETSUBOPT invocations from here...
19508         * modules/getsubopt (configure.ac): ... to here.
19509
19510 2011-05-08  Bruno Haible  <bruno@clisp.org>
19511
19512         getpass-gnu: Move AC_LIBOBJ invocations to module description.
19513         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
19514         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
19515         * modules/getpass-gnu (configure.ac): ... to here.
19516
19517 2011-05-08  Bruno Haible  <bruno@clisp.org>
19518
19519         getpass: Move AC_LIBOBJ invocations to module description.
19520         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
19521         gl_PREREQ_GETPASS invocations from here...
19522         * modules/getpass (configure.ac): ... to here.
19523
19524 2011-05-08  Bruno Haible  <bruno@clisp.org>
19525
19526         getpagesize: Move AC_LIBOBJ invocations to module description.
19527         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
19528         from here...
19529         * modules/getpagesize (configure.ac): ... to here.
19530
19531 2011-05-08  Bruno Haible  <bruno@clisp.org>
19532
19533         getopt: Move AC_LIBOBJ invocations to module description.
19534         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
19535         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
19536         invocations from here...
19537         * modules/getopt-gnu (configure.ac): ... to here.
19538         * modules/getopt-posix (configure.ac): ... and here.
19539         (Depends-on): Update condition.
19540
19541 2011-05-08  Bruno Haible  <bruno@clisp.org>
19542
19543         getopt, argp: Respect rules for use of AC_LIBOBJ.
19544         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
19545         (gl_REPLACE_GETOPT_ALWAYS): New macro.
19546         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
19547         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
19548
19549 2011-05-08  Bruno Haible  <bruno@clisp.org>
19550
19551         getlogin_r: Move AC_LIBOBJ invocations to module description.
19552         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
19553         gl_PREREQ_GETLOGIN_R invocations from here...
19554         * modules/getlogin_r (configure.ac): ... to here.
19555
19556 2011-05-08  Bruno Haible  <bruno@clisp.org>
19557
19558         getlogin: Move AC_LIBOBJ invocations to module description.
19559         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
19560         here...
19561         * modules/getlogin (configure.ac): ... to here.
19562
19563 2011-05-08  Bruno Haible  <bruno@clisp.org>
19564
19565         getloadavg: Move AC_LIBOBJ invocations to module description.
19566         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
19567         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
19568         * modules/getloadavg (configure.ac): ... to here.
19569
19570 2011-05-08  Bruno Haible  <bruno@clisp.org>
19571
19572         gethrxtime: Move AC_LIBOBJ invocations to module description.
19573         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
19574         LIB_GETHRXTIME from here...
19575         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
19576         invocations from here...
19577         * modules/gethrxtime (configure.ac): ... to here.
19578
19579 2011-05-08  Bruno Haible  <bruno@clisp.org>
19580
19581         gethostname: Move AC_LIBOBJ invocations to module description.
19582         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
19583         gl_PREREQ_GETHOSTNAME invocations from here...
19584         * modules/gethostname (configure.ac): ... to here.
19585
19586 2011-05-08  Bruno Haible  <bruno@clisp.org>
19587
19588         getgroups: Move AC_LIBOBJ invocations to module description.
19589         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
19590         here...
19591         * modules/getgroups (configure.ac): ... to here.
19592
19593 2011-05-08  Bruno Haible  <bruno@clisp.org>
19594
19595         getdtablesize: Move AC_LIBOBJ invocations to module description.
19596         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
19597         invocation from here...
19598         * modules/getdtablesize (configure.ac): ... to here.
19599
19600 2011-05-08  Bruno Haible  <bruno@clisp.org>
19601
19602         getdomainname: Move AC_LIBOBJ invocations to module description.
19603         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
19604         gl_PREREQ_GETDOMAINNAME invocations from here...
19605         * modules/getdomainname (configure.ac): ... to here.
19606
19607 2011-05-08  Bruno Haible  <bruno@clisp.org>
19608
19609         getline: Move AC_LIBOBJ invocations to module description.
19610         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
19611         invocations from here...
19612         * modules/getline (configure.ac): ... to here.
19613
19614 2011-05-08  Bruno Haible  <bruno@clisp.org>
19615
19616         getline: Simplify.
19617         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
19618         It's already handled through the module dependency.
19619
19620 2011-05-08  Bruno Haible  <bruno@clisp.org>
19621
19622         getdelim: Move AC_LIBOBJ invocations to module description.
19623         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
19624         and gl_PREREQ_GETDELIM invocations from here...
19625         * modules/getdelim (configure.ac): ... to here.
19626         (Depends-on): Fix condition.
19627
19628 2011-05-08  Bruno Haible  <bruno@clisp.org>
19629
19630         getcwd: Move AC_LIBOBJ invocations to module description.
19631         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
19632         invocations from here...
19633         * modules/getcwd (configure.ac): ... to here.
19634
19635 2011-05-08  Bruno Haible  <bruno@clisp.org>
19636
19637         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
19638         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
19639         here...
19640         * modules/getcwd-lgpl (configure.ac): ... to here.
19641
19642 2011-05-07  Bruno Haible  <bruno@clisp.org>
19643
19644         crypto/gc: Move AC_LIBOBJ invocations to module description.
19645         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
19646         * modules/crypto/gc (configure.ac): ... to here.
19647
19648 2011-05-07  Bruno Haible  <bruno@clisp.org>
19649
19650         fwriting: Move AC_LIBOBJ invocations to module description.
19651         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
19652         here...
19653         * modules/fwriting (configure.ac): ... to here.
19654
19655 2011-05-07  Bruno Haible  <bruno@clisp.org>
19656
19657         fwritable: Move AC_LIBOBJ invocations to module description.
19658         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
19659         here...
19660         * modules/fwritable (configure.ac): ... to here.
19661
19662 2011-05-07  Bruno Haible  <bruno@clisp.org>
19663
19664         futimens: Move AC_LIBOBJ invocations to module description.
19665         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
19666         here...
19667         * modules/futimens (configure.ac): ... to here.
19668
19669 2011-05-07  Bruno Haible  <bruno@clisp.org>
19670
19671         ftruncate: Move AC_LIBOBJ invocations to module description.
19672         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
19673         gl_PREREQ_FTRUNCATE invocations from here...
19674         * modules/ftruncate (configure.ac): ... to here.
19675
19676 2011-05-07  Bruno Haible  <bruno@clisp.org>
19677
19678         fsync: Move AC_LIBOBJ invocations to module description.
19679         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
19680         invocations from here...
19681         * modules/fsync (configure.ac): ... to here.
19682
19683 2011-05-07  Bruno Haible  <bruno@clisp.org>
19684
19685         fsusage: Move AC_LIBOBJ invocations to module description.
19686         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
19687         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
19688         * modules/fsusage (configure.ac): ... to here.
19689
19690 2011-05-07  Bruno Haible  <bruno@clisp.org>
19691
19692         freopen: Move AC_LIBOBJ invocations to module description.
19693         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
19694         invocations from here...
19695         * modules/freopen (configure.ac): ... to here.
19696
19697 2011-05-07  Bruno Haible  <bruno@clisp.org>
19698
19699         free: Move AC_LIBOBJ invocations to module description.
19700         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
19701         invocations from here...
19702         * modules/free (configure.ac): ... to here.
19703
19704 2011-05-07  Bruno Haible  <bruno@clisp.org>
19705
19706         freadable: Move AC_LIBOBJ invocations to module description.
19707         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
19708         here...
19709         * modules/freadable (configure.ac): ... to here.
19710
19711 2011-05-07  Bruno Haible  <bruno@clisp.org>
19712
19713         fpurge: Move AC_LIBOBJ invocations to module description.
19714         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
19715         invocations from here...
19716         * modules/fpurge (configure.ac): ... to here.
19717
19718 2011-05-07  Bruno Haible  <bruno@clisp.org>
19719
19720         fpending: Move AC_LIBOBJ invocations to module description.
19721         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
19722         gl_FUNC_FPENDING.
19723         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
19724         invocations from here...
19725         * modules/fpending (configure.ac): ... to here.
19726
19727 2011-05-07  Bruno Haible  <bruno@clisp.org>
19728
19729         fopen: Move AC_LIBOBJ invocations to module description.
19730         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
19731         invocations from here...
19732         * modules/fopen (configure.ac): ... to here.
19733
19734 2011-05-07  Bruno Haible  <bruno@clisp.org>
19735
19736         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
19737         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
19738         gl_FUNC_FNMATCH_POSIX.
19739         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
19740         invocations from here...
19741         * modules/fnmatch (configure.ac): ... to here.
19742         * modules/fnmatch-gnu (configure.ac): ... and here.
19743
19744 2011-05-07  Bruno Haible  <bruno@clisp.org>
19745
19746         flock: Move AC_LIBOBJ invocations to module description.
19747         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
19748         invocations from here...
19749         * modules/flock (configure.ac): ... to here.
19750
19751 2011-05-07  Bruno Haible  <bruno@clisp.org>
19752
19753         fileblocks: Move AC_LIBOBJ invocations to module description.
19754         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
19755         gl_PREREQ_FILEBLOCKS invocations from here...
19756         * modules/fileblocks (configure.ac): ... to here.
19757
19758 2011-05-06  Bruno Haible  <bruno@clisp.org>
19759
19760         fflush: Move AC_LIBOBJ invocations to module description.
19761         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
19762         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
19763         invocations from here...
19764         * modules/fflush (configure.ac): ... to here.
19765
19766 2011-05-06  Bruno Haible  <bruno@clisp.org>
19767
19768         fdopendir: Move AC_LIBOBJ invocations to module description.
19769         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
19770         here...
19771         * modules/fdopendir (configure.ac): ... to here.
19772         (Depends-on): Improve conditions.
19773
19774 2011-05-06  Bruno Haible  <bruno@clisp.org>
19775
19776         _Exit: Move AC_LIBOBJ invocations to module description.
19777         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
19778         invocations from here...
19779         * modules/_Exit (configure.ac): ... to here.
19780
19781 2011-05-21  Bruno Haible  <bruno@clisp.org>
19782
19783         euidaccess: Respect rules for use of AC_LIBOBJ.
19784         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19785         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
19786         from here...
19787         * modules/euidaccess (configure.ac): ... to here.
19788
19789 2011-05-06  Bruno Haible  <bruno@clisp.org>
19790
19791         error: Move AC_LIBOBJ invocations to module description.
19792         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
19793         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
19794         invocations from here...
19795         * modules/error (configure.ac): ... to here.
19796
19797 2011-05-06  Bruno Haible  <bruno@clisp.org>
19798
19799         duplocale: Move AC_LIBOBJ invocations to module description.
19800         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
19801         gl_PREREQ_DUPLOCALE invocations from here...
19802         * modules/duplocale (configure.ac): ... to here.
19803
19804 2011-05-05  Bruno Haible  <bruno@clisp.org>
19805
19806         dirfd: Move AC_LIBOBJ invocations to module description.
19807         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
19808         gl_FUNC_DIRFD.
19809         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
19810         here...
19811         * modules/dirfd (configure.ac): ... to here.
19812         (Depends-on): Fix condition.
19813
19814 2011-05-05  Bruno Haible  <bruno@clisp.org>
19815
19816         chown: Respect rules for use of AC_LIBOBJ.
19817         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
19818         * modules/chown (configure.ac): ... to here.
19819
19820 2011-05-05  Bruno Haible  <bruno@clisp.org>
19821
19822         chdir-long: Move AC_LIBOBJ invocations to module description.
19823         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
19824         gl_PREREQ_CHDIR_LONG invocations from here...
19825         * modules/chdir-long (configure.ac): ... to here.
19826
19827 2011-05-05  Bruno Haible  <bruno@clisp.org>
19828
19829         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
19830         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
19831         from here...
19832         * modules/canonicalize-lgpl (configure.ac): ... to here.
19833
19834 2011-05-05  Bruno Haible  <bruno@clisp.org>
19835
19836         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
19837         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
19838         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
19839         REPLACE_CALLOC.
19840         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
19841         * modules/calloc-gnu (configure.ac): Likewise.
19842
19843 2011-05-05  Bruno Haible  <bruno@clisp.org>
19844
19845         btowc: Move AC_LIBOBJ invocations to module description.
19846         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
19847         invocations from here...
19848         * modules/btowc (configure.ac): ... to here.
19849
19850 2011-05-21  Bruno Haible  <bruno@clisp.org>
19851
19852         atexit: Move AC_LIBOBJ invocations to module description.
19853         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
19854         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
19855         here...
19856         * modules/atexit (configure.ac): ... to here.
19857
19858 2011-05-05  Bruno Haible  <bruno@clisp.org>
19859
19860         atoll: Move AC_LIBOBJ invocations to module description.
19861         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
19862         invocations from here...
19863         * modules/atoll (configure.ac): ... to here.
19864
19865 2011-05-05  Bruno Haible  <bruno@clisp.org>
19866
19867         argz: Move AC_LIBOBJ invocations to module description.
19868         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
19869         * modules/argz (configure.ac): ... to here.
19870
19871 2011-05-05  Bruno Haible  <bruno@clisp.org>
19872
19873         alphasort: Move AC_LIBOBJ invocations to module description.
19874         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
19875         gl_PREREQ_ALPHASORT invocations from here...
19876         * modules/alphasort (configure.ac): ... to here.
19877
19878 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19879
19880         verify: new macro verify_expr; verify_true deprecated
19881         * NEWS: Mention this.
19882         * doc/verify.texi (Compile-time Assertions): Document this.
19883         * lib/verify.h (verify_true): Deprecate.
19884         (verify_expr): New macro.
19885         * tests/test-verify.c (function): Test verify_expr.
19886
19887 2011-06-14  Jim Meyering  <meyering@redhat.com>
19888
19889         init.sh: give more portable redirection-related advice in a comment
19890         * tests/init.sh (stderr_fileno_): Update the advice in comments.
19891         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
19892         for lots of discussion.  Stefano Lattarini suggested the solution
19893         of putting "9>&2" after the command.  Reported by Bruno Haible.
19894
19895 2011-06-13  Bruno Haible  <bruno@clisp.org>
19896
19897         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
19898         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
19899         'none'.
19900
19901 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
19902
19903         ftoastr: use strtof only if HAVE_STRTOF
19904         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
19905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
19906         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
19907         * modules/ftoastr (configure.ac): Check for strtof.
19908
19909 2011-06-13  Bruno Haible  <bruno@clisp.org>
19910
19911         gnulib-tool: Addendum to 2011-06-08 commit.
19912         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
19913         and --witness-c-macro have been given, augment AM_CPPFLAGS.
19914
19915 2011-06-13  Bruno Haible  <bruno@clisp.org>
19916
19917         fseeko: Provide a non-inline replacement of fseek().
19918         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
19919         * modules/fseeko (Depends-on): Add fseek.
19920         * modules/fseek (License): Change to LGPLv2+.
19921
19922 2011-06-13  Bruno Haible  <bruno@clisp.org>
19923
19924         ftello: Provide a non-inline replacement of ftell().
19925         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
19926         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
19927         not have ftello() (such as on mingw).
19928         * modules/ftello (Depends-on): Add ftell.
19929         * modules/ftell (License): Change to LGPLv2+.
19930
19931 2011-05-07  Bruno Haible  <bruno@clisp.org>
19932
19933         ftell: Move AC_LIBOBJ invocations to module description.
19934         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
19935         * modules/ftell (configure.ac): ... to here.
19936
19937 2011-05-07  Bruno Haible  <bruno@clisp.org>
19938
19939         ftello: Respect rules for use of AC_LIBOBJ.
19940         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
19941         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
19942         here...
19943         * modules/ftello (configure.ac): ... to here.
19944
19945 2011-05-07  Bruno Haible  <bruno@clisp.org>
19946
19947         fseeko: Simplify.
19948         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
19949         (gl_FUNC_FSEEKO): Inline it here.
19950
19951 2011-05-07  Bruno Haible  <bruno@clisp.org>
19952
19953         fseek: Move AC_LIBOBJ invocations to module description.
19954         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
19955         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19956         * modules/fseek (configure.ac): ... to here.
19957
19958 2011-05-07  Bruno Haible  <bruno@clisp.org>
19959
19960         fseek: Respect rules for use of AC_LIBOBJ.
19961         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
19962         here...
19963         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
19964
19965 2011-05-07  Bruno Haible  <bruno@clisp.org>
19966
19967         fseeko: Respect rules for use of AC_LIBOBJ.
19968         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
19969         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
19970         here...
19971         * modules/fseeko (configure.ac): ... to here.
19972
19973 2011-06-13  Bruno Haible  <bruno@clisp.org>
19974
19975         gnulib-tool: Allow comments in the 'Depends-on' section.
19976         * doc/gnulib.texi (Module description): Mention comment syntax in the
19977         Depends-on section.
19978         * gnulib-tool (func_get_dependencies): Filter out comment lines.
19979
19980 2011-06-13  Bruno Haible  <bruno@clisp.org>
19981
19982         file-set.h: guard __attibute__ use, now that it's not always defined
19983         * lib/file-set.h (record_file): Use __attribute__ only with compiler
19984         versions that support it.  This fixes a coreutils build failure with
19985         the vendor cc on HP-UX 11.31.
19986
19987 2011-06-12  Bruno Haible  <bruno@clisp.org>
19988
19989         acl: Add support for HP-UX >= 11.11 JFS ACLs.
19990         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
19991         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
19992         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
19993         (acl, aclsort): New declarations.
19994         (aclv_nontrivial): New declaration.
19995         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
19996         (file_has_acl): Read also the second kind of HP-UX ACLs.
19997         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
19998         kind of HP-UX ACLs if the first kind fails.
19999         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
20000         second kind of HP-UX ACLs.
20001         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
20002         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
20003         agree.
20004         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20005         hpuxjfs.
20006         Handle hpuxjfs.
20007         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20008         hpuxjfs.
20009         Handle hpuxjfs.
20010         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20011         (func_test_same_acls): Use both lsacl and getacl.
20012         Handle hpuxjfs.
20013         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20014         (func_test_same_acls): Use both lsacl and getacl.
20015         Handle hpuxjfs.
20016
20017 2011-06-12  Bruno Haible  <bruno@clisp.org>
20018
20019         acl: Complete the 2010-08-10 fix.
20020         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
20021         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
20022         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
20023         explicitly.
20024         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
20025         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
20026
20027 2011-06-12  Bruno Haible  <bruno@clisp.org>
20028
20029         spawn-pipe tests: Comments.
20030         * tests/test-spawn-pipe-child.c (main): Update comment.
20031         Reported by James Youngman <jay@gnu.org>.
20032
20033 2011-06-11  James Youngman  <jay@gnu.org>
20034
20035         New module 'stat-size'.
20036         * modules/stat-size: New module.  Provides macros for accessing
20037         file size information in instances of struct stat.  Depends on the
20038         fileblocks module because it calls st_blocks.
20039         * lib/stat-size.h: New file, adapted from coreutils' system.h.
20040         * doc/gnulib.texi: Include stat-size.texi.
20041         * doc/stat-size.texi: Documentation for this module.
20042         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
20043         * m4/fileblocks.m4: Mention that stat-size depends on the call to
20044         AC_STRUCT_ST_BLOCKS.
20045
20046 2011-06-09  Bruno Haible  <bruno@clisp.org>
20047
20048         thread: Support pthreads-win32.
20049         * lib/glthread/thread.h (gl_thread_self): Define differently on
20050         pthreads-win32.
20051         (gl_null_thread): New declaration.
20052         (gl_thread_self_pointer): New macro.
20053         * lib/glthread/thread.c (gl_null_thread): New constant.
20054         * tests/test-lock.c: Use gl_thread_self_pointer instead of
20055         gl_thread_self.
20056         * tests/test-tls.c: Likewise.
20057         Suggested by Paul Eggert. Reported by Eric Blake.
20058
20059 2011-06-09  Bruno Haible  <bruno@clisp.org>
20060
20061         thread: Fix confusion between NULL and 0.
20062         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
20063         Reported by Paul Eggert.
20064
20065 2011-06-09  Bruno Haible  <bruno@clisp.org>
20066
20067         spawn-pipe tests: Avoid test failure on HP-UX 11.
20068         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
20069         is closed.
20070
20071 2011-06-09  Bruno Haible  <bruno@clisp.org>
20072
20073         acl tests: Fix compilation error on HP-UX 11.
20074         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
20075
20076 2011-06-09  Bruno Haible  <bruno@clisp.org>
20077
20078         rmdir: Avoid test failure on HP-UX 10.20.
20079         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
20080         EEXIST.
20081
20082 2011-06-08  Eric Blake  <eblake@redhat.com>
20083
20084         perror: fix test on mingw
20085         * modules/perror-tests (Depends-on): Add dup2.
20086
20087         strerror_r-posix: fix on MacOS
20088         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
20089         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
20090         logic bug.
20091         * lib/strerror_r.c (strerror_r): Fix the bug.
20092         * lib/strerror.c (strerror): Likewise.
20093         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20094         problem.
20095         * doc/posix-functions/strerror.texi (strerror): Likewise.
20096         * doc/posix-functions/perror.texi (perror): Likewise.
20097         * tests/test-strerror.c (main): Enhance test.
20098         * tests/test-strerror_r.c (main): Likewise.
20099
20100 2011-06-08  Bruno Haible  <bruno@clisp.org>
20101
20102         gnulib-tool: Better isolation between different gnulib-tool invocations.
20103         * gnulib-tool: New option --witness-c-macro.
20104         (witness_c_macro): New variable.
20105         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
20106         AM_CPPFLAGS define it as a C macro.
20107         (func_emit_tests_Makefile_am): Likewise.
20108         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
20109         read it from there.
20110         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
20111         m4_define, not AC_DEFUN.
20112         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
20113         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
20114         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
20115         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
20116         s|...|...|, to substitute the values of the GNULIB_* module indicator
20117         variables.
20118         * modules/dirent (Makefile.am): Likewise.
20119         * modules/fcntl-h (Makefile.am): Likewise.
20120         * modules/iconv-h (Makefile.am): Likewise.
20121         * modules/langinfo (Makefile.am): Likewise.
20122         * modules/locale (Makefile.am): Likewise.
20123         * modules/math (Makefile.am): Likewise.
20124         * modules/netdb (Makefile.am): Likewise.
20125         * modules/poll-h (Makefile.am): Likewise.
20126         * modules/pty (Makefile.am): Likewise.
20127         * modules/search (Makefile.am): Likewise.
20128         * modules/signal (Makefile.am): Likewise.
20129         * modules/spawn (Makefile.am): Likewise.
20130         * modules/stdio (Makefile.am): Likewise.
20131         * modules/stdlib (Makefile.am): Likewise.
20132         * modules/string (Makefile.am): Likewise.
20133         * modules/sys_ioctl (Makefile.am): Likewise.
20134         * modules/sys_select (Makefile.am): Likewise.
20135         * modules/sys_socket (Makefile.am): Likewise.
20136         * modules/sys_stat (Makefile.am): Likewise.
20137         * modules/sys_times (Makefile.am): Likewise.
20138         * modules/sys_utsname (Makefile.am): Likewise.
20139         * modules/sys_wait (Makefile.am): Likewise.
20140         * modules/termios (Makefile.am): Likewise.
20141         * modules/time (Makefile.am): Likewise.
20142         * modules/unistd (Makefile.am): Likewise.
20143         * modules/wchar (Makefile.am): Likewise.
20144
20145 2011-06-08  Eric Blake  <eblake@redhat.com>
20146
20147         strerror: simplify replacement
20148         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
20149         * modules/strerror (configure.ac): No prereqs needed here...
20150         * modules/strerror-override (configure.ac): ...but this needs it.
20151         (Files): Add file for needed prereq macro.
20152
20153 2011-06-08  Bruno Haible  <bruno@clisp.org>
20154
20155         strerror_r-posix: Tweaks.
20156         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
20157         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
20158         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
20159         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
20160         (gl_FUNC_STRERROR_R): ... to here.
20161         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
20162
20163 2011-06-07  Eric Blake  <eblake@redhat.com>
20164
20165         perror: document fixed bugs
20166         * doc/posix-functions/perror.texi (perror): Document recent
20167         patches.
20168
20169 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
20170
20171         stat-time: get_stat_birthtime failure is better-defined
20172         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
20173         return a timestamp whose tv_sec and tv_nsec values are both -1.
20174         Previously, the spec said only that the tv_nsec value was negative.
20175         This upward-compatible change simplifies GNU tar a bit.
20176
20177 2011-06-07  Eric Blake  <eblake@redhat.com>
20178
20179         strerror_r-posix: work around cygwin 1.7.9
20180         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
20181         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
20182         bug without replacing strerror_r.
20183         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
20184         strerror_r is buggy, but without requiring strerror_r compilation.
20185         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
20186
20187         test-perror: relax test to ignore cygwin bug
20188         * tests/test-perror2.c (main): Relax test on requiring detection
20189         of stream errors, and use unbuffered stream.
20190         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
20191         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
20192         * doc/posix-functions/fputc.texi (fputc): Likewise.
20193         * doc/posix-functions/fputs.texi (fputs): Likewise.
20194         * doc/posix-functions/fputws.texi (fputws): Likewise.
20195         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
20196         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
20197         * doc/posix-functions/getopt.texi (getopt): Likewise.
20198         * doc/posix-functions/perror.texi (perror): Likewise.
20199         * doc/posix-functions/printf.texi (printf): Likewise.
20200         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
20201         * doc/posix-functions/psignal.texi (psignal): Likewise.
20202         * doc/posix-functions/putc.texi (putc): Likewise.
20203         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
20204         Likewise.
20205         * doc/posix-functions/putchar.texi (putchar): Likewise.
20206         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
20207         Likewise.
20208         * doc/posix-functions/puts.texi (puts): Likewise.
20209         * doc/posix-functions/putwc.texi (putwc): Likewise.
20210         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20211         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20212         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20213         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
20214         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20215         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20216         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20217         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
20218
20219 2011-05-22  Bruno Haible  <bruno@clisp.org>
20220
20221         strerror: Move AC_LIBOBJ invocations to module description.
20222         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
20223         gl_PREREQ_STRERROR invocations from here...
20224         * modules/strerror (configure.ac): ... to here.
20225
20226 2011-05-21  Bruno Haible  <bruno@clisp.org>
20227
20228         perror: Use common idiom.
20229         * modules/perror (configure.ac): Reorder statements.
20230
20231 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20232
20233         tests: fix usage message in 'mktempd_'
20234         * tests/init.sh (mktempd_): In the usage message, use literal
20235         'mktempd_', not '$ME' (which is even undefined), as the name of
20236         the subroutine.
20237
20238 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20239
20240         tests init: new function 'fatal_', for hard errors
20241         Before this patch, the only way offered by tests/init.sh to
20242         properly signal a hard error was the `framework_failure_'
20243         function.  But the error message issued by that function,
20244         as its name would suggest, refers to a set-up failure in the
20245         testsuite, while hard errors can obviously also be due to
20246         other reasons.  The best way to fix this inconsistency is to
20247         introduce a new function with a more general error message.
20248         * tests/init.sh (fatal_): New function.
20249
20250 2011-06-06  Eric Blake  <eblake@redhat.com>
20251
20252         canonicalize-lgpl: use common idiom
20253         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
20254         over newer POSIX -Rf.
20255         Reported by Bruno Haible.
20256
20257         canonicalize-lgpl: work around AIX realpath bug
20258         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
20259         * doc/posix-functions/realpath.texi (realpath): Document it.
20260         Reported by Bruno Haible.
20261
20262         strerror: work around FreeBSD bug
20263         * lib/strerror.c (strerror): Special case 0.
20264         Reported by Bruno Haible.
20265
20266         strerror-override: avoid bloating errno module
20267         * modules/errno (Files, configure.ac): Move replacement strings...
20268         * modules/strerror-override: ...to new module.
20269         * modules/strerror (Depends-on): Add strerror-override.
20270         * modules/strerror_r-posix (Depends-on): Likewise.
20271         * MODULES.html.sh: Document new module.
20272         Reported by Bruno Haible.
20273
20274 2011-06-06  Bruno Haible  <bruno@clisp.org>
20275
20276         spawn-pipe tests: Rename program.
20277         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
20278         * tests/test-spawn-pipe-child.c: Update comment.
20279         * tests/test-spawn-pipe.sh: Update.
20280         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
20281
20282         spawn-pipe tests: Link the child program only against libc.
20283         * tests/test-spawn-pipe-child.c: New file, extracted from
20284         tests/test-spawn-pipe.c.
20285         (main): Expect only one argument.
20286         (is_open): New function, copied from tests/test-pipe.c.
20287         * tests/test-spawn-pipe.c: Don't include <errno.h>.
20288         (child_main): Remove function.
20289         (test_pipe): Pass only one argument to the child program.
20290         (main): Remove child process code. Expect the child program's name as
20291         first argument.
20292         * tests/test-spawn-pipe.sh: Pass the child program's name as first
20293         argument.
20294         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
20295         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
20296         test-spawn-pipe-child against no libraries.
20297
20298 2011-06-06  Bruno Haible  <bruno@clisp.org>
20299
20300         careadlinkat: Avoid mismatch between ssize_t and int.
20301         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
20302         * lib/careadlinkat.c (careadlinkatcwd): Define always.
20303
20304 2011-06-06  Jim Meyering  <meyering@redhat.com>
20305
20306         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
20307         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
20308         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
20309
20310 2011-06-05  Bruno Haible  <bruno@clisp.org>
20311
20312         ansi-c++-opt: Interoperability with libtool.
20313         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
20314         set the variable to "no", not to ":".
20315         * NEWS: Mention the change.
20316
20317 2011-06-05  Bruno Haible  <bruno@clisp.org>
20318
20319         acl: Fix test failure on AIX 7.
20320         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
20321         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
20322
20323 2011-06-05  Bruno Haible  <bruno@clisp.org>
20324
20325         pipe-filter-ii: Fix test failure on AIX and IRIX.
20326         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20327         with EAGAIN, retry with a smaller buffer size.
20328
20329 2011-06-05  Bruno Haible  <bruno@clisp.org>
20330
20331         localename: Fix link dependencies.
20332         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20333         * modules/localename-tests (Makefile.am): Link test-localename with
20334         $(LIBTHREAD).
20335
20336 2011-06-05  Bruno Haible  <bruno@clisp.org>
20337
20338         error: Avoid gcc warning.
20339         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20340
20341 2011-06-05  Bruno Haible  <bruno@clisp.org>
20342
20343         unsetenv: Avoid gcc warning.
20344         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20345
20346 2011-06-05  Bruno Haible  <bruno@clisp.org>
20347
20348         setenv: Avoid gcc warning.
20349         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20350
20351 2011-06-05  Bruno Haible  <bruno@clisp.org>
20352
20353         sys_select: Ensure memset is declared also on AIX 7.
20354         * lib/sys_select.in.h: Include <string.h> also on AIX.
20355         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20356         self-contained also on AIX 7.1.
20357
20358 2011-06-04  Jim Meyering  <meyering@redhat.com>
20359
20360         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20361         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20362         function name, "error".
20363         (_gl_translatable_diag_func_re): New configurable variable.
20364
20365 2011-06-04  Bruno Haible  <bruno@clisp.org>
20366
20367         getopt: Avoid gcc warning.
20368         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20369
20370 2011-06-04  Bruno Haible  <bruno@clisp.org>
20371
20372         strerror_r: Fix comments.
20373         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20374         commit.
20375
20376 2011-06-04  Bruno Haible  <bruno@clisp.org>
20377
20378         perror: Fix compilation error.
20379         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20380         Undefine fprintf, not sprintf.
20381         * modules/perror (Depends-on): Remove intprops, verify.
20382
20383 2011-06-04  Bruno Haible  <bruno@clisp.org>
20384
20385         setlocale: Enable replacement on Cygwin 1.5.
20386         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
20387         Cygwin 1.5.x.
20388         * doc/posix-functions/setlocale.texi: Mention that the problem with the
20389         LC_CTYPE category also exists on Cygwin 1.5.x.
20390
20391 2011-06-04  Bruno Haible  <bruno@clisp.org>
20392
20393         strerror-override: Don't disable symbol renamings.
20394         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20395         * lib/strerror-override.c: Include config.h.
20396         (strerror_override): Don't undefine.
20397
20398 2011-06-03  Bruno Haible  <bruno@clisp.org>
20399
20400         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20401         * lib/localename.h: Update copyright header.
20402         * lib/localename.c: Likewise.
20403         * lib/relocatable.h: Likewise.
20404         * lib/relocatable.c: Likewise.
20405
20406 2011-06-02  Bruno Haible  <bruno@clisp.org>
20407
20408         doc: Fix a module name.
20409         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20410
20411 2011-06-02  Bruno Haible  <bruno@clisp.org>
20412
20413         pipe2: Remove dependency on 'nonblocking' module.
20414         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20415         O_NONBLOCK is defined by gnulib.
20416         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20417         is zero.
20418         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20419         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20420         defined by gnulib.
20421         (get_nonblocking_flag): New function.
20422         (main): Test O_NONBLOCK flag only if it is nonzero.
20423         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20424
20425 2011-06-03  Jim Meyering  <meyering@redhat.com>
20426
20427         maint: three new prohibit-header-without-use rules
20428         Prohibit use of cloexec.h, posixver.h, same.h without use.
20429         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20430         (sc_prohibit_posixver_without_use): Likewise.
20431         (sc_prohibit_same_without_use): Likewise.
20432
20433 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20434
20435         allocator: 'die' routine is now given requested size
20436         * lib/allocator.h (struct allocator.die): New size arg.
20437         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20438         If the actual problem is an ssize_t limitation, not a size_t or
20439         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20440
20441 2011-06-01  Eric Blake  <eblake@redhat.com>
20442
20443         strerror: drop strerror_r dependency
20444         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20445         * lib/strerror-override.c (strerror_override): ...to new file.
20446         * lib/strerror-override.h: Add prototype.
20447         * lib/strerror-impl.h: Delete.
20448         * lib/strerror.c (strerror): New implementation.
20449         * modules/errno (Files): Add new files.
20450         (configure.ac): Compile new file as appropriate.
20451         * modules/strerror (Files): Drop unused file.
20452         (Depends-on): Drop strerror_r-posix.
20453         * MODULES.html.sh: Document strerror_r-posix.
20454         Requested by Sam Steingold.
20455
20456         perror: call strerror_r directly
20457         * modules/perror (Files): Drop strerror-impl.h.
20458         * lib/perror.c (perror): Use our own stack buffer, rather than
20459         calling a wrapper that uses static storage.
20460         * doc/posix-functions/perror.texi (perror): Document a limitation
20461         of our replacement.
20462
20463         strerror_r: fix includes for FreeBSD
20464         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20465         since we use abort on some platforms.
20466         Reported by Matthias Bolte.
20467
20468 2011-05-31  Bruno Haible  <bruno@clisp.org>
20469
20470         Fix link errors in tests: openat-die uses gettext-h.
20471         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20472         against $(LIBINTL).
20473         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20474         against $(LIBINTL).
20475         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20476         $(LIBINTL).
20477         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
20478         against $(LIBINTL).
20479         * modules/linkat-tests (Makefile.am): Link test-linkat against
20480         $(LIBINTL).
20481         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
20482         $(LIBINTL).
20483         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
20484         against $(LIBINTL).
20485         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
20486         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
20487         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
20488         $(LIBINTL).
20489         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
20490         $(LIBINTL).
20491         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
20492         $(LIBINTL).
20493         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20494
20495 2011-05-31  Bruno Haible  <bruno@clisp.org>
20496
20497         Fix link errors in tests: wait-process uses gettext-h.
20498         * modules/nonblocking-pipe-tests (Makefile.am): Set
20499         test_nonblocking_pipe_main_LDADD.
20500         * modules/nonblocking-socket-tests (Makefile.am): Link
20501         test-nonblocking-socket-main against $(LIBINTL).
20502         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20503
20504 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20505
20506         assert-h: work around 'verify' incompatibility
20507         * lib/verify.h: Use @...@ directives, not ifdef.
20508         * modules/assert-h (assert.h): Implement the directives.
20509         (assert.h): Substitute the symbol-prefix more consistently.
20510
20511 2011-05-29  Jim Meyering  <meyering@redhat.com>
20512
20513         trim: remove three superfluous assignments
20514         * lib/trim.c (trim2): Remove three superfluous assignments
20515         and correct brace positioning.
20516
20517 2011-05-29  Bruno Haible  <bruno@clisp.org>
20518
20519         wctype-h: Avoid namespace pollution on Solaris 2.6.
20520         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
20521         identifiers.
20522         * doc/posix-headers/wctype.texi: Mention the problem.
20523         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20524
20525 2011-05-28  Jim Meyering  <meyering@redhat.com>
20526
20527         parse-datetime.y: accommodate -Wstrict-overflow
20528         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
20529         placate -Wstrict-overflow.
20530
20531         trim: avoid a warning from -O2 -Wstrict-overflow
20532         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
20533
20534 2011-05-29  Bruno Haible  <bruno@clisp.org>
20535
20536         gnulib-tool: Fix bug in yesterday's commit.
20537         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
20538         twice.
20539
20540 2011-05-29  Bruno Haible  <bruno@clisp.org>
20541
20542         Allow multiple gnulib generated include files to be combined.
20543         * gnulib-tool (func_compute_include_guard_prefix): New function.
20544         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
20545         ${gl_include_guard_prefix} references.
20546         (func_import, func_create_testdir): Invoke
20547         func_compute_include_guard_prefix.
20548         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
20549         * lib/ctype.in.h: Likewise.
20550         * lib/dirent.in.h: Likewise.
20551         * lib/errno.in.h: Likewise.
20552         * lib/fcntl.in.h: Likewise.
20553         * lib/float.in.h: Likewise.
20554         * lib/getopt.in.h: Likewise.
20555         * lib/iconv.in.h: Likewise.
20556         * lib/langinfo.in.h: Likewise.
20557         * lib/locale.in.h: Likewise.
20558         * lib/math.in.h: Likewise.
20559         * lib/netdb.in.h: Likewise.
20560         * lib/netinet_in.in.h: Likewise.
20561         * lib/poll.in.h: Likewise.
20562         * lib/pthread.in.h: Likewise.
20563         * lib/pty.in.h: Likewise.
20564         * lib/sched.in.h: Likewise.
20565         * lib/se-selinux.in.h: Likewise.
20566         * lib/search.in.h: Likewise.
20567         * lib/signal.in.h: Likewise.
20568         * lib/spawn.in.h: Likewise.
20569         * lib/stdarg.in.h: Likewise.
20570         * lib/stddef.in.h: Likewise.
20571         * lib/stdint.in.h: Likewise.
20572         * lib/stdio.in.h: Likewise.
20573         * lib/stdlib.in.h: Likewise.
20574         * lib/string.in.h: Likewise.
20575         * lib/strings.in.h: Likewise.
20576         * lib/sys_file.in.h: Likewise.
20577         * lib/sys_ioctl.in.h: Likewise.
20578         * lib/sys_select.in.h: Likewise.
20579         * lib/sys_socket.in.h: Likewise.
20580         * lib/sys_stat.in.h: Likewise.
20581         * lib/sys_time.in.h: Likewise.
20582         * lib/sys_times.in.h: Likewise.
20583         * lib/sys_uio.in.h: Likewise.
20584         * lib/sys_utsname.in.h: Likewise.
20585         * lib/sys_wait.in.h: Likewise.
20586         * lib/sysexits.in.h: Likewise.
20587         * lib/termios.in.h: Likewise.
20588         * lib/time.in.h: Likewise.
20589         * lib/unistd.in.h: Likewise.
20590         * lib/wchar.in.h: Likewise.
20591         * lib/wctype.in.h: Likewise.
20592         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
20593         * modules/ctype (Makefile.am): Likewise.
20594         * modules/dirent (Makefile.am): Likewise.
20595         * modules/errno (Makefile.am): Likewise.
20596         * modules/fcntl-h (Makefile.am): Likewise.
20597         * modules/float (Makefile.am): Likewise.
20598         * modules/getopt-posix (Makefile.am): Likewise.
20599         * modules/iconv-h (Makefile.am): Likewise.
20600         * modules/langinfo (Makefile.am): Likewise.
20601         * modules/locale (Makefile.am): Likewise.
20602         * modules/math (Makefile.am): Likewise.
20603         * modules/netdb (Makefile.am): Likewise.
20604         * modules/netinet_in (Makefile.am): Likewise.
20605         * modules/poll-h (Makefile.am): Likewise.
20606         * modules/pthread (Makefile.am): Likewise.
20607         * modules/pty (Makefile.am): Likewise.
20608         * modules/sched (Makefile.am): Likewise.
20609         * modules/search (Makefile.am): Likewise.
20610         * modules/selinux-h (Makefile.am): Likewise.
20611         * modules/signal (Makefile.am): Likewise.
20612         * modules/spawn (Makefile.am): Likewise.
20613         * modules/stdarg (Makefile.am): Likewise.
20614         * modules/stddef (Makefile.am): Likewise.
20615         * modules/stdint (Makefile.am): Likewise.
20616         * modules/stdio (Makefile.am): Likewise.
20617         * modules/stdlib (Makefile.am): Likewise.
20618         * modules/string (Makefile.am): Likewise.
20619         * modules/strings (Makefile.am): Likewise.
20620         * modules/sys_file (Makefile.am): Likewise.
20621         * modules/sys_ioctl (Makefile.am): Likewise.
20622         * modules/sys_select (Makefile.am): Likewise.
20623         * modules/sys_socket (Makefile.am): Likewise.
20624         * modules/sys_stat (Makefile.am): Likewise.
20625         * modules/sys_time (Makefile.am): Likewise.
20626         * modules/sys_times (Makefile.am): Likewise.
20627         * modules/sys_uio (Makefile.am): Likewise.
20628         * modules/sys_utsname (Makefile.am): Likewise.
20629         * modules/sys_wait (Makefile.am): Likewise.
20630         * modules/sysexits (Makefile.am): Likewise.
20631         * modules/termios (Makefile.am): Likewise.
20632         * modules/time (Makefile.am): Likewise.
20633         * modules/unistd (Makefile.am): Likewise.
20634         * modules/wchar (Makefile.am): Likewise.
20635         * modules/wctype-h (Makefile.am): Likewise.
20636         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
20637
20638 2011-05-29  Bruno Haible  <bruno@clisp.org>
20639
20640         assert-h: Allow multiple gnulib generated replacements to coexist.
20641         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
20642
20643 2011-05-29  Bruno Haible  <bruno@clisp.org>
20644
20645         argp: Allow coexistence with strerror_r-posix module.
20646         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
20647         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
20648         by gnulib's <string.h> replacement), assume it has the POSIX signature,
20649         not the glibc signature.
20650
20651 2011-05-28  Bruno Haible  <bruno@clisp.org>
20652
20653         gnulib-tool: Alternative structure of testdirs, similar to --import.
20654         * gnulib-tool: New option --single-configure.
20655         (func_usage): Document it.
20656         (single_configure): New variable.
20657         (func_modules_transitive_closure_separately,
20658         func_modules_transitive_closure_separately,
20659         func_determine_use_libtests, func_modules_add_dummy_separately,
20660         func_modules_to_filelist_separately): New functions, extracted from
20661         func_import.
20662         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
20663         (func_import): Use the new functions.
20664         (func_create_testdir): Set final_modules. Handle $single_configure =
20665         true case.
20666
20667 2011-05-28  Bruno Haible  <bruno@clisp.org>
20668
20669         getloadavg: Remove an unreliable safety check.
20670         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
20671         getloadavg.c is in place.
20672         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
20673         Reported by Sam Steingold <sds@gnu.org>.
20674
20675 2011-05-28  Bruno Haible  <bruno@clisp.org>
20676
20677         doc: Cleanup yet another file produced by texinfo.tex.
20678         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
20679
20680 2011-05-28  Bruno Haible  <bruno@clisp.org>
20681
20682         Finish the conditional dependencies mechanism.
20683         * gnulib-tool: New option --no-conditional-dependencies.
20684         (func_usage): Document it. Don't mark --conditional-dependencies as
20685         experimental.
20686         (cond_dependencies): The possible values can now be true, false, empty.
20687         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
20688         (func_import): Store setting in gnulib-cache.m4 and read it from there.
20689         * doc/gnulib-tool.texi (Conditional dependencies): New section.
20690
20691 2011-05-28  Bruno Haible  <bruno@clisp.org>
20692
20693         doc: Use a recent texinfo.tex.
20694         * doc/Makefile (tex_opts): New variable.
20695         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
20696
20697 2011-05-28  Jim Meyering  <meyering@redhat.com>
20698
20699         intprops.h: adjust comment to match code change
20700         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
20701         only once, it *may* have side effects.  Also fix an unrelated typo.
20702         (_GL_INT_SIGNED): Likewise.
20703
20704 2011-05-26  Simon Josefsson  <simon@josefsson.org>
20705
20706         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
20707
20708 2011-05-26  Bruno Haible  <bruno@clisp.org>
20709
20710         mbsrchr: Avoid collision with system function on Interix.
20711         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
20712         Reported by Markus Duft <mduft@gentoo.org>.
20713
20714 2011-05-15  James Youngman  <jay@gnu.org>
20715
20716         getopt: for ambiguous options, enumerate the possibilities.
20717         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
20718         the ambiguous options when an ambiguous prefix is given. This was
20719         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
20720         glibc change was
20721         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
20722
20723 2011-05-25  Eric Blake  <eblake@redhat.com>
20724
20725         getcwd: work around mingw bug
20726         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
20727         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20728         Reported by Matthias Bolte.
20729
20730 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
20731
20732         test-intprops: disable -Wtype-limits diagnostics
20733         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
20734         diagnostics.  Otherwise, the integer overflow macros generate many
20735         diagnostics.  Reported by Jim Meyering in
20736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20737
20738         intprops: shorten, to pacify gcc -Woverlength-strings
20739         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
20740         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
20741         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
20742         likely to run afoul of C compiler limits for string constant lengths.
20743         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20744
20745 2011-05-24  Eric Blake  <eblake@redhat.com>
20746
20747         docs: document recently fixed glibc printf bug
20748         * doc/posix-functions/fprintf.texi (fprintf): Document it.
20749         * doc/posix-functions/printf.texi (printf): Likewise.
20750         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20751         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20752
20753         closein-tests: convert to init.sh
20754         * modules/closein-tests (Files): Add init.sh
20755         * tests/test-closein.sh Use it.
20756
20757         yesno-tests: convert to init.sh
20758         * modules/yesno-tests (Files): Add init.sh.
20759         * tests/test-yesno.sh: Use it.
20760
20761         atexit-tests: ensure reliable exit status
20762         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
20763         Reported by Bruno Haible.
20764
20765 2011-05-24  Bruno Haible  <bruno@clisp.org>
20766
20767         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
20768         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
20769         gl_PREREQ_STRERROR_R invocations from here...
20770         * modules/strerror_r-posix (configure.ac): ... to here.
20771
20772 2011-05-24  Eric Blake  <eblake@redhat.com>
20773
20774         strerror_r: fix missing header
20775         * lib/strerror_r.c: Avoid compiler warning about snprintf.
20776
20777         strerror_r: fix AIX test failures
20778         * lib/strerror_r.c (strerror_r): Convert silent truncation to
20779         ERANGE failure.
20780
20781         strerror_r: fix Solaris test failures
20782         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
20783         failures.
20784         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20785
20786         strerror_r: enforce POSIX recommendations
20787         * lib/strerror_r.c (safe_copy): New helper method.
20788         (strerror_r): Guarantee a non-empty string.
20789         * tests/test-strerror_r.c (main): Enhance tests to incorporate
20790         recent POSIX rulings and to match our strerror guarantees.
20791         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20792
20793 2011-05-24  Jim Meyering  <meyering@redhat.com>
20794
20795         test-perror2.c: avoid warning about unused variable
20796         * tests/test-perror2.c (main): Remove declaration of unused "fp".
20797
20798 2011-05-24  Eric Blake  <eblake@redhat.com>
20799
20800         perror: avoid spurious test failure on HP-UX
20801         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
20802
20803         tests: fix logic bug in init.sh
20804         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
20805         shell.
20806
20807 2011-05-24  Jim Meyering  <meyering@redhat.com>
20808
20809         utimensat: do not reference an out-of-scope buffer
20810         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
20811         declared in an inner scope, yet "times" would be dereferenced outside
20812         the scope in which "ts" was valid.
20813         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
20814         of ts[2] "out/up", so that the use of aliased "times" (via
20815         "times = ts;") does not end up referencing an out-of-scope "ts"
20816
20817         opendir-safer.c: don't clobber errno; don't close negative FD
20818         * lib/opendir-safer.c (opendir_safer):
20819         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
20820         file descriptor, and more importantly, don't clobber the
20821         offending errno value with EINVAL.  Before, upon failure
20822         of dup_safer, we would pass the negative file descriptor to
20823         fdopendir, which would clobber errno.
20824
20825 2011-05-23  Bruno Haible  <bruno@clisp.org>
20826
20827         idcache: Fix module description.
20828         * modules/idcache (Include): Set to "idcache.h".
20829
20830 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20831
20832         gnulib-tool: fix portability problem with MacOS sed
20833         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
20834         before the "}".  Problem reported by Leo in
20835         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
20836         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
20837         sed_extract_condition1, sed_extract_condition2.
20838
20839 2011-05-23  Bruno Haible  <bruno@clisp.org>
20840
20841         hash: Simplify autoconf macro.
20842         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
20843
20844 2011-05-23  Bruno Haible  <bruno@clisp.org>
20845
20846         getugroups: Fix module description.
20847         * modules/getugroups (Include): Set to "getugroups.h".
20848
20849 2011-05-23  Bruno Haible  <bruno@clisp.org>
20850
20851         linkat: Simplify autoconf macro.
20852         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
20853
20854 2011-05-23  Bruno Haible  <bruno@clisp.org>
20855             Eric Blake  <eblake@redhat.com>
20856
20857         linkat, renameat: Update dependencies.
20858         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
20859         * modules/linkat (Depends-on): Likewise. Remove also readlink,
20860         symlinkat.
20861
20862 2011-05-23  Jim Meyering  <meyering@redhat.com>
20863
20864         maint.mk: more tight_scope improvements
20865         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
20866         (_gl_TS_headers): Define only in if-0'd block.
20867         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
20868         sometimes we must *not* use it.  Adjust uses accordingly.
20869         (sc_tight_scope): Use much simpler grep-based test to determine
20870         whether we skip this rule.
20871
20872         maint.mk: generalize/improve the tight-scope rule
20873         * top/maint.mk: Emit a warning when the test is skipped.
20874         (_gl_TS_dir): Add $(srcdir)/ prefix.
20875         (_gl_TS_function_match): Simplify, rather than trying
20876         to enumerate common types.  Otherwise, it would fail to match an
20877         "extern unsigned char const *" declaration in idutils.
20878         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
20879         a way to support use of that type of macro.
20880         (_gl_TS_var_match): Simplify regexp.
20881         (_gl_TS_obj_files): New configurable variable.
20882         (_gl_TS_headers): Likewise.
20883
20884 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20885
20886         verify: fix bug when gnulib <assert.h> is also included
20887         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
20888         is defined, not if _GL_STATIC_ASSERT_H is not defined.
20889         Perhaps there's a better way, but this fixes the immediate problem.
20890         Problem reported by Bruno Haible in
20891         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
20892
20893 2011-05-22  Bruno Haible  <bruno@clisp.org>
20894
20895         xgetcwd: Simplify autoconf macro.
20896         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
20897
20898 2011-05-22  Bruno Haible  <bruno@clisp.org>
20899
20900         New module 'mktime-internal'.
20901         * modules/mktime-internal: New file.
20902         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
20903         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
20904         mktime_internal as a C macro if libc has __mktime_internal.
20905         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
20906         conditions.
20907         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
20908
20909 2011-05-22  Bruno Haible  <bruno@clisp.org>
20910
20911         timegm: Correct mktime replacement statements.
20912         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
20913         defining mktime as a C macro. This completes a 2009-07-28 commit.
20914
20915 2011-05-22  Bruno Haible  <bruno@clisp.org>
20916
20917         timegm: Simplify autoconf macro.
20918         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
20919
20920 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
20921
20922         clock-time: change to LGPLv2+.
20923         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
20924         BSD-like but we have no mark for that; this is good enough for now.
20925
20926 2011-05-21  Bruno Haible  <bruno@clisp.org>
20927
20928         strerror_r: Fix comments.
20929         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
20930
20931 2011-05-21  Bruno Haible  <bruno@clisp.org>
20932
20933         relocatable-prog-wrapper: Fix possible link error.
20934         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
20935         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
20936         (gl_FUNC_SETENV): ... to here.
20937         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
20938         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
20939
20940 2011-05-21  Bruno Haible  <bruno@clisp.org>
20941
20942         relocatable-prog-wrapper: Assume strerror() exists.
20943         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
20944         m4/strerror.m4.
20945         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
20946         * lib/relocwrapper.c: Remove mention of strerror module.
20947         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
20948         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
20949         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
20950         C macro.
20951
20952 2011-05-21  Bruno Haible  <bruno@clisp.org>
20953
20954         select: Simplify replacement idiom.
20955         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
20956         Win32 platforms.
20957         * lib/sys_select.in.h (select): Simplify accordingly.
20958         * modules/select (Depends-on): Likewise.
20959
20960 2011-05-21  Bruno Haible  <bruno@clisp.org>
20961
20962         mkdir-p: Simplify autoconf macro.
20963         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
20964         gl_FUNC_LCHOWN.
20965
20966 2011-05-21  Eric Blake  <eblake@redhat.com>
20967
20968         strerror_r: avoid clobbering strerror on cygwin
20969         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
20970         fall back instead to sys_errlist.
20971         * modules/strerror (configure.ac): Add witness.
20972         * tests/test-strerror_r.c (main): Enhance test.
20973         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20974         * tests/test-perror2.c (main): Free memory before exit.
20975
20976 2011-05-21  Bruno Haible  <bruno@clisp.org>
20977
20978         mkdtemp: Use gnulib naming conventions.
20979         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
20980         * modules/mkdtemp (configure.ac): Update.
20981
20982 2011-05-20  Eric Blake  <eblake@redhat.com>
20983
20984         strerror_r: avoid corrupting errno on Solaris
20985         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
20986         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20987
20988         strerror_r: avoid compiler warning
20989         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
20990
20991         strerror_r: simplify AIX code
20992         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
20993
20994         test-perror: avoid spurious failure on FreeBSD
20995         * modules/perror-tests (Depends-on): Add strerror, now that
20996         strerror_r no longer pulls it in.
20997
20998 2011-05-20  Bruno Haible  <bruno@clisp.org>
20999
21000         strerror_r-posix: Remove unused dependencies.
21001         * modules/strerror_r-posix (Depends-on): Remove strerror.
21002         Reported by Eric Blake.
21003
21004 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21005
21006         intprops: remove assumption about A|B representation
21007         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
21008         is a valid integer if both A and B are.  Although this is true for
21009         all known practical hosts, the C standard doesn't guarantee it,
21010         and the code need not assume it.  Also, this change may work around
21011         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
21012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
21013
21014 2011-05-20  Eric Blake  <eblake@redhat.com>
21015
21016         perror: work around FreeBSD bug
21017         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
21018         is broken.  Move AC_LIBOBJ...
21019         * modules/perror (configure.ac): Here.
21020         * doc/posix-functions/perror.texi (perror): Document this.
21021         * tests/test-perror2.c (main): Enhance test.
21022
21023         test-perror: check for strerror interactions
21024         * tests/macros.h (STREQ): Add macro.
21025         * modules/perror-tests (Files): Add second test.
21026         * tests/test-perror2.c (main): New file.
21027         * doc/posix-functions/perror.texi (perror): Document glibc bug.
21028
21029         test-perror: rewrite to use init script
21030         * modules/perror-tests (Files): Add init.sh.
21031         * tests/test-perror.sh: Use temporary directory.
21032
21033 2011-05-20  Jim Meyering  <meyering@redhat.com>
21034
21035         maint: replace misused "a" with "an"
21036         * doc/intprops.texi: "a integer"
21037         * doc/regex.texi: "a explanation"
21038         * lib/alignof.h: "a object"
21039         * lib/argmatch.h: "a explanation"
21040         * lib/argp-help.c: "a option" and "a OPTION_DOC"
21041         * lib/stdint.in.h: "a integer"
21042         * lib/userspec.c: "a owner"
21043         * doc/gnulib.texi: Fix "a idea", and reword.
21044
21045 2011-05-19  Jim Meyering  <meyering@redhat.com>
21046
21047         maint: correct misuse of "a" and "an"
21048         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
21049         * lib/argp-help.c: "an docum...": s/an/a/
21050         * lib/argp-parse.c: "An vector": s/An/A/
21051         * lib/execute.c: "an native": s/an/a/
21052         * lib/spawn-pipe.c: Likewise.
21053         * lib/gc.h: "an Gc_rc": s/an/a/
21054         * lib/unigbrk.in.h: "an grapheme": s/an/a/
21055         * lib/fts.c: "an stat.st_dev": s/an/a/
21056
21057 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21058
21059         intprops-tests: work around HP-UX 11.23 cc bug with constants
21060         * tests/test-intprops.c (VERIFY): New macro.
21061         (main): Use it, instead of verify, to work around the compiler bug; see
21062         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21063
21064         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
21065         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
21066         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
21067         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
21068         (_GL_REMAINDER_OVERFLOW): Use it.
21069
21070         intprops-tests: revert unsigned part of previous change
21071         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
21072         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
21073         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
21074         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
21075
21076 2011-05-19  Bruno Haible  <bruno@clisp.org>
21077
21078         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
21079         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
21080         strerror_r() returned without filling the buffer.
21081         Reported by Eric Blake.
21082
21083 2011-05-19  Eric Blake  <eblake@redhat.com>
21084
21085         strerror_r: guarantee unchanged errno
21086         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
21087         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
21088         failure.
21089         * tests/test-strerror_r.c (main): Enhance test.
21090
21091 2011-05-19  Bruno Haible  <bruno@clisp.org>
21092
21093         strerror_r: Reorder #if blocks.
21094         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
21095         for consistency with the previous commit.
21096
21097 2011-05-19  Bruno Haible  <bruno@clisp.org>
21098
21099         perror: Avoid clobbering the strerror buffer when possible.
21100         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
21101         * lib/strerror.c: Include it.
21102         * modules/strerror (Files): Add lib/strerror-impl.h.
21103         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
21104         (my_strerror): New function, defined through lib/strerror-impl.h.
21105         (perror): Use it instead of strerror.
21106         * modules/perror (Files): Add lib/strerror-impl.h.
21107         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
21108
21109 2011-05-19  Eric Blake  <eblake@redhat.com>
21110
21111         strerror_r: fix on newer cygwin
21112         * lib/strerror_r.c (strerror_r): Cygwin now has
21113         __xpg_strerror_r, use it.
21114
21115 2011-05-19  Bruno Haible  <bruno@clisp.org>
21116
21117         strerror_r: Avoid clobbering the strerror buffer when possible.
21118         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
21119         (sys_nerr, sys_errlist): New declarations.
21120         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
21121         HP-UX, native Win32, IRIX, and 32-bit Solaris.
21122         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
21123
21124 2011-05-19  Bruno Haible  <bruno@clisp.org>
21125
21126         strerror_r: Fix test failure on mingw.
21127         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
21128         EXTEND_STRERROR_R.
21129         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
21130         macros from errno.in.h instead.
21131
21132 2011-05-19  Eric Blake  <eblake@redhat.com>
21133
21134         strerror: relax test for Solaris
21135         * tests/test-strerror.c (main): Permit Solaris behavior.
21136         * tests/test-strerror_r.c (main): Likewise.
21137
21138         strerror: enforce POSIX ruling on strerror(0)
21139         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
21140         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21141         * lib/strerror_r.c (rpl_strerror_r): Work around it.
21142         * doc/posix-functions/strerror.texi (strerror): Document it.
21143         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
21144         * tests/test-strerror.c (main): Strengthen test.
21145         * tests/test-strerror_r.c (main): Likewise.
21146
21147 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21148
21149         intprop-tests: port to older and more-pedantic compilers
21150         * modules/intprops-tests (Files): Add tests/macros.h.
21151         * tests/test-intprops.c: Include macros.h.
21152         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
21153         it's no longer documented to expand to an integer constant expression.
21154         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
21155         argument is floating point, as it's no longer documented to expand
21156         to an integer constant expression in that case.
21157         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
21158         compiler bugs reported by Bruno Haible.  See
21159         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21160         (U0, U1): New constants, to work around the same bugs.  Also,
21161         in tests, use e.g., "(unsigned int) 39" rather than "39u".
21162
21163         intprops: work around C compiler bugs
21164         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
21165         bug in Sun C 5.11 2010/08/13 and other compilers; see
21166         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21167
21168         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
21169         * doc/intprops.texi (Integer Type Determination): Fix
21170         documentation for TYPE_IS_INTEGER: it returns an constant
21171         expression, not an integer constant expression.  Fix doc for
21172         TYPE_SIGNED: it returns an integer constant expression only if its
21173         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
21174         hardly worth documented that way....)
21175
21176 2011-05-18  Bruno Haible  <bruno@clisp.org>
21177
21178         strerror_r: Avoid clobbering the strerror buffer when possible.
21179         * lib/strerror_r.c (strerror_r): Merge the three implementations.
21180         Handle gnulib defined errno values here. When strerror() returns NULL
21181         or an empty string, return EINVAL.
21182         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
21183         gnulib defined errno values here.
21184         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
21185
21186 2011-05-18  Eric Blake  <eblake@redhat.com>
21187
21188         fnmatch: avoid compiler warning
21189         * lib/fnmatch_loop.c (FCT): Use correct type.
21190         Reported by Matthias Bolte.
21191
21192 2011-05-13  Jim Meyering  <meyering@redhat.com>
21193
21194         maint.mk: three new prohibit_<HDR>_without_use rules
21195         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
21196         (sc_prohibit_stdio-safer_without_use): Likewise.
21197         (sc_prohibit_xfreopen_without_use): Likewise.
21198
21199 2011-05-17  Jim Meyering  <meyering@redhat.com>
21200
21201         announce-gen: fail if the NEWS delta is empty
21202         If there's nothing noteworthy in NEWS, then either you forgot
21203         or you shouldn't be releasing.
21204         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
21205
21206 2011-05-17  Pádraig Brady <P@draigBrady.com>
21207
21208         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
21209         reserved symbols starting with double underscore from the check.
21210
21211 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21212
21213         intprops: add doc
21214         * doc/intprops.texi: New file, documenting intprops.
21215         * doc/gnulib.texi (Particular Modules): Include it.
21216
21217         verify: add doc to gnulib manual and fix example
21218         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
21219         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
21220         (Compile-time Assertions): Fix example so it can't overflow.
21221
21222 2011-05-17  Jim Meyering  <meyering@redhat.com>
21223
21224         warnings.m4: don't usurp save_CPPFLAGS variable name
21225         * m4/warnings.m4: Prefix local temporary variable name with gl_.
21226
21227         doc: fix typo
21228         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
21229
21230 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21231             Bruno Haible  <bruno@clisp.org>
21232
21233         doc: Tweak recent change.
21234         * README (Portability guidelines): Tweak new text.
21235         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
21236         Interix 6.1.
21237
21238 2011-05-16  Eric Blake  <eblake@redhat.com>
21239
21240         inttypes: avoid autoconf warning
21241         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
21242         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21243
21244 2011-05-16  Sam Steingold <sds@gnu.org>
21245         and Eric Blake  <eblake@redhat.com>
21246
21247         vc-list-files: accept multiple directory operands
21248         * build-aux/vc-list-files: Iterate over all remaining operands.
21249
21250 2011-05-16  Bruno Haible  <bruno@clisp.org>
21251
21252         Fix confusion regarding deprecated modules.
21253         * modules/calloc (Status, Notice): Mark module as deprecated, not
21254         obsolete.
21255         * modules/fnmatch-posix (Status, Notice): Likewise.
21256         * modules/getdate (Status, Notice): Likewise.
21257         * modules/getopt (Status, Notice): Likewise.
21258         * modules/malloc (Status, Notice): Likewise.
21259         * modules/pipe (Status, Notice): Likewise.
21260         * modules/realloc (Status, Notice): Likewise.
21261         * modules/rename-dest-slash (Status, Notice): Likewise.
21262         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
21263         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
21264         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
21265         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
21266         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
21267
21268 2011-05-16  Bruno Haible  <bruno@clisp.org>
21269
21270         doc: List the target platforms.
21271         * doc/gnulib-intro.texi (Target Platforms): New section.
21272         * doc/gnulib.texi (Introduction): Update menu.
21273         * README (Portability guidelines): Refer to the new section. Update
21274         statement about oldest supported environment. Remove rationale why
21275         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
21276         unportable C89 function.
21277         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
21278         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
21279
21280 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21281
21282         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
21283
21284 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21285
21286         intprops-tests: new module
21287         * modules/intprops-tests, tests/test-intprops.c: New files.
21288
21289         intprops: add safe, portable integer overflow checking
21290         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
21291         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
21292         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
21293         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
21294         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
21295         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
21296         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
21297         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
21298         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21299         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
21300         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
21301
21302 2011-05-12  James Youngman  <jay@gnu.org>
21303
21304         Add a test for glibc's Bugzilla bug #12378.
21305         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
21306         doesn't allow the literal matching of a lone "[" (which is
21307         required by POSIX).
21308         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
21309
21310 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21311
21312         Sync glibc change fixing Bugzilla bug #12378.
21313         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
21314         beginning and fall back to matching as normal character if the
21315         string ends before the matching ']' is found.  This is what POSIX
21316         requires.
21317
21318 2011-05-13  Eric Blake  <eblake@redhat.com>
21319
21320         getcwd-lgpl: relax test for FreeBSD
21321         * doc/posix-functions/getcwd.texi (getcwd): Document portability
21322         issue.
21323         * tests/test-getcwd-lgpl.c (main): Relax test.
21324         Reported by Matthias Bolte.
21325
21326 2011-05-11  Eric Blake  <eblake@redhat.com>
21327
21328         test-fflush: silence compiler warning
21329         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21330
21331 2011-05-11  Bruno Haible  <bruno@clisp.org>
21332
21333         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21334         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21335         * modules/canonicalize (Depends-on): Add 'nocrash'.
21336         * modules/canonicalize-lgpl (Depends-on): Likewise.
21337         * doc/posix-functions/realpath.texi: Update platforms list.
21338         Reported by Ryan Schmidt <ryandesign@macports.org>.
21339
21340 2011-05-11  Bruno Haible  <bruno@clisp.org>
21341
21342         group-member: Declare function in <unistd.h>.
21343         * lib/unistd.in.h (group_member): New declaration.
21344         * lib/group-member.h: Remove file.
21345         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21346         * tests/test-unistd-c++.cc: Check signature of group_member.
21347         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21348         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21349         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21350         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21351         HAVE_GROUP_MEMBER.
21352         * modules/group-member (Files): Remove lib/group-member.h.
21353         (Depends-on): Add unistd. Specify conditions.
21354         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21355         (Include): Change to <unistd.h>.
21356         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21357         HAVE_GROUP_MEMBER.
21358         * NEWS: Mention the change.
21359         * lib/euidaccess.c: Don't include group-member.h.
21360
21361 2011-05-11  Bruno Haible  <bruno@clisp.org>
21362
21363         group-member: Document module.
21364         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21365         module.
21366
21367 2011-05-11  Bruno Haible  <bruno@clisp.org>
21368
21369         fclose: Fix mistake earlier today.
21370         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21371
21372 2011-05-11  Eric Blake  <eblake@redhat.com>
21373
21374         fclose: preserve fflush errors
21375         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21376         Reported by Jim Meyering.
21377
21378         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21379         * build-aux/bootstrap (check_versions): When no specific version
21380         is required, merely check that the app produces an exit status
21381         that indicates its existence.
21382
21383         maint.mk: drop redundant check
21384         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21385         the same but better.
21386
21387 2011-05-11  Bruno Haible  <bruno@clisp.org>
21388
21389         fclose: Fix possible link error.
21390         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
21391         unregister_shadow_fd. Improve comments.
21392         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
21393         Eric Blake.
21394
21395 2011-05-11  Jim Meyering  <meyering@redhat.com>
21396
21397         maint.mk: improve "can not" detection and generalize rule name
21398         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21399         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21400         Use the same technique as in sc_prohibit_doubled_word, so that
21401         we recognize "can not" also when the words are separated by a newline.
21402         Suggested by Eric Blake.
21403         (perl_filename_lineno_text_): Define.  Factored out of...
21404         (prohibit_doubled_word_): ...here.  Use the new definition.
21405         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21406         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21407         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21408
21409 2011-05-10  Eric Blake  <eblake@redhat.com>
21410
21411         fclose: avoid double close race when possible
21412         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21413         all but WINDOWS_SOCKETS.
21414
21415 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21416
21417         openat: correct new comment
21418         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21419
21420 2011-05-10  Jim Meyering  <meyering@redhat.com>
21421
21422         openat: add comments
21423         * lib/openat-proc.c (openat_proc_name): Add comments,
21424         mostly from Eric Blake.
21425
21426 2011-05-09  Eric Blake  <eblake@redhat.com>
21427
21428         openat: reduce syscalls in first probe of /proc
21429         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21430         be a directory.  Simplify the probe for .. bugs.
21431         * modules/openat (Depends-on): Drop same-inode.
21432         Reported by Bastien ROUCARIES.
21433
21434 2011-05-09  Jim Meyering  <meyering@redhat.com>
21435
21436         maint.mk: change semantics/name of tight_scope variables
21437         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21438         Rename variables to align with semantics that make them more useful.
21439
21440         maint.mk: tweak new rule's name not to impinge
21441         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21442         (sc_tight_scope): Use new rule name rather than $@-0.
21443
21444         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21445         * top/maint.mk (sc_tight_scope): New rule.
21446         (sc_tight_scope-0): New rule, ifdef'd out.
21447         (_gl_TS_dir): Default.
21448         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21449         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21450
21451 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21452
21453         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21454         Haible <bruno@clisp.org>.
21455
21456 2011-05-08  Bruno Haible  <bruno@clisp.org>
21457
21458         Comments.
21459         * m4/isnanf.m4: Add comment.
21460         * m4/isnanl.m4: Likewise.
21461
21462 2011-05-08  Bruno Haible  <bruno@clisp.org>
21463
21464         glob: Remove obsolete macro.
21465         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21466
21467 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21468
21469         intprops: Sun C 5.11 supports __typeof__
21470         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21471         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21472         which is new.
21473         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21474
21475         intprops: switch to usual gnulib indenting and naming
21476         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
21477         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
21478
21479         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
21480
21481 2011-05-08  Jim Meyering  <meyering@redhat.com>
21482
21483         maint.mk: suppress "Entering/Leaving directory" diag in announcement
21484         * top/maint.mk (release-prep): Use make's --no-print-directory
21485         option when generating the announcement.  This eliminates the
21486         pesky "make[2]: Entering/Leaving directory" diagnostics in the
21487         generated announcement template.
21488
21489 2011-05-08  Bruno Haible  <bruno@clisp.org>
21490
21491         tzset: Fix gettimeofday wrapper on Solaris 2.6.
21492         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
21493         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
21494
21495 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21496
21497         ignore-value, verify: Omit include files from lib_SOURCES.
21498         * modules/ignore-value, modules/verify (Makefile.am):
21499         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
21500         that leads Automake to duplicate use of am__objects_... variables
21501         in Makefile.in.  See
21502         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
21503
21504 2011-05-07  Bruno Haible  <bruno@clisp.org>
21505
21506         fclose: Simplify autoconf macro.
21507         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
21508         defined.
21509
21510 2011-05-07  Bruno Haible  <bruno@clisp.org>
21511
21512         canonicalize-lgpl: Fix autoconf macro ordering bug.
21513         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
21514         gl_STDLIB_H_DEFAULTS.
21515
21516 2011-05-06  Eric Blake  <eblake@redhat.com>
21517
21518         maintainer-makefile: make sc_po_check easier to tune
21519         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
21520         to probe for strings, such as an alternate location for gnulib.
21521
21522         fclose: guarantee behavior on seekable stdin
21523         * modules/fclose (Depends-on): Add fflush.
21524         * doc/posix-functions/fclose.texi (fclose): Document this.
21525         * tests/test-fclose.c (main): Make test for this unconditional.
21526
21527 2011-05-06  Bruno Haible  <bruno@clisp.org>
21528
21529         fflush, fpurge: Relicense under LGPLv2+.
21530         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
21531         * modules/fpurge (License): Likewise.
21532         With permission from Eric Blake and Jim Meyering.
21533         Suggested by Eric Blake.
21534
21535 2011-05-06  Karl Berry  <karl@gnu.org>
21536
21537         * MODULES.html.sh (func_all_modules): remove exit.
21538
21539 2011-05-06  Jim Meyering  <meyering@redhat.com>
21540
21541         maint.mk: use info-gnu@ as the default only for a stable release
21542         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
21543         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
21544         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
21545         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
21546
21547 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21548
21549         assert-h: new module, which supports C1X-style static_assert
21550         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
21551         * lib/verify.h: Revamp so that this can be copied into assert.h,
21552         while retaining the ability to use it standalone as before.
21553         Rename private identifiers so as not to encroach on the
21554         standard C namespace, since this is now used by assert.h.
21555         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
21556         the old verify_true.
21557         (_GL_VERIFY_TRUE): New macro, with much of the contents of
21558         the old verify_true.  Use _GL_VERIFY_TYPE.
21559         (_GL_VERIFY): New macro, with much of the contents of the old verify.
21560         (static_assert): New macro, if _GL_STATIC_ASSERT_H
21561         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
21562         defined when this file is copied into the replacement assert.h.
21563         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
21564         and _Static_assert is not built in.
21565         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
21566         defined, and use the new macros mentioned above.
21567         * doc/posix-headers/assert.texi: Document this.
21568
21569 2011-05-05  Bruno Haible  <bruno@clisp.org>
21570
21571         fclose, fflush: Respect rules for use of AC_LIBOBJ.
21572         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
21573         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
21574         gl_REPLACE_FCLOSE here.
21575         * modules/fflush (Depends-on): Remove fclose.
21576         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
21577         combination with module 'fclose'.
21578
21579 2011-05-05  Bruno Haible  <bruno@clisp.org>
21580
21581         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
21582         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
21583         gl_FUNC_FFLUSH.
21584         (gl_FUNC_FFLUSH): Use it.
21585         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
21586         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
21587         gl_REPLACE_FSEEKO here.
21588
21589 2011-05-05  Bruno Haible  <bruno@clisp.org>
21590
21591         tzset: Relicense under LGPL.
21592         * modules/tzset (License): Change to LGPL.
21593         No agreement needed; it's a no-op.
21594
21595         strtoimax, strtoumax: Relicense under LGPL.
21596         * modules/strtoimax (License): Change to LGPL.
21597         * modules/strtoumax (License): Likewise.
21598         With permission from Jim Meyering, Paul Eggert:
21599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
21600         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
21601
21602         getgroups: Relicense under LGPL.
21603         * modules/getgroups (License): Change to LGPL.
21604         With permission from Jim Meyering, Paul Eggert, Eric Blake:
21605         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21606         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21607         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21608
21609         nanosleep: Relicense under LGPL.
21610         * modules/nanosleep (License): Change to LGPL.
21611         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
21612         Haible:
21613         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21614         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21615         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21616         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21617
21618         futimens: Relicense under LGPL.
21619         * modules/futimens (License): Change to LGPL.
21620         With permission from Eric Blake:
21621         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21622
21623         fflush: Relicense under LGPL.
21624         * modules/fflush (License): Change to LGPL.
21625         With permission from Eric Blake, Bruno Haible, Jim Meyering:
21626         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21627         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21628         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
21629
21630         tmpfile: Relicense under LGPL.
21631         * modules/tmpfile (License): Change to LGPL.
21632         With permission from Ben Pfaff:
21633         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21634
21635         isfinite: Relicense under LGPL.
21636         * modules/isfinite (License): Change to LGPL.
21637         With permission from Ben Pfaff, Bruno Haible:
21638         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21639         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
21640
21641         acosl..tanl: Relicense under LGPL.
21642         * modules/acosl (License): Change to LGPL.
21643         * modules/asinl (License): Likewise.
21644         * modules/atanl (License): Likewise.
21645         * modules/cosl (License): Likewise.
21646         * modules/expl (License): Likewise.
21647         * modules/logl (License): Likewise.
21648         * modules/sinl (License): Likewise.
21649         * modules/sqrtl (License): Likewise.
21650         * modules/tanl (License): Likewise.
21651         Source code originally from glibc and Paolo Bonzini. Agreements:
21652         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
21653         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
21654
21655 2011-05-05  Bruno Haible  <bruno@clisp.org>
21656
21657         signal: Define sighandler_t.
21658         * lib/signal.in.h (sighandler_t): New type.
21659         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
21660         whether sighandler_t is defined.
21661         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
21662         * modules/signal (Depends-on): Add extensions.
21663         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
21664         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
21665         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
21666
21667 2011-05-05  Eric Blake  <eblake@redhat.com>
21668
21669         maint: remove useless REPLACE_*_H macros
21670         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
21671         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21672         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21673         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
21674         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21675         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21676         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
21677         * m4/btowc.m4: Update callers.
21678         * m4/dirfd.m4: Likewise.
21679         * m4/duplocale.m4: Likewise.
21680         * m4/fchdir.m4: Likewise.
21681         * m4/fdopendir.m4: Likewise.
21682         * m4/inet_ntop.m4: Likewise.
21683         * m4/inet_pton.m4: Likewise.
21684         * m4/ioctl.m4: Likewise.
21685         * m4/mbrlen.m4: Likewise.
21686         * m4/mbrtowc.m4: Likewise.
21687         * m4/mbsinit.m4: Likewise.
21688         * m4/mbsnrtowcs.m4: Likewise.
21689         * m4/mbsrtowcs.m4: Likewise.
21690         * m4/poll.m4: Likewise.
21691         * m4/setlocale.m4: Likewise.
21692         * m4/wcrtomb.m4: Likewise.
21693         * m4/wcsnrtombs.m4: Likewise.
21694         * m4/wcsrtombs.m4: Likewise.
21695         * m4/wctob.m4: Likewise.
21696         * m4/wcwidth.m4: Likewise.
21697         * modules/posix_spawn: Likewise.
21698         * modules/posix_spawn_file_actions_addclose: Likewise.
21699         * modules/posix_spawn_file_actions_adddup2: Likewise.
21700         * modules/posix_spawn_file_actions_addopen: Likewise.
21701         * modules/posix_spawn_file_actions_destroy: Likewise.
21702         * modules/posix_spawn_file_actions_init: Likewise.
21703         * modules/posix_spawnattr_destroy: Likewise.
21704         * modules/posix_spawnattr_getflags: Likewise.
21705         * modules/posix_spawnattr_getpgroup: Likewise.
21706         * modules/posix_spawnattr_getschedparam: Likewise.
21707         * modules/posix_spawnattr_getschedpolicy: Likewise.
21708         * modules/posix_spawnattr_getsigdefault: Likewise.
21709         * modules/posix_spawnattr_getsigmask: Likewise.
21710         * modules/posix_spawnattr_init: Likewise.
21711         * modules/posix_spawnattr_setflags: Likewise.
21712         * modules/posix_spawnattr_setpgroup: Likewise.
21713         * modules/posix_spawnattr_setschedparam: Likewise.
21714         * modules/posix_spawnattr_setschedpolicy: Likewise.
21715         * modules/posix_spawnattr_setsigdefault: Likewise.
21716         * modules/posix_spawnattr_setsigmask: Likewise.
21717         * modules/posix_spawnp: Likewise.
21718
21719 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
21720
21721         Add option to do-release-commit-and-tag to specify branch.
21722         * build-aux/do-release-commit-and-tag: Add --branch.
21723
21724 2011-05-03  Bruno Haible  <bruno@clisp.org>
21725
21726         Avoid unnecessary compilation units, through conditional dependencies.
21727         * modules/accept (Depends-on): Add conditions to the dependencies.
21728         * modules/acosl (Depends-on): Likewise.
21729         * modules/argz (Depends-on): Likewise.
21730         * modules/asinl (Depends-on): Likewise.
21731         * modules/atanl (Depends-on): Likewise.
21732         * modules/atoll (Depends-on): Likewise.
21733         * modules/bind (Depends-on): Likewise.
21734         * modules/btowc (Depends-on): Likewise.
21735         * modules/canonicalize-lgpl (Depends-on): Likewise.
21736         * modules/ceil (Depends-on): Likewise.
21737         * modules/ceilf (Depends-on): Likewise.
21738         * modules/ceill (Depends-on): Likewise.
21739         * modules/chdir-long (Depends-on): Likewise.
21740         * modules/chown (Depends-on): Likewise.
21741         * modules/close (Depends-on): Likewise.
21742         * modules/connect (Depends-on): Likewise.
21743         * modules/cosl (Depends-on): Likewise.
21744         * modules/dirfd (Depends-on): Likewise.
21745         * modules/dprintf (Depends-on): Likewise.
21746         * modules/dprintf-posix (Depends-on): Likewise.
21747         * modules/error (Depends-on): Likewise.
21748         * modules/euidaccess (Depends-on): Likewise.
21749         * modules/expl (Depends-on): Likewise.
21750         * modules/faccessat (Depends-on): Likewise.
21751         * modules/fchdir (Depends-on): Likewise.
21752         * modules/fclose (Depends-on): Likewise.
21753         * modules/fcntl (Depends-on): Likewise.
21754         * modules/fdopendir (Depends-on): Likewise.
21755         * modules/fflush (Depends-on): Likewise.
21756         * modules/floor (Depends-on): Likewise.
21757         * modules/floorf (Depends-on): Likewise.
21758         * modules/floorl (Depends-on): Likewise.
21759         * modules/fnmatch (Depends-on): Likewise.
21760         * modules/fopen (Depends-on): Likewise.
21761         * modules/fprintf-posix (Depends-on): Likewise.
21762         * modules/frexp (Depends-on): Likewise.
21763         * modules/frexp-nolibm (Depends-on): Likewise.
21764         * modules/frexpl (Depends-on): Likewise.
21765         * modules/frexpl-nolibm (Depends-on): Likewise.
21766         * modules/fseek (Depends-on): Likewise.
21767         * modules/fsusage (Depends-on): Likewise.
21768         * modules/ftell (Depends-on): Likewise.
21769         * modules/ftello (Depends-on): Likewise.
21770         * modules/futimens (Depends-on): Likewise.
21771         * modules/getcwd (Depends-on): Likewise.
21772         * modules/getcwd-lgpl (Depends-on): Likewise.
21773         * modules/getdelim (Depends-on): Likewise.
21774         * modules/getdomainname (Depends-on): Likewise.
21775         * modules/getgroups (Depends-on): Likewise.
21776         * modules/gethostname (Depends-on): Likewise.
21777         * modules/getline (Depends-on): Likewise.
21778         * modules/getlogin_r (Depends-on): Likewise.
21779         * modules/getopt-posix (Depends-on): Likewise.
21780         * modules/getpeername (Depends-on): Likewise.
21781         * modules/getsockname (Depends-on): Likewise.
21782         * modules/getsockopt (Depends-on): Likewise.
21783         * modules/getsubopt (Depends-on): Likewise.
21784         * modules/getusershell (Depends-on): Likewise.
21785         * modules/glob (Depends-on): Likewise.
21786         * modules/grantpt (Depends-on): Likewise.
21787         * modules/iconv_open (Depends-on): Likewise.
21788         * modules/iconv_open-utf (Depends-on): Likewise.
21789         * modules/inet_ntop (Depends-on): Likewise.
21790         * modules/inet_pton (Depends-on): Likewise.
21791         * modules/ioctl (Depends-on): Likewise.
21792         * modules/isapipe (Depends-on): Likewise.
21793         * modules/isfinite (Depends-on): Likewise.
21794         * modules/isinf (Depends-on): Likewise.
21795         * modules/lchown (Depends-on): Likewise.
21796         * modules/ldexpl (Depends-on): Likewise.
21797         * modules/link (Depends-on): Likewise.
21798         * modules/linkat (Depends-on): Likewise.
21799         * modules/listen (Depends-on): Likewise.
21800         * modules/logl (Depends-on): Likewise.
21801         * modules/lstat (Depends-on): Likewise.
21802         * modules/mbrlen (Depends-on): Likewise.
21803         * modules/mbrtowc (Depends-on): Likewise.
21804         * modules/mbsinit (Depends-on): Likewise.
21805         * modules/mbsnrtowcs (Depends-on): Likewise.
21806         * modules/mbsrtowcs (Depends-on): Likewise.
21807         * modules/mbtowc (Depends-on): Likewise.
21808         * modules/memcmp (Depends-on): Likewise.
21809         * modules/mkdir (Depends-on): Likewise.
21810         * modules/mkdtemp (Depends-on): Likewise.
21811         * modules/mkfifo (Depends-on): Likewise.
21812         * modules/mkfifoat (Depends-on): Likewise.
21813         * modules/mknod (Depends-on): Likewise.
21814         * modules/mkostemp (Depends-on): Likewise.
21815         * modules/mkostemps (Depends-on): Likewise.
21816         * modules/mkstemp (Depends-on): Likewise.
21817         * modules/mkstemps (Depends-on): Likewise.
21818         * modules/mktime (Depends-on): Likewise.
21819         * modules/nanosleep (Depends-on): Likewise.
21820         * modules/open (Depends-on): Likewise.
21821         * modules/openat (Depends-on): Likewise.
21822         * modules/perror (Depends-on): Likewise.
21823         * modules/poll (Depends-on): Likewise.
21824         * modules/popen (Depends-on): Likewise.
21825         * modules/posix_spawn (Depends-on): Likewise.
21826         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
21827         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21828         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21829         * modules/posix_spawnp (Depends-on): Likewise.
21830         * modules/pread (Depends-on): Likewise.
21831         * modules/printf-posix (Depends-on): Likewise.
21832         * modules/ptsname (Depends-on): Likewise.
21833         * modules/putenv (Depends-on): Likewise.
21834         * modules/pwrite (Depends-on): Likewise.
21835         * modules/readline (Depends-on): Likewise.
21836         * modules/readlink (Depends-on): Likewise.
21837         * modules/readlinkat (Depends-on): Likewise.
21838         * modules/recv (Depends-on): Likewise.
21839         * modules/recvfrom (Depends-on): Likewise.
21840         * modules/regex (Depends-on): Likewise.
21841         * modules/remove (Depends-on): Likewise.
21842         * modules/rename (Depends-on): Likewise.
21843         * modules/renameat (Depends-on): Likewise.
21844         * modules/rmdir (Depends-on): Likewise.
21845         * modules/round (Depends-on): Likewise.
21846         * modules/roundf (Depends-on): Likewise.
21847         * modules/roundl (Depends-on): Likewise.
21848         * modules/rpmatch (Depends-on): Likewise.
21849         * modules/select (Depends-on): Likewise.
21850         * modules/send (Depends-on): Likewise.
21851         * modules/sendto (Depends-on): Likewise.
21852         * modules/setenv (Depends-on): Likewise.
21853         * modules/setlocale (Depends-on): Likewise.
21854         * modules/setsockopt (Depends-on): Likewise.
21855         * modules/shutdown (Depends-on): Likewise.
21856         * modules/sigaction (Depends-on): Likewise.
21857         * modules/signbit (Depends-on): Likewise.
21858         * modules/sigprocmask (Depends-on): Likewise.
21859         * modules/sinl (Depends-on): Likewise.
21860         * modules/sleep (Depends-on): Likewise.
21861         * modules/snprintf (Depends-on): Likewise.
21862         * modules/snprintf-posix (Depends-on): Likewise.
21863         * modules/socket (Depends-on): Likewise.
21864         * modules/sprintf-posix (Depends-on): Likewise.
21865         * modules/sqrtl (Depends-on): Likewise.
21866         * modules/stat (Depends-on): Likewise.
21867         * modules/strchrnul (Depends-on): Likewise.
21868         * modules/strdup-posix (Depends-on): Likewise.
21869         * modules/strerror (Depends-on): Likewise.
21870         * modules/strerror_r-posix (Depends-on): Likewise.
21871         * modules/strndup (Depends-on): Likewise.
21872         * modules/strnlen (Depends-on): Likewise.
21873         * modules/strptime (Depends-on): Likewise.
21874         * modules/strsep (Depends-on): Likewise.
21875         * modules/strsignal (Depends-on): Likewise.
21876         * modules/strstr-simple (Depends-on): Likewise.
21877         * modules/strtod (Depends-on): Likewise.
21878         * modules/strtoimax (Depends-on): Likewise.
21879         * modules/strtok_r (Depends-on): Likewise.
21880         * modules/strtoumax (Depends-on): Likewise.
21881         * modules/symlink (Depends-on): Likewise.
21882         * modules/symlinkat (Depends-on): Likewise.
21883         * modules/tanl (Depends-on): Likewise.
21884         * modules/tcgetsid (Depends-on): Likewise.
21885         * modules/tmpfile (Depends-on): Likewise.
21886         * modules/trunc (Depends-on): Likewise.
21887         * modules/truncf (Depends-on): Likewise.
21888         * modules/truncl (Depends-on): Likewise.
21889         * modules/uname (Depends-on): Likewise.
21890         * modules/unlink (Depends-on): Likewise.
21891         * modules/unlockpt (Depends-on): Likewise.
21892         * modules/unsetenv (Depends-on): Likewise.
21893         * modules/usleep (Depends-on): Likewise.
21894         * modules/utimensat (Depends-on): Likewise.
21895         * modules/vasprintf (Depends-on): Likewise.
21896         * modules/vdprintf (Depends-on): Likewise.
21897         * modules/vdprintf-posix (Depends-on): Likewise.
21898         * modules/vfprintf-posix (Depends-on): Likewise.
21899         * modules/vprintf-posix (Depends-on): Likewise.
21900         * modules/vsnprintf (Depends-on): Likewise.
21901         * modules/vsnprintf-posix (Depends-on): Likewise.
21902         * modules/vsprintf-posix (Depends-on): Likewise.
21903         * modules/wcrtomb (Depends-on): Likewise.
21904         * modules/wcscasecmp (Depends-on): Likewise.
21905         * modules/wcscspn (Depends-on): Likewise.
21906         * modules/wcsdup (Depends-on): Likewise.
21907         * modules/wcsncasecmp (Depends-on): Likewise.
21908         * modules/wcsnrtombs (Depends-on): Likewise.
21909         * modules/wcspbrk (Depends-on): Likewise.
21910         * modules/wcsrtombs (Depends-on): Likewise.
21911         * modules/wcsspn (Depends-on): Likewise.
21912         * modules/wcsstr (Depends-on): Likewise.
21913         * modules/wcstok (Depends-on): Likewise.
21914         * modules/wcswidth (Depends-on): Likewise.
21915         * modules/wctob (Depends-on): Likewise.
21916         * modules/wctomb (Depends-on): Likewise.
21917         * modules/wctype (Depends-on): Likewise.
21918         * modules/wcwidth (Depends-on): Likewise.
21919         * modules/write (Depends-on): Likewise.
21920
21921 2011-05-03  Bruno Haible  <bruno@clisp.org>
21922
21923         Support for conditional dependencies.
21924         * doc/gnulib.texi (Module description): Document the syntax of
21925         conditional dependencies.
21926         * gnulib-tool: New option --conditional-dependencies.
21927         (func_usage): Document it.
21928         (cond_dependencies): New variable.
21929         (func_get_automake_snippet_conditional,
21930         func_get_automake_snippet_unconditional): New functions, extracted from
21931         func_get_automake_snippet.
21932         (func_get_automake_snippet): Use them.
21933         (sed_first_32_chars): New variable.
21934         (func_module_shellfunc_name): New function.
21935         (func_module_shellvar_name): New function.
21936         (func_module_conditional_name): New function.
21937         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
21938         func_cond_module_condition): New functions.
21939         (func_modules_transitive_closure): Add support for conditional
21940         dependencies.
21941         (func_emit_lib_Makefile_am): For a conditional module, enclose the
21942         conditional automake snippet in an automake conditional.
21943         (func_emit_autoconf_snippets): Emit shell functions that contain the
21944         code for conditional modules.
21945         (func_import, func_create_testdir): Update specification.
21946
21947 2011-05-03  Eric Blake  <eblake@redhat.com>
21948
21949         test-getaddrinfo: report error information
21950         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
21951
21952 2011-05-03  Jim Meyering  <meyering@redhat.com>
21953
21954         bootstrap: avoid build failure when $GZIP is set
21955         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
21956         program name.  If defined at all, it is supposed to list gzip options.
21957         Reported by Alan Curry in http://debbugs.gnu.org/8609
21958
21959 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
21960
21961         readme-release: new module with release instructions
21962         * modules/readme-release: New module.
21963         * top/README-release: New file, from coreutils, grep, diffutils.
21964         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21965
21966 2011-05-02  Eric Blake  <eblake@redhat.com>
21967
21968         fflush: also replace fclose when fixing fflush
21969         * modules/fflush (Depends-on): Add fclose.
21970         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
21971         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
21972         memstreams with no backing fd.
21973         * doc/posix-functions/fclose.texi (fclose): Document the use of
21974         fflush module to fix the bug.
21975         * tests/test-fclose.c (main): Relax test when fclose is used in
21976         isolation.
21977
21978         fclose: add some tests
21979         * modules/fclose-tests: New test module.
21980         * tests/test-fclose.c: New file.
21981         * doc/posix-functions/fclose.texi (fclose): Document the bug.
21982
21983         fclose: reduced dependencies
21984         * modules/fclose (Depends-on): Switch from fflush/fseeko to
21985         simpler lseek.
21986         * lib/fclose.c (rpl_fclose): Likewise.
21987         Reported by Simon Josefsson.
21988
21989         exit: drop remaining clients
21990         * modules/argmatch (Depends-on): Replace exit with stdlib.
21991         * modules/copy-file (Depends-on): Likewise.
21992         * modules/execute (Depends-on): Likewise.
21993         * modules/exitfail (Depends-on): Likewise.
21994         * modules/obstack (Depends-on): Likewise.
21995         * modules/pagealign_alloc (Depends-on): Likewise.
21996         * modules/pipe-filter-gi (Depends-on): Likewise.
21997         * modules/pipe-filter-ii (Depends-on): Likewise.
21998         * modules/savewd (Depends-on): Likewise.
21999         * modules/spawn-pipe (Depends-on): Likewise.
22000         * modules/wait-process (Depends-on): Likewise.
22001         * modules/xsetenv (Depends-on): Likewise.
22002         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
22003         * modules/git-merge-changelog (Depends-on): Likewise.
22004         * modules/long-options (Depends-on): Likewise.
22005         * modules/pt_chown (Depends-on): Likewise.
22006         * modules/sysexits (Depends-on): Likewise.
22007
22008         freading: relax license from LGPLv3+ to LGPLv2+
22009         * modules/freading (License): Relax LGPL version.
22010
22011 2011-05-02  Bruno Haible  <bruno@clisp.org>
22012
22013         fchdir: Remove unused dependencies.
22014         * modules/fchdir (Depends-on): Remove include_next.
22015
22016 2011-05-02  Bruno Haible  <bruno@clisp.org>
22017
22018         gnulib-tool: Refactor.
22019         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
22020         from func_emit_autoconf_snippets.
22021         (func_emit_autoconf_snippets): Use it.
22022
22023 2011-05-02  Simon Josefsson  <simon@josefsson.org>
22024
22025         * NEWS: Document removal of 'exit'.
22026         * modules/exit: Remove file.
22027
22028 2011-05-01  Bruno Haible  <bruno@clisp.org>
22029
22030         Update DEPENDENCIES.
22031         * DEPENDENCIES (gettext): Recommend the newest release.
22032         Reported by Simon Josefsson.
22033
22034 2011-05-01  Bruno Haible  <bruno@clisp.org>
22035
22036         gnulib-tool: Reduce code duplication.
22037         * gnulib-tool (func_emit_autoconf_snippets): New function.
22038         (func_import, func_create_testdir): Use it.
22039
22040 2011-04-30  Eric Blake  <eblake@redhat.com>
22041
22042         fclose: don't fail on non-seekable input stream
22043         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
22044         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
22045         since fflush is allowed to fail in that case.
22046
22047 2011-04-30  Bruno Haible  <bruno@clisp.org>
22048
22049         dup3: cleanup
22050         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
22051
22052 2011-04-30  Bruno Haible  <bruno@clisp.org>
22053
22054         netdb: Make it work in C++ mode.
22055         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
22056         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
22057         module.
22058         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
22059         gl_MODULE_INDICATOR_FOR_TESTS.
22060         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
22061         * modules/netdb-c++-tests: New file.
22062         * tests/test-netdb-c++.cc: New file.
22063
22064 2011-04-30  Bruno Haible  <bruno@clisp.org>
22065
22066         New modules 'vfscanf', 'vscanf'.
22067         * modules/vfscanf: New file.
22068         * modules/vscanf: New file.
22069         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
22070         here.
22071         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
22072         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
22073
22074 2011-04-30  Bruno Haible  <bruno@clisp.org>
22075
22076         passfd: Add comments.
22077         * lib/passfd.c: Add comments about platforms.
22078
22079 2011-04-30  Bruno Haible  <bruno@clisp.org>
22080
22081         sys_uio: Make <sys/uio.h> self-contained.
22082         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
22083         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
22084
22085 2011-04-30  Bruno Haible  <bruno@clisp.org>
22086
22087         sys_socket: Ensure 'struct iovec' definition.
22088         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
22089         <sys/socket.h>.
22090         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
22091
22092 2011-04-30  Bruno Haible  <bruno@clisp.org>
22093
22094         sys_uio: Protect definition of 'struct iovec'.
22095         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
22096         it as a C struct.
22097
22098 2011-04-30  Bruno Haible  <bruno@clisp.org>
22099
22100         manywarnings: fix indentation
22101         * m4/manywarnings.m4: Indent by 2 spaces consistently.
22102
22103 2011-04-30  Pádraig Brady <P@draigBrady.com>
22104
22105         manywarnings: add -Wno-missing-field-initializers if needed.
22106         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
22107         option if it's needed to allow initialization with { 0, }
22108
22109 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
22110
22111         announce-gen: cosmetic improvement
22112         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
22113
22114 2011-04-29  Jim Meyering  <meyering@redhat.com>
22115
22116         vc-list-files: indent with spaces, not TABs
22117         * build-aux/vc-list-files: Convert leading TABs to spaces,
22118         to match the style of most other files in gnulib.
22119
22120         announce-gen: indent with spaces, not TABs
22121         * build-aux/announce-gen: Convert all TABs to spaces, to match
22122         the style of most other files in gnulib.
22123
22124 2011-04-29  Eric Blake  <eblake@redhat.com>
22125
22126         quotearg: avoid uninitialized variable use
22127         * lib/quotearg.c (quoting_options_from_style): Initialize
22128         remaining fields, and ensure that custom styles are only used via
22129         quoting_options rather than quoting_style.
22130
22131 2011-04-29  Jim Meyering  <meyering@redhat.com>
22132
22133         maint.mk: remove unused VC-tag variable
22134         * top/maint.mk (VC-tag): Remove unused variable.
22135
22136 2011-04-29  Bruno Haible  <bruno@clisp.org>
22137
22138         netdb: fix gai_strerror replacements
22139         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
22140         * modules/netdb: Substitute it.
22141
22142 2011-04-29  Jim Meyering  <meyering@redhat.com>
22143
22144         test-getcwd.c: avoid new set-but-not-used warning
22145         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
22146         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
22147         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
22148         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
22149
22150         test-hash.c: avoid a new shadowing warning
22151         * tests/test-hash.c (main): Don't shadow "dup".
22152
22153 2011-04-28  Eric Blake  <eblake@redhat.com>
22154
22155         getaddrinfo: fix gai_strerror signature
22156         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
22157         and work around mingw with UNICODE defined.
22158         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
22159         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
22160         * modules/netdb (Makefile.am): Substitute it.
22161         * lib/netdb.in.h (gai_strerror): Declare replacement.
22162         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
22163         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
22164         the fix.
22165
22166         getsockopt: avoid compiler warning
22167         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
22168         Reported by Matthias Bolte.
22169
22170         tests: drop unused link dependency
22171         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
22172         * modules/dirent-safer-tests (Makefile.am): Likewise.
22173         * modules/fdopendir-tests (Makefile.am): Likewise.
22174         * modules/mkfifoat-tests (Makefile.am): Likewise.
22175         * modules/openat-safer-tests (Makefile.am): Likewise.
22176         * modules/openat-tests (Makefile.am): Likewise.
22177         * modules/readlinkat-tests (Makefile.am): Likewise.
22178         * modules/symlinkat-tests (Makefile.am): Likewise.
22179         * modules/linkat-tests (Makefile.am): Likewise.
22180         (Depends-on): Switch to filenamecat-lgpl.
22181         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
22182         LIBINTL.
22183         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
22184         * tests/test-linkat.c (main): Don't require xalloc.
22185
22186         hash, mgetgroups: drop xalloc dependency
22187         * lib/hash.c (includes): Adjust includes.
22188         * lib/mgetgroups.c (includes): Likewise.
22189         (xgetgroups): Move...
22190         * lib/xgetgroups.c: ...to new file.
22191         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
22192         * modules/xgetgroups: New file, split from...
22193         * modules/mgetgroups: ...here.
22194         (Depends-on): Add xalloc-oversized.
22195         * modules/hash (Depends-on): Likewise.
22196         * modules/hash-tests (Depends-on): Drop xalloc.
22197         (test_hash_LDADD): Drop unused library.
22198         * tests/test-hash.c (main): Break xalloc dependency.
22199         (includes): Drop unused include.
22200
22201         xalloc-oversized: new module
22202         * modules/xalloc-oversized: New module.
22203         * modules/xalloc (Depends-on): Add it.
22204         * lib/xalloc.h (xalloc_oversized): Move...
22205         * lib/xalloc-oversized.h: ...into new file.
22206
22207         utimecmp: drop dependency on xmalloc
22208         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
22209         due to memory pressure.
22210         * modules/utimecmp (Depends-on): Drop xalloc.
22211
22212 2011-04-27  Eric Blake  <eblake@redhat.com>
22213
22214         getcwd: fix mingw bugs
22215         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
22216         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
22217         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
22218
22219 2011-04-27  Bruno Haible  <bruno@clisp.org>
22220
22221         mkstemps: Ensure declaration on MacOS X 10.5.
22222         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
22223         * doc/glibc-functions/mkstemps.texi: Document header file problem on
22224         MacOS X.
22225
22226 2011-04-27  Bruno Haible  <bruno@clisp.org>
22227
22228         mkstemp: More documentation.
22229         * doc/posix-functions/mkstemp.texi: Document header file problem on
22230         MacOS X.
22231
22232 2011-04-27  Bruno Haible  <bruno@clisp.org>
22233
22234         mkstemp: Tweak configure message when cross-compiling.
22235         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
22236         result as a guess.
22237
22238 2011-04-27  Bruno Haible  <bruno@clisp.org>
22239
22240         clean-temp: Clarify what it does.
22241         * lib/clean-temp.h: Add more comments.
22242         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
22243         module.
22244         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
22245         * doc/glibc-functions/mkstemps.texi: Likewise.
22246         * doc/glibc-functions/mkostemps.texi: Likewise.
22247
22248 2011-04-27  Eric Blake  <eblake@redhat.com>
22249
22250         fchdir: avoid extra chdir and fix test
22251         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
22252         getcwd-lgpl.
22253         * lib/fchdir.c (get_name): Any absolute name will do; it does not
22254         have to be canonical.
22255         (canonicalize_file_name): Drop unused macro.
22256         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
22257
22258         filenamecat-lgpl: fix licence
22259         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
22260         when it was first created.
22261
22262         linkat, renameat: add missing dependency
22263         * modules/linkat (Depends-on): Require getcwd-lgpl.
22264         * modules/renameat (Depends-on): Likewise.
22265
22266         tests: reduce dependencies
22267         * tests/test-linkat.c (main): Use lighter-weight getcwd.
22268         * tests/test-renameat.c (main): Likewise.
22269         * modules/linkat-tests (Depends-on): Relax dependency.
22270         * modules/renameat-tests (Depends-on): Likewise.
22271         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
22272         dependency explicit.
22273
22274         save-cwd: reduce default dependency
22275         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
22276         * lib/save-cwd.c: Update comments.
22277         * NEWS: Document the semantic change.
22278
22279         getcwd: enhance tests
22280         * tests/test-getcwd-lgpl.c: New file, taken from...
22281         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
22282         repeat long path stress tests from m4 probe.
22283         * modules/getcwd-lgpl-tests: New module.
22284         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
22285         * m4/getcwd-abort-bug.m4: Update comment.
22286         * m4/getcwd-path-max.m4: Likewise.
22287
22288         getcwd-lgpl: new module
22289         * modules/getcwd-lgpl: New module.
22290         * lib/getcwd-lgpl.c: New file.
22291         * doc/posix-functions/getcwd.texi (getcwd): Document it.
22292         * MODULES.html.sh (lacking POSIX:2008): Likewise.
22293         * modules/getcwd (configure.ac): Set C witness.
22294         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
22295
22296         getcwd: tweak comments
22297         * m4/getcwd-abort-bug.m4: Fix comments.
22298         * m4/getcwd-path-max.m4: Likewise.
22299         * m4/getcwd.m4: Likewise.
22300
22301 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22302         and Eric Blake  <eblake@redhat.com>
22303
22304         mkstemp: replace if system version uses wrong permissions
22305         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
22306         read/write mode bits set in file created by mkstemp.
22307         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
22308
22309 2011-04-27  Eric Blake  <eblake@redhat.com>
22310
22311         passfd: avoid compiler warning
22312         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
22313         Reported by Laine Stump.
22314
22315 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
22316
22317         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
22318         required by the NetBSD (and perhaps other 4.4BSD derived) join.
22319
22320 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22321         and Eric Blake  <eblake@redhat.com>
22322
22323         mkstemp: mention clean-temp module
22324         * lib/mkstemp.c: Add comment.
22325         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22326
22327 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22328
22329         inttypes: also provide default values for 32-bit tests
22330         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22331         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22332
22333 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22334
22335         strtoumax: remove dependency on strtoimax
22336         This is like the strtoull change of yesterday.
22337         * modules/strtoumax (Files): Add lib/strtoimax.c.
22338         (Depends-on): Remove strtoimax and add verify.
22339
22340         inttypes-incomplete: new module
22341         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22342         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22343         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22344         of gl_INTTYPES_H.
22345         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22346         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22347         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22348         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22349         * modules/strtoumax, modules/xstrtol (Depends-on):
22350         Depend on inttypes-incomplete, not inttypes.
22351         * modules/inttypes-incomplete: New module, containing the contents
22352         of the old modules/inttypes module, except that the Files: section
22353         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22354         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22355         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22356         (Depends-on): Depend only on inttypes-incomplete.
22357         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22358
22359         inttypes: omit now-redundant strtoimax and strtoumax work
22360         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22361         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22362
22363         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22364         This supports apps that need pointers to strtoimax and strtoumax,
22365         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22366         nonexistent functions.  See
22367         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22368         et seq.
22369         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22370         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22371         a macro.
22372         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22373
22374 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22375
22376         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22377
22378 2011-04-25  Bruno Haible  <bruno@clisp.org>
22379
22380         strtol, strtoul: Mark modules as obsolete.
22381         * modules/strtol (Status, Notice): New sections.
22382         * modules/strtoul (Status, Notice): New sections.
22383
22384 2011-04-25  Bruno Haible  <bruno@clisp.org>
22385
22386         strtod: Remove check for strtod, unless supporting old platforms.
22387         * modules/strtod-obsolete: New file.
22388         * m4/strtod-obsolete.m4: New file.
22389         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
22390         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
22391         * modules/strtod (Depends-on): Add strtod-obsolete.
22392         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
22393
22394 2011-04-25  Bruno Haible  <bruno@clisp.org>
22395
22396         strcase: Make module obsolete.
22397         * modules/strcase (Status, Notice): New sections.
22398
22399 2011-04-25  Bruno Haible  <bruno@clisp.org>
22400
22401         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22402         * modules/dup2-obsolete: New file.
22403         * m4/dup2-obsolete.m4: New file.
22404         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22405         gl_FUNC_DUP2_OBSOLETE is not also defined.
22406         * modules/dup2 (Depends-on): Add dup2-obsolete.
22407         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22408
22409 2011-04-25  Bruno Haible  <bruno@clisp.org>
22410
22411         strnlen: Avoid memchr related link error on old obsolete platforms.
22412         * modules/memchr-obsolete: New file.
22413         * m4/memchr-obsolete.m4: New file.
22414         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22415         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22416         * modules/memchr (Depends-on): Add memchr-obsolete.
22417         * modules/strnlen (Depends-on): Likewise.
22418         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22419
22420 2011-04-25  Jim Meyering  <meyering@redhat.com>
22421
22422         maint.mk: makefile_at_at_check extend and clean up
22423         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22424         in addition to */Makefile.am.
22425         Exempt legitimate uses of @VAR@ notation, e.g.,
22426         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22427         Remove obsolete coreutils-specific comment.
22428         Prompted by discussion here:
22429         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22430
22431 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22432
22433         strtoul: remove dependency on strtol
22434         This is so that 'configure' need not check for strtol merely because
22435         the application needs strtoul.
22436         * modules/strtoul (Files): Add lib/strtol.c.
22437         (Depends-on): Remove strtol.
22438
22439         strtoull: remove dependency on strtoul
22440         This is like the strtoll change.
22441         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22442         (Depends-on): Remove strtoul.
22443
22444         strtoll: remove dependency on strtol
22445         This is so that 'configure' need not check for strtol merely because
22446         the application needs strtoll.
22447         * modules/strtoll (Files): Add lib/strtol.c.
22448         (Depends-on): Remove strtol.
22449
22450 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22451
22452         inttypes: Move some configure check to module 'imaxdiv'.
22453         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22454         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22455         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22456
22457 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22458
22459         inttypes: Move some configure check to module 'imaxabs'.
22460         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22461         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22462         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22463
22464 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22465
22466         inttypes: Remove configure tests that are not needed since 2009-12-31.
22467         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22468         gl_cv_header_working_inttypes_h.
22469
22470 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22471
22472         * modules/strnlen (Depends-on): Remove memchr.
22473         The strnlen implementation doesn't need the memchr module's fixes; see
22474         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22475
22476         strtol: remove dependency on wchar
22477         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22478         * modules/strtol (Depends-on): Remove wchar.
22479
22480 2011-04-21  Eric Blake  <eblake@redhat.com>
22481
22482         passfd: fix test regression on Linux
22483         * modules/passfd-tests (configure.ac): Correct socketpair check.
22484
22485         passfd: speed up configure and drop unused code
22486         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
22487         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
22488         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
22489         Instead of probing at configure for unix_scm_rights_bsd44_way,
22490         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
22491         check to a struct member probe.
22492         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
22493         (sendfd, recvfd): Update preprocessor checks.
22494         * modules/passfd (Files): Reflect rename, and drop unused file.
22495         (Depends-on): Drop unused dependency.
22496
22497         passfd: allow compilation on mingw
22498         * modules/sys_socket (Depends-on): Add sys_uio.
22499         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
22500         iovec and a minimal struct msghdr.
22501         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
22502         * tests/test-sys_socket.c (main): Enhance test.
22503         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
22504         guaranteed to provide what we need.
22505         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
22506         * modules/passfd-tests (Depends-on): Add sys_wait.
22507         * tests/test-passfd.c (main): Skip test on mingw, for now.
22508         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
22509         partial 'struct msghdr' implementation.
22510
22511         sys_uio: new module
22512         * modules/sys_uio: New module.
22513         * modules/sys_uio-tests: Likewise.
22514         * lib/sys_uio.in.h: New file.
22515         * m4/sys_uio_h.m4: Likewise.
22516         * tests/test-sys_uio.c: Likewise.
22517         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
22518         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
22519
22520 2011-04-20  Jim Meyering  <meyering@redhat.com>
22521
22522         useless-if-before-free: avoid false-positive
22523         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
22524         disjunct so that it too requires a terminating ";".  Without that,
22525         this script would identify as useless one statement from gcc that
22526         was not:
22527           if (aligned_ptr)
22528             free (((void **) aligned_ptr) [-1]);
22529
22530 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
22531
22532         doc: update users.txt.
22533         * users.txt: Add barcode.
22534
22535 2011-04-19  Bruno Haible  <bruno@clisp.org>
22536
22537         ioctl: Remove link dependency on native Windows.
22538         * lib/fd-hook.h: Renamed from lib/close-hook.h.
22539         (gl_close_fn, gl_ioctl_fn): New types.
22540         (struct fd_hook): Renamed from struct close_hook. Change type of
22541         private_close_fn field. Add private_ioctl_fn field.
22542         (close_hook_fn): Add parameter for primary close method.
22543         (execute_close_hooks, execute_all_close_hooks): Likewise.
22544         (ioctl_hook_fn): New type.
22545         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
22546         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22547         argument.
22548         (unregister_fd_hook): Renamed from unregister_close_hook.
22549         * lib/fd-hook.c: Renamed from lib/close-hook.c.
22550         Don't include <unistd.h>.
22551         (close): Remove undef.
22552         (anchor): Update.
22553         (execute_close_hooks): Add argument for primary close method.
22554         (execute_all_close_hooks): Likewise.
22555         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
22556         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22557         argument. Allow each argument to be NULL.
22558         (unregister_fd_hook): Renamed from unregister_close_hook.
22559         * lib/close.c (rpl_close): Pass 'close' function pointer to
22560         execute_all_close_hooks.
22561         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
22562         (primary_ioctl): New function.
22563         (ioctl): Don't call ioctlsocket here. Instead, call
22564         execute_all_ioctl_hooks.
22565         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
22566         close method.
22567         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
22568         (fd_sockets_hook): Renamed from close_sockets_hook.
22569         (gl_sockets_startup, gl_sockets_cleanup): Update.
22570         * modules/fd-hook: Renamed from modules/close-hook. Update.
22571         * modules/close (Depends-on): Add fd-hook, remove close-hook.
22572         * modules/sockets (Depends-on): Likewise.
22573         * modules/ioctl (Depends-on): Add fd-hook.
22574         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
22575         GNULIB_SOCKET.
22576
22577 2011-04-19  Bruno Haible  <bruno@clisp.org>
22578
22579         Move the support of O_NONBLOCK in open() to the 'open' module.
22580         * modules/nonblocking (Depends-on): Remove 'open'.
22581         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
22582         gl_cv_have_open_O_NONBLOCK.
22583         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
22584         O_NONBLOCK support.
22585         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
22586
22587 2011-04-17  Bruno Haible  <bruno@clisp.org>
22588
22589         pipe2: Simplify code.
22590         * lib/pipe2.c (pipe2): Reduce code duplication.
22591
22592 2011-04-17  Bruno Haible  <bruno@clisp.org>
22593
22594         nonblocking: Add comment.
22595         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
22596
22597 2011-04-17  Bruno Haible  <bruno@clisp.org>
22598
22599         nonblocking: Add tests for sockets.
22600         * tests/test-nonblocking-socket.sh: New file.
22601         * tests/test-nonblocking-socket-main.c: New file.
22602         * tests/test-nonblocking-socket-child.c: New file.
22603         * tests/test-nonblocking-socket.h: New file.
22604         * tests/socket-server.h: New file.
22605         * tests/socket-client.h: New file.
22606         * modules/nonblocking-socket-tests: New file.
22607         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
22608
22609 2011-04-17  Bruno Haible  <bruno@clisp.org>
22610
22611         nonblocking: Add tests for pipes.
22612         * tests/test-nonblocking-pipe.sh: New file.
22613         * tests/test-nonblocking-pipe-main.c: New file.
22614         * tests/test-nonblocking-pipe-child.c: New file.
22615         * tests/test-nonblocking-pipe.h: New file.
22616         * tests/test-nonblocking-writer.h: New file.
22617         * tests/test-nonblocking-reader.h: New file.
22618         * tests/test-nonblocking-misc.h: New file.
22619         * modules/nonblocking-pipe-tests: New file.
22620         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
22621
22622 2011-04-16  Bruno Haible  <bruno@clisp.org>
22623
22624         gettext: Clarify the needed programmer actions.
22625         * modules/gettext (Notice): New field.
22626         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
22627
22628 2011-04-16  Bruno Haible  <bruno@clisp.org>
22629
22630         strchrnul: Tweak last commit.
22631         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
22632         bug.
22633         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
22634         as in _GL_FUNCDECL_SYS.
22635         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
22636         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
22637
22638 2011-04-15  Eric Blake  <eblake@redhat.com>
22639
22640         strchrnul: work around cygwin bug
22641         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
22642         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
22643         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
22644         * modules/string (Makefile.am): Substitute it.
22645         * lib/string.in.h (strchrnul): Use it.
22646
22647 2011-04-15  Bruno Haible  <bruno@clisp.org>
22648
22649         Don't require lib/stdio-write.c when only module 'stdio' is used.
22650         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
22651         invocation.
22652         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
22653
22654 2011-04-14  Bruno Haible  <bruno@clisp.org>
22655
22656         Support non-blocking pipe I/O in read() on native Windows.
22657         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
22658         (read): New declaration.
22659         * lib/read.c: New file.
22660         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
22661         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
22662         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
22663         vscanf): New declarations.
22664         * lib/stdio-read.c: New file.
22665         * m4/read.m4: New file.
22666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
22667         REPLACE_READ.
22668         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
22669         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22670         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
22671         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
22672         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
22673         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22674         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22675         * modules/read: New file.
22676         * modules/nonblocking (Files): Add lib/stdio-read.c.
22677         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
22678         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
22679         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22680         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22681         * modules/pread (Depends-on): Add read.
22682         * modules/safe-read (Depends-on): Likewise.
22683         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
22684         gets, scanf, vfscanf, vscanf): Verify signatures.
22685         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
22686         problem with non-blocking pipes.
22687         * doc/posix-functions/fgetc.texi: Likewise.
22688         * doc/posix-functions/fgets.texi: Likewise.
22689         * doc/posix-functions/fread.texi: Likewise.
22690         * doc/posix-functions/fscanf.texi: Likewise.
22691         * doc/posix-functions/getc.texi: Likewise.
22692         * doc/posix-functions/getchar.texi: Likewise.
22693         * doc/posix-functions/gets.texi: Likewise.
22694         * doc/posix-functions/scanf.texi: Likewise.
22695         * doc/posix-functions/vfscanf.texi: Likewise.
22696         * doc/posix-functions/vscanf.texi: Likewise.
22697
22698 2011-04-14  Bruno Haible  <bruno@clisp.org>
22699
22700         Support non-blocking pipe I/O in write() on native Windows.
22701         * lib/write.c (rpl_write): Split a write request that failed merely
22702         because the byte count was larger than the pipe buffer's size.
22703         * doc/posix-functions/write.texi: Mention the problem with large byte
22704         counts.
22705
22706 2011-04-14  Bruno Haible  <bruno@clisp.org>
22707
22708         wchar: Ensure that wchar_t gets defined on uClibc.
22709         * lib/wchar.in.h: On uClibc, include <stddef.h>.
22710         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
22711
22712 2011-04-13  Bruno Haible  <bruno@clisp.org>
22713
22714         safe-write, full-read: Avoid unnecessary compilation units.
22715         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
22716         (Depends-on): Remove safe-read. Add ssize_t.
22717         * modules/full-read (Files): Add lib/full-write.c.
22718         (Depends-on): Add full-write.
22719
22720 2011-04-13  Bruno Haible  <bruno@clisp.org>
22721
22722         Support non-blocking pipe I/O and SIGPIPE in pwrite().
22723         * modules/pwrite (Depends-on): Add 'write'.
22724
22725 2011-04-13  Bruno Haible  <bruno@clisp.org>
22726
22727         Support non-blocking pipe I/O in write() on native Windows.
22728         * lib/unistd.in.h (write): Enable replacement also if
22729         GNULIB_UNISTD_H_NONBLOCKING is 1.
22730         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
22731         (rpl_write): When failing to write on a non-blocking pipe, change
22732         errno from ENOSPC to EAGAIN.
22733         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
22734         putchar, puts, vfprintf, vprintf): Enable replacement also if
22735         GNULIB_STDIO_H_NONBLOCKING is 1.
22736         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
22737         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
22738         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
22739         CALL_WITH_SIGPIPE_EMULATION.
22740         (CALL_WITH_SIGPIPE_EMULATION): Use them.
22741         * m4/nonblocking.m4: New file.
22742         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
22743         for non-blocking I/O support.
22744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22745         GNULIB_UNISTD_H_NONBLOCKING.
22746         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
22747         required for non-blocking I/O support.
22748         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
22749         * modules/nonblocking (Files): Add m4/nonblocking.m4,
22750         lib/stdio-write.c, m4/asm-underscore.m4.
22751         (Depends-on): Add stdio, unistd.
22752         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
22753         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
22754         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
22755         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
22756         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
22757         problem with non-blocking pipes.
22758         * doc/posix-functions/fputc.texi: Likewise.
22759         * doc/posix-functions/fputs.texi: Likewise.
22760         * doc/posix-functions/fwrite.texi: Likewise.
22761         * doc/posix-functions/printf.texi: Likewise.
22762         * doc/posix-functions/putc.texi: Likewise.
22763         * doc/posix-functions/putchar.texi: Likewise.
22764         * doc/posix-functions/puts.texi: Likewise.
22765         * doc/posix-functions/vfprintf.texi: Likewise.
22766         * doc/posix-functions/vprintf.texi: Likewise.
22767         * doc/posix-functions/write.texi: Likewise.
22768
22769 2011-04-10  Jim Meyering  <meyering@redhat.com>
22770
22771         maint.mk: prohibit doubled words
22772         Detect them also when they're separated by a newline.
22773         There are 3 ways to customize it:
22774           - disable the test on a per file basis, as usual with rules using
22775             $(VC_LIST_EXCEPT)
22776           - replace the default doubled-word-selecting regexp (affects all files)
22777           - ignore a particular file-vs-doubled-word match
22778         I nearly used that last one to ignore the "is is" match in
22779         coreutils' NEWS file, since the text was "ls -is is ..."
22780         To do that, I would have added this line to cfg.mk:
22781           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
22782         but it would have ignored any "is is" match in NEWS.
22783         Low probability, but still...
22784         Instead, I changed the text, slightly:
22785           -  ls -is is now consistent with ls -lis in ignoring values returned
22786           +  "ls -is" is now consistent with ls -lis in ignoring values returned
22787         * top/maint.mk (prohibit_double_word_RE_): Provide default.
22788         (prohibit_doubled_word_): Define.
22789         (sc_prohibit_doubled_word): New rule.
22790         (sc_prohibit_the_the): Remove.  Subsumed by the above.
22791
22792 2011-04-10  Jim Meyering  <meyering@redhat.com>
22793
22794         maint: fix doubled-word typo in comment
22795         * m4/gethostname.m4: s/is is/it is/
22796         * m4/getdomainname.m4: Likewise.
22797
22798 2011-04-10  Jim Meyering  <meyering@redhat.com>
22799
22800         maint: remove doubled word: s/it it/it/
22801         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
22802
22803 2011-04-10  Jim Meyering  <meyering@redhat.com>
22804
22805         maint.mk: remove useless semicolon and backslash
22806         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
22807         semicolon and backslash.
22808
22809 2011-04-10  Bruno Haible  <bruno@clisp.org>
22810
22811         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
22812         * modules/stdint-tests (Depends-on): Add wchar.
22813
22814 2011-04-10  Jim Meyering  <meyering@redhat.com>
22815
22816         maint: remove doubled words in comments, e.g., s/a a/a/
22817         * lib/strptime.c (day_of_the_week): s/the the/the/
22818         * tests/test-chown.h (test_chown): s/a a/a/
22819
22820         test-chown.h: correct a cast
22821         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
22822         when the destination is a stat.st_gid.
22823
22824 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
22825
22826         getaddrinfo: Fix test for sa_len member.
22827         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
22828         include <sys/types.h> before <sys/socket.h>.
22829
22830 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22831
22832         maint: change "can not" to "cannot"
22833         * doc/posix-functions/iconv.texi (iconv): This one crossed line
22834         boundaries.
22835
22836 2011-04-09  Jim Meyering  <meyering@redhat.com>
22837
22838         maint: change "a a" to "a"
22839         * tests/test-lchown.h (test_lchown): s/a a/a/
22840
22841         maint.mk: prohibit \<the the\>
22842         * top/maint.mk (sc_prohibit_the_the): New rule.
22843
22844         maint: fix "the the" in comment
22845         * lib/count-one-bits.h: s/the the/the/
22846
22847         maint: change "can not" to "cannot"
22848         But do not change the occurrences in maintain.texi or in
22849         build-aux/po/Makefile.in.in, which I presume comes from gettext.
22850         * doc/gnulib-tool.texi: s/can not/cannot/
22851         * doc/posix-functions/accept.texi (accept): Likewise.
22852         * doc/posix-functions/socket.texi (socket): Likewise.
22853         * lib/mbrtowc.c: Likewise.
22854
22855         maint.mk: prohibit use of "can not"
22856         * top/maint.mk (sc_prohibit_can_not): New rule.
22857         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
22858
22859 2011-04-09  Bruno Haible  <bruno@clisp.org>
22860
22861         careadlinkat: Guard against misuse of careadlinkatcwd.
22862         * lib/careadlinkat.c: Include <stdlib.h>.
22863         (careadlinkatcwd): Check that the fd argument is as expected.
22864
22865 2011-04-09  Bruno Haible  <bruno@clisp.org>
22866
22867         careadlinkat: Use common coding style.
22868         * lib/careadlinkat.c: Move gnulib includes after system includes.
22869
22870 2011-04-09  Bruno Haible  <bruno@clisp.org>
22871
22872         careadlinkat: Clarify specification.
22873         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
22874         (careadlinkatcwd): Add comment.
22875         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
22876
22877 2011-04-09  Bruno Haible  <bruno@clisp.org>
22878
22879         areadlinkat: Avoid link error on many platforms.
22880         * modules/areadlinkat (Depends-on): Add areadlink.
22881
22882 2011-04-09  Bruno Haible  <bruno@clisp.org>
22883
22884         allocator, careadlinkat: Fix double-inclusion guard.
22885         * lib/allocator.h: Fix double-inclusion guard.
22886         * lib/careadlinkat.h: Likewise.
22887
22888 2011-04-09  Bruno Haible  <bruno@clisp.org>
22889
22890         relocatable-prog-wrapper: Update after module 'areadlink' changed.
22891         * lib/relocwrapper.c: Update dependencies hierarchy.
22892         * build-aux/install-reloc: Update list of files to be compiled.
22893         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
22894         lib/allocator.[hc].
22895
22896 2011-04-08  Eric Blake  <eblake@redhat.com>
22897
22898         strftime: silence gnulib-tool warning
22899         * modules/strftime-tests (Depends-on): Drop automatic dependency.
22900
22901 2011-04-08  Bruno Haible  <bruno@clisp.org>
22902
22903         verify: Fix syntax error with GCC 4.6 in C++ mode.
22904         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
22905         (HAVE_STATIC_ASSERT): New macro.
22906         (verify_true, verify): Use 'static_assert' if it is supported and
22907         '_Static_assert' is not supported.
22908
22909 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
22910
22911         allocator: New module.
22912         * modules/allocator, lib/allocator.c: New files.
22913         * lib/allocator.h (stdlib_allocator): New decl.
22914         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
22915         Remove.  Do not include <stdlib.h>.
22916         (careadlinkat): Use stdlib_allocator instead of rolling our own.
22917         * modules/careadlinkat (Files): Remove lib/allocator.h.
22918         (Depends-on): Add allocator.
22919
22920         stdlib: let modules use system malloc, realloc
22921         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
22922         if !_GL_USE_STDLIB_ALLOC.
22923         (malloc, realloc): Limit this change to a smaller scope.
22924
22925         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
22926         (malloc, realloc): Don't #undef; no longer needed.
22927         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22928         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22929         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22930         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22931         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22932         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22933         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22934         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22935
22936         careadlinkat: rename members to avoid problem
22937         * lib/allocator.h (struct allocator): Rename members from
22938         malloc/realloc to allocate/reallocate, to avoid problems if malloc
22939         and realloc are #define'd.  Reported by Eric Blake in
22940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
22941         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
22942
22943 2011-04-08  Eric Blake  <eblake@redhat.com>
22944
22945         nonblocking: reduce dependency
22946         * tests/test-nonblocking.c: Only test sockets when in use.
22947         * modules/nonblocking-tests (Depends-on): Drop socket.
22948         (Makefile.am): Link even if sockets are not present.
22949         * modules/pipe2-tests (Makefile.am): Likewise.
22950         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
22951
22952         pipe2: fix O_NONBLOCK support on mingw
22953         * modules/pipe2 (Depends-on): Add nonblocking.
22954         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
22955         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
22956         * tests/test-nonblocking.c (main): Likewise.
22957         * modules/pipe2-tests (Makefile.am): Avoid link failure.
22958
22959         fcntl-h: fix O_ACCMODE on cygwin
22960         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
22961         * lib/fcntl.in.h (O_ACCMODE): Fix it.
22962
22963         pipe-filter: drop O_NONBLOCK workarounds
22964         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
22965         * modules/pipe-filter-ii (Depends-on): Likewise.
22966         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
22967
22968         nonblocking: provide O_NONBLOCK for mingw
22969         * modules/nonblocking (Depends-on): Add open.
22970         (configure.ac): Set new witness macro.
22971         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
22972         * modules/fcntl-h (Makefile.am): Substitute it.
22973         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
22974         nonblocking module is in use.
22975         * lib/nonblocking.c: Adjust portability test.
22976         * lib/open.c (open): Don't let native open see gnulib flag.
22977         * tests/test-fcntl-h.c (main): Enhance test.
22978         * tests/test-open.h (test_open): Likewise.
22979         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
22980
22981         careadlinkat: fix compilation error on mingw
22982         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
22983         within struct allocator.
22984
22985 2011-04-06  Eric Blake  <eblake@redhat.com>
22986
22987         binary-io: relicense under LGPLv2+
22988         * modules/binary-io (License): Relax to LGPLv2+.
22989         Requested for libvirt, and required by pipe2.
22990
22991 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
22992
22993         verify: use _Static_assert if available
22994         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
22995         (verify_true, verify): Use it if available.  This generates better
22996         diagnostics with GCC 4.6.0 and later.
22997
22998 2011-04-05  Bruno Haible  <bruno@clisp.org>
22999
23000         Remove leftover generated .h files after config.status changed.
23001
23002         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
23003         GL_GENERATE_ALLOCA_H.
23004         * modules/alloca-opt (Makefile.am): Remove alloca.h if
23005         GL_GENERATE_ALLOCA_H evaluates to false.
23006
23007         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
23008         GL_GENERATE_ARGZ_H.
23009         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
23010         evaluates to false.
23011
23012         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
23013         GL_GENERATE_BYTESWAP_H.
23014         * modules/byteswap (Makefile.am): Remove byteswap.h if
23015         GL_GENERATE_BYTESWAP_H evaluates to false.
23016
23017         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
23018         GL_GENERATE_ERRNO_H.
23019         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
23020         evaluates to false.
23021
23022         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
23023         GL_GENERATE_FLOAT_H.
23024         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
23025         evaluates to false.
23026
23027         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
23028         GL_GENERATE_FNMATCH_H.
23029         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
23030         GL_GENERATE_FNMATCH_H evaluates to false.
23031
23032         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
23033         GL_GENERATE_GLOB_H.
23034         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
23035         evaluates to false.
23036
23037         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
23038         automake conditional GL_GENERATE_ICONV_H.
23039         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
23040         evaluates to false.
23041
23042         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
23043         GL_GENERATE_NETINET_IN_H.
23044         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
23045         GL_GENERATE_NETINET_IN_H evaluates to false.
23046
23047         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
23048         conditional GL_GENERATE_PTHREAD_H.
23049         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
23050         * modules/pthread (Makefile.am): Remove pthread.h if
23051         GL_GENERATE_PTHREAD_H evaluates to false.
23052
23053         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
23054         GL_GENERATE_SCHED_H.
23055         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
23056         evaluates to false.
23057
23058         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
23059         conditional GL_GENERATE_SELINUX_CONTEXT_H.
23060         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
23061         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
23062
23063         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
23064         GL_GENERATE_STDARG_H.
23065         * modules/stdarg (Makefile.am): Remove stdarg.h if
23066         GL_GENERATE_STDARG_H evaluates to false.
23067
23068         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
23069         GL_GENERATE_STDBOOL_H.
23070         * modules/stdbool (Makefile.am): Remove stdbool.h if
23071         GL_GENERATE_STDBOOL_H evaluates to false.
23072
23073         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
23074         conditional GL_GENERATE_STDDEF_H.
23075         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
23076         * modules/stddef (Makefile.am): Remove stddef.h if
23077         GL_GENERATE_STDDEF_H evaluates to false.
23078
23079         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
23080         GL_GENERATE_STDINT_H.
23081         * modules/stdint (Makefile.am): Remove stdint.h if
23082         GL_GENERATE_STDINT_H evaluates to false.
23083
23084         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
23085         GL_GENERATE_SYSEXITS_H.
23086         * modules/sysexits (Makefile.am): Remove sysexits.h if
23087         GL_GENERATE_SYSEXITS_H evaluates to false.
23088
23089         Reported by Karl Berry and Ralf Wildenhues.
23090
23091 2011-04-05  Bruno Haible  <bruno@clisp.org>
23092
23093         Ensure to rebuild generated .h files when config.status has changed.
23094         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
23095         config.status.
23096         * modules/ctype (Makefile.am): Likewise.
23097         * modules/dirent (Makefile.am): Likewise.
23098         * modules/errno (Makefile.am): Likewise.
23099         * modules/fcntl-h (Makefile.am): Likewise.
23100         * modules/float (Makefile.am): Likewise.
23101         * modules/getopt-posix (Makefile.am): Likewise.
23102         * modules/glob (Makefile.am): Likewise.
23103         * modules/iconv-h (Makefile.am): Likewise.
23104         * modules/inttypes (Makefile.am): Likewise.
23105         * modules/langinfo (Makefile.am): Likewise.
23106         * modules/locale (Makefile.am): Likewise.
23107         * modules/math (Makefile.am): Likewise.
23108         * modules/netdb (Makefile.am): Likewise.
23109         * modules/netinet_in (Makefile.am): Likewise.
23110         * modules/poll-h (Makefile.am): Likewise.
23111         * modules/pthread (Makefile.am): Likewise.
23112         * modules/pty (Makefile.am): Likewise.
23113         * modules/sched (Makefile.am): Likewise.
23114         * modules/search (Makefile.am): Likewise.
23115         * modules/selinux-h (Makefile.am): Likewise.
23116         * modules/signal (Makefile.am): Likewise.
23117         * modules/spawn (Makefile.am): Likewise.
23118         * modules/stdarg (Makefile.am): Likewise.
23119         * modules/stdbool (Makefile.am): Likewise.
23120         * modules/stddef (Makefile.am): Likewise.
23121         * modules/stdint (Makefile.am): Likewise.
23122         * modules/stdio (Makefile.am): Likewise.
23123         * modules/stdlib (Makefile.am): Likewise.
23124         * modules/string (Makefile.am): Likewise.
23125         * modules/strings (Makefile.am): Likewise.
23126         * modules/sys_file (Makefile.am): Likewise.
23127         * modules/sys_ioctl (Makefile.am): Likewise.
23128         * modules/sys_select (Makefile.am): Likewise.
23129         * modules/sys_socket (Makefile.am): Likewise.
23130         * modules/sys_stat (Makefile.am): Likewise.
23131         * modules/sys_time (Makefile.am): Likewise.
23132         * modules/sys_times (Makefile.am): Likewise.
23133         * modules/sys_utsname (Makefile.am): Likewise.
23134         * modules/sys_wait (Makefile.am): Likewise.
23135         * modules/sysexits (Makefile.am): Likewise.
23136         * modules/termios (Makefile.am): Likewise.
23137         * modules/time (Makefile.am): Likewise.
23138         * modules/unistd (Makefile.am): Likewise.
23139         * modules/wchar (Makefile.am): Likewise.
23140         * modules/wctype-h (Makefile.am): Likewise.
23141         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
23142
23143 2011-04-05  Bruno Haible  <bruno@clisp.org>
23144
23145         pipe2: Relicense under LGPLv2+.
23146         * modules/pipe2 (License): Change to LGPLv2+.
23147         Requested by Eric Blake, for libvirt.
23148
23149 2011-04-05  Bruce Korb  <bkorb@gnu.org>
23150
23151         bootstrap: compute gnulib_extra_files after updating build_aux
23152         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
23153         change build_aux or also supply gnulib_extra_files.  Handle correctly.
23154
23155 2011-04-05  Eric Blake  <eblake@redhat.com>
23156
23157         bootstrap: preserve git whitelist item sorting
23158         * build-aux/bootstrap (sort_patterns): New function.
23159         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
23160
23161 2011-04-05  Simon Josefsson  <simon@josefsson.org>
23162
23163         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
23164         sc_space_tab check.
23165
23166 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
23167
23168         areadlink, areadlinkat: rewrite in terms of careadlinkat
23169         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
23170         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
23171         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
23172         (malloc, realloc): Remove #undefs.
23173         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
23174         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
23175         readlink, ssize_t, stdint, unistd.
23176         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
23177         areadlink, stdint.
23178
23179         careadlinkat: new module
23180         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
23181         * modules/careadlinkat: New files, written by me with
23182         a review and feedback from Ben Pfaff in
23183         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
23184
23185 2011-04-01  Bruno Haible  <bruno@clisp.org>
23186
23187         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
23188         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
23189         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
23190         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
23191         Reported by Bruce Korb <bruce.korb@gmail.com>.
23192
23193 2011-04-01  Bruno Haible  <bruno@clisp.org>
23194
23195         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
23196         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
23197         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
23198         * modules/wcpcpy (Depends-on): Add extensions.
23199         * modules/wcpncpy (Depends-on): Likewise.
23200         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
23201         systems.
23202         * doc/posix-functions/wcpncpy.texi: Likewise.
23203         * doc/posix-functions/wcwidth.texi: Likewise.
23204
23205 2011-03-31  Eric Blake  <eblake@redhat.com>
23206
23207         nonblocking: fix mingw test failures
23208         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
23209         non-blocking flag on regular file.
23210         (get_nonblocking_flag): Set errno on invalid fd.
23211         * tests/test-nonblocking.c (main): Avoid test failure on
23212         directories if fchdir is not active.
23213         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
23214
23215 2011-03-31  Bruno Haible  <bruno@clisp.org>
23216
23217         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
23218         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
23219         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
23220         Reported by Simon Josefsson <simon@josefsson.org>.
23221
23222 2011-03-31  Bruno Haible  <bruno@clisp.org>
23223         and Eric Blake  <eblake@redhat.com>
23224
23225         nonblocking: new module
23226         * modules/nonblocking: New module.
23227         * modules/nonblocking-tests: Likewise.
23228         * lib/nonblocking.h: New file.
23229         * lib/nonblocking.c: Likewise.
23230         * tests/test-nonblocking.c: New test.
23231         * lib/ioctl.c (ioctl) [mingw]: Update comment.
23232
23233 2011-03-30  Bruno Haible  <bruno@clisp.org>
23234
23235         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
23236         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
23237         instead of 'printf' format for GCC >= 4.4.
23238         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
23239         (fprintf, printf, vfprintf, vprintf): Declare with
23240         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
23241         the system's vfprintf() function.
23242         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
23243
23244 2011-03-30  Eric Blake  <eblake@redhat.com>
23245
23246         passfd: fix scoping bug
23247         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
23248         before sendmsg/recvmsg.
23249
23250         passfd: standardize coding conventions
23251         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
23252         can be learned at compile time.
23253         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
23254         ifdefs.
23255         (sendfd, recvfd): Follow gnulib code conventions.
23256
23257         passfd: fix incorrect sendmsg arguments
23258         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
23259         incorrect msg_controllen value.
23260         * modules/passfd-tests (Depends-on): Check for alarm.
23261         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
23262         Reported by Bastien ROUCARIES.
23263
23264 2011-03-30  Bruno Haible  <bruno@clisp.org>
23265
23266         c-strcasestr: Relicense under LGPLv2+.
23267         * modules/c-strcasestr (License): Change to LGPLv2+.
23268         Requested by Eric Blake, for libvirt.
23269
23270 2011-03-30  Simon Josefsson  <simon@josefsson.org>
23271
23272         * users.txt: Add libidn2.  Fix libtasn1 link.
23273
23274 2011-03-30  Jim Meyering  <meyering@redhat.com>
23275
23276         tests: readlink* ("",... fails with EINVAL on newer kernels
23277         readlink and readlinkat have typically failed with ENOENT for
23278         the invalid, empty file name,  "".  However, with the advent
23279         of linux-2.6.39, they fail with EINVAL.
23280         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
23281         when operating on the empty file name.
23282         * tests/test-readlink.h (test_readlink): Likewise.
23283
23284 2011-03-29  Bruno Haible  <bruno@clisp.org>
23285
23286         Relicense some modules under LGPLv2+, for libidn2.
23287         * modules/array-mergesort (License): Change to LGPLv2+.
23288         * modules/c-strcaseeq (License): Likewise.
23289         * modules/striconveh (License): Likewise.
23290         * modules/striconveha (License): Likewise.
23291         * modules/uniconv/base (License): Likewise.
23292         * modules/uniconv/u8-conv-from-enc (License): Likewise.
23293         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
23294         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
23295         * modules/unictype/base (License): Likewise.
23296         * modules/unictype/bidiclass-of (License): Likewise.
23297         * modules/unictype/category-M (License): Likewise.
23298         * modules/unictype/category-none (License): Likewise.
23299         * modules/unictype/category-of (License): Likewise.
23300         * modules/unictype/category-test (License): Likewise.
23301         * modules/unictype/category-test-withtable (License): Likewise.
23302         * modules/unictype/combining-class (License): Likewise.
23303         * modules/unictype/joiningtype-of (License): Likewise.
23304         * modules/unictype/scripts (License): Likewise.
23305         * modules/uninorm/base (License): Likewise.
23306         * modules/uninorm/canonical-decomposition (License): Likewise.
23307         * modules/uninorm/composition (License): Likewise.
23308         * modules/uninorm/decompose-internal (License): Likewise.
23309         * modules/uninorm/decomposition-table (License): Likewise.
23310         * modules/uninorm/nfc (License): Likewise.
23311         * modules/uninorm/nfd (License): Likewise.
23312         * modules/uninorm/u32-normalize (License): Likewise.
23313         * modules/unistr/base (License): Likewise.
23314         * modules/unistr/u32-cpy (License): Likewise.
23315         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
23316         * modules/unistr/u32-to-u8 (License): Likewise.
23317         * modules/unistr/u32-uctomb (License): Likewise.
23318         * modules/unistr/u8-check (License): Likewise.
23319         * modules/unistr/u8-mblen (License): Likewise.
23320         * modules/unistr/u8-mbtouc (License): Likewise.
23321         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
23322         * modules/unistr/u8-mbtoucr (License): Likewise.
23323         * modules/unistr/u8-prev (License): Likewise.
23324         * modules/unistr/u8-strlen (License): Likewise.
23325         * modules/unistr/u8-to-u32 (License): Likewise.
23326         * modules/unistr/u8-uctomb (License): Likewise.
23327         * modules/unitypes (License): Likewise.
23328         Requested by Simon Josefsson.
23329
23330 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23331
23332         lib-symbol-visibility: Add a notice.
23333         * modules/lib-symbol-visibility (Notice): New field.
23334
23335 2011-03-29  Bruno Haible  <bruno@clisp.org>
23336
23337         getaddrinfo: Doc fix.
23338         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23339         section "fixed in Gnulib".
23340
23341 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23342
23343         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23344         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23345
23346 2011-03-26  Bruno Haible  <bruno@clisp.org>
23347
23348         unictype/property-byname: Reduce the number of load-time relocations.
23349         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23350         (UC_PROPERTY_INDEX_*): New enumeration values.
23351         (uc_property_byname): Convert an index from the lookup table to an
23352         uc_property_t.
23353         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23354         values.
23355
23356 2011-03-26  Bruno Haible  <bruno@clisp.org>
23357
23358         unictype/property-byname: Allow omitted word separators and aliases.
23359         * lib/unictype/pr_byname.gperf: Add property names without word
23360         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23361         for 'space'.
23362
23363 2011-03-26  Bruno Haible  <bruno@clisp.org>
23364
23365         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23366         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23367         also hyphens to space.
23368         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23369         without spaces.
23370         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23371
23372 2011-03-26  Bruno Haible  <bruno@clisp.org>
23373
23374         unictype/joiningtype-byname: Recognize long names as well.
23375         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23376         a long name.
23377         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23378         unictype/joiningtype_byname.h.
23379         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23380         * lib/unictype/joiningtype_byname.gperf: New file.
23381         * modules/unictype/joiningtype-byname (Files): Add
23382         lib/unictype/joiningtype_byname.gperf.
23383         (Depends-on): Add gperf.
23384         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23385         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23386         long names.
23387
23388         Tests for module 'unictype/joiningtype-longname'.
23389         * modules/unictype/joiningtype-longname-tests: New file.
23390         * tests/unictype/test-joiningtype_longname.c: New file.
23391
23392         New module 'unictype/joiningtype-longname'.
23393         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23394         * lib/unictype/joiningtype_longname.c: New file.
23395         * modules/unictype/joiningtype-longname: New file.
23396         * modules/unictype/joiningtype-all (Depends-on): Add
23397         unictype/joiningtype-longname.
23398
23399 2011-03-26  Bruno Haible  <bruno@clisp.org>
23400
23401         unictype/bidiclass-byname: Recognize long names as well.
23402         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23403         name.
23404         * lib/unictype/bidi_byname.c: Include <string.h>,
23405         unictype/bidi_byname.h.
23406         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23407         * lib/unictype/bidi_byname.gperf: New file.
23408         * modules/unictype/bidiclass-byname (Files): Add
23409         lib/unictype/bidi_byname.gperf.
23410         (Depends-on): Add gperf.
23411         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23412         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23413         long names.
23414
23415         Tests for module 'unictype/bidiclass-longname'.
23416         * modules/unictype/bidiclass-longname-tests: New file.
23417         * tests/unictype/test-bidi_longname.c: New file.
23418
23419         New module 'unictype/bidiclass-longname'.
23420         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23421         * lib/unictype/bidi_longname.c: New file.
23422         * modules/unictype/bidiclass-longname: New file.
23423         * modules/unictype/bidiclass-all (Depends-on): Add
23424         unictype/bidiclass-longname.
23425
23426 2011-03-26  Bruno Haible  <bruno@clisp.org>
23427
23428         unictype/bidi*: Rename modules.
23429         * modules/unictype/bidiclass-all: Renamed from
23430         modules/unictype/bidicategory-all.
23431         * modules/unictype/bidiclass-name: Renamed from
23432         modules/unictype/bidiclass-name.
23433         (Description): Update.
23434         * modules/unictype/bidiclass-name-tests: Renamed from
23435         modules/unictype/bidicategory-name-tests.
23436         * modules/unictype/bidiclass-byname: Renamed from
23437         modules/unictype/bidicategory-byname.
23438         (Description): Update.
23439         * modules/unictype/bidiclass-byname-tests: Renamed from
23440         modules/unictype/bidicategory-byname-tests.
23441         * modules/unictype/bidiclass-of: Renamed from
23442         modules/unictype/bidicategory-of.
23443         (Description): Update.
23444         * modules/unictype/bidiclass-of-tests: Renamed from
23445         modules/unictype/bidicategory-of-tests.
23446         * modules/unictype/bidiclass-test: Renamed from
23447         modules/unictype/bidicategory-test.
23448         (Description): Update.
23449         * modules/unictype/bidiclass-test-tests: Renamed from
23450         modules/unictype/bidicategory-test-tests.
23451         * modules/unictype/bidicategory-all: New file, a simple redirection.
23452         * modules/unictype/bidicategory-name: Likewise.
23453         * modules/unictype/bidicategory-byname: Likewise.
23454         * modules/unictype/bidicategory-of: Likewise.
23455         * modules/unictype/bidicategory-test: Likewise.
23456         * modules/unictype/property-bidi-* (Dependencies): Update.
23457         * lib/unictype/bidi_*.c: Update comment.
23458
23459 2011-03-26  Bruno Haible  <bruno@clisp.org>
23460
23461         unictype/bidi*: Rename functions, part 2.
23462         * modules/unictype/bidicategory-name (configure.ac): Update required
23463         libunistring version.
23464         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23465
23466 2011-03-25  Bruno Haible  <bruno@clisp.org>
23467
23468         New module 'unictype/combining-class-all'.
23469         * modules/unictype/combining-class-all: New file.
23470
23471         Tests for module 'unictype/combining-class-byname'.
23472         * modules/unictype/combining-class-byname-tests: New file.
23473         * tests/unictype/test-combiningclass_byname.c: New file.
23474
23475         New module 'unictype/combining-class-byname'.
23476         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
23477         * lib/unictype/combiningclass_byname.c: New file.
23478         * lib/unictype/combiningclass_byname.gperf: New file.
23479         * modules/unictype/combining-class-byname: New file.
23480
23481         Tests for module 'unictype/combining-class-longname'.
23482         * modules/unictype/combining-class-longname-tests: New file.
23483         * tests/unictype/test-combiningclass_longname.c: New file.
23484
23485         New module 'unictype/combining-class-longname'.
23486         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
23487         * lib/unictype/combiningclass_longname.c: New file.
23488         * modules/unictype/combining-class-longname: New file.
23489
23490         Tests for module 'unictype/combining-class-name'.
23491         * modules/unictype/combining-class-name-tests: New file.
23492         * tests/unictype/test-combiningclass_name.c: New file.
23493
23494         New module 'unictype/combining-class-name'.
23495         * lib/unictype.in.h (uc_combining_class_name): New declaration.
23496         * lib/unictype/combiningclass_name.c: New file.
23497         * modules/unictype/combining-class-name: New file.
23498
23499 2011-03-25  Bruno Haible  <bruno@clisp.org>
23500
23501         unictype/combining-class: Rename source files.
23502         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
23503         of unictype/combining.h.
23504         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
23505         Update.
23506         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
23507         * modules/unictype/combining-class (Description): Fix.
23508         (Files, Makefile.am): Update.
23509         * tests/unictype/test-combiningclass.c: Renamed from
23510         tests/unictype/test-combining.c.
23511         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
23512
23513 2011-03-25  Bruno Haible  <bruno@clisp.org>
23514
23515         unictype: Update list of canonical combining classes.
23516         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
23517
23518 2011-03-25  Bruno Haible  <bruno@clisp.org>
23519
23520         unictype/category-byname: Recognize long names as well.
23521         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
23522         a long name.
23523         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
23524         unictype/categ_byname.h.
23525         (UC_CATEGORY_INDEX_*): New enumeration values.
23526         (uc_general_category_byname): Use uc_general_category_lookup and
23527         convert from index to value.
23528         * lib/unictype/categ_byname.gperf: New file.
23529         * modules/unictype/category-byname (Files): Add
23530         lib/unictype/categ_byname.gperf.
23531         (Depends-on): Add gperf.
23532         (Makefile.am): Add rule for generating unictype/categ_byname.h.
23533         * tests/unictype/test-categ_byname.c (main): Test the recognition of
23534         long names.
23535
23536         Tests for module 'unictype/category-longname'.
23537         * modules/unictype/category-longname-tests: New file.
23538         * tests/unictype/test-categ_longname.c: New file.
23539
23540         New module 'unictype/category-longname'.
23541         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
23542         * lib/unictype/categ_longname.c: New file.
23543         * modules/unictype/category-longname: New file.
23544         * modules/unictype/category-all (Depends-on): Add it.
23545
23546 2011-03-25  Bruno Haible  <bruno@clisp.org>
23547
23548         Tests for module 'unictype/category-LC'.
23549         * modules/unictype/category-LC-tests: New file.
23550         * tests/unictype/test-categ_LC.c: New file, automatically generated.
23551
23552         New module 'unictype/category-LC'.
23553         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
23554         (UC_CATEGORY_LC): New declaration.
23555         (UC_CASED_LETTER): New macro.
23556         * lib/gen-uni-tables.c (is_category_LC): New function.
23557         (output_categories): Also handle category LC.
23558         (UC_CATEGORY_MASK_LC): New enumeration value.
23559         (general_category_byname): Also handle category LC.
23560         * lib/unictype/categ_LC.c: New file.
23561         * lib/unictype/categ_LC.h: New file, automatically generated.
23562         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
23563         category LC.
23564         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
23565         * modules/unictype/category-LC: New file.
23566         * modules/unictype/category-byname (Depends-on): Add
23567         unictype/category-LC.
23568         * modules/unictype/category-all (Depends-on): Likewise.
23569
23570 2011-03-25  Eric Blake  <eblake@redhat.com>
23571
23572         xmalloc: revert yesterday's regression
23573         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
23574         realloc's underlying behavior (allowing allocation of zero-size
23575         objects, especially if malloc-gnu is also in use).
23576
23577 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
23578
23579         maint.mk: add missing version to VC-tag
23580         * top/maint.mk: git tag was missing actual tag name; add it.
23581
23582         valgrind: do leak checking, and exit with code 1 on error (not 0)
23583         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
23584         to VALGRIND.
23585
23586 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
23587
23588         posix-modules: say what it does.
23589         * posix-modules: Add a line to the --help output saying what it does.
23590
23591 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
23592
23593         xmalloc: Do not leak if underlying realloc is C99 compatible.
23594         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
23595         This avoids a leak on C99-based systems.  See
23596         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
23597
23598 2011-03-24  Eric Blake  <eblake@redhat.com>
23599
23600         realloc: document portability problem
23601         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
23602         passing 0 size to realloc.
23603
23604 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
23605
23606         doc: update users.txt
23607         * users.txt: Add cvsps, tmpwatch
23608
23609 2011-03-23  Matt Rice  <ratmice@gmail.com>
23610
23611         doc: update users.txt
23612         * users.txt: Add gdb.
23613
23614 2011-03-23  Jim Meyering  <meyering@redhat.com>
23615
23616         doc: update users.txt
23617         Looking through matches up to the following URL (there are still
23618         several more pages), I found several projects that use gnulib:
23619         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
23620         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
23621         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
23622
23623 2011-03-22  Bruno Haible  <bruno@clisp.org>
23624
23625         unictype/bidi*: Rename functions.
23626         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
23627         uc_bidi_class, uc_is_bidi_class): New declarations.
23628         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
23629         uc_bidi_category_byname.
23630         (uc_bidi_category_byname): New function.
23631         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
23632         u_bidi_category_name.
23633         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
23634         (uc_bidi_category_name): New function.
23635         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
23636         uc_bidi_category.
23637         (uc_bidi_category): New function.
23638         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
23639         uc_is_bidi_category. Invoke uc_bidi_class.
23640         (uc_is_bidi_category): New function.
23641         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
23642         instead of uc_bidi_category_byname.
23643         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
23644         instead of uc_bidi_category_name.
23645         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
23646         uc_bidi_category.
23647         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
23648         instead of uc_is_bidi_category.
23649
23650 2011-03-21  Bruno Haible  <bruno@clisp.org>
23651
23652         New module 'unictype/joininggroup-all'.
23653         * modules/unictype/joininggroup-all: New file.
23654
23655         Tests for module 'unictype/joininggroup-of'.
23656         * modules/unictype/joininggroup-of-tests: New file.
23657         * tests/unictype/test-joininggroup_of.c: New file.
23658         * tests/unictype/test-joininggroup_of.h: New file, automatically
23659         generated by gen-uni-tables.
23660
23661         New module 'unictype/joininggroup-of'.
23662         * modules/unictype/joininggroup-of: New file.
23663         * lib/unictype/joininggroup_of.c: New file.
23664         * lib/unictype/joininggroup_of.h: New file, automatically generated by
23665         gen-uni-tables.
23666
23667         Tests for module 'unictype/joininggroup-byname'.
23668         * modules/unictype/joininggroup-byname-tests: New file.
23669         * tests/unictype/test-joininggroup_byname.c: New file.
23670
23671         New module 'unictype/joininggroup-byname'.
23672         * modules/unictype/joininggroup-byname: New file.
23673         * lib/unictype/joininggroup_byname.c: New file.
23674         * lib/unictype/joininggroup_byname.gperf: New file.
23675
23676         Tests for module 'unictype/joininggroup-name'.
23677         * modules/unictype/joininggroup-name-tests: New file.
23678         * tests/unictype/test-joininggroup_name.c: New file.
23679
23680         New module 'unictype/joininggroup-name'.
23681         * modules/unictype/joininggroup-name: New file.
23682         * lib/unictype/joininggroup_name.c: New file.
23683         * lib/unictype/joininggroup_name.h: New file.
23684
23685         New module 'unictype/joiningtype-all'.
23686         * modules/unictype/joiningtype-all: New file.
23687
23688         Tests for module 'unictype/joiningtype-of'.
23689         * modules/unictype/joiningtype-of-tests: New file.
23690         * tests/unictype/test-joiningtype_of.c: New file.
23691         * tests/unictype/test-joiningtype_of.h: New file, automatically
23692         generated by gen-uni-tables.
23693
23694         New module 'unictype/joiningtype-of'.
23695         * modules/unictype/joiningtype-of: New file.
23696         * lib/unictype/joiningtype_of.c: New file.
23697         * lib/unictype/joiningtype_of.h: New file, automatically generated by
23698         gen-uni-tables.
23699
23700         Tests for module 'unictype/joiningtype-byname'.
23701         * modules/unictype/joiningtype-byname-tests: New file.
23702         * tests/unictype/test-joiningtype_byname.c: New file.
23703
23704         New module 'unictype/joiningtype-byname'.
23705         * modules/unictype/joiningtype-byname: New file.
23706         * lib/unictype/joiningtype_byname.c: New file.
23707
23708         Tests for module 'unictype/joiningtype-name'.
23709         * modules/unictype/joiningtype-name-tests: New file.
23710         * tests/unictype/test-joiningtype_name.c: New file.
23711
23712         New module 'unictype/joiningtype-name'.
23713         * modules/unictype/joiningtype-name: New file.
23714         * lib/unictype/joiningtype_name.c: New file.
23715
23716         unictype: Add support for Arabic shaping properties.
23717         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
23718         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
23719         declarations.
23720         (UC_JOINING_GROUP_*): New enumeration values.
23721         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
23722         declarations.
23723         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
23724         (unicode_joining_type): New variable.
23725         (UC_JOINING_GROUP_*): New enumeration values.
23726         (unicode_joining_group): New variable.
23727         (fill_arabicshaping, joining_type_as_c_identifier,
23728         output_joining_type_test, output_joining_type,
23729         joining_group_as_c_identifier, output_joining_group_test,
23730         output_joining_group): New functions.
23731         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
23732         fill_arabicshaping and output_joining_type_test, output_joining_type,
23733         output_joining_group_test, output_joining_group.
23734         Reported by Simon Josefsson.
23735
23736 2011-03-21  Jim Meyering  <meyering@redhat.com>
23737
23738         strftime: fix a bug in yesterday's change
23739         * lib/strftime.c (add): Accommodate width's initial value of -1.
23740         Otherwise, nstrftime would copy uninitialized data into
23741         the result buffer.
23742
23743 2011-03-21  Jim Meyering  <meyering@redhat.com>
23744
23745         tests: add strftime-tests module
23746         * tests/test-strftime.c: New file.
23747         * modules/strftime-tests: New module.
23748
23749 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23750
23751         strftime: don't assume a byte count fits in 'int'
23752         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
23753         found this problem by static analysis, using gcc -Wstrict-overflow
23754         (GCC 4.5.2, x86-64).  This reported an optimization that depended
23755         on an integer overflow having undefined behavior, but it turns out
23756         that the argument is a size, which might not fit in 'int' anyway,
23757
23758 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23759
23760         stdio: don't require ignore_value around fwrite
23761
23762         This patch works around libc bug 11959
23763         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
23764         Without this patch, applications must often write
23765         ignore_value (fwrite (...)) even though the ignore_value is
23766         not helpful here.  It's common to write many objects, using
23767         fwrite/printf/etc., and then use ferror to detect output error.
23768
23769         I considered making this patch optional, but decided against it,
23770         because libc is obviously being inconsistent here: there is no
23771         reason libc should insist that user code must inspect fwrite
23772         return's value without also insisting that it inspect printf's,
23773         putchar's, etc.  If user code wants to have a strict style where
23774         all these functions' values are checked (so that ferror need not
23775         be checked), we could add support for that style in a new gnulib
23776         module, but in the meantime it's better to be consistent and to
23777         support common usage.
23778
23779         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
23780         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
23781         that we are compiling in checking mode, and if not C++, and
23782         if not already wrapping fwrite for some other reason.
23783         (fwrite): #define to rpl_fwrite if the latter is defined.
23784
23785 2011-03-20  Bruno Haible  <bruno@clisp.org>
23786
23787         verror: Fix compilation error introduced on 2011-02-13.
23788         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
23789         instead of __attribute__.
23790         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23791
23792 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23793             Bruno Haible  <bruno@clisp.org>
23794
23795         socklen: do not depend on sys_socket
23796         While trying to modify Emacs to use gnulib's socklen module,
23797         I discovered a circular dependency: socklen depends on sys_socket
23798         and vice versa.  Emacs can use socklen, but it does not need
23799         sys_socket because it has its own substitute for sys/socket.h.
23800         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
23801         gl_TYPE_SOCKLEN_T.
23802         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
23803         gl_PREREQ_SYS_H_SOCKET.
23804         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
23805         gl_PREREQ_SYS_H_SOCKET.
23806         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
23807         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
23808         * modules/socklen (Depends-on): Do not depend on sys_socket.
23809         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
23810
23811 2011-03-20  Jim Meyering  <meyering@redhat.com>
23812
23813         maint.mk: sort file names *after* new transformation
23814         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
23815         prefix would have led to an unwarranted failure in GNU parted.
23816         Sort after that transformation.
23817
23818 2011-03-19  Jim Meyering  <meyering@redhat.com>
23819
23820         maint.mk: fix po-file syntax-check rule
23821         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
23822         Patch by Bruno Haible.
23823
23824 2011-03-19  Bruno Haible  <bruno@clisp.org>
23825
23826         socklen: Update comment.
23827         * m4/socklen.m4: Update comment about platforms.
23828
23829 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23830             Bruno Haible  <bruno@clisp.org>
23831
23832         inet_ntop, inet_pton: Simplify.
23833         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
23834         documented to provide socklen_t and we already depend on sys_socket.
23835         * modules/inet_pton (Depends-on): Likewise.
23836         * lib/arpa_inet.in.h: Adjust comment.
23837
23838 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23839             Bruno Haible  <bruno@clisp.org>
23840
23841         netdb: Simplify.
23842         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
23843         documented to provide socklen_t and we already depend on sys_socket.
23844         * lib/netdb.in.h: Adjust comment.
23845
23846 2011-03-19  Bruno Haible  <bruno@clisp.org>
23847
23848         sys_socket, netdb: Document problem with socklen_t.
23849         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
23850         platforms.
23851         * doc/posix-headers/netdb.texi: Likewise.
23852
23853 2011-03-18  Eric Blake  <eblake@redhat.com>
23854
23855         maint.mk: let po check work in VPATH build
23856         * top/maint.mk (po_file): Allow cfg.mk override.
23857         (sc_po_check): Allow VPATH use.
23858         Reported by Jiri Denemark.
23859
23860 2011-03-16  Jim Meyering  <meyering@redhat.com>
23861
23862         maint.mk: allow fine-grained syntax-check exclusion via Make variables
23863         Before, you would have had to create one .x-sc_ file per rule in order
23864         to exempt offending files.  Now, you may instead use a Make variable --
23865         usually defined in cfg.mk -- whose name identifies the affected rule.
23866         * top/maint.mk (_sc_excl): Define.
23867         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
23868         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
23869
23870 2011-03-13  Bruno Haible  <bruno@clisp.org>
23871
23872         ignore-value tests: Avoid warnings.
23873         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
23874         empty for gcc < 3.4.
23875
23876 2011-03-13  Bruno Haible  <bruno@clisp.org>
23877
23878         passfd: Fix link error on Solaris.
23879         * modules/passfd (Description): Correct.
23880         (Depends-on): Add socketlib.
23881         (Link): New section.
23882         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
23883
23884 2011-03-13  Bruno Haible  <bruno@clisp.org>
23885
23886         passfd: Fix link error on AIX 5.2.
23887         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
23888
23889 2011-03-13  Bruno Haible  <bruno@clisp.org>
23890
23891         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
23892         * lib/sys_socket.in.h: Include <stddef.h>.
23893         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
23894         CMSG_FIRSTHDR. Remove unused variable.
23895
23896 2011-03-13  Bruno Haible  <bruno@clisp.org>
23897
23898         passfd: Fix compilation error on OpenBSD.
23899         * lib/passfd.c: Include <sys/uio.h>.
23900
23901 2011-03-13  Bruno Haible  <bruno@clisp.org>
23902
23903         passfd test: Fix warnings.
23904         * tests/test-passfd.c: Include <sys/wait.h>.
23905         (main): Fix typo.
23906
23907 2011-03-13  Bruno Haible  <bruno@clisp.org>
23908
23909         passfd module, part 4, tweaks.
23910         * tests/test-passfd.c: Reorder includes.
23911         (main): Fix perror and printf calls.
23912
23913 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23914
23915         passfd module, part 4.
23916         * modules/passfd-tests: New file.
23917         * tests/test-passfd.c: New file.
23918
23919 2011-03-13  Jim Meyering  <meyering@redhat.com>
23920
23921         Makefile: rely on GNU make; derive syntax-check rule names
23922         Rather than requiring that each sc_ rule be listed as a dependent
23923         of "check", use features of GNU make to derive the list.
23924         * Makefile (syntax-check-rules): Define.
23925         (check): Depend on the new variable, not the hard-coded list.
23926
23927 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
23928             Bruno Haible  <bruno@clisp.org>
23929
23930         passfd module, part 3.
23931         * lib/passfd.h (recvfd): Add a flags argument.
23932         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
23933         (recvfd): Add a flags argument.
23934         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
23935         exists.
23936         * modules/passfd (Depends-on): Add cloexec.
23937         Suggested by Eric Blake.
23938
23939 2011-03-13  Bruno Haible  <bruno@clisp.org>
23940
23941         passfd module, part 2, tweaks.
23942         * modules/passfd (Files): Reorder.
23943         (Depends-on): Remove errno.
23944         (Include): Remove <sys/socket.h>, <sys/un.h>.
23945         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
23946         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
23947         specification header. Include <sys/socket.h> always. Don't include
23948         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
23949         (sendfd): Clarify that it sets errno when it fails.
23950         (recvfd): Fix specification.
23951
23952 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23953
23954         passfd module, part 2.
23955         * modules/passfd: New file.
23956         * lib/passfd.h: New file.
23957         * lib/passfd.c: New file.
23958
23959 2011-03-12  Bruno Haible  <bruno@clisp.org>
23960
23961         wcswidth, mbswidth: Avoid integer overflow.
23962         * lib/wcswidth.c: Include <limits.h>.
23963         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
23964         * lib/mbswidth.c: Include <limits.h>.
23965         (mbsnwidth): Avoid 'int' overflow.
23966         Reported by Jim Meyering.
23967
23968 2011-03-12  Bruno Haible  <bruno@clisp.org>
23969
23970         futimens, utimensat: Avoid endless recursion on Solaris 10.
23971         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
23972         Solaris.
23973         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
23974         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
23975
23976 2011-03-11  Jim Meyering  <meyering@redhat.com>
23977
23978         maint.mk: relax a regexp to accommodate other formatting styles
23979         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
23980         between "ngettext" and the following "(".
23981
23982 2011-03-11  Pádraig Brady <P@draigBrady.com>
23983
23984         maint.mk: suppress a false positive warning
23985         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
23986         diagnostics are marked with ngettext.
23987
23988 2011-03-10  Eric Blake  <eblake@redhat.com>
23989
23990         wchar: add explicit dependencies, for Tru64
23991         * modules/mbmemcasecoll (Depends-on): Add wchar.
23992         * modules/mbtowc (Depends-on): Likewise.
23993         * modules/vasnprintf (Depends-on): Likewise.
23994         * modules/unistdio/u-printf-args (Depends-on): Likewise.
23995         * modules/wctomb (Depends-on): Likewise.
23996         Reported by Peter O'Gorman.
23997
23998 2011-03-08  Bruno Haible  <bruno@clisp.org>
23999
24000         passfd module, part 1, tweaks.
24001         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
24002         Improve indentation. Improve AC_MSG_CHECKING messages.
24003         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
24004         gl_SOCKET_FAMILIES.
24005
24006 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24007
24008         passfd module, part 1.
24009         * m4/afunix.m4: New file.
24010         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
24011         sockets.
24012
24013 2011-03-08  Bruno Haible  <bruno@clisp.org>
24014
24015         regex-quote: New API.
24016         * lib/regex-quote.h: Include <stdbool.h>.
24017         (struct regex_quote_spec): New type.
24018         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24019         New declarations.
24020         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24021         'const struct regex_quote_spec *' argument.
24022         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
24023         (pcre_special): New constant.
24024         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24025         New functions.
24026         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24027         'const struct regex_quote_spec *' argument.
24028         * modules/regex-quote (Depends-on): Add stdbool.
24029         * tests/test-regex-quote.c (check): Update for new API. Add test for
24030         anchored results.
24031         * NEWS: Mention the API change.
24032         Reported by Reuben Thomas and Eric Blake.
24033
24034 2011-03-06  Bruno Haible  <bruno@clisp.org>
24035
24036         regex-quote: Fix creation of POSIX extended regular expressions.
24037         * lib/regex-quote.c (ere_special): Add grouping and alternation
24038         operators.
24039
24040 2011-03-05  Bruno Haible  <bruno@clisp.org>
24041
24042         doc: Improve doc regarding autopoint vs. gnulib.
24043         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
24044         disable autopoint while running autoreconf.
24045         Suggested by Ralf Wildenhues.
24046
24047 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24048
24049         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
24050         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
24051
24052 2011-03-03  Bruce Korb  <bkorb@gnu.org>
24053
24054         parse-duration: remove xalloc.h dependency
24055         * lib/parse-duration.c (parse_period): handle NULL return from
24056         strdup instead of calling xstrdup().
24057         * modules/parse-duration: remove "xalloc" dependency
24058
24059 2011-03-03  Matthew Booth  <mbooth@redhat.com>
24060
24061         bootstrap: honor m4_base when running aclocal
24062         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
24063
24064 2011-03-02  Jim Meyering  <meyering@redhat.com>
24065
24066         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
24067         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
24068         on request from Matt Booth.
24069
24070 2011-03-01  Eric Blake  <eblake@redhat.com>
24071
24072         test-link: work on Hurd
24073         * tests/test-link.h (test_link): Hurd rejects linking directories
24074         with EISDIR instead of the POSIX-mandated EPERM.
24075
24076 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
24077
24078         stdio: simplify by moving files to printf-posix, sigpipe
24079         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
24080         since this symbol is needed only if printf is replaced.
24081         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
24082         Require gl_ASM_SYMBOL_PREFIX.
24083         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
24084         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
24085         (Depends-on): Add 'raise'.
24086         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
24087         * modules/stdio (Files): Remove lib/stdio-write.c,
24088         m4/asm-underscore.m4.
24089         (Depends-on): Remove 'raise'.
24090
24091         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
24092         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
24093         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
24094         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
24095
24096 2011-02-28  Bruno Haible  <bruno@clisp.org>
24097
24098         localcharset: Assume ANSI C behaviour of free().
24099         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
24100         calling free().
24101         Suggested by Simon Josefsson <simon@josefsson.org>.
24102
24103 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
24104             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
24105             Bruno Haible  <bruno@clisp.org>  (tiny change)
24106
24107         On Cygwin, use /proc file system instead of win32 API.
24108         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
24109         Win32 file names.
24110         (DllMain): Simplify by removing Cygwin specific code.
24111         (find_shared_library_fullname): Use Linux specific implementation also
24112         for Cygwin.
24113         (get_shared_library_fullname): Update accordingly.
24114         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
24115         Win32 file names.
24116         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
24117         Cygwin specific code.
24118
24119 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
24120             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
24121
24122         Fix OpenMP flag detection for various Fortran compilers.
24123         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
24124         OpenMP-conditional compilation construct, to force compile
24125         failure with missing OpenMP flag.
24126         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
24127
24128 2011-02-25  Eric Blake  <eblake@redhat.com>
24129
24130         strstr: expand test coverage
24131         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
24132         compilation.
24133         * tests/test-memmem.c (main): Duplicate tests.
24134         * tests/test-strcasestr.c (main): Likewise.
24135         * tests/test-c-strcasestr.c (main): Likewise.
24136
24137 2011-02-25  Jim Meyering  <meyering@redhat.com>
24138
24139         maint.mk: detect missing-NL-at-EOF, too
24140         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
24141         it also detects when a file lacks a newline at EOF.
24142         (require_exactly_one_NL_at_EOF_): Renamed from
24143         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
24144         since people may well have .x-sc_... file names tied to the
24145         existing name.  Suggested by Eric Blake.
24146
24147 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24148
24149         dirname: move m4/dos.m4 functionality into lib/dosname.h
24150
24151         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
24152         extracts symbols from it, puts them into config.h; but it's much
24153         easier to use the symbols directly.  filename.h already does this,
24154         but it disagrees with dos.m4 in some respects.  This patch
24155         introduces a different include file dosname.h that packages up
24156         dos.m4, and then later we can work on merging filename.h and
24157         dosname.h.  Applications that need only the easy-to-configure
24158         symbols should consider including dosname.h rather than dirname.h.
24159         * NEWS: Mention incompatible changes.
24160         * m4/dos.m4: Remove.
24161         * lib/dosname.h, modules/dosname: New files.
24162         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
24163         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
24164         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
24165         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
24166         Include dosname.h, not dirname.h.
24167         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
24168         Include dosname.h, for definitions of symbols like ISSLASH
24169         that used to be in config.h.
24170         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
24171         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24172         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24173         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24174         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
24175         * modules/rmdir (Files): Likewise.
24176         * modules/stat (Files): Likewise.
24177         * modules/unlink (Files): Likewise.
24178         * modules/dirname-lgpl (Depends-on): Add dosname.
24179         * modules/lstat (Depends-on): Likewise.
24180         * modules/openat (Depends-on): Likewise.
24181         * modules/rmdir (Depends-on): Likewise.
24182         * modules/savewd (Depends-on): Likewise.
24183         * modules/stat (Depends-on): Likewise.
24184         * modules/unlink (Depends-on): Likewise.
24185         * modules/openat (Depends-on): Remove dirname-lgpl.
24186         * modules/savewd (Depends-on): Likewise.
24187         * tests/test-dirname.c: Do not use removed symbols like
24188         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
24189         the remaining symbols, e.g., ISSLASH ('\\').
24190
24191 2011-02-25  Eric Blake  <eblake@redhat.com>
24192
24193         strstr: revert patches that introduced bug and pessimization
24194         * lib/str-two-way.h: Add another reference.
24195         (two_way_short_needle, two_way_long_needle): Revert changes from
24196         2011-02-24; they pessimize search speed.
24197         (critical_factorization): Partially revert changes from
24198         2010-06-22; they violate the requirement that the left half of the
24199         needle be smaller than the period of the needle.
24200
24201 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24202
24203         filenamecat: remove unnecessary dependency on dirname-lgpl
24204         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
24205         is no direct dependency, just an indirect one via filenamecat-lgpl.
24206
24207         remove: remove unnecessary use of m4/dos.m4
24208         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
24209         * modules/remove (FILES): Remove m4/dos.m4.
24210
24211         * lib/openat-proc.c: Don't include dirname.h; not needed.
24212
24213         backupfile: remove unnecessary use of m4/dos.m4
24214         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
24215         of its symbols are used by the backupfile code.  backupfile.c does
24216         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
24217         for the rare case of programs that want all their backup file
24218         names to live within 8+3 limits, and dos.m4 doesn't address that.
24219         * modules/backupfile (Files): Remove m4/dos.m4.
24220
24221 2011-02-24  Jim Meyering  <meyering@redhat.com>
24222
24223         strstr: fix a bug whereby strstr would mistakenly return NULL
24224         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
24225         in period calculation.
24226         (two_way_long_needle): Likewise.
24227         The original problem was reported by Mike Stump in
24228         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
24229         Ralf Wildenhues provided the short needle and haystack.
24230         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
24231         Add a more involved test to trigger the bug in two_way_long_needle.
24232
24233 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24234
24235         gnulib-tool: remove use of bold display in help screen
24236         * gnulib-tool (func_usage): Do not use bold display anymore in the
24237         help screen.  That was just meant to be a temporary emphasis for a
24238         backward-incompatible change.
24239
24240 2011-02-23  Bruno Haible  <bruno@clisp.org>
24241
24242         Fix misindentation of preprocessor directives.
24243         * lib/argp-namefrob.h: Reindent preprocessor directives.
24244         * lib/getopt_int.h (struct _getopt_data): Likewise.
24245         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
24246         * lib/vasnprintf.c (decode_long_double): Likewise.
24247         * tests/test-argmatch.c: Insert blank lines, for clarity.
24248         * tests/test-exclude.c: Likewise.
24249
24250 2011-02-22  Bruno Haible  <bruno@clisp.org>
24251
24252         ioctl: Fix for MacOS X in 64-bit mode.
24253         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
24254         value.
24255         Suggested by Eric Blake.
24256         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
24257
24258 2011-02-22  Jim Meyering  <meyering@redhat.com>
24259
24260         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
24261         * Makefile (sc_cpp_indent_check): Don't limit the check to files
24262         in lib/.
24263
24264 2011-02-22  Eric Blake  <eblake@redhat.com>
24265
24266         maint: avoid any CDPATH issue
24267         * Makefile (sc_cpp_indent_check): Anchor cd argument.
24268
24269         maint: adjust cpp indentation for my modules, as well
24270         * Makefile (sc_cpp_indent_check): Add my name.
24271         * lib/fbufmode.c: Filter through cppi.
24272         * lib/fpurge.c: Likewise.
24273         * lib/freadable.c: Likewise.
24274         * lib/freading.c: Likewise.
24275         * lib/fwritable.c: Likewise.
24276         * lib/fwriting.c: Likewise.
24277         * lib/sigaction.c: Likewise.
24278
24279 2011-02-22  Jim Meyering  <meyering@redhat.com>
24280
24281         maint: adjust cpp indentation to reflect nesting depth
24282         I.e., in a block of code that begins with an unnested "#if",
24283         put one space between the "#" in column 1 and following token.
24284         For example,
24285         -#include <sys/vfs.h>
24286         +# include <sys/vfs.h>
24287         Do this only in .c files that are part of a module I maintain.
24288         * lib/linkat.c: Filter through cppi.
24289         * lib/nanosleep.c: Likewise.
24290         * lib/openat.c: Likewise.
24291         * lib/openat-die.c: Likewise.
24292         * lib/dup3.c: Likewise.
24293         * lib/fchownat.c: Likewise.
24294         * lib/flock.c: Likewise.
24295         * lib/fsync.c: Likewise.
24296         * lib/fts.c: Likewise.
24297         * lib/getpass.c: Likewise.
24298         * lib/gettimeofday.c: Likewise.
24299         * lib/userspec.c: Likewise.
24300         * Makefile (sc_cpp_indent_check): New rule, to check this.
24301
24302 2011-02-22  Bruno Haible  <bruno@clisp.org>
24303
24304         New module 'wctomb'.
24305         * lib/stdlib.in.h (wctomb): New declaration.
24306         * lib/wctomb.c: New file.
24307         * lib/wctomb-impl.h: New file.
24308         * m4/wctomb.m4: New file.
24309         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
24310         REPLACE_WCTOMB.
24311         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
24312         REPLACE_WCTOMB.
24313         * modules/wctomb: New file.
24314         * tests/test-stdlib-c++.cc: Test signature of wctomb.
24315         * doc/posix-functions/wctomb.texi: Mention the new module.
24316         * modules/wctob (Depends-on): Add wctomb.
24317
24318 2011-02-22  Bruno Haible  <bruno@clisp.org>
24319
24320         New module 'mbtowc'.
24321         * lib/stdlib.in.h (mbtowc): New declaration.
24322         * lib/mbtowc.c: New file.
24323         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24324         * m4/mbtowc.m4: New file.
24325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24326         REPLACE_MBTOWC.
24327         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24328         REPLACE_MBTOWC.
24329         * modules/mbtowc: New file.
24330         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24331         * doc/posix-functions/mbtowc.texi: Mention the new module.
24332         * modules/btowc (Depends-on): Add mbtowc.
24333
24334 2011-02-22  Bruno Haible  <bruno@clisp.org>
24335
24336         wcrtomb: Add more tests for native Windows platforms.
24337         * tests/test-wcrtomb-w32-1.sh: New file.
24338         * tests/test-wcrtomb-w32-2.sh: New file.
24339         * tests/test-wcrtomb-w32-3.sh: New file.
24340         * tests/test-wcrtomb-w32-4.sh: New file.
24341         * tests/test-wcrtomb-w32-5.sh: New file.
24342         * tests/test-wcrtomb-w32.c: New file.
24343         * modules/wcrtomb-tests (Files): Add them.
24344         (Makefile.am): Arrange to run these tests.
24345         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24346         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24347
24348 2011-02-20  Bruno Haible  <bruno@clisp.org>
24349
24350         wcrtomb: Enhance test.
24351         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24352
24353 2011-02-20  Bruno Haible  <bruno@clisp.org>
24354
24355         mbrtowc: Tiny optimization.
24356         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24357
24358 2011-02-20  Jim Meyering  <meyering@redhat.com>
24359
24360         test-exclude.c: remove unmatched #endif
24361         * tests/test-exclude.c: Remove stray #endif, left over from
24362         the change of a week ago.
24363
24364 2011-02-19  Jim Meyering  <meyering@redhat.com>
24365
24366         git-version-gen: skip "-dirty" check when appropriate
24367         * build-aux/git-version-gen: Don't run any git commands when the
24368         version string comes from .tarball-version.  Prior to this, we
24369         would run git update-index --refresh even from a just-unpacked
24370         tarball directory, and that could affect a .git/ directory in a
24371         parent of the build directory.  Reported by Mike Frysinger.
24372
24373 2011-02-19  Bruno Haible  <bruno@clisp.org>
24374
24375         unictype/property-byname: Reduce the size of the 'data' segment.
24376         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24377
24378 2011-02-19  Bruno Haible  <bruno@clisp.org>
24379
24380         unictype/scripts: Reduce the size of the 'data' segment.
24381         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24382         '%pic'.
24383         * lib/unictype/scripts_byname.gperf: Regenerated.
24384
24385 2011-02-19  Bruno Haible  <bruno@clisp.org>
24386
24387         stdint: Update documentation.
24388         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
24389
24390 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24391
24392         stdint: omit redundant check for wchar.h
24393         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24394         always tests whether wchar.h exists, so remove the now-redundant test.
24395
24396 2011-02-18  Bruno Haible  <bruno@clisp.org>
24397
24398         stdint: Cut dependency to module 'wchar'.
24399         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24400         include the necessary prerequisites.
24401         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24402         * modules/stdint (Depends-on): Remove wchar.
24403         (Makefile.am): Substitute HAVE_WCHAR_H.
24404         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24405
24406 2011-02-18  Eric Blake  <eblake@redhat.com>
24407
24408         longlong: skip, rather than fail, on cross-compilation
24409         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24410         when cross-compiling; regression from 2011-02-16.
24411
24412 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24413
24414         * NEWS: Mention 2011-02-08 change to stdlib.
24415
24416 2011-02-17  Bruno Haible  <bruno@clisp.org>
24417
24418         getloadavg: Add comments about platforms.
24419         * m4/getloadavg.m4: Add comment.
24420         * lib/getloadavg.c: Likewise.
24421
24422 2011-02-17  Bruno Haible  <bruno@clisp.org>
24423
24424         getloadavg: Fix link error on Solaris 2.6.
24425         * modules/getloadavg (Link): New section.
24426         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24427         linking test-getloadavg.
24428         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24429         getloadavg.
24430
24431 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24432
24433         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24434         It was 'int', but this doesn't match the IRIX 6.5 manual.
24435         Suggested by Bruno Haible in
24436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24437
24438 2011-02-17  Bruno Haible  <bruno@clisp.org>
24439
24440         havelib: Fix comments.
24441         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24442         change.
24443
24444 2011-02-17  Bruno Haible  <bruno@clisp.org>
24445
24446         havelib: Update config.rpath.
24447         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24448
24449 2011-02-17  Bruno Haible  <bruno@clisp.org>
24450
24451         getloadavg test: Add some plausibility checks.
24452         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24453         is improbable.
24454
24455 2011-02-16  Eric Blake  <eblake@redhat.com>
24456
24457         maintainer-makefile: make syntax-check a no-op from tarballs
24458         * top/maint.mk (no-vc-detected): New rule.
24459         (local-checks-available): Use it to avoid hanging if someone tries
24460         'make syntax-check' from a tarball.  Also append to any non-syntax
24461         checks already defined in cfg.mk.
24462
24463 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24464
24465         longlong: tune, particularly for common case of c99
24466
24467         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24468         or running anything if c99, or if unsigned long long int does not
24469         work.  In either case, we know the answer without further tests.
24470         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24471         it at most once, and use its results for both long long int and
24472         unsigned long long int.  This is more likely to be efficient in
24473         the common case where the program wants to check for both long
24474         long int and unsigned long long int.
24475         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24476         since the answer is already known.
24477
24478 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24479
24480         getloadavg: set errno
24481         * lib/getloadavg.c: Set errno when returning -1.  If no other
24482         error number looks appropriate, set it to ENOSYS if the getloadavg
24483         looks like it can't possibly ever work, ENOTSUP otherwise.
24484         Suggested by Bruno Haible in
24485         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
24486
24487         getloadavg: trim unused parts and speed up 'configure'
24488         * NEWS: Document this.
24489         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
24490         always compiled if getloadavg is absent.
24491         Move test code to ...
24492         * tests/test-getloadavg.c: New file, containing previous
24493         contents of test from lib/getloadavg.c.  It also contains
24494         suggestions by Bruno Haible in
24495         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
24496         * modules/getloadavg-tests: New file.
24497         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
24498         Do tests in the same order as they're needed for getloadavg.c.
24499         Omit setgid-related tests that generate symbols KMEM_GROUP,
24500         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
24501         Do only the tests that are needed to see whether the system has
24502         getloadavg, moving the other tests into ...
24503         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
24504         NLIST_NAME_UNION; nobody should be using it.  Do not define
24505         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
24506         relevant, as the user of this module shouldn't care how getloadavg
24507         is implemented.
24508
24509         getloadavg: omit unused var
24510         * lib/getloadavg.c (getloadavg): Omit unused local variable.
24511
24512 2011-02-15  Jim Meyering  <meyering@redhat.com>
24513
24514         doc: update users.txt
24515         * users.txt: Update iwhd's URL.
24516
24517 2011-02-13  Bruno Haible  <bruno@clisp.org>
24518
24519         Consistent macro naming for macros that use GCC __attribute__.
24520         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
24521         _ATTRIBUTE_NONNULL_.
24522         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
24523         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
24524         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
24525         ATTRIBUTE_DEPRECATED.
24526         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
24527         ATTRIBUTE_NORETURN.
24528         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24529         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24530         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24531         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24532         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
24533         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
24534         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
24535         ATTRIBUTE_SENTINEL.
24536         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
24537         ATTRIBUTE_RETURN_CHECK.
24538         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
24539         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
24540         ATTRIBUTE_NORETURN.
24541         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
24542         Reported by Paul Eggert.
24543
24544 2011-02-13  Bruno Haible  <bruno@clisp.org>
24545
24546         Don't interfere with a program's definition of __attribute__.
24547         * lib/argp.h (__attribute__): Remove definition.
24548         (_GL_ATTRIBUTE_FORMAT): New macro.
24549         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
24550         * lib/argp-fmtstream.h (__attribute__): Remove definition.
24551         (_GL_ATTRIBUTE_FORMAT): New macro.
24552         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
24553         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
24554         GCC 3 or newer.
24555         * lib/error.h (__attribute__): Remove definition.
24556         (_GL_ATTRIBUTE_FORMAT): New macro.
24557         (error, error_at_line): Use it.
24558         * lib/hash.h (__attribute__): Remove definition.
24559         (ATTRIBUTE_WUR): Update definition. Define always.
24560         * lib/openat.h (__attribute__): Remove definition.
24561         (ATTRIBUTE_NORETURN): Update definition. Define always.
24562         * lib/sigpipe-die.h (__attribute__): Remove definition.
24563         (ATTRIBUTE_NORETURN): Update definition. Define always.
24564         * lib/vasnprintf.h (__attribute__): Remove definition.
24565         (_GL_ATTRIBUTE_FORMAT): New macro.
24566         (asnprintf, vasnprintf): Use it.
24567         * lib/xalloc.h (__attribute__): Remove definition.
24568         (ATTRIBUTE_NORETURN): Update definition. Define always.
24569         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
24570         * lib/xmemdup0.h (__attribute__): Remove definition.
24571         (ATTRIBUTE_NORETURN): Update definition. Define always.
24572         * lib/xprintf.h (__attribute__): Remove definition.
24573         (_GL_ATTRIBUTE_FORMAT): New macro.
24574         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
24575         * lib/xstrtol.h (__attribute__): Remove definition.
24576         (ATTRIBUTE_NORETURN): Update definition. Define always.
24577         * lib/xvasprintf.h (__attribute__): Remove definition.
24578         (_GL_ATTRIBUTE_FORMAT): New macro.
24579         (xasprintf, xvasprintf): Use it.
24580         * tests/test-argmatch.c (__attribute__): Remove definition.
24581         (ATTRIBUTE_NORETURN): Update definition. Define always.
24582         * tests/test-exclude.c (__attribute__): Remove definition.
24583         (ATTRIBUTE_NORETURN): Update definition. Define always.
24584         Reported by Paul Eggert.
24585
24586 2011-02-13  Bruno Haible  <bruno@clisp.org>
24587
24588         mbrtowc: Add more tests for native Windows platforms.
24589         * tests/test-mbrtowc-w32-1.sh: New file.
24590         * tests/test-mbrtowc-w32-2.sh: New file.
24591         * tests/test-mbrtowc-w32-3.sh: New file.
24592         * tests/test-mbrtowc-w32-4.sh: New file.
24593         * tests/test-mbrtowc-w32-5.sh: New file.
24594         * tests/test-mbrtowc-w32.c: New file.
24595         * modules/mbrtowc-tests (Files): Add them.
24596         (Makefile.am): Arrange to run these tests.
24597         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
24598         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
24599
24600 2011-02-13  Bruno Haible  <bruno@clisp.org>
24601
24602         mbrtowc: Work around native Windows bug.
24603         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
24604         guess when no suitable locale for testing was found.
24605         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
24606
24607 2011-02-13  Bruno Haible  <bruno@clisp.org>
24608
24609         mbsinit: Work around mingw bug.
24610         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
24611         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
24612         Windows.
24613         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
24614
24615 2011-02-13  Bruno Haible  <bruno@clisp.org>
24616
24617         mbsinit: Don't crash for a NULL argument.
24618         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
24619         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
24620
24621 2011-02-13  Bruno Haible  <bruno@clisp.org>
24622
24623         Don't interfere with a program's definition of __attribute__.
24624         * lib/stdio.in.h (__attribute__): Remove definition.
24625         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
24626         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
24627         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
24628         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
24629         * lib/string.in.h (__attribute__): Remove definition.
24630         Reported by Paul Eggert.
24631
24632 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24633
24634         stdlib: don't get in the way of non-GCC __attribute__
24635         See thread starting at
24636         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
24637         Revert previous stdlib change, installing the following instead:
24638         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
24639         to get in the way of a non-GCC compiler that supports __attribute__.
24640         (_GL_ATTRIBUTE_RETURN): New macro.
24641         (_Exit): Use it instead of __attribute__.
24642
24643 2011-02-12  Bruno Haible  <bruno@clisp.org>
24644
24645         quotearg test: Avoid test failure on mingw.
24646         * tests/test-quotearg.sh: Convert the locale identifier from native
24647         Windows syntax to Unix syntax.
24648
24649 2011-02-12  Bruno Haible  <bruno@clisp.org>
24650
24651         setlocale: Prefer gnulib's override over libintl's override.
24652         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
24653         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
24654         GNULIB_defined_setlocale is set.
24655
24656 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24657
24658         stdlib: support non-GCC __attribute__
24659
24660         Fix a serious and tricky problem encountered when attempting to
24661         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
24662         5.5, but it crashed due to memory corruption on Solaris 10 with
24663         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
24664         bits that are otherwise zero.  This tagging is optional inside
24665         Emacs but is preferred and is used when __attribute__ ((__aligned
24666         (8))) works, as it does with both recent-enough GCC and with Sun C
24667         5.11.  However, Sun C 5.11 is not GCC and does not #define
24668         __GNUC__ and __GNUC_MINOR__.
24669
24670         When I added the getloadavg module to Emacs, it brought in
24671         stdlib.in.h, which contained this fragment:
24672
24673            #ifndef __attribute__
24674            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
24675            #  define __attribute__(Spec)   /* empty */
24676            # endif
24677            #endif
24678
24679         When files that include <stdlib.h> were compiled with Sun C 5.11,
24680         the above code disabled __attribute__ ((__aligned (8))), which
24681         caused variables to not be properly aligned, which eventually led
24682         to the pointer corruption mentioned above.  (This was a bit hard
24683         to diagnose, unfortunately.)
24684
24685         Several "#define __attribute__(X) /* empty */" code snippets need
24686         to be eradicated from Gnulib to work with non-GCC compilers that
24687         support __attribute__.  The Autoconf way to do this is to test for
24688         each kind of attribute that we want support for, and selectively
24689         enable that in source code.
24690
24691         Fix this problem just for stdlib.h, by adding a test for the
24692         __noreturn__ attribute, and change stdlib.in.h to use that test
24693         when needed.  This technique can be easily generalized to the
24694         other *.in.h files and attributes, and a similar technique can be
24695         used for *.h and *.c files.  This patch is enough to solve the
24696         problem for Emacs + getloadavg, and I thought I'd publish it for
24697         feedback before undertaking further, similar fixes in other
24698         modules.
24699
24700         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
24701         because it's not needed for stdlib.h.  It merely substitutes the
24702         value directly into stdlib.h.  We may well need to #define it, or
24703         similar symbols, for other modules, but it's nice to also have an
24704         option to not #define it for applications like Emacs that do not
24705         need it.
24706
24707         * lib/stdlib.in.h (__attribute__): Do not #define.
24708         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
24709         be defined only if the _Exit module is also used.
24710         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
24711         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
24712         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
24713         platforms.
24714         * modules/_Exit (Files): Add m4/attribute.m4.
24715         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
24716         * m4/attribute.m4: New file.
24717
24718 2011-02-12  Bruno Haible  <bruno@clisp.org>
24719
24720         wcsrtombs: Work around bug on native Windows.
24721         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
24722         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
24723         instead of len.
24724         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
24725
24726 2011-02-12  Bruno Haible  <bruno@clisp.org>
24727
24728         mbsrtowcs: Work around bug on native Windows.
24729         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
24730         against mingw bug.
24731         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
24732
24733 2011-02-12  Bruno Haible  <bruno@clisp.org>
24734
24735         Avoid setlocale bugs in tests.
24736         * modules/btowc (Dependencies): Add setlocale.
24737         * modules/c-strcase (Dependencies): Likewise.
24738         * modules/mbmemcasecmp (Dependencies): Likewise.
24739         * modules/mbmemcasecoll (Dependencies): Likewise.
24740         * modules/mbrtowc (Dependencies): Likewise.
24741         * modules/mbscasecmp (Dependencies): Likewise.
24742         * modules/mbscasestr (Dependencies): Likewise.
24743         * modules/mbschr (Dependencies): Likewise.
24744         * modules/mbscspn (Dependencies): Likewise.
24745         * modules/mbsinit (Dependencies): Likewise.
24746         * modules/mbsncasecmp (Dependencies): Likewise.
24747         * modules/mbsnrtowcs (Dependencies): Likewise.
24748         * modules/mbspbrk (Dependencies): Likewise.
24749         * modules/mbspcasecmp (Dependencies): Likewise.
24750         * modules/mbsrchr (Dependencies): Likewise.
24751         * modules/mbsrtowcs (Dependencies): Likewise.
24752         * modules/mbsspn (Dependencies): Likewise.
24753         * modules/mbsstr (Dependencies): Likewise.
24754         * modules/nl_langinfo (Dependencies): Likewise.
24755         * modules/quotearg (Dependencies): Likewise.
24756         * modules/unicase/locale-language (Dependencies): Likewise.
24757         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
24758         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
24759         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
24760         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
24761         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
24762         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
24763         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
24764         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
24765         * modules/vasnprintf-posix (Dependencies): Likewise.
24766         * modules/wcrtomb (Dependencies): Likewise.
24767         * modules/wcsnrtombs (Dependencies): Likewise.
24768         * modules/wcsrtombs (Dependencies): Likewise.
24769
24770 2011-02-12  Bruno Haible  <bruno@clisp.org>
24771
24772         setlocale: Workaround native Windows bug.
24773         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
24774         succeeds but sets LC_CTYPE to "C", report a failure.
24775         * tests/test-setlocale2.sh: New file.
24776         * tests/test-setlocale2.c: New file.
24777         * modules/setlocale-tests (Files): Add the new files.
24778         (Makefile.am): Enable test-setlocale2.sh test.
24779         * doc/posix-functions/setlocale.texi: Mention workaround.
24780
24781 2011-02-11  Bruno Haible  <bruno@clisp.org>
24782
24783         Tests for module 'setlocale'.
24784         * modules/setlocale-tests: New file.
24785         * tests/test-setlocale1.sh: New file.
24786         * tests/test-setlocale1.c: New file.
24787
24788         New module 'setlocale'.
24789         * lib/locale.in.h (setlocale): New declaration.
24790         * lib/setlocale.c: New file, based on
24791         gettext/gettext-runtime/intl/setlocale.c.
24792         * m4/setlocale.m4: New file.
24793         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
24794         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
24795         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
24796         REPLACE_SETLOCALE.
24797         * modules/setlocale: New file.
24798         * tests/test-locale-c++.cc: Test the declaration of setlocale.
24799         * doc/posix-functions/setlocale.texi: Mention the new module.
24800
24801 2011-02-11  Bruno Haible  <bruno@clisp.org>
24802
24803         Prepare for locale dependent tests on mingw.
24804         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
24805         because it has the wrong locale encoding.
24806         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
24807         French_France.1252 instead of "fr".
24808         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
24809         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
24810         because it has the wrong locale encoding.
24811         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
24812         native Windows, try Turkish_Turkey.65001.
24813         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
24814         Chinese_China.54936.
24815
24816         Prepare for locale dependent tests on mingw.
24817         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
24818         differently.
24819         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
24820         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
24821         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24822         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24823
24824 2011-02-11  Eric Blake  <eblake@redhat.com>
24825
24826         strptime: avoid compiler warnings
24827         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
24828         compiler warnings about dead code.
24829         Reported by Daniel P. Berrange.
24830
24831 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
24832
24833         doc: update users.txt
24834         * users.txt: Add rcs.
24835
24836 2011-02-10  John W. Eaton  <jwe@gnu.org>
24837
24838         doc: update users.txt
24839         * users.txt: Add octave.
24840
24841 2011-02-10  Jim Meyering  <meyering@redhat.com>
24842
24843         doc: update users.txt
24844         * users.txt: Add iwhd.
24845
24846 2011-02-09  Bruno Haible  <bruno@clisp.org>
24847
24848         gnulib-tool: Make copyright notice adjustment more robust.
24849         * gnulib-tool (func_import): In sed_transform_main_lib_file,
24850         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
24851         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
24852         License".
24853         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
24854
24855 2011-02-06  Bruno Haible  <bruno@clisp.org>
24856
24857         New module 'towctrans'.
24858         * modules/towctrans: New file.
24859         * lib/wctype.in.h (towctrans): New declaration.
24860         * lib/towctrans.c: New file.
24861         * lib/towctrans-impl.h: New file.
24862         * m4/towctrans.m4: New file.
24863         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
24864         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
24865         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
24866         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
24867         * doc/posix-functions/towctrans.texi: Mention the new module.
24868
24869 2011-02-06  Bruno Haible  <bruno@clisp.org>
24870
24871         New module 'wctrans'.
24872         * modules/wctrans: New file.
24873         * lib/wctype.in.h (wctrans): New declaration.
24874         * lib/wctrans.c: New file.
24875         * lib/wctrans-impl.h: New file.
24876         * m4/wctrans.m4: New file.
24877         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
24878         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
24879         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
24880         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
24881         * doc/posix-functions/wctrans.texi: Mention the new module.
24882
24883 2011-02-06  Bruno Haible  <bruno@clisp.org>
24884
24885         New module 'iswctype'.
24886         * modules/iswctype: New file.
24887         * lib/wctype.in.h (iswctype): New declaration.
24888         * lib/iswctype.c: New file.
24889         * lib/iswctype-impl.h: New file.
24890         * m4/iswctype.m4: New file.
24891         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
24892         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
24893         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
24894         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
24895         * doc/posix-functions/iswctype.texi: Mention the new module and the
24896         HP-UX 11.00 problem.
24897
24898 2011-02-06  Bruno Haible  <bruno@clisp.org>
24899
24900         New module 'wctype'.
24901         * modules/wctype: Change to represent the wctype() substitute.
24902         * lib/wctype.in.h (wctype): New declaration.
24903         * lib/wctype.c: New file.
24904         * lib/wctype-impl.h: New file.
24905         * m4/wctype.m4: New file.
24906         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
24907         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
24908         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
24909         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
24910         * doc/posix-functions/wctype.texi: Mention the new module and the
24911         HP-UX 11.00 problem.
24912
24913 2011-02-06  Bruno Haible  <bruno@clisp.org>
24914
24915         wctype-h: Ensure wctype_t and wctrans_t are defined.
24916         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
24917         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24918         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24919         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
24920         HAVE_WCTRANS_T.
24921         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
24922
24923 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24924
24925         flock: fix license typo
24926
24927         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
24928         omitted.
24929
24930 2011-02-08  Bruno Haible  <bruno@clisp.org>
24931
24932         Split large sed scripts, for HP-UX sed.
24933         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
24934         to avoid HP-UX limit of 99 commands, in the near future.
24935         * modules/stdlib (Makefile.am): Likewise.
24936         * modules/unistd (Makefile.am): Likewise.
24937         * modules/wchar (Makefile.am): Likewise.
24938         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24939         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
24940         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
24941
24942 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24943             Bruno Haible  <bruno@clisp.org>
24944
24945         stdlib: improve random_r modularization
24946         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
24947         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
24948         you also need the random_r module to get this material right.
24949         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
24950         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
24951         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
24952
24953 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24954
24955         stdlib: don't depend on stdint
24956         * lib/stdlib.in.h: Don't include <stdint.h> merely because
24957         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
24958         be independent of whether stdint.h is needed.
24959         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
24960         here, instead of ...
24961         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
24962         struct random_data should be using the random_r module, not just
24963         the stdlib module (which wouldn't make sense: what package needs
24964         just struct random_data without also needing random_r?).
24965         * modules/stdlib (Depends-on): Remove stdint.
24966
24967         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
24968         See the thread rooted at
24969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
24970         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
24971         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
24972         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
24973         __VMS)); previously it was always included (via fcntl--.h).
24974         (getloadavg): Do not use c_strtod.  Instead, approximate it by
24975         hand; this is good enough for load averages.  Also, do not use
24976         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
24977         flags directly if available and don't bother otherwise.  (Packages
24978         that need the extra reliability should use the modules that define
24979         these flags on older platforms that lack them.)
24980         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
24981         fcntl-safer.
24982
24983 2011-02-08  Jim Meyering  <meyering@redhat.com>
24984
24985         di-set.h, ino-map.h: add multiple-inclusion guard
24986         Technically, the guard is required only for ino-map.h, due to its
24987         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
24988         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
24989         * lib/ino-map.h: Likewise.
24990
24991 2011-02-06  Bruno Haible  <bruno@clisp.org>
24992
24993         iswblank: Ensure declaration on glibc systems.
24994         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
24995         * modules/iswblank (Dependencies): Add 'extensions'.
24996         * doc/posix-functions/iswblank.texi: Document the glibc problem.
24997
24998 2011-02-06  Bruno Haible  <bruno@clisp.org>
24999
25000         New module 'iswblank'.
25001         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
25002         * modules/iswblank: New file.
25003         * modules/wctype-h (Files): Remove lib/iswblank.c.
25004         (Makefile.am): Substitute GNULIB_ISWBLANK.
25005         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
25006         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
25007         (gl_WCTYPE_H_DEFAULTS): New macro.
25008         (gl_WCTYPE_H): Require it. Remove iswblank related code.
25009         * modules/iswblank-tests: New file.
25010         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
25011         * tests/test-wctype-h.c (main): Remove iswblank tests.
25012         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
25013         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
25014         of 'wctype-h'.
25015         * NEWS: Mention the change.
25016         * modules/mbchar (Depends-on): Add iswblank.
25017
25018 2011-02-08  Bruno Haible  <bruno@clisp.org>
25019
25020         di-set tests: Refactor.
25021         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
25022         unnecessary includes.
25023         (ASSERT): Remove macro.
25024         (main): Make C90 compliant by avoiding variable declaration after
25025         statement.
25026         * modules/di-set-tests (Files): Add tests/macros.h.
25027
25028 2011-02-08  Bruno Haible  <bruno@clisp.org>
25029
25030         ino-map tests: Refactor.
25031         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
25032         unnecessary includes.
25033         (ASSERT): Remove macro.
25034         (main): Make C90 compliant by avoiding variable declaration after
25035         statement.
25036         * modules/ino-map-tests (Files): Add tests/macros.h.
25037
25038 2011-02-08  Jim Meyering  <meyering@redhat.com>
25039
25040         di-set: add "const" to a cast
25041         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
25042         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
25043
25044 2011-02-06  Bruno Haible  <bruno@clisp.org>
25045
25046         Rename module 'wctype' to 'wctype-h'.
25047         * modules/wctype-h: Renamed from modules/wctype.
25048         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
25049         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
25050         (Files, Depends-on, Makefile.am): Update.
25051         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
25052         (Files, Makefile.am): Update.
25053         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
25054         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
25055         * doc/posix-headers/wctype.texi: Update.
25056         * doc/posix-functions/iswalnum.texi: Update.
25057         * doc/posix-functions/iswalpha.texi: Update.
25058         * doc/posix-functions/iswblank.texi: Update.
25059         * doc/posix-functions/iswcntrl.texi: Update.
25060         * doc/posix-functions/iswdigit.texi: Update.
25061         * doc/posix-functions/iswgraph.texi: Update.
25062         * doc/posix-functions/iswlower.texi: Update.
25063         * doc/posix-functions/iswprint.texi: Update.
25064         * doc/posix-functions/iswpunct.texi: Update.
25065         * doc/posix-functions/iswspace.texi: Update.
25066         * doc/posix-functions/iswupper.texi: Update.
25067         * doc/posix-functions/iswxdigit.texi: Update.
25068         * doc/posix-functions/towlower.texi: Update.
25069         * doc/posix-functions/towupper.texi: Update.
25070         * NEWS: Mention the change.
25071         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
25072         * modules/mbchar (Dependencies): Likewise.
25073         * modules/mbswidth (Dependencies): Likewise.
25074         * modules/quotearg (Dependencies): Likewise.
25075         * modules/regex (Dependencies): Likewise.
25076         * modules/wcscasecmp (Dependencies): Likewise.
25077         * modules/wcsncasecmp (Dependencies): Likewise.
25078         * modules/wcwidth (Dependencies): Likewise.
25079
25080 2011-02-06  Bruno Haible  <bruno@clisp.org>
25081
25082         New module 'wcswidth'.
25083         * modules/wcswidth: New file.
25084         * lib/wchar.in.h (wcswidth): New declaration.
25085         * lib/wcswidth.c: New file.
25086         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
25087         * m4/wcswidth.m4: New file.
25088         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
25089         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
25090         REPLACE_WCSWIDTH.
25091         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
25092         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
25093         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
25094         * doc/posix-functions/wcswidth.texi: Mention the new module.
25095
25096 2011-02-06  Bruno Haible  <bruno@clisp.org>
25097
25098         New module 'wcstok'.
25099         * modules/wcstok: New file.
25100         * lib/wchar.in.h (wcstok): New declaration.
25101         * lib/wcstok.c: New file.
25102         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
25103         * m4/wcstok.m4: New file.
25104         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
25105         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
25106         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
25107         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
25108         * doc/posix-functions/wcstok.texi: Mention the new module.
25109
25110 2011-02-06  Bruno Haible  <bruno@clisp.org>
25111
25112         New module 'wcsstr'.
25113         * modules/wcsstr: New file.
25114         * lib/wchar.in.h (wcsstr): New declaration.
25115         * lib/wcsstr.c: New file.
25116         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
25117         * m4/wcsstr.m4: New file.
25118         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
25119         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
25120         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
25121         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
25122         * doc/posix-functions/wcsstr.texi: Mention the new module.
25123
25124 2011-02-06  Bruno Haible  <bruno@clisp.org>
25125
25126         New module 'wcspbrk'.
25127         * modules/wcspbrk: New file.
25128         * lib/wchar.in.h (wcspbrk): New declaration.
25129         * lib/wcspbrk.c: New file.
25130         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
25131         * m4/wcspbrk.m4: New file.
25132         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
25133         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
25134         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
25135         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
25136         * doc/posix-functions/wcspbrk.texi: Mention the new module.
25137
25138 2011-02-06  Bruno Haible  <bruno@clisp.org>
25139
25140         New module 'wcsspn'.
25141         * modules/wcsspn: New file.
25142         * lib/wchar.in.h (wcsspn): New declaration.
25143         * lib/wcsspn.c: New file.
25144         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
25145         * m4/wcsspn.m4: New file.
25146         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
25147         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
25148         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
25149         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
25150         * doc/posix-functions/wcsspn.texi: Mention the new module.
25151
25152 2011-02-06  Bruno Haible  <bruno@clisp.org>
25153
25154         New module 'wcscspn'.
25155         * modules/wcscspn: New file.
25156         * lib/wchar.in.h (wcscspn): New declaration.
25157         * lib/wcscspn.c: New file.
25158         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
25159         * m4/wcscspn.m4: New file.
25160         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
25161         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
25162         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
25163         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
25164         * doc/posix-functions/wcscspn.texi: Mention the new module.
25165
25166 2011-02-06  Bruno Haible  <bruno@clisp.org>
25167
25168         New module 'wcsrchr'.
25169         * modules/wcsrchr: New file.
25170         * lib/wchar.in.h (wcsrchr): New declaration.
25171         * lib/wcsrchr.c: New file.
25172         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
25173         * m4/wcsrchr.m4: New file.
25174         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
25175         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
25176         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
25177         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
25178         * doc/posix-functions/wcsrchr.texi: Mention the new module.
25179
25180 2011-02-06  Bruno Haible  <bruno@clisp.org>
25181
25182         New module 'wcschr'.
25183         * modules/wcschr: New file.
25184         * lib/wchar.in.h (wcschr): New declaration.
25185         * lib/wcschr.c: New file.
25186         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
25187         * m4/wcschr.m4: New file.
25188         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
25189         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
25190         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
25191         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
25192         * doc/posix-functions/wcschr.texi: Mention the new module.
25193
25194 2011-02-06  Bruno Haible  <bruno@clisp.org>
25195
25196         New module 'wcsdup'.
25197         * modules/wcsdup: New file.
25198         * lib/wchar.in.h (wcsdup): New declaration.
25199         * lib/wcsdup.c: New file.
25200         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
25201         * m4/wcsdup.m4: New file.
25202         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
25203         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
25204         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
25205         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
25206         * doc/posix-functions/wcsdup.texi: Mention the new module.
25207
25208 2011-02-06  Bruno Haible  <bruno@clisp.org>
25209
25210         New module 'wcsxfrm'.
25211         * modules/wcsxfrm: New file.
25212         * lib/wchar.in.h (wcsxfrm): New declaration.
25213         * lib/wcsxfrm.c: New file.
25214         * lib/wcsxfrm-impl.h: New file.
25215         * m4/wcsxfrm.m4: New file.
25216         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
25217         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
25218         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
25219         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
25220         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
25221
25222 2011-02-06  Bruno Haible  <bruno@clisp.org>
25223
25224         New module 'wcscoll'.
25225         * modules/wcscoll: New file.
25226         * lib/wchar.in.h (wcscoll): New declaration.
25227         * lib/wcscoll.c: New file.
25228         * lib/wcscoll-impl.h: New file.
25229         * m4/wcscoll.m4: New file.
25230         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
25231         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
25232         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
25233         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
25234         * doc/posix-functions/wcscoll.texi: Mention the new module.
25235
25236 2011-02-06  Bruno Haible  <bruno@clisp.org>
25237
25238         New module 'wcsncasecmp'.
25239         * modules/wcsncasecmp: New file.
25240         * lib/wchar.in.h (wcsncasecmp): New declaration.
25241         * lib/wcsncasecmp.c: New file.
25242         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
25243         * m4/wcsncasecmp.m4: New file.
25244         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
25245         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
25246         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
25247         HAVE_WCSNCASECMP.
25248         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
25249         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
25250
25251 2011-02-06  Bruno Haible  <bruno@clisp.org>
25252
25253         New module 'wcscasecmp'.
25254         * modules/wcscasecmp: New file.
25255         * lib/wchar.in.h (wcscasecmp): New declaration.
25256         * lib/wcscasecmp.c: New file.
25257         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
25258         * m4/wcscasecmp.m4: New file.
25259         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
25260         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
25261         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
25262         HAVE_WCSCASECMP.
25263         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
25264         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
25265
25266 2011-02-05  Bruno Haible  <bruno@clisp.org>
25267
25268         New module 'wcsncmp'.
25269         * modules/wcsncmp: New file.
25270         * lib/wchar.in.h (wcsncmp): New declaration.
25271         * lib/wcsncmp.c: New file.
25272         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
25273         * m4/wcsncmp.m4: New file.
25274         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
25275         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
25276         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
25277         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
25278         * doc/posix-functions/wcsncmp.texi: Mention the new module.
25279
25280 2011-02-05  Bruno Haible  <bruno@clisp.org>
25281
25282         New module 'wcscmp'.
25283         * modules/wcscmp: New file.
25284         * lib/wchar.in.h (wcscmp): New declaration.
25285         * lib/wcscmp.c: New file.
25286         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
25287         * m4/wcscmp.m4: New file.
25288         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
25289         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
25290         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
25291         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
25292         * doc/posix-functions/wcscmp.texi: Mention the new module.
25293
25294 2011-02-05  Bruno Haible  <bruno@clisp.org>
25295
25296         New module 'wcsncat'.
25297         * modules/wcsncat: New file.
25298         * lib/wchar.in.h (wcsncat): New declaration.
25299         * lib/wcsncat.c: New file.
25300         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
25301         * m4/wcsncat.m4: New file.
25302         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
25303         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
25304         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
25305         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
25306         * doc/posix-functions/wcsncat.texi: Mention the new module.
25307
25308 2011-02-05  Bruno Haible  <bruno@clisp.org>
25309
25310         New module 'wcscat'.
25311         * modules/wcscat: New file.
25312         * lib/wchar.in.h (wcscat): New declaration.
25313         * lib/wcscat.c: New file.
25314         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
25315         * m4/wcscat.m4: New file.
25316         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
25317         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
25318         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
25319         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
25320         * doc/posix-functions/wcscat.texi: Mention the new module.
25321
25322 2011-02-05  Bruno Haible  <bruno@clisp.org>
25323
25324         New module 'wcpncpy'.
25325         * modules/wcpncpy: New file.
25326         * lib/wchar.in.h (wcpncpy): New declaration.
25327         * lib/wcpncpy.c: New file.
25328         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25329         * m4/wcpncpy.m4: New file.
25330         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25331         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25332         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25333         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25334         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25335
25336 2011-02-05  Bruno Haible  <bruno@clisp.org>
25337
25338         New module 'wcsncpy'.
25339         * modules/wcsncpy: New file.
25340         * lib/wchar.in.h (wcsncpy): New declaration.
25341         * lib/wcsncpy.c: New file.
25342         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25343         * m4/wcsncpy.m4: New file.
25344         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25345         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25346         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25347         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25348         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25349
25350 2011-02-05  Bruno Haible  <bruno@clisp.org>
25351
25352         New module 'wcpcpy'.
25353         * modules/wcpcpy: New file.
25354         * lib/wchar.in.h (wcpcpy): New declaration.
25355         * lib/wcpcpy.c: New file.
25356         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25357         * m4/wcpcpy.m4: New file.
25358         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25359         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25360         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25361         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25362         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25363
25364 2011-02-05  Bruno Haible  <bruno@clisp.org>
25365
25366         New module 'wcscpy'.
25367         * modules/wcscpy: New file.
25368         * lib/wchar.in.h (wcscpy): New declaration.
25369         * lib/wcscpy.c: New file.
25370         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25371         * m4/wcscpy.m4: New file.
25372         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25373         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25374         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25375         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25376         * doc/posix-functions/wcscpy.texi: Mention the new module.
25377
25378 2011-02-05  Bruno Haible  <bruno@clisp.org>
25379
25380         New module 'wcsnlen'.
25381         * modules/wcsnlen: New file.
25382         * lib/wchar.in.h (wcsnlen): New declaration.
25383         * lib/wcsnlen.c: New file.
25384         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25385         * m4/wcsnlen.m4: New file.
25386         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
25387         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
25388         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
25389         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
25390         * doc/posix-functions/wcsnlen.texi: Mention the new module.
25391
25392 2011-02-05  Bruno Haible  <bruno@clisp.org>
25393
25394         New module 'wcslen'.
25395         * modules/wcslen: New file.
25396         * lib/wchar.in.h (wcslen): New declaration.
25397         * lib/wcslen.c: New file.
25398         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25399         * m4/wcslen.m4: New file.
25400         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25401         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25402         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25403         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25404         * doc/posix-functions/wcslen.texi: Mention the new module.
25405
25406 2011-02-05  Bruno Haible  <bruno@clisp.org>
25407
25408         New module 'wmemset'.
25409         * modules/wmemset: New file.
25410         * lib/wchar.in.h (wmemset): New declaration.
25411         * lib/wmemset.c: New file.
25412         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25413         * m4/wmemset.m4: New file.
25414         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25415         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25416         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25417         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25418         * doc/posix-functions/wmemset.texi: Mention the new module.
25419
25420 2011-02-05  Bruno Haible  <bruno@clisp.org>
25421
25422         New module 'wmemmove'.
25423         * modules/wmemmove: New file.
25424         * lib/wchar.in.h (wmemmove): New declaration.
25425         * lib/wmemmove.c: New file.
25426         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25427         * m4/wmemmove.m4: New file.
25428         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25429         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25430         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25431         HAVE_WMEMMOVE.
25432         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25433         * doc/posix-functions/wmemmove.texi: Mention the new module.
25434
25435 2011-02-05  Bruno Haible  <bruno@clisp.org>
25436
25437         New module 'wmemcpy'.
25438         * modules/wmemcpy: New file.
25439         * lib/wchar.in.h (wmemcpy): New declaration.
25440         * lib/wmemcpy.c: New file.
25441         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25442         * m4/wmemcpy.m4: New file.
25443         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25444         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25445         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25446         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25447         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25448
25449 2011-02-05  Bruno Haible  <bruno@clisp.org>
25450
25451         New module 'wmemcmp'.
25452         * modules/wmemcmp: New file.
25453         * lib/wchar.in.h (wmemcmp): New declaration.
25454         * lib/wmemcmp.c: New file.
25455         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25456         * m4/wmemcmp.m4: New file.
25457         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25458         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25459         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25460         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25461         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25462
25463 2011-02-07  Jim Meyering  <meyering@redhat.com>
25464
25465         di-set, ino-map: new modules, from coreutils
25466         * lib/di-set.c: New file.
25467         * lib/di-set.h: Likewise.
25468         * lib/ino-map.c: Likewise.
25469         * lib/ino-map.h: Likewise.
25470         * modules/di-set: Likewise.
25471         * modules/di-set-tests: Likewise.
25472         * modules/ino-map: Likewise.
25473         * modules/ino-map-tests: Likewise.
25474         * tests/test-di-set.c: Likewise.
25475         * tests/test-ino-map.c: Likewise.
25476
25477 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25478
25479         getloadavg: merge minor changes from Emacs
25480
25481         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
25482         (getloadavg): Use memset, not bzero.
25483
25484         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
25485         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
25486         clash (bug#86).
25487
25488 2010-11-14  Bruno Haible  <bruno@clisp.org>
25489
25490         Allow multiple gnulib generated replacements to coexist.
25491         * lib/getopt.in.h (struct option): Avoid identical redefinition.
25492         * lib/inttypes.in.h (imaxdiv_t): Likewise.
25493         * lib/langinfo.in.h (nl_item): Likewise.
25494         * lib/math.in.h (_NaN, NAN): Likewise.
25495         * lib/netdb.in.h (struct addrinfo): Likewise.
25496         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
25497         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
25498         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
25499         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
25500         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
25501         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
25502         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
25503         pthread_mutexattr_init, pthread_mutexattr_settype,
25504         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
25505         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
25506         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
25507         pthread_spin_trylock, pthread_spin_unlock): Likewise.
25508         * lib/sched.in.h (struct sched_param): Likewise.
25509         * lib/se-selinux.in.h (security_class_t, security_context_t,
25510         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
25511         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
25512         lsetfilecon, fsetfilecon, security_check_context,
25513         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
25514         Likewise.
25515         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
25516         Likewise.
25517         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
25518         _gl_function_taking_int_returning_void_t, union sigval,
25519         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
25520         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
25521         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25522         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
25523         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
25524         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
25525         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
25526         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
25527         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
25528         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
25529         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
25530         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
25531         socklen_t, rpl_fd_isset): Likewise.
25532         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
25533         * lib/sys_time.in.h (struct timeval): Likewise.
25534         * lib/sys_times.in.h (struct tms): Likewise.
25535         * lib/sys_utsname.in.h (struct utsname):
25536         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
25537         * lib/unistd.in.h (getpagesize): Likewise.
25538         * lib/wchar.in.h (mbstate_t): Likewise.
25539         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25540         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
25541         towlower, towupper): Likewise.
25542         Reported by Sam Steingold <sds@gnu.org>.
25543
25544 2011-02-05  Eric Blake  <eblake@redhat.com>
25545
25546         unsetenv: work around Haiku issues
25547         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
25548         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
25549
25550 2010-12-30  Bruce Korb  <bkorb@gnu.org>
25551
25552         libposix: avoid calling error() within libposix
25553         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
25554         is defined.
25555
25556 2011-02-05  Eric Blake  <eblake@redhat.com>
25557
25558         strerror_r-posix: port to cygwin
25559         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
25560         implementation.
25561         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
25562         * tests/test-strerror_r.c (main): Fix test.
25563         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
25564         issue.
25565
25566 2011-02-05  Bruno Haible  <bruno@clisp.org>
25567
25568         New module 'wmemchr'.
25569         * modules/wmemchr: New file.
25570         * lib/wchar.in.h (wmemchr): New declaration.
25571         * lib/wmemchr.c: New file.
25572         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
25573         * m4/wmemchr.m4: New file.
25574         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
25575         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
25576         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
25577         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
25578         * doc/posix-functions/wmemchr.texi: Mention the new module.
25579
25580 2011-02-04  Eric Blake  <eblake@redhat.com>
25581
25582         fdopendir: detect FreeBSD bug
25583         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
25584         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
25585
25586 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
25587
25588         stdbool: do not define HAVE_STDBOOL_H
25589         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
25590         AC_HEADER_STDBOOL.  All uses changed.  Do not define
25591         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
25592         imported from the latest Autoconf git.  It was motivated by Emacs,
25593         which uses gnulib but does not need HAVE_STDBOOL_H.
25594
25595 2011-02-04  Bruno Haible  <bruno@clisp.org>
25596
25597         wcsnrtombs: Prepare for new module wwcsnrtombs.
25598         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
25599         * lib/wcsnrtombs.c: Include it.
25600         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
25601
25602         wcsrtombs: Prepare for new module wwcsrtombs.
25603         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
25604         * lib/wcsrtombs.c: Include it.
25605         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
25606
25607         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
25608         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
25609         * lib/mbsnrtowcs.c: Include it.
25610         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
25611
25612         mbsrtowcs: Prepare for new module mbsrtowwcs.
25613         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
25614         * lib/mbsrtowcs.c: Include it.
25615         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
25616
25617 2011-02-04  Bruno Haible  <bruno@clisp.org>
25618
25619         vasnprintf: Reduce use of malloc for small format strings.
25620         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
25621         (arguments): Add room for the first 7 arguments.
25622         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
25623         (char_directives, u8_directives, u16_directives, u32_directives): Add
25624         room for the first 7 directives.
25625         * lib/printf-parse.c: Include <string.h>.
25626         (PRINTF_PARSE): Change memory handling code so that it uses the first
25627         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
25628         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
25629         Reported by Pádraig Brady <P@draigbrady.com>.
25630
25631 2011-01-31  Eric Blake  <eblake@redhat.com>
25632
25633         dup2: work around Haiku bug
25634         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
25635         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
25636         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25637         * tests/test-dup2.c (main): Enhance test.
25638
25639 2011-01-31  Simon Josefsson  <simon@josefsson.org>
25640
25641         doc: off_t is not available in eglibc 2.11.2 stdio.h.
25642         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
25643         declared by eglibc 2.11.2.
25644         * lib/stdio.in.h: Likewise.
25645
25646 2011-01-31  Eric Blake  <eblake@redhat.com>
25647
25648         ignore-value: add missing test dependency
25649         * tests/test-ignore-value.c: Revert previous change; stdio.h
25650         provides off_t.
25651         * modules/ignore-value-tests (Depends-on): Add missing dependency.
25652
25653 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25654
25655         mktime: clarify long_int width checking
25656         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
25657         the top level, to make it clearer that the assumption about
25658         long_int width is being checked.  See
25659         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
25660
25661 2011-01-30  Simon Josefsson  <simon@josefsson.org>
25662
25663         ignore-value: Fix self-test.
25664         * tests/test-ignore-value.c: Include sys/types.h for off_t.
25665
25666 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
25667
25668         TYPE_MAXIMUM: avoid theoretically undefined behavior
25669         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
25670         negative number, which the C Standard says has undefined behavior.
25671         In practice this is not a problem, but might as well do it by the book.
25672         Reported by Rich Felker and Eric Blake; see
25673         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
25674         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
25675         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25676         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25677         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
25678         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25679         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
25680
25681         mktime: #undef mktime before #defining it
25682         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
25683
25684         mktime: systematically normalize tm_isdst comparisons
25685         * lib/mktime.c (isdst_differ): New function.
25686         (__mktime_internal): Use it systematically for all isdst comparisons.
25687         This completes the fix for libc BZ #6723, and removes the need for
25688         normalizing tm_isdst.  See
25689         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
25690         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
25691
25692         mktime: fix some integer overflow issues and sidestep the rest
25693
25694         This was prompted by a bug report by Benjamin Lindner for MinGW
25695         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
25696         His bug is due to signed integer overflow (0 - INT_MIN), and I
25697         I scanned through mktime.c looking for other integer overflow
25698         problems, fixing all the bugs I found.
25699
25700         Although the C Standard says the resulting code is still not safe
25701         in the presence of integer overflow, in practice it should be good
25702         enough for all real-world two's-complement implementations, except
25703         for debugging environments that deliberately trap on integer
25704         overflow (e.g., gcc -ftrapv).
25705
25706         * lib/mktime.c (WRAPV): New macro.
25707         (SHR): Also check that long_int and time_t shift right in the
25708         usual way, before using the fast-but-unportable method.
25709         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
25710         used.  The code already assumed two's complement, so there's
25711         no need to test for alternatives.  All uses removed.
25712         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
25713         the C standard.  Problem reported by Rich Felker in
25714         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
25715         (twos_complement_arithmetic): Also check long_int and time_t.
25716         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
25717         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
25718         (__mktime_internal): Avoid integer overflow with unary subtraction
25719         in two instances where -1 - X is an adequate replacement for -X,
25720         since the calculations are approximate.
25721
25722 2011-01-29  Eric Blake  <eblake@redhat.com>
25723
25724         mktime: avoid infinite loop
25725         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
25726         type; behavior is still undefined but portable to all known targets.
25727         Reported by Rich Felker.
25728
25729 2011-01-29  Simon Josefsson  <simon@josefsson.org>
25730
25731         rename, unlink, same-inode: Relicense.
25732         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
25733         * modules/unlink (License): Likewise.
25734         * modules/same-inode (License): Likewise.
25735
25736 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25737
25738         mktime: avoid problems on NetBSD 5 / i386
25739         * lib/mktime.c (long_int): New type.  This works around a problem
25740         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
25741         but time_t is 64 bits, and where I expect the existing code is
25742         wrong in some cases.
25743         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
25744         (ydhms_diff): Bring back the compile-time check for wide-enough
25745         year and yday.
25746
25747         mktime: fix misspelling in comment
25748         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
25749         This merges all recent glibc changes of importance.
25750
25751 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25752
25753         move-if-change: cope with concurrent mv of identical file.
25754         * build-aux/move-if-change (CMPPROG): Accept environment
25755         variable as an override for `cmp'.
25756         (usage): Document CMPPROG.
25757         Adjust comparison to drop stdout.  Cope with failure of mv if
25758         the target file exists and is identical to the source, for
25759         parallel builds.
25760         Report from H.J. Lu against binutils in PR binutils/12283.
25761
25762 2011-01-28  Bruce Korb  <bkorb@gnu.org>
25763
25764         * users.txt: Mention sharutils.
25765
25766 2011-01-28  Simon Josefsson  <simon@josefsson.org>
25767
25768         * users.txt: Mention OATH Toolkit.
25769
25770 2011-01-27  Bruno Haible  <bruno@clisp.org>
25771
25772         Prepare for supporting FreeBSD 10.
25773         * build-aux/config.libpath: Remove handling of freebsd1*.
25774
25775 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
25776
25777         Prepare for supporting FreeBSD 10.
25778         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
25779         match FreeBSD 10.0.
25780
25781 2011-01-27  Bruno Haible  <bruno@clisp.org>
25782
25783         vma-iter, get-rusage-as: Add OpenBSD support.
25784         * modules/vma-iter (configure.ac): Test for mquery.
25785         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
25786         * lib/vma-iter.c: Include <sys/mman.h>.
25787         (vma_iterate): Add an implementation based on mquery().
25788         * lib/resource-ext.h (get_rusage_as): Update comments.
25789         * lib/get-rusage-as.c: Likewise.
25790         * lib/get-rusage-data.c: Likewise.
25791
25792 2011-01-26  Karl Berry  <karl@gnu.org>
25793
25794         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
25795         variables to make it easier to override the makeinfo program used.
25796
25797 2011-01-26  Eric Blake  <eblake@redhat.com>
25798
25799         fcntl: work around Haiku F_DUPFD bugs
25800         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
25801         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
25802         cloexec bit on duplication.
25803         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
25804
25805 2011-01-26  Bruno Haible  <bruno@clisp.org>
25806
25807         Enable memory leak tests on AIX.
25808         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
25809         * tests/test-fprintf-posix3.c (main): Likewise.
25810
25811 2011-01-26  Bruno Haible  <bruno@clisp.org>
25812
25813         Tests for module 'get-rusage-data'.
25814         * modules/get-rusage-data-tests: New file.
25815         * tests/test-get-rusage-data.c: New file.
25816
25817         New module 'get-rusage-data'.
25818         * lib/resource-ext.h (get_rusage_data): New declaration.
25819         * lib/get-rusage-data.c: New file.
25820         * modules/get-rusage-data: New file.
25821
25822 2011-01-25  Bruno Haible  <bruno@clisp.org>
25823
25824         get-rusage-as: Allow for easier testing.
25825         * lib/resource-ext.h (get_rusage_as): Add comment.
25826         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
25827         (main): New function for interactive testing.
25828
25829 2011-01-25  Bruno Haible  <bruno@clisp.org>
25830
25831         vma-iter: Treat Haiku like BeOS.
25832         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
25833         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
25834
25835 2011-01-25  Eric Blake  <eblake@redhat.com>
25836
25837         c-stack: fix regression on cygwin when libsigsegv is present
25838         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
25839
25840 2011-01-24  Bruno Haible  <bruno@clisp.org>
25841
25842         vma-iter: Avoid empty intervals.
25843         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
25844         on an empty interval.
25845
25846 2011-01-24  Jim Meyering  <meyering@redhat.com>
25847
25848         u64: remove unnecessary #include
25849         * lib/u64.h: Don't include <stddef.h>.  It was not used.
25850
25851 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25852
25853         Allow the user to avoid the HAVE_RAW_DECL_* macros.
25854         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
25855
25856 2011-01-23  Bruno Haible  <bruno@clisp.org>
25857
25858         New module 'vma-iter'.
25859         * lib/vma-iter.h: New file.
25860         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
25861         * modules/vma-iter: New file.
25862         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
25863         for get_rusage_as_via_iterator.
25864         (vma_iterate_callback): New function.
25865         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
25866         * modules/get-rusage-as (Depends-on): Add vma-iter.
25867
25868 2011-01-23  Bruno Haible  <bruno@clisp.org>
25869
25870         uninorm: Tweak includes.
25871         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
25872         Reported by Jim Meyering.
25873
25874 2011-01-23  Bruno Haible  <bruno@clisp.org>
25875
25876         get-rusage-as: Improve on NetBSD.
25877         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
25878         /proc, like on FreeBSD.
25879
25880 2011-01-23  Jim Meyering  <meyering@redhat.com>
25881
25882         xreadlink.h: remove unnecessary #include
25883         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
25884
25885         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
25886         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
25887
25888 2011-01-23  Bruno Haible  <bruno@clisp.org>
25889
25890         get-rusage-as: Fix bug.
25891         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
25892         original limit when aborting the first loop.
25893
25894 2011-01-23  Bruno Haible  <bruno@clisp.org>
25895
25896         wctype: Ensure valid C syntax.
25897         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
25898         unconditionally, instead of gl_NEXT_HEADERS conditionally.
25899
25900 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
25901
25902         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
25903         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
25904         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
25905         as they are needed only for configure's test case.
25906         This removes two unnecessary symbols from config.h.
25907
25908         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
25909         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
25910         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
25911         AC_CHECK_HEADERS_ONCE on a header that we also invoke
25912         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
25913         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
25914         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
25915         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
25916         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25917         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25918         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25919         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25920         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25921         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25922         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
25923         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25924         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25925         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25926
25927 2011-01-21  Eric Blake  <eblake@redhat.com>
25928
25929         maintainer-makefile: work with older git for submodule check
25930         * top/maint.mk (public-submodule-commit): Rewrite to avoid
25931         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
25932         Reported by Matthias Bolte.
25933
25934         bootstrap: minor portability fixes
25935         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
25936         (usage): Omit leading capital and trailing . on help phrases, per
25937         GNU Coding Standards.
25938         (check_versions, top level): Prefix messages with script name.
25939
25940 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
25941
25942         bootstrap: support --no-git option
25943         * build-aux/bootstrap: Add --no-git option, to be used when
25944         --gnulib-srcdir points to the exact desired checkout.
25945
25946 2011-01-21  Eric Blake  <eblake@redhat.com>
25947
25948         strerror_r-posix: work with glibc 2.13
25949         * lib/strerror_r.c (strerror_r): Fix return type.
25950
25951 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25952             Bruno Haible  <bruno@clisp.org>
25953
25954         uN_strstr: New unit tests.
25955         * modules/unistr/u8-strstr-tests: New file.
25956         * modules/unistr/u16-strstr-tests: New file.
25957         * modules/unistr/u32-strstr-tests: New file.
25958         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
25959         * tests/unistr/test-u8-strstr.c: New file.
25960         * tests/unistr/test-u16-strstr.c: New file.
25961         * tests/unistr/test-u32-strstr.c: New file.
25962
25963 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25964             Bruno Haible  <bruno@clisp.org>
25965
25966         Make uN_strstr functions O(n) worst-case.
25967         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
25968         16-bit and 32-bit unit cases, use the unibyte algorithm from
25969         lib/mbsstr.c.
25970         * lib/unistr/u8-strstr.c: Include <string.h>.
25971         (UNIT_IS_UINT8_T): New macro.
25972         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
25973         (U_STRLEN, U_STRNLEN): New macros.
25974         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
25975         (U_STRLEN, U_STRNLEN): New macros.
25976         * modules/unistr/u8-strstr (Depends-on): Add strstr.
25977         (configure.ac): Update required libunistring version.
25978         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
25979         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
25980         malloca.
25981         (configure.ac): Update required libunistring version.
25982         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
25983         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
25984         malloca.
25985         (configure.ac): Update required libunistring version.
25986
25987 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25988             Bruno Haible  <bruno@clisp.org>
25989
25990         Prepare for faster uN_strstr functions.
25991         * lib/str-kmp.h: Support definable UNITs.
25992         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
25993         needle_len argument.
25994         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
25995         * lib/mbscasestr.c (mbscasestr): Likewise.
25996
25997 2011-01-21  Pádraig Brady <P@draigBrady.com>
25998
25999         malloca-tests: make faster by unsetting MALLOC_PERTURB_
26000         * tests/test-malloca.c (main): Unset the environment variable
26001         to greatly speed up the test.
26002         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
26003         * modules/malloca-tests: Depend on unsetenv.
26004
26005 2011-01-21  Pádraig Brady <P@draigBrady.com>
26006
26007         ignore-value: remove stdint dependency
26008         * lib/ignore-value.h: Remove <stdint.h>
26009         * modules/ignore-value: Remove stdint dependency.
26010
26011 2011-01-21  Jim Meyering  <meyering@redhat.com>
26012
26013         maint.mk: adjust variable name to be consistent with other gl_ vars
26014         * top/maint.mk (gl_public_submodule_commit): Rename the variable
26015         to be lower case.
26016
26017 2011-01-20  Jim Meyering  <meyering@redhat.com>
26018
26019         maint.mk: make "check" depend on public-submodule-commit by default
26020         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
26021
26022 2011-01-20  Bruno Haible  <bruno@clisp.org>
26023
26024         mbfile, mbiter: Complete change from 2008-12-21.
26025         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
26026         * m4/mbiter.m4 (gl_MBITER): Likewise.
26027
26028 2011-01-20  Jim Meyering  <meyering@redhat.com>
26029
26030         init.sh: insert space between each function name and "()"
26031         * tests/init.sh: Make it a little easier to see that a function's
26032         name is "warn_", and not "warn" when looking at the first part of
26033         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
26034
26035 2011-01-20  Jim Meyering  <meyering@redhat.com>
26036
26037         mountlist: clean up code formatting
26038         * lib/mountlist.c (read_file_system_list): Split a long line,
26039         correct bracing style, use NULL in place of "(struct statfs *)0",
26040         don't parenthesize return value, add spaces around "=" and after
26041         ";-in-for-stmt".
26042
26043 2011-01-14  Markus Duft <mduft@gentoo.org>
26044
26045         mountlist: add support for Interix
26046         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
26047         Apply statvfs to all entries of /dev/fs.
26048         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
26049         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
26050
26051 2011-01-20  Jim Meyering  <meyering@redhat.com>
26052
26053         maint.mk: improve the public-submodule-commit rule
26054         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
26055         to suppress printing of its commands... unless V=1.
26056         Add git submodule's --quiet option to suppress printing of e.g.,
26057         "Entering gnulib" output.
26058         "cd" into $(srcdir) before running git submodule.
26059
26060 2011-01-20  Bruno Haible  <bruno@clisp.org>
26061
26062         include_next: Fix bug introduced on 2011-01-18.
26063         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
26064         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
26065         ac_cv_header_... variable if the second argument is not 'check'.
26066         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
26067         gl_NEXT_HEADERS_INTERNAL.
26068
26069 2011-01-20  Bruno Haible  <bruno@clisp.org>
26070
26071         Allow the user to avoid the GNULIB_TEST_* macros.
26072         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
26073         Suggested by Paul Eggert.
26074
26075 2011-01-14  Jim Meyering  <meyering@redhat.com>
26076
26077         bootstrap: avoid failure when there is no .gitmodules file
26078         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
26079         has been assigned to, even when its value is the empty string.
26080         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
26081         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
26082         Reported by John W. Eaton <jwe@gnu.org>.
26083
26084 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
26085
26086         assume <ctype.h>, ..., <time.h> exist
26087         For years gnulib has been assuming the existence of the headers
26088         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
26089         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
26090         them, since they don't appear to be needed.
26091         * README (Portability guidelines): Document this.
26092         * lib/flock.c: Assume <fcntl.h> exists.
26093         * lib/regex_internal.h: Assume <locale.h> exists.
26094         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
26095         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
26096         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
26097         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
26098         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
26099         * m4/regex.m4 (gl_REGEX): Likewise.
26100         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
26101         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
26102         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
26103         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
26104         * tests/test-argp.c: Likewise.
26105         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
26106
26107         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
26108         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
26109         AA_APPLE_UNIVERSAL_BUILD.  See
26110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
26111         * NEWS: Document this.
26112
26113 2011-01-19  Eric Blake  <eblake@redhat.com>
26114
26115         c-stack: assume stack overflow if SA_SIGINFO unsupported
26116         * lib/c-stack.c (SIGACTION_WORKS): Rename...
26117         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
26118         sigaction will work.
26119         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
26120         behavior match Linux.
26121         * tests/test-c-stack.c (main): Prefer NULL for pointers.
26122
26123         stdbool-tests: accommodate Haiku
26124         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
26125
26126         binary-io: fix O_TEXT on Haiku
26127         * modules/binary-io (Depends-on): Add fcntl-h.
26128         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
26129         than blindly undefining O_TEXT.
26130         Reported by Scott McCreary.
26131
26132 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26133
26134         include_next: do not check for standard headers like stddef.h
26135
26136         I found this problem when modifying Emacs to use gnulib.
26137         I noticed that it added HAVE_STDDEF_H to config.h, even though
26138         gnulib always assumes <stddef.h> exists as per README and this
26139         symbol is unnecessary.
26140         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
26141         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
26142         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
26143         faster for headers like stddef.h that are known to exist.
26144         (gl_CHECK_NEXT_HEADERS): Use it.
26145         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
26146         rather than gl_CHECK_NEXT_HEADERS.
26147         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
26148         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
26149
26150 2011-01-18  Eric Blake  <eblake@redhat.com>
26151
26152         ansi-c++-opt: skip C++ dependency style if C++ is unused
26153         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
26154         tests when we know C++ compilation is not desired.
26155         Reported by Scott McCreary.
26156
26157 2011-01-18  Bruno Haible  <bruno@clisp.org>
26158
26159         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
26160         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
26161         (main): Perform test also when getrlimit and setrlimit don't exist or
26162         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
26163         limiting the address space size using setrlimit, compare the address
26164         space size before and after the the test.
26165         * tests/test-dprintf-posix2.c: Likewise.
26166         * tests/test-fprintf-posix3.sh: Update skip messages.
26167         * tests/test-dprintf-posix2.sh: Likewise.
26168         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
26169         * modules/dprintf-posix-tests (Depends-on): Likewise.
26170         Reported by Bruce Korb <bkorb@gnu.org> and
26171         Gary V. Vaughan <gary@gnu.org>.
26172
26173 2011-01-18  Bruno Haible  <bruno@clisp.org>
26174
26175         get-rusage-as: Improvement for Cygwin.
26176         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
26177         areas that are merely reserved.
26178
26179 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26180
26181         strftime: remove dependencies on multibyte modules
26182
26183         strftime depended on mbrlen, mbsinit, and wchar, but these modules
26184         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
26185         only if __osf__ is defined, and I suspect OSF doesn't need these
26186         other modules.  If my guess is wrong, we'll need to come up with a
26187         variant of strftime that doesn't need the multibyte modules.
26188
26189         I discovered this problem when attempting modify Emacs to use the
26190         strftime module.  With the previous gnulib, this caused Emacs to
26191         need 31 new files, ranging from lib/config.charset to
26192         m4/wint_t.m4.  This was overkill and I expect would be offputting
26193         to the Emacs maintainers.  After this change, only 6 new files are
26194         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
26195         stdbool.m4, and tm_gmtoff.m4.
26196
26197         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
26198         Suggested by Bruno Haible in
26199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
26200         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
26201         and do not check for wchar.h.
26202         * modules/strftime (Files): Remove m4/mbstate_t.m4.
26203         (Depends-on): Remove mbrlen, mbsinit, wchar.
26204
26205 2011-01-18  Bruno Haible  <bruno@clisp.org>
26206
26207         Tests for module 'get-rusage-as'.
26208         * modules/get-rusage-as-tests: New file.
26209         * tests/test-get-rusage-as.c: New file.
26210
26211         New module 'get-rusage-as'.
26212         * modules/get-rusage-as: New file.
26213         * lib/resource-ext.h: New file.
26214         * lib/get-rusage-as.c: New file.
26215
26216 2011-01-17  Eric Blake  <eblake@redhat.com>
26217
26218         sigaction: relax license from LGPLv3+ to LGPLv2+
26219         * modules/sigaction (License): Relax to LGPLv2+.
26220
26221 2011-01-14  Bruno Haible  <bruno@clisp.org>
26222
26223         filemode: Make function declarations usable in C++ mode.
26224         * lib/filemode.h: Enclose function declarations in extern "C" block.
26225         Reported by John W. Eaton <jwe@gnu.org>.
26226
26227 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
26228
26229         save-cwd: no longer include "xgetcwd.h"
26230         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
26231         This avoids a compilation failure in projects that use save-cwd
26232         without also using the xgetcwd module.
26233
26234 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26235
26236         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
26237         This is so that a program like Emacs, which needs only dtoastr,
26238         does not have to bother with distributing and compiling ftoastr
26239         and ldtoastr.
26240         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
26241         * modules/dtoastr, modules/ldtoastr: New files.
26242         * modules/ftoastr: Now works just for 'float'.
26243         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
26244         (Makefile.am): Remove ftoastr.h (not needed and no effect),
26245         dtoastr.c, ldtoastr.c.
26246
26247 2011-01-11  Jim Meyering  <meyering@redhat.com>
26248
26249         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
26250         There is no need to work around the lack of the fchdir function,
26251         since gnulib can now provide a replacement when required.
26252         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
26253         * modules/save-cwd (Depends-on): Add fchdir.
26254
26255 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26256
26257         openat, save-cwd: avoid xmalloc
26258
26259         This removes a direct (but undocumented) dependency of openat on
26260         xalloc, along with an indirect dependency via save-cwd.  It also
26261         removes a dependency of save-cwd on xgetcwd, and thereby
26262         indirectly on xalloc.  This change causes the openat substitute
26263         to fall back on save_cwd when memory is tight, and for save_cwd to
26264         fail instead of dying when memory is tight, but that's good enough.
26265         Problem and initial idea for fix reported by Bastien Roucaries in
26266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
26267
26268         * lib/openat-proc.c: Include stdlib.h (for malloc), not
26269         xalloc.h (for xmalloc).
26270         (openat_proc_name): Use malloc, not xmalloc.
26271         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
26272         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
26273
26274         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
26275         This avoids heap allocation for file names whose lengths are in
26276         the range 512..1023, with the upper bound increasing to at most
26277         4031 depending on the platform's PATH_MAX.  (We do not want
26278         pathmax.h here as it might supply a non-constant PATH_MAX.)
26279         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
26280         Perhaps they should be moved to malloca.h?
26281         (OPENAT_BUFFER_SIZE): Use them.
26282
26283 2011-01-10  Bruno Haible  <bruno@clisp.org>
26284
26285         doc: Update users.txt.
26286         * users.txt: Add recutils.
26287
26288 2011-01-09  Karl Berry  <karl@gnu.org>
26289
26290         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
26291
26292         * doc/configmake.texi: New file.
26293         * doc/gnulib.texi: Include it.
26294         * modules/configmake: Move documentation from here.
26295
26296 2011-01-09  Bruno Haible  <bruno@clisp.org>
26297
26298         Update to Unicode 6.0.0.
26299         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
26300         (get_lbp): Update for Unicode 6.0.0.
26301         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
26302         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
26303         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
26304         U+11001, U+11038..U+11046. Remove U+06DE.
26305         (uc_width): Fix bounds of planes.
26306         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26307         lib/uniwidth/width.c.
26308         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
26309         trailing whitespace removed.
26310         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
26311         without comments, but with the original copyright notice.
26312         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
26313         * lib/unicase/ignorable.h: Likewise.
26314         * lib/unicase/tocasefold.h: Likewise.
26315         * lib/unicase/tolower.h: Likewise.
26316         * lib/unicase/totitle.h: Likewise.
26317         * lib/unicase/toupper.h: Likewise.
26318         * lib/unictype/bidi_of.h: Likewise.
26319         * lib/unictype/blocks.h: Likewise.
26320         * lib/unictype/categ_C.h: Likewise.
26321         * lib/unictype/categ_Cn.h: Likewise.
26322         * lib/unictype/categ_L.h: Likewise.
26323         * lib/unictype/categ_Ll.h: Likewise.
26324         * lib/unictype/categ_Lm.h: Likewise.
26325         * lib/unictype/categ_Lo.h: Likewise.
26326         * lib/unictype/categ_Lu.h: Likewise.
26327         * lib/unictype/categ_M.h: Likewise.
26328         * lib/unictype/categ_Mc.h: Likewise.
26329         * lib/unictype/categ_Me.h: Likewise.
26330         * lib/unictype/categ_Mn.h: Likewise.
26331         * lib/unictype/categ_N.h: Likewise.
26332         * lib/unictype/categ_Nd.h: Likewise.
26333         * lib/unictype/categ_No.h: Likewise.
26334         * lib/unictype/categ_P.h: Likewise.
26335         * lib/unictype/categ_Po.h: Likewise.
26336         * lib/unictype/categ_S.h: Likewise.
26337         * lib/unictype/categ_Sc.h: Likewise.
26338         * lib/unictype/categ_Sk.h: Likewise.
26339         * lib/unictype/categ_Sm.h: Likewise.
26340         * lib/unictype/categ_So.h: Likewise.
26341         * lib/unictype/categ_of.h: Likewise.
26342         * lib/unictype/combining.h: Likewise.
26343         * lib/unictype/ctype_alnum.h: Likewise.
26344         * lib/unictype/ctype_alpha.h: Likewise.
26345         * lib/unictype/ctype_graph.h: Likewise.
26346         * lib/unictype/ctype_lower.h: Likewise.
26347         * lib/unictype/ctype_print.h: Likewise.
26348         * lib/unictype/ctype_punct.h: Likewise.
26349         * lib/unictype/ctype_upper.h: Likewise.
26350         * lib/unictype/decdigit.h: Likewise.
26351         * lib/unictype/digit.h: Likewise.
26352         * lib/unictype/numeric.h: Likewise.
26353         * lib/unictype/pr_alphabetic.h: Likewise.
26354         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26355         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26356         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26357         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26358         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26359         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26360         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26361         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26362         * lib/unictype/pr_case_ignorable.h: Likewise.
26363         * lib/unictype/pr_cased.h: Likewise.
26364         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26365         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26366         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26367         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26368         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26369         * lib/unictype/pr_combining.h: Likewise.
26370         * lib/unictype/pr_composite.h: Likewise.
26371         * lib/unictype/pr_currency_symbol.h: Likewise.
26372         * lib/unictype/pr_decimal_digit.h: Likewise.
26373         * lib/unictype/pr_deprecated.h: Likewise.
26374         * lib/unictype/pr_format_control.h: Likewise.
26375         * lib/unictype/pr_grapheme_base.h: Likewise.
26376         * lib/unictype/pr_grapheme_extend.h: Likewise.
26377         * lib/unictype/pr_grapheme_link.h: Likewise.
26378         * lib/unictype/pr_id_continue.h: Likewise.
26379         * lib/unictype/pr_id_start.h: Likewise.
26380         * lib/unictype/pr_ideographic.h: Likewise.
26381         * lib/unictype/pr_lowercase.h: Likewise.
26382         * lib/unictype/pr_math.h: Likewise.
26383         * lib/unictype/pr_numeric.h: Likewise.
26384         * lib/unictype/pr_other_alphabetic.h: Likewise.
26385         * lib/unictype/pr_other_id_continue.h: Likewise.
26386         * lib/unictype/pr_other_math.h: Likewise.
26387         * lib/unictype/pr_punctuation.h: Likewise.
26388         * lib/unictype/pr_sentence_terminal.h: Likewise.
26389         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26390         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26391         * lib/unictype/pr_unified_ideograph.h: Likewise.
26392         * lib/unictype/pr_uppercase.h: Likewise.
26393         * lib/unictype/pr_xid_continue.h: Likewise.
26394         * lib/unictype/pr_xid_start.h: Likewise.
26395         * lib/unictype/scripts.h: Likewise.
26396         * lib/unictype/scripts_byname.gperf: Likewise.
26397         * lib/unictype/sy_java_ident.h: Likewise.
26398         * lib/unigbrk/gbrkprop.h: Likewise.
26399         * lib/unilbrk/lbrkprop1.h: Likewise.
26400         * lib/unilbrk/lbrkprop2.h: Likewise.
26401         * lib/uninorm/decomposition-table2.h: Likewise.
26402         * lib/uniwbrk/wbrkprop.h: Likewise.
26403         * tests/unicase/test-cased.c: Likewise.
26404         * tests/unicase/test-ignorable.c: Likewise.
26405         * tests/unicase/test-uc_tolower.c: Likewise.
26406         * tests/unicase/test-uc_totitle.c: Likewise.
26407         * tests/unicase/test-uc_toupper.c: Likewise.
26408         * tests/unictype/test-categ_C.c: Likewise.
26409         * tests/unictype/test-categ_Cn.c: Likewise.
26410         * tests/unictype/test-categ_L.c: Likewise.
26411         * tests/unictype/test-categ_Ll.c: Likewise.
26412         * tests/unictype/test-categ_Lm.c: Likewise.
26413         * tests/unictype/test-categ_Lo.c: Likewise.
26414         * tests/unictype/test-categ_Lu.c: Likewise.
26415         * tests/unictype/test-categ_M.c: Likewise.
26416         * tests/unictype/test-categ_Mc.c: Likewise.
26417         * tests/unictype/test-categ_Me.c: Likewise.
26418         * tests/unictype/test-categ_Mn.c: Likewise.
26419         * tests/unictype/test-categ_N.c: Likewise.
26420         * tests/unictype/test-categ_Nd.c: Likewise.
26421         * tests/unictype/test-categ_No.c: Likewise.
26422         * tests/unictype/test-categ_P.c: Likewise.
26423         * tests/unictype/test-categ_Po.c: Likewise.
26424         * tests/unictype/test-categ_S.c: Likewise.
26425         * tests/unictype/test-categ_Sc.c: Likewise.
26426         * tests/unictype/test-categ_Sk.c: Likewise.
26427         * tests/unictype/test-categ_Sm.c: Likewise.
26428         * tests/unictype/test-categ_So.c: Likewise.
26429         * tests/unictype/test-ctype_alnum.c: Likewise.
26430         * tests/unictype/test-ctype_alpha.c: Likewise.
26431         * tests/unictype/test-ctype_graph.c: Likewise.
26432         * tests/unictype/test-ctype_lower.c: Likewise.
26433         * tests/unictype/test-ctype_print.c: Likewise.
26434         * tests/unictype/test-ctype_punct.c: Likewise.
26435         * tests/unictype/test-ctype_upper.c: Likewise.
26436         * tests/unictype/test-decdigit.h: Likewise.
26437         * tests/unictype/test-digit.h: Likewise.
26438         * tests/unictype/test-numeric.h: Likewise.
26439         * tests/unictype/test-pr_alphabetic.c: Likewise.
26440         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26441         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26442         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26443         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26444         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26445         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26446         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26447         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26448         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26449         * tests/unictype/test-pr_cased.c: Likewise.
26450         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26451         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26452         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26453         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26454         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26455         * tests/unictype/test-pr_combining.c: Likewise.
26456         * tests/unictype/test-pr_composite.c: Likewise.
26457         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26458         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26459         * tests/unictype/test-pr_deprecated.c: Likewise.
26460         * tests/unictype/test-pr_format_control.c: Likewise.
26461         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26462         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26463         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26464         * tests/unictype/test-pr_id_continue.c: Likewise.
26465         * tests/unictype/test-pr_id_start.c: Likewise.
26466         * tests/unictype/test-pr_ideographic.c: Likewise.
26467         * tests/unictype/test-pr_lowercase.c: Likewise.
26468         * tests/unictype/test-pr_math.c: Likewise.
26469         * tests/unictype/test-pr_numeric.c: Likewise.
26470         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26471         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26472         * tests/unictype/test-pr_other_math.c: Likewise.
26473         * tests/unictype/test-pr_punctuation.c: Likewise.
26474         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26475         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26476         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26477         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26478         * tests/unictype/test-pr_uppercase.c: Likewise.
26479         * tests/unictype/test-pr_xid_continue.c: Likewise.
26480         * tests/unictype/test-pr_xid_start.c: Likewise.
26481         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26482         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26483         changes.
26484         * lib/unictype/categ_Cc.h: Likewise.
26485         * lib/unictype/categ_Cf.h: Likewise.
26486         * lib/unictype/categ_Co.h: Likewise.
26487         * lib/unictype/categ_Cs.h: Likewise.
26488         * lib/unictype/categ_Lt.h: Likewise.
26489         * lib/unictype/categ_Nl.h: Likewise.
26490         * lib/unictype/categ_Pc.h: Likewise.
26491         * lib/unictype/categ_Pd.h: Likewise.
26492         * lib/unictype/categ_Pe.h: Likewise.
26493         * lib/unictype/categ_Pf.h: Likewise.
26494         * lib/unictype/categ_Pi.h: Likewise.
26495         * lib/unictype/categ_Ps.h: Likewise.
26496         * lib/unictype/categ_Z.h: Likewise.
26497         * lib/unictype/categ_Zl.h: Likewise.
26498         * lib/unictype/categ_Zp.h: Likewise.
26499         * lib/unictype/categ_Zs.h: Likewise.
26500         * lib/unictype/ctype_blank.h: Likewise.
26501         * lib/unictype/ctype_cntrl.h: Likewise.
26502         * lib/unictype/ctype_digit.h: Likewise.
26503         * lib/unictype/ctype_space.h: Likewise.
26504         * lib/unictype/ctype_xdigit.h: Likewise.
26505         * lib/unictype/mirror.h: Likewise.
26506         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26507         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26508         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26509         * lib/unictype/pr_bidi_control.h: Likewise.
26510         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26511         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26512         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26513         * lib/unictype/pr_bidi_pdf.h: Likewise.
26514         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26515         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26516         * lib/unictype/pr_dash.h: Likewise.
26517         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26518         * lib/unictype/pr_diacritic.h: Likewise.
26519         * lib/unictype/pr_extender.h: Likewise.
26520         * lib/unictype/pr_hex_digit.h: Likewise.
26521         * lib/unictype/pr_hyphen.h: Likewise.
26522         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26523         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26524         * lib/unictype/pr_ignorable_control.h: Likewise.
26525         * lib/unictype/pr_iso_control.h: Likewise.
26526         * lib/unictype/pr_join_control.h: Likewise.
26527         * lib/unictype/pr_left_of_pair.h: Likewise.
26528         * lib/unictype/pr_line_separator.h: Likewise.
26529         * lib/unictype/pr_logical_order_exception.h: Likewise.
26530         * lib/unictype/pr_non_break.h: Likewise.
26531         * lib/unictype/pr_not_a_character.h: Likewise.
26532         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26533         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26534         * lib/unictype/pr_other_id_start.h: Likewise.
26535         * lib/unictype/pr_other_lowercase.h: Likewise.
26536         * lib/unictype/pr_other_uppercase.h: Likewise.
26537         * lib/unictype/pr_paired_punctuation.h: Likewise.
26538         * lib/unictype/pr_paragraph_separator.h: Likewise.
26539         * lib/unictype/pr_pattern_syntax.h: Likewise.
26540         * lib/unictype/pr_pattern_white_space.h: Likewise.
26541         * lib/unictype/pr_private_use.h: Likewise.
26542         * lib/unictype/pr_quotation_mark.h: Likewise.
26543         * lib/unictype/pr_radical.h: Likewise.
26544         * lib/unictype/pr_soft_dotted.h: Likewise.
26545         * lib/unictype/pr_space.h: Likewise.
26546         * lib/unictype/pr_titlecase.h: Likewise.
26547         * lib/unictype/pr_variation_selector.h: Likewise.
26548         * lib/unictype/pr_white_space.h: Likewise.
26549         * lib/unictype/pr_zero_width.h: Likewise.
26550         * lib/unictype/sy_c_ident.h: Likewise.
26551         * lib/unictype/sy_c_whitespace.h: Likewise.
26552         * lib/unictype/sy_java_whitespace.h: Likewise.
26553         * lib/uninorm/composition-table.gperf: Likewise.
26554         * lib/uninorm/decomposition-table1.h: Likewise.
26555         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
26556         LB8.
26557         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26558         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26559         * modules/unictype/*: Bump version number of expected libunistring
26560         version.
26561
26562 2011-01-09  Bruno Haible  <bruno@clisp.org>
26563
26564         Update to Unicode 5.2.0.
26565         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
26566         trailing whitespace removed.
26567
26568 2011-01-09  Bruno Haible  <bruno@clisp.org>
26569
26570         New Unicode character properties, from Unicode 5.2.0.
26571         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
26572         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
26573         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
26574         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
26575         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
26576         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
26577         uc_is_property_cased, uc_is_property_case_ignorable,
26578         uc_is_property_changes_when_lowercased,
26579         uc_is_property_changes_when_uppercased,
26580         uc_is_property_changes_when_titlecased,
26581         uc_is_property_changes_when_casefolded,
26582         uc_is_property_changes_when_casemapped): New declarations.
26583         * lib/unictype/pr_byname.gperf: Add the new properties.
26584         * modules/unictype/property-byname (Depends-on): Depend on the new
26585         properties modules.
26586         * modules/unictype/property-all (Depends-on): Likewise.
26587         * MODULES.html.sh (Unicode string functions): Add
26588         unictype/property-case-ignorable, unictype/property-cased,
26589         unictype/property-changes-when-casefolded,
26590         unictype/property-changes-when-casemapped,
26591         unictype/property-changes-when-lowercased,
26592         unictype/property-changes-when-titlecased,
26593         unictype/property-changes-when-uppercased.
26594
26595         New module 'unictype/property-changes-when-casemapped'.
26596         * modules/unictype/property-changes-when-casemapped: New file.
26597         * lib/unictype/pr_changes_when_casemapped.c: New file.
26598         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
26599         generated by gen-uni-tables.
26600         * modules/unictype/property-changes-when-casemapped-tests: New file.
26601         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
26602         automatically generated by gen-uni-tables.
26603
26604         New module 'unictype/property-changes-when-casefolded'.
26605         * modules/unictype/property-changes-when-casefolded: New file.
26606         * lib/unictype/pr_changes_when_casefolded.c: New file.
26607         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
26608         generated by gen-uni-tables.
26609         * modules/unictype/property-changes-when-casefolded-tests: New file.
26610         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
26611         automatically generated by gen-uni-tables.
26612
26613         New module 'unictype/property-changes-when-titlecased'.
26614         * modules/unictype/property-changes-when-titlecased: New file.
26615         * lib/unictype/pr_changes_when_titlecased.c: New file.
26616         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
26617         generated by gen-uni-tables.
26618         * modules/unictype/property-changes-when-titlecased-tests: New file.
26619         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
26620         automatically generated by gen-uni-tables.
26621
26622         New module 'unictype/property-changes-when-uppercased'.
26623         * modules/unictype/property-changes-when-uppercased: New file.
26624         * lib/unictype/pr_changes_when_uppercased.c: New file.
26625         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
26626         generated by gen-uni-tables.
26627         * modules/unictype/property-changes-when-uppercased-tests: New file.
26628         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
26629         automatically generated by gen-uni-tables.
26630
26631         New module 'unictype/property-changes-when-lowercased'.
26632         * modules/unictype/property-changes-when-lowercased: New file.
26633         * lib/unictype/pr_changes_when_lowercased.c: New file.
26634         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
26635         generated by gen-uni-tables.
26636         * modules/unictype/property-changes-when-lowercased-tests: New file.
26637         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
26638         automatically generated by gen-uni-tables.
26639
26640         New module 'unictype/property-case-ignorable'.
26641         * modules/unictype/property-case-ignorable: New file.
26642         * lib/unictype/pr_case_ignorable.c: New file.
26643         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
26644         by gen-uni-tables.
26645         * modules/unictype/property-case-ignorable-tests: New file.
26646         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
26647         generated by gen-uni-tables.
26648
26649         New module 'unictype/property-cased'.
26650         * modules/unictype/property-cased: New file.
26651         * lib/unictype/pr_cased.c: New file.
26652         * lib/unictype/pr_cased.h: New file, automatically generated by
26653         gen-uni-tables.
26654         * modules/unictype/property-cased-tests: New file.
26655         * tests/unictype/test-pr_cased.c: New file, automatically generated by
26656         gen-uni-tables.
26657
26658 2011-01-09  Bruno Haible  <bruno@clisp.org>
26659
26660         Update to Unicode 5.2.0.
26661         * lib/gen-uni-tables.c (output_predicate, output_category,
26662         output_combclass, output_bidi_category, output_decimal_digit_test,
26663         output_decimal_digit, output_digit_test, output_digit,
26664         output_numeric_test, output_numeric, output_mirror, output_scripts,
26665         output_scripts_byname, output_blocks, output_ident_category): Fix
26666         comment header.
26667         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
26668         get_wbp.
26669         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
26670         items.
26671         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
26672         Changes_When_Lowercased, Changes_When_Uppercased,
26673         Changes_When_Titlecased, Changes_When_Casefolded,
26674         Changes_When_Casemapped.
26675         (is_property_alphabetic, is_property_default_ignorable_code_point):
26676         Update for Unicode 5.2.0.
26677         (is_property_cased, is_property_case_ignorable,
26678         is_property_changes_when_lowercased,
26679         is_property_changes_when_uppercased,
26680         is_property_changes_when_titlecased,
26681         is_property_changes_when_casefolded,
26682         is_property_changes_when_casemapped): New functions.
26683         (output_properties): Output also the properties cased, case_ignorable,
26684         changes_when_lowercased, changes_when_uppercased,
26685         changes_when_titlecased, changes_when_casefolded,
26686         changes_when_casemapped.
26687         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
26688         Unicode TR#11 revision 17 -> 19.
26689         (LBP_CP): New enumeration value.
26690         (LBP_*): Adjust values accordingly.
26691         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26692         TR#14 revision 22 -> 24.
26693         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
26694         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
26695         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26696         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
26697         is_WBP_MIDLETTER.
26698         (output_composition_tables): Allow for 24 bits instead of 16 bits in
26699         the code1 and code2 of each composition rule.
26700         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
26701         * lib/unicase/ignorable.h: Likewise.
26702         * lib/unicase/tocasefold.h: Likewise.
26703         * lib/unicase/tolower.h: Likewise.
26704         * lib/unicase/totitle.h: Likewise.
26705         * lib/unicase/toupper.h: Likewise.
26706         * lib/unictype/bidi_of.h: Likewise.
26707         * lib/unictype/blocks.h: Likewise.
26708         * lib/unictype/categ_C.h: Likewise.
26709         * lib/unictype/categ_Cf.h: Likewise.
26710         * lib/unictype/categ_Cn.h: Likewise.
26711         * lib/unictype/categ_L.h: Likewise.
26712         * lib/unictype/categ_Ll.h: Likewise.
26713         * lib/unictype/categ_Lm.h: Likewise.
26714         * lib/unictype/categ_Lo.h: Likewise.
26715         * lib/unictype/categ_Lu.h: Likewise.
26716         * lib/unictype/categ_M.h: Likewise.
26717         * lib/unictype/categ_Mc.h: Likewise.
26718         * lib/unictype/categ_Mn.h: Likewise.
26719         * lib/unictype/categ_N.h: Likewise.
26720         * lib/unictype/categ_Nd.h: Likewise.
26721         * lib/unictype/categ_Nl.h: Likewise.
26722         * lib/unictype/categ_No.h: Likewise.
26723         * lib/unictype/categ_P.h: Likewise.
26724         * lib/unictype/categ_Pd.h: Likewise.
26725         * lib/unictype/categ_Po.h: Likewise.
26726         * lib/unictype/categ_S.h: Likewise.
26727         * lib/unictype/categ_Sc.h: Likewise.
26728         * lib/unictype/categ_So.h: Likewise.
26729         * lib/unictype/categ_of.h: Likewise.
26730         * lib/unictype/combining.h: Likewise.
26731         * lib/unictype/ctype_alnum.h: Likewise.
26732         * lib/unictype/ctype_alpha.h: Likewise.
26733         * lib/unictype/ctype_graph.h: Likewise.
26734         * lib/unictype/ctype_lower.h: Likewise.
26735         * lib/unictype/ctype_print.h: Likewise.
26736         * lib/unictype/ctype_punct.h: Likewise.
26737         * lib/unictype/ctype_upper.h: Likewise.
26738         * lib/unictype/decdigit.h: Likewise.
26739         * lib/unictype/digit.h: Likewise.
26740         * lib/unictype/numeric.h: Likewise.
26741         * lib/unictype/pr_alphabetic.h: Likewise.
26742         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26743         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26744         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26745         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26746         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26747         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26748         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26749         * lib/unictype/pr_combining.h: Likewise.
26750         * lib/unictype/pr_composite.h: Likewise.
26751         * lib/unictype/pr_currency_symbol.h: Likewise.
26752         * lib/unictype/pr_dash.h: Likewise.
26753         * lib/unictype/pr_decimal_digit.h: Likewise.
26754         * lib/unictype/pr_deprecated.h: Likewise.
26755         * lib/unictype/pr_diacritic.h: Likewise.
26756         * lib/unictype/pr_extender.h: Likewise.
26757         * lib/unictype/pr_grapheme_base.h: Likewise.
26758         * lib/unictype/pr_grapheme_extend.h: Likewise.
26759         * lib/unictype/pr_grapheme_link.h: Likewise.
26760         * lib/unictype/pr_id_continue.h: Likewise.
26761         * lib/unictype/pr_id_start.h: Likewise.
26762         * lib/unictype/pr_ideographic.h: Likewise.
26763         * lib/unictype/pr_ignorable_control.h: Likewise.
26764         * lib/unictype/pr_logical_order_exception.h: Likewise.
26765         * lib/unictype/pr_lowercase.h: Likewise.
26766         * lib/unictype/pr_numeric.h: Likewise.
26767         * lib/unictype/pr_other_alphabetic.h: Likewise.
26768         * lib/unictype/pr_punctuation.h: Likewise.
26769         * lib/unictype/pr_sentence_terminal.h: Likewise.
26770         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26771         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26772         * lib/unictype/pr_unified_ideograph.h: Likewise.
26773         * lib/unictype/pr_uppercase.h: Likewise.
26774         * lib/unictype/pr_xid_continue.h: Likewise.
26775         * lib/unictype/pr_xid_start.h: Likewise.
26776         * lib/unictype/pr_zero_width.h: Likewise.
26777         * lib/unictype/scripts.h: Likewise.
26778         * lib/unictype/scripts_byname.gperf: Likewise.
26779         * lib/unictype/sy_java_ident.h: Likewise.
26780         * lib/unigbrk/gbrkprop.h: Likewise.
26781         * lib/unilbrk/lbrkprop1.h: Likewise.
26782         * lib/unilbrk/lbrkprop2.h: Likewise.
26783         * lib/unilbrk/lbrktables.h: Likewise.
26784         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
26785         LBP_CP. Implement rule LB30.
26786         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
26787         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
26788         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
26789         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
26790         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
26791         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
26792         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
26793         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
26794         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
26795         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
26796         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
26797         bits instead of 16 bits in the code1 and code2 of each composition
26798         rule.
26799         (uc_composition): Update for Unicode 5.2.0.
26800         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
26801         * lib/uninorm/decomposition-table2.h: Likewise.
26802         * lib/uniwbrk/wbrkprop.h: Likewise.
26803         * tests/unicase/test-cased.c: Likewise.
26804         * tests/unicase/test-ignorable.c: Likewise.
26805         * tests/unicase/test-uc_tolower.c: Likewise.
26806         * tests/unicase/test-uc_totitle.c: Likewise.
26807         * tests/unicase/test-uc_toupper.c: Likewise.
26808         * tests/unictype/test-categ_C.c: Likewise.
26809         * tests/unictype/test-categ_Cf.c: Likewise.
26810         * tests/unictype/test-categ_Cn.c: Likewise.
26811         * tests/unictype/test-categ_L.c: Likewise.
26812         * tests/unictype/test-categ_Ll.c: Likewise.
26813         * tests/unictype/test-categ_Lm.c: Likewise.
26814         * tests/unictype/test-categ_Lo.c: Likewise.
26815         * tests/unictype/test-categ_Lu.c: Likewise.
26816         * tests/unictype/test-categ_M.c: Likewise.
26817         * tests/unictype/test-categ_Mc.c: Likewise.
26818         * tests/unictype/test-categ_Mn.c: Likewise.
26819         * tests/unictype/test-categ_N.c: Likewise.
26820         * tests/unictype/test-categ_Nd.c: Likewise.
26821         * tests/unictype/test-categ_Nl.c: Likewise.
26822         * tests/unictype/test-categ_No.c: Likewise.
26823         * tests/unictype/test-categ_P.c: Likewise.
26824         * tests/unictype/test-categ_Pd.c: Likewise.
26825         * tests/unictype/test-categ_Po.c: Likewise.
26826         * tests/unictype/test-categ_S.c: Likewise.
26827         * tests/unictype/test-categ_Sc.c: Likewise.
26828         * tests/unictype/test-categ_So.c: Likewise.
26829         * tests/unictype/test-ctype_alnum.c: Likewise.
26830         * tests/unictype/test-ctype_alpha.c: Likewise.
26831         * tests/unictype/test-ctype_graph.c: Likewise.
26832         * tests/unictype/test-ctype_lower.c: Likewise.
26833         * tests/unictype/test-ctype_print.c: Likewise.
26834         * tests/unictype/test-ctype_punct.c: Likewise.
26835         * tests/unictype/test-ctype_upper.c: Likewise.
26836         * tests/unictype/test-decdigit.h: Likewise.
26837         * tests/unictype/test-digit.h: Likewise.
26838         * tests/unictype/test-numeric.h: Likewise.
26839         * tests/unictype/test-pr_alphabetic.c: Likewise.
26840         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26841         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26842         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26843         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26844         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26845         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26846         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26847         * tests/unictype/test-pr_combining.c: Likewise.
26848         * tests/unictype/test-pr_composite.c: Likewise.
26849         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26850         * tests/unictype/test-pr_dash.c: Likewise.
26851         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26852         * tests/unictype/test-pr_deprecated.c: Likewise.
26853         * tests/unictype/test-pr_diacritic.c: Likewise.
26854         * tests/unictype/test-pr_extender.c: Likewise.
26855         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26856         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26857         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26858         * tests/unictype/test-pr_id_continue.c: Likewise.
26859         * tests/unictype/test-pr_id_start.c: Likewise.
26860         * tests/unictype/test-pr_ideographic.c: Likewise.
26861         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26862         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26863         * tests/unictype/test-pr_lowercase.c: Likewise.
26864         * tests/unictype/test-pr_numeric.c: Likewise.
26865         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26866         * tests/unictype/test-pr_punctuation.c: Likewise.
26867         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26868         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26869         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26870         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26871         * tests/unictype/test-pr_uppercase.c: Likewise.
26872         * tests/unictype/test-pr_xid_continue.c: Likewise.
26873         * tests/unictype/test-pr_xid_start.c: Likewise.
26874         * tests/unictype/test-pr_zero_width.c: Likewise.
26875         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26876         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
26877         changed behaviour: line breaking is now disallowed between a letter
26878         or '=' and '('.
26879         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26880         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26881         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
26882         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
26883         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26884         lib/uniwidth/width.c.
26885         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
26886         without comments, but with the original copyright notice.
26887         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26888         changes.
26889         * lib/unictype/categ_Cc.h: Likewise.
26890         * lib/unictype/categ_Co.h: Likewise.
26891         * lib/unictype/categ_Cs.h: Likewise.
26892         * lib/unictype/categ_Lt.h: Likewise.
26893         * lib/unictype/categ_Me.h: Likewise.
26894         * lib/unictype/categ_Pc.h: Likewise.
26895         * lib/unictype/categ_Pe.h: Likewise.
26896         * lib/unictype/categ_Pf.h: Likewise.
26897         * lib/unictype/categ_Pi.h: Likewise.
26898         * lib/unictype/categ_Ps.h: Likewise.
26899         * lib/unictype/categ_Sk.h: Likewise.
26900         * lib/unictype/categ_Sm.h: Likewise.
26901         * lib/unictype/categ_Z.h: Likewise.
26902         * lib/unictype/categ_Zl.h: Likewise.
26903         * lib/unictype/categ_Zp.h: Likewise.
26904         * lib/unictype/categ_Zs.h: Likewise.
26905         * lib/unictype/ctype_blank.h: Likewise.
26906         * lib/unictype/ctype_cntrl.h: Likewise.
26907         * lib/unictype/ctype_digit.h: Likewise.
26908         * lib/unictype/ctype_space.h: Likewise.
26909         * lib/unictype/ctype_xdigit.h: Likewise.
26910         * lib/unictype/mirror.h: Likewise.
26911         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26912         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26913         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26914         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26915         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26916         * lib/unictype/pr_bidi_control.h: Likewise.
26917         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26918         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26919         * lib/unictype/pr_bidi_pdf.h: Likewise.
26920         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26921         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26922         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26923         * lib/unictype/pr_format_control.h: Likewise.
26924         * lib/unictype/pr_hex_digit.h: Likewise.
26925         * lib/unictype/pr_hyphen.h: Likewise.
26926         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26927         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26928         * lib/unictype/pr_iso_control.h: Likewise.
26929         * lib/unictype/pr_join_control.h: Likewise.
26930         * lib/unictype/pr_left_of_pair.h: Likewise.
26931         * lib/unictype/pr_line_separator.h: Likewise.
26932         * lib/unictype/pr_math.h: Likewise.
26933         * lib/unictype/pr_non_break.h: Likewise.
26934         * lib/unictype/pr_not_a_character.h: Likewise.
26935         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26936         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26937         * lib/unictype/pr_other_id_continue.h: Likewise.
26938         * lib/unictype/pr_other_id_start.h: Likewise.
26939         * lib/unictype/pr_other_lowercase.h: Likewise.
26940         * lib/unictype/pr_other_math.h: Likewise.
26941         * lib/unictype/pr_other_uppercase.h: Likewise.
26942         * lib/unictype/pr_paired_punctuation.h: Likewise.
26943         * lib/unictype/pr_paragraph_separator.h: Likewise.
26944         * lib/unictype/pr_pattern_syntax.h: Likewise.
26945         * lib/unictype/pr_pattern_white_space.h: Likewise.
26946         * lib/unictype/pr_private_use.h: Likewise.
26947         * lib/unictype/pr_quotation_mark.h: Likewise.
26948         * lib/unictype/pr_radical.h: Likewise.
26949         * lib/unictype/pr_soft_dotted.h: Likewise.
26950         * lib/unictype/pr_space.h: Likewise.
26951         * lib/unictype/pr_titlecase.h: Likewise.
26952         * lib/unictype/pr_variation_selector.h: Likewise.
26953         * lib/unictype/pr_white_space.h: Likewise.
26954         * lib/unictype/sy_c_ident.h: Likewise.
26955         * lib/unictype/sy_c_whitespace.h: Likewise.
26956         * lib/unictype/sy_java_whitespace.h: Likewise.
26957         * modules/uni*/*: Bump version number of expected libunistring version.
26958         Reported by Simon Josefsson.
26959
26960 2011-01-09  Karl Heuer  <kwzh@gnu.org>
26961
26962         useless-if-before-free: fix typo in --help and make the internal,
26963         automatic version date update process work once again.
26964         --help output contained a NUL character instead of the
26965         backslash-zero that was intended.  Also, the "must lie within
26966         the first 8 lines" line is on line 9, and hence not getting
26967         automatically updated.
26968         * build-aux/useless-if-before-free: Fix the former by adding a
26969         backslash, and the latter by condensing the three lines of what-it-does
26970         to a single line, leaving one line of slack for the future.
26971
26972 2011-01-09  Bruno Haible  <bruno@clisp.org>
26973
26974         uniwidth/width: Fix width of U+1D173..U+1D17A.
26975         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
26976         symbolic_width, output_width_property_test): New functions.
26977         (main): Invoke output_nonspacing_property, output_width_property_test.
26978         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
26979         U+1D173..U+1D17A.
26980         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
26981         1.
26982         * modules/uniwidth/*: Bump version number of expected libunistring
26983         version.
26984         * modules/unilbrk/*: Likewise.
26985
26986 2011-01-08  Bruno Haible  <bruno@clisp.org>
26987
26988         uninorm tests: Preserve copyright of Unicode data file.
26989         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
26990         Mention modifications.
26991
26992 2011-01-08  Bruno Haible  <bruno@clisp.org>
26993
26994         gen-uni-tables: Prepare for Unicode 5.2.0.
26995         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
26996         (debug_output_lbp, output_lbp): Update.
26997
26998 2011-01-08  Bruno Haible  <bruno@clisp.org>
26999
27000         unilbrk: Clarify gen-uni-tables.c code.
27001         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
27002         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
27003         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
27004
27005 2011-01-07  Bruno Haible  <bruno@clisp.org>
27006
27007         strtod: Restore errno when successfully parsing Infinity or NaN.
27008         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
27009         restore the original errno.
27010
27011 2011-01-07  Bruno Haible  <bruno@clisp.org>
27012
27013         remove test: Avoid failure on HP-UX 11.
27014         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
27015
27016 2011-01-07  Bruno Haible  <bruno@clisp.org>
27017
27018         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
27019         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
27020         error code.
27021
27022 2011-01-07  Pádraig Brady <P@draigBrady.com>
27023
27024         ignore-value: fixup comments, and add Eric Blake
27025         as an author since he rewrote the macros.
27026         * lib/ignore-value.h (ignore_value):  State that
27027         we now support aggregates.  Also specify exactly
27028         when the GCC warn_unused_result feature was added.
27029
27030 2011-01-06  Eric Blake  <eblake@redhat.com>
27031
27032         ignore-value: support aggregate types
27033         * lib/ignore-value.h (ignore_value): Provide separate gcc
27034         definition.
27035         * modules/ignore-value-tests: New test module.
27036         * tests/test-ignore-value.c: New test.
27037
27038         maint.mk: improve sc_prohibit_strcmp regex
27039         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
27040         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
27041         definition of STRNEQ.
27042
27043         signal: work around Haiku issue with SIGBUS
27044         * lib/siglist.h: Add comment.
27045         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
27046         strsignal's favoring of SIGSEGV.
27047         * tests/test-signal.c (main): Avoid test failure.
27048         * doc/posix-headers/signal.texi (signal.h): Document the issue.
27049         Reported by Scott McCreary.
27050
27051         maint.mk: add pre-release check to ensure submodule commits are public
27052         * top/maint.mk (public-submodule-commit): New rule.
27053         (submodule-checks): New variable.
27054         (alpha beta stable): Depend on the variable.
27055
27056 2011-01-05  Pádraig Brady <P@draigBrady.com>
27057         and Jim Meyering  <meyering@redhat.com>
27058
27059         ignore-value: make ignore_value more generic; deprecate ignore_ptr
27060         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
27061         (ATTRIBUTE_DEPRECATED): Define.
27062         (_ignore_case): New function.
27063         (ignore_value): New macro, to replace the old function.
27064         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
27065         * modules/ignore-value (Depends-on): Add stdint.
27066
27067 2011-01-04  Eric Blake  <eblake@redhat.com>
27068
27069         doc: regenerate INSTALL
27070         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
27071         @firstparagraphindent support, now that autoconf dropped it.
27072         (INSTALL_PRELUDE): Reinstate old macro.
27073         * doc/install.texi: Resync from autoconf.
27074         * doc/INSTALL: Reflect recent autoconf update.
27075         * doc/INSTALL.ISO: Likewise.
27076         * doc/INSTALL.UTF-8: Likewise.
27077         Reported by Karl Berry.
27078
27079 2011-01-04  Bruce Korb  <address@hidden>
27080
27081         git-version-gen: avoid a sub-shell
27082         * build-aux/git-version-gen: Redirect stderr in `...` via
27083         "exec 2>...", rather than via an added sub-shell.
27084
27085 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
27086
27087         git-version-gen: use (...) rather than sh -c '...'
27088         * build-aux/git-version-gen: Rather than hard-coding a shell's name
27089         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
27090
27091 2011-01-03  Jim Meyering  <meyering@redhat.com>
27092
27093         git-version-gen: convert leading TABs to spaces
27094         * build-aux/git-version-gen: Expand leading TABs.
27095
27096         git-version-gen: handle failed "git rev-list"
27097         * build-aux/git-version-gen: Rather than leaking a "fatal" error
27098         from git and proceeding as if it had succeeded but printed no SHA1
27099         checksums, suppress the diagnostic and handle the failure.
27100         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
27101
27102         git-version-gen: include command name in one more diagnostic
27103         * build-aux/git-version-gen: When the required .tarball-version file
27104         was missing or unreadable, you might see the diagnostic from "cat",
27105         but no trace of the name of the invoking script.  Now, you still see
27106         the diagnostic from cat, but also get one from "git-version-gen: ".
27107         Inspired by a patch from Bruce Korb.
27108
27109         update-copyright: adjust test to match changed code
27110         * tests/test-update-copyright.sh: Change test's expected output
27111         to match new actual output.
27112
27113 2011-01-02  Bruno Haible  <bruno@clisp.org>
27114
27115         getlogin_r: Avoid test failure on HP-UX 11.
27116         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
27117         ERANGE when the second argument is zero.
27118         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
27119         portability problem.
27120
27121 2011-01-02  Bruce Korb  <bkorb@gnu.org>
27122
27123         * build-aux/update-copyright: doc Simon's changes
27124
27125 2011-01-02  Simon Josefsson  <simon@josefsson.org>
27126
27127         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
27128         environment variable.
27129
27130 2011-01-02  Bruno Haible  <bruno@clisp.org>
27131
27132         unigbrk: Avoid gcc warnings.
27133         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
27134         unused variable.
27135         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
27136         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
27137         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
27138         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
27139         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
27140         Change type of first argument to 'const char *'.
27141         (main): Remove unused variable.
27142         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
27143         type of first argument to 'const char *'.
27144         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
27145         Likewise.
27146         (main): Change type of variable 's'.
27147         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
27148         to 'int'.
27149
27150 2011-01-02  Bruno Haible  <bruno@clisp.org>
27151
27152         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
27153         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
27154         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
27155         bug.
27156         * lib/pwrite.c: Undo 2010-12-31 patch.
27157         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
27158
27159 2011-01-02  Bruno Haible  <bruno@clisp.org>
27160
27161         pread: Fix test whether it works.
27162         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
27163
27164 2011-01-02  Bruno Haible  <bruno@clisp.org>
27165
27166         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
27167         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
27168         ends in "6". Don't require a specific month name. Try also the locale
27169         names found on HP-UX 11 and Solaris 7.
27170
27171 2011-01-02  Bruno Haible  <bruno@clisp.org>
27172
27173         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
27174         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
27175         C linkage.
27176         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
27177
27178 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27179
27180         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
27181         for consistency, since the "cluster" term is not used elsewhere.
27182         * lib/unigbrk.in.h: Update name.
27183         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
27184         * lib/unigbrk/u16-grapheme-next.c: Update name.
27185         * lib/unigbrk/u16-grapheme-prev.c: Update name.
27186         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
27187         * lib/unigbrk/u32-grapheme-next.c: Update name.
27188         * lib/unigbrk/u32-grapheme-prev.c: Update name.
27189         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
27190         * lib/unigbrk/u8-grapheme-next.c: Update name.
27191         * lib/unigbrk/u8-grapheme-prev.c: Update name.
27192         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
27193         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
27194         Suggested by Bruno Haible.
27195
27196 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27197
27198         Remove module 'u8-grapheme-len' as too redundant with
27199         'u8-grapheme-next'.
27200         * modules/unigbrk/u8-grapheme-len: Delete file.
27201         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
27202         * lib/unigbrk.in.h: Remove prototype for deleted function.
27203         * lib/unigbrk/u8-grapheme-len.c: Delete file.
27204         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
27205
27206         Remove module 'u16-grapheme-len' as too redundant with
27207         'u16-grapheme-next'.
27208         * modules/unigbrk/u16-grapheme-len: Delete file.
27209         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
27210         * lib/unigbrk.in.h: Remove prototype for deleted function.
27211         * lib/unigbrk/u16-grapheme-len.c: Delete file.
27212         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
27213
27214         Remove module 'u32-grapheme-len' as too redundant with
27215         'u32-grapheme-next'.
27216         * modules/unigbrk/u32-grapheme-len: Delete file.
27217         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
27218         * lib/unigbrk.in.h: Remove prototype for deleted function.
27219         * lib/unigbrk/u32-grapheme-len.c: Delete file.
27220         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
27221
27222         Suggested by Bruno Haible.
27223
27224 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27225
27226         * unigbrk.in.h: Fix typo: "ben" => "been".
27227         Reported by Bruno Haible.
27228
27229 2011-01-01  Jim Meyering  <meyering@redhat.com>
27230
27231         maint: update almost all copyright ranges to include 2011
27232         Run the new "make update-copyright" rule.
27233
27234 2011-01-01  Jim Meyering  <meyering@redhat.com>
27235
27236         maint: update-copyright: exempt doc/INSTALL*
27237         * Makefile (update-copyright): Also exclude doc/INSTALL*,
27238         since they are generated.  Suggested by Bruno Haible.
27239
27240 2011-01-01  Jim Meyering  <meyering@redhat.com>
27241
27242         maint: refine the update-copyright rule
27243         * Makefile (update-copyright): Also exclude any file that includes
27244         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
27245         code that merely generates the comment.
27246
27247 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27248
27249         New module 'u8-grapheme-len'.
27250         * modules/unigbrk/u8-grapheme-len: New file.
27251         * modules/unigbrk/u8-grapheme-len-tests: New file.
27252         * lib/unigbrk.in.h: Add prototype for new function.
27253         * lib/unigbrk/u8-grapheme-len.c: New file.
27254         * tests/unigbrk/test-u8-grapheme-len.c: New file.
27255
27256         New module 'u16-grapheme-len'.
27257         * modules/unigbrk/u16-grapheme-len: New file.
27258         * modules/unigbrk/u16-grapheme-len-tests: New file.
27259         * lib/unigbrk.in.h: Add prototype for new function.
27260         * lib/unigbrk/u16-grapheme-len.c: New file.
27261         * tests/unigbrk/test-u16-grapheme-len.c: New file.
27262
27263         New module 'u32-grapheme-len'.
27264         * modules/unigbrk/u32-grapheme-len: New file.
27265         * modules/unigbrk/u32-grapheme-len-tests: New file.
27266         * lib/unigbrk.in.h: Add prototype for new function.
27267         * lib/unigbrk/u32-grapheme-len.c: New file.
27268         * tests/unigbrk/test-u32-grapheme-len.c: New file.
27269
27270         New module 'u8-grapheme-next'.
27271         * modules/unigbrk/u8-grapheme-next: New file.
27272         * modules/unigbrk/u8-grapheme-next-tests: New file.
27273         * lib/unigbrk.in.h: Add prototype for new function.
27274         * lib/unigbrk/u8-grapheme-next.c: New file.
27275         * tests/unigbrk/test-u8-grapheme-next.c: New file.
27276
27277         New module 'u16-grapheme-next'.
27278         * modules/unigbrk/u16-grapheme-next: New file.
27279         * modules/unigbrk/u16-grapheme-next-tests: New file.
27280         * lib/unigbrk.in.h: Add prototype for new function.
27281         * lib/unigbrk/u16-grapheme-next.c: New file.
27282         * tests/unigbrk/test-u16-grapheme-next.c: New file.
27283
27284         New module 'u32-grapheme-next'.
27285         * modules/unigbrk/u32-grapheme-next: New file.
27286         * modules/unigbrk/u32-grapheme-next-tests: New file.
27287         * lib/unigbrk.in.h: Add prototype for new function.
27288         * lib/unigbrk/u32-grapheme-next.c: New file.
27289         * tests/unigbrk/test-u32-grapheme-next.c: New file.
27290
27291         New module 'u8-grapheme-prev'.
27292         * modules/unigbrk/u8-grapheme-prev: New file.
27293         * modules/unigbrk/u8-grapheme-prev-tests: New file.
27294         * lib/unigbrk.in.h: Add prototype for new function.
27295         * lib/unigbrk/u8-grapheme-prev.c: New file.
27296         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
27297
27298         New module 'u16-grapheme-prev'.
27299         * modules/unigbrk/u16-grapheme-prev: New file.
27300         * modules/unigbrk/u16-grapheme-prev-tests: New file.
27301         * lib/unigbrk.in.h: Add prototype for new function.
27302         * lib/unigbrk/u16-grapheme-prev.c: New file.
27303         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
27304
27305         New module 'u32-grapheme-prev'.
27306         * modules/unigbrk/u32-grapheme-prev: New file.
27307         * modules/unigbrk/u32-grapheme-prev-tests: New file.
27308         * lib/unigbrk.in.h: Add prototype for new function.
27309         * lib/unigbrk/u32-grapheme-prev.c: New file.
27310         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
27311
27312         New module 'u8-grapheme-breaks'.
27313         * modules/unigbrk/u8-grapheme-breaks: New file.
27314         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
27315         * lib/unigbrk.in.h: Add prototype for new function.
27316         * lib/unigbrk/u8-grapheme-breaks.c: New file.
27317         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
27318
27319         New module 'u16-grapheme-breaks'.
27320         * modules/unigbrk/u16-grapheme-breaks: New file.
27321         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
27322         * lib/unigbrk.in.h: Add prototype for new function.
27323         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27324         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27325
27326         New module 'u32-grapheme-breaks'.
27327         * modules/unigbrk/u32-grapheme-breaks: New file.
27328         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27329         * lib/unigbrk.in.h: Add prototype for new function.
27330         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27331         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27332
27333         New module 'ulc-grapheme-breaks'.
27334         * modules/unigbrk/ulc-grapheme-breaks: New file.
27335         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27336         * m4/locale-ar.m4: New file.
27337         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27338         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27339         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27340
27341 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27342
27343         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27344         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27345         modified how this file was generated before I initially submitted
27346         the module, but failed to regenerate it.  This meant that several
27347         of the level2 entries were wrong.
27348         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27349         Remove the division-by-2 that is folded into the table now that
27350         gbrkprop.h has been regenerated properly.  Now -1 entries are
27351         handled correctly.
27352
27353         New module 'unigbrk/uc-gbrk-prop-tests'.
27354         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27355         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27356         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27357         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27358
27359 2011-01-01  Bruno Haible  <bruno@clisp.org>
27360
27361         Avoid use of hexadecimal escapes.
27362         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27363         instead of hexadecimal escapes.
27364
27365 2011-01-01  Jim Meyering  <meyering@redhat.com>
27366
27367         maint: new rule to update copyright year ranges
27368         * Makefile (update-copyright): New rule.
27369
27370         maint: indent with TABs in Makefile
27371         * Makefile: Expand leading sequences of spaces to TABs
27372
27373         version-etc: update the copyright year it reports
27374         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27375
27376 2010-12-31  Bruno Haible  <bruno@clisp.org>
27377
27378         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27379         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27380         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27381         zero.
27382
27383 2010-12-31  Bruno Haible  <bruno@clisp.org>
27384
27385         pwrite: Work around HP-UX 11.11 bug.
27386         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
27387         works and set REPLACE_PWRITE if not.
27388         * lib/pwrite.c (pwrite): Add an implementation that uses the system
27389         function.
27390         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
27391
27392 2010-12-31  Bruno Haible  <bruno@clisp.org>
27393
27394         pread: Work around HP-UX 11 bugs.
27395         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27396         and set REPLACE_PREAD if not.
27397         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27398
27399 2010-12-31  Eric Blake  <eblake@redhat.com>
27400
27401         nl_langinfo: fix YESEXPR on Irix 6.5
27402         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27403         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27404         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27405         it.
27406
27407 2010-12-31  Bruno Haible  <bruno@clisp.org>
27408
27409         iconv: Document HP-UX 11 bug.
27410         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27411
27412 2010-12-31  Bruno Haible  <bruno@clisp.org>
27413
27414         ldexpl: Fix link error on HP-UX 11.
27415         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27416         LDEXPL_LIBM, using $ISNANL_LIBM.
27417
27418 2010-12-31  Eric Blake  <eblake@redhat.com>
27419
27420         ftello: avoid compilation failure with SunStudio c89
27421         * lib/ftello.c (ftello): Use lseek, not llseek.
27422
27423         tests: avoid failing coreutils tests on cygwin
27424         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27425         (create_exe_shims_): Return 0 when skipping.
27426
27427 2010-12-31  Bruno Haible  <bruno@clisp.org>
27428
27429         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27430         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27431
27432 2010-12-31  Bruno Haible  <bruno@clisp.org>
27433
27434         waitpid: Fix link error in C++ mode.
27435         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27436
27437 2010-12-31  Bruno Haible  <bruno@clisp.org>
27438
27439         isnan: Use GCC built-ins when possible.
27440         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27441         __builtin_isnan.
27442         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27443         (isnan): Define using GCC built-ins for GCC >= 4.0.
27444
27445 2010-12-31  Bruno Haible  <bruno@clisp.org>
27446
27447         isnand: Fix mistake.
27448         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27449         __builtin_isnand.
27450
27451 2010-12-31  Bruno Haible  <bruno@clisp.org>
27452
27453         open: Avoid C++ error on HP-UX 11.
27454         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27455
27456 2010-12-31  Bruno Haible  <bruno@clisp.org>
27457
27458         time_r: Add missing declarations on HP-UX 11.
27459         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27460         instead of HAVE_LOCALTIME_R.
27461         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27462         HAVE_LOCALTIME_R always.
27463         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27464         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27465         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27466         HAVE_LOCALTIME_R.
27467         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27468         * doc/posix-functions/localtime_r.texi: Likewise.
27469
27470 2010-12-29  Eric Blake  <eblake@redhat.com>
27471
27472         mountlist: tweak previous commit
27473         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27474         Reported by Paul Eggert.
27475
27476         mountlist: fix local drive detection on cygwin
27477         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
27478         that works for cygwin.
27479
27480 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27481
27482         ftoastr, snprintf: ftoastr + snprintf module
27483         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
27484         since the snprintf module now should be good enough here.
27485         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
27486         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
27487         and gl_MODULE_INDICATOR([snprintf]), but the former enables
27488         GNULIB_SNPRINTF only for the test directory, and the latter
27489         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
27490         seems to suffice by itself.
27491
27492 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27493
27494         alloca: one step towards thread-safety
27495         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
27496         need for a static variable.  All callers changed.  This does not
27497         make the alloca replacement thread-safe, but it's one step.
27498
27499         tests: minor indenting change
27500         * tests/init.sh: Sync from coreutils housekeeping patch
27501         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
27502         to keep lines within 80 columns.
27503
27504 2010-12-28  Jim Meyering  <meyering@redhat.com>
27505
27506         regex: don't infloop on persistent failing calloc
27507         * lib/regexec.c (build_trtable): Return failure indication upon
27508         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27509         In glibc, this was fixed for version 2.13:
27510         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
27511
27512 2010-12-28  Bruno Haible  <bruno@clisp.org>
27513             Paul Eggert <eggert@cs.ucla.edu>
27514
27515         linkat: Make implementation robust against system behaviour variations.
27516         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
27517         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
27518         way, and to -2 if it needs a generic runtime test.
27519         * lib/linkat.c (solaris_optimized_link_immediate,
27520         solaris_optimized_link_follow): New functions.
27521         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
27522         (check_same_link): Use it.
27523
27524 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
27525
27526         New module 'unigbrk/base'.
27527         * modules/unigbrk/base: New file.
27528         * lib/unigbrk.in.h: New file.
27529
27530         New module 'unigbrk/uc-gbrk-prop'.
27531         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
27532         * modules/unigbrk/uc-gbrk-prop: New file.
27533         * lib/unigbrk/gbrkprop.h: New file.
27534         * lib/unigbrk/uc-gbrk-prop.c: New file.
27535
27536         New module 'unigbrk/uc-is-grapheme-break'.
27537         * modules/unigbrk/uc-is-grapheme-break: New file.
27538         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
27539         * lib/unigbrk/uc-is-grapheme-break.c: New file.
27540         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
27541         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
27542         * tests/unigbrk/GraphemeBreakTest.txt: New file.
27543
27544         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
27545
27546 2010-12-27  Bruno Haible  <bruno@clisp.org>
27547
27548         linkat test: Avoid failure on Solaris 11 2010-11.
27549         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
27550
27551 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27552
27553         utimens: work around glibc rounding bug on more platforms
27554         * lib/utimens.c (fdutimens): Work around rounding bug even if
27555         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
27556         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
27557
27558 2010-12-27  Bruno Haible  <bruno@clisp.org>
27559
27560         select tests: Improve comments.
27561         * tests/test-select.c (do_select): Add comments.
27562
27563 2010-12-27  Bruno Haible  <bruno@clisp.org>
27564
27565         select tests: Safer way of handling timeout.
27566         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
27567         at every invocation.
27568
27569 2010-12-27  Bruno Haible  <bruno@clisp.org>
27570
27571         select tests: Use 'bool' where appropriate.
27572         * tests/test-select.c (connect_to_socket): Change argument type to
27573         'bool'.
27574
27575 2010-12-27  Bruno Haible  <bruno@clisp.org>
27576
27577         select tests: Use existing modules.
27578         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
27579         (configure.ac): Don't test for unistd.h.
27580         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
27581         declared in <unistd.h>.
27582
27583 2010-12-27  Bruno Haible  <bruno@clisp.org>
27584
27585         mbrtowc: Work around a Solaris 7 bug.
27586         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
27587         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
27588         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
27589         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
27590         MBRTOWC_NULL_ARG1_BUG.
27591         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
27592         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
27593         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
27594         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
27595
27596 2010-12-27  Jim Meyering  <meyering@redhat.com>
27597
27598         read-file.c: tweak syntax
27599         * lib/read-file.c (fread_file): Remove space after "*" in function
27600         definitions.
27601
27602 2010-12-27  Bruno Haible  <bruno@clisp.org>
27603
27604         times test: Avoid gcc warnings on OSF/1.
27605         * tests/test-times.c (main): Cast printf arguments from clock_t to
27606         'long int'.
27607
27608 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27609
27610         utimens: work around glibc rounding bug on older Linux kernels
27611         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
27612         on Linux with a glibc whose utimes might not work, then work
27613         around a longstanding glibc bug involving rounding rather than
27614         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
27615         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27616
27617 2010-12-26  Bruno Haible  <bruno@clisp.org>
27618
27619         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
27620         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
27621         _GL_CXXALIAS_SYS.
27622         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27623
27624 2010-12-26  Bruno Haible  <bruno@clisp.org>
27625
27626         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
27627         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
27628         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27629         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
27630         looking for the declaration.
27631         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
27632         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
27633         problem.
27634         * doc/posix-functions/inet_pton.texi: Likewise.
27635
27636 2010-12-26  Bruno Haible  <bruno@clisp.org>
27637
27638         arpa_inet: Use the common idioms with C++ support.
27639         * lib/arpa_inet.in.h: Include c++defs.h.
27640         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
27641         support.
27642         * modules/arpa_inet (Depends-on): Add c++defs.
27643         (Makefile.am): Substitute the contents of c++defs.h.
27644         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
27645         * modules/arpa_inet-c++-tests: New file.
27646         * tests/test-arpa_inet-c++.cc: New file.
27647
27648 2010-12-25  Bruno Haible  <bruno@clisp.org>
27649
27650         Fix more C++ link errors on Solaris 8.
27651         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
27652         $(LIB_EACCESS).
27653         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
27654         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
27655         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
27656         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
27657         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
27658
27659 2010-12-25  Bruno Haible  <bruno@clisp.org>
27660
27661         printf-posix: Fix link error when a non-GCC compiler is used.
27662         * lib/stdio.in.h (printf): When not using GCC, override printf
27663         correctly.
27664         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27665
27666 2010-12-25  Bruno Haible  <bruno@clisp.org>
27667
27668         strerror_r-posix: Update doc.
27669         * doc/posix-functions/strerror_r.texi: Update doc about the return
27670         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
27671
27672 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27673
27674         utimens: simplify the logic of the previous change
27675         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
27676         This should not affect whether the test succeeds or fails.
27677
27678         utimens: configure better on hosts with NFS clock skew
27679         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
27680         uses the clock of the local host.  It might use the clock of the
27681         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
27682         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27683
27684 2010-12-25  Bruno Haible  <bruno@clisp.org>
27685
27686         ptsname test: Avoid failure on Solaris.
27687         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
27688         open a pseudo-terminal; don't use BSD-style ptys.
27689         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
27690
27691 2010-12-25  Bruno Haible  <bruno@clisp.org>
27692
27693         ptsname: Avoid ERANGE failure on some systems.
27694         * lib/ptsname.c (buffer): Increase size.
27695
27696 2010-12-25  Bruno Haible  <bruno@clisp.org>
27697
27698         rename, renameat: Avoid test failures at NFS mounted locations.
27699         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
27700         so that subsequent mkdir calls succeed.
27701
27702 2010-12-25  Bruno Haible  <bruno@clisp.org>
27703
27704         iswblank: Fix C++ link error on Solaris 8.
27705         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
27706         _GL_FUNCDECL_SYS.
27707
27708 2010-12-25  Bruno Haible  <bruno@clisp.org>
27709
27710         unistd: Fix C++ link error on Solaris 8.
27711         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
27712
27713 2010-12-25  Bruno Haible  <bruno@clisp.org>
27714
27715         readlink doc: Mention an old glibc bug.
27716         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
27717
27718 2010-12-25  Bruno Haible  <bruno@clisp.org>
27719
27720         fcntl-h: Fix for use of C++ on glibc systems.
27721         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27722         also on glibc systems in C++ mode.
27723         Reported by Gary V. Vaughan <gary@gnu.org>.
27724
27725 2010-12-25  Bruno Haible  <bruno@clisp.org>
27726
27727         roundl-ieee: Make it work on OSF/1 5.1 with cc.
27728         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
27729
27730 2010-12-25  Bruno Haible  <bruno@clisp.org>
27731
27732         truncl-ieee: Make it work on OSF/1 5.1 with cc.
27733         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
27734         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
27735         test whether truncl works according to ISO C 99 with IEC 60559.
27736         * m4/truncl-ieee.m4: New file.
27737         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
27738         m4/signbit.m4.
27739         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
27740
27741 2010-12-25  Bruno Haible  <bruno@clisp.org>
27742
27743         ceill-ieee: Make it work on OSF/1 5.1 with cc.
27744         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
27745         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
27746         test whether ceill works according to ISO C 99 with IEC 60559.
27747         * m4/ceill-ieee.m4: New file.
27748         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
27749         m4/signbit.m4.
27750         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
27751
27752 2010-12-25  Bruno Haible  <bruno@clisp.org>
27753
27754         Ensure all prerequisites of <wchar.h> are included.
27755         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
27756         before <wchar.h>.
27757         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27758         gl_MBRLEN_NUL_RETVAL): Likewise.
27759         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27760         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
27761         AC_FUNC_MBRTOWC): Likewise.
27762         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27763         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
27764         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27765         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27766         Likewise.
27767         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27768         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
27769         (gl_WCHAR_H): Improve comments.
27770         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
27771
27772 2010-12-25  Bruno Haible  <bruno@clisp.org>
27773
27774         strtok_r: Fix C syntax error in autoconf macro.
27775         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
27776         characters in test program.
27777
27778 2010-12-24  Bruno Haible  <bruno@clisp.org>
27779
27780         ceil, trunc, round: Fix gcc warnings.
27781         * lib/ceil.c (MIN): Undefine before redefining.
27782         * lib/trunc.c (MIN): Likewise.
27783         * lib/round.c (MIN): Likewise.
27784         Include <math.h> first.
27785
27786 2010-12-24  Bruno Haible  <bruno@clisp.org>
27787
27788         select tests: Avoid failures on OSF/1 5.1.
27789         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
27790         failure of closing the last socket; it may fail with ECONNRESET.
27791
27792 2010-12-24  Eric Blake  <eblake@redhat.com>
27793
27794         stdint: avoid HP-UX 10.20 preprocessor bug
27795         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
27796         than #if.
27797         * tests/test-floor2.c (main): Likewise.
27798         Reported by Peter O'Gorman.
27799
27800         pipe: make obsoletion transition easier
27801         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
27802         * modules/pipe (Files): Include revived file.
27803         (Include): Drop reference, to mirror getdate's behavior.
27804
27805 2010-12-24  Bruno Haible  <bruno@clisp.org>
27806
27807         sys_socket: Hide mismatch of declarations on NonStop Kernel.
27808         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
27809         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
27810         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27811
27812 2010-12-24  Bruno Haible  <bruno@clisp.org>
27813
27814         gethostname: Ensure declaration on NonStop Kernel.
27815         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
27816         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27817
27818 2010-12-24  Bruno Haible  <bruno@clisp.org>
27819
27820         sys_select: Ensure all necessary types on NonStop Kernel.
27821         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
27822         include <sys/time.h>.
27823         * doc/posix-headers/sys_select.texi: Mention that it's missing on
27824         NonStop Kernel.
27825         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27826
27827 2010-12-24  Bruno Haible  <bruno@clisp.org>
27828
27829         sys_select: Remove unneeded include.
27830         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
27831         have <sys/select.h>.
27832
27833 2010-12-24  Bruno Haible  <bruno@clisp.org>
27834
27835         gethostname: Provide a fallback for HOST_NAME_MAX.
27836         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
27837         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
27838         instead.
27839         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27840
27841 2010-12-24  Bruno Haible  <bruno@clisp.org>
27842
27843         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
27844         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
27845         (SA_RESTART): Likewise.
27846         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27847
27848 2010-12-24  Bruno Haible  <bruno@clisp.org>
27849
27850         signal: Define NSIG.
27851         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
27852         * tests/test-signal.c (nsig): New variable.
27853         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27854
27855 2010-12-24  Bruno Haible  <bruno@clisp.org>
27856
27857         rename, renameat: Avoid test failures on OSF/1 5.1.
27858         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
27859         alternative error codes.
27860         * tests/test-renameat.c (main): Likewise.
27861
27862 2010-12-24  Bruno Haible  <bruno@clisp.org>
27863
27864         *printf: Detect large precisions bug on Solaris 10/SPARC.
27865         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
27866         by Paul Eggert.
27867         * tests/test-snprintf-posix.h (test_function): Add this test code here
27868         too.
27869         * tests/test-sprintf-posix.h (test_function): Likewise.
27870         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27871         * tests/test-vasprintf-posix.c (test_function): Likewise.
27872         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
27873         around by gnulib.
27874         * doc/posix-functions/printf.texi: Likewise.
27875         * doc/posix-functions/snprintf.texi: Likewise.
27876         * doc/posix-functions/sprintf.texi: Likewise.
27877         * doc/posix-functions/vfprintf.texi: Likewise.
27878         * doc/posix-functions/vprintf.texi: Likewise.
27879         * doc/posix-functions/vsnprintf.texi: Likewise.
27880         * doc/posix-functions/vsprintf.texi: Likewise.
27881         * doc/posix-functions/dprintf.texi: Undo last commit.
27882         * doc/posix-functions/vdprintf.texi: Likewise.
27883
27884 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27885
27886         tests: port test-fdutimensat.c to Solaris 8
27887         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
27888         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
27889         On Solaris 8, it fails with errno == ENOSYS, because there is no
27890         futimens (so it can't use the fd), and there is no lutimens (so it
27891         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
27892
27893         vsnprintf: make more consistent with snprintf; doc fixes
27894
27895         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
27896         the byte count return problem was promoted from the snprintf-posix
27897         to the snprintf module.
27898         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27899         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
27900         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
27901         * tests/test-snprintf.c (main): Check the byte count returned.
27902         * tests/test-vsnprintf.c (main): Likewise.
27903
27904 2010-12-23  Eric Blake  <eblake@redhat.com>
27905
27906         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
27907         * modules/sigpipe (License): Relax license.
27908
27909 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27910
27911         doc: document Solaris printf bug with large float precisions
27912         * doc/posix-functions/dprintf.texi (dprintf):
27913         * doc/posix-functions/fprintf.texi (fprintf):
27914         * doc/posix-functions/printf.texi (printf):
27915         * doc/posix-functions/snprintf.texi (snprintf):
27916         * doc/posix-functions/sprintf.texi (sprintf):
27917         * doc/posix-functions/vdprintf.texi (vdprintf):
27918         * doc/posix-functions/vfprintf.texi (vfprintf):
27919         * doc/posix-functions/vprintf.texi (vprintf):
27920         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27921         * doc/posix-functions/vsprintf.texi (vsprintf):
27922         Mention that these functions mishandle large floating point
27923         precisions on Solaris 10.  The same bug is also present in Solaris
27924         8, and I assume earlier.  This causes "cd gnulib-tests; make
27925         check" to fail on Solaris 8 (and I assume, later) when building
27926         the latest coreutils, in test-vasprintf-posix's call to
27927         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
27928         the wide flavors (e.g., wprintf) so this patch just updates the
27929         documentation for the narrow ones.
27930
27931         test-posixtm.c: add two tests
27932         * tests/test-posixtm.c: Add two tests, to highlight the
27933         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
27934         around this bug; this is merely to document it.
27935
27936 2010-12-22  Bruno Haible  <bruno@clisp.org>
27937
27938         getlogin_r: Work around portability problem on OSF/1.
27939         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
27940         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
27941         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
27942         test for a truncated result.
27943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
27944         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
27945         * modules/getlogin_r (Depends-on): Add memchr.
27946         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
27947
27948 2010-12-22  Bruno Haible  <bruno@clisp.org>
27949
27950         ptsname: Avoid test failure on OSF/1 5.1.
27951         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
27952         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
27953         (same_slave): New function.
27954         (main): Use it to compare ptsname's result with the expected file name.
27955
27956 2010-12-22  Bruno Haible  <bruno@clisp.org>
27957
27958         Port extended stdio modules to HP NonStop Kernel.
27959         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
27960         macros.
27961         * lib/fbufmode.c: Update comments.
27962         * lib/fflush.c: Likewise.
27963         * lib/fpurge.c: Likewise.
27964         * lib/freadable.c: Likewise.
27965         * lib/freadahead.c: Likewise.
27966         * lib/freading.c: Likewise.
27967         * lib/freadptr.c: Likewise.
27968         * lib/freadseek.c: Likewise.
27969         * lib/fseeko.c: Likewise.
27970         * lib/fseterr.c: Likewise.
27971         * lib/fwritable.c: Likewise.
27972         * lib/fwriting.c: Likewise.
27973         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27974
27975 2010-12-22  Bruno Haible  <bruno@clisp.org>
27976
27977         ttyname_r: Work around bug on OSF/1 5.1.
27978         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
27979         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
27980         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
27981         present.
27982         * lib/ttyname_r.c (ttyname_r): Update comments.
27983
27984 2010-12-22  Bruno Haible  <bruno@clisp.org>
27985
27986         round: Implement result sign according to IEEE 754.
27987         * lib/round.c (MIN, MINUS_ZERO): New macros.
27988         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
27989         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
27990         * tests/test-round-ieee.c (main): Likewise.
27991         * tests/test-roundl-ieee.c (main): Likewise.
27992
27993         trunc: Implement result sign according to IEEE 754.
27994         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
27995         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
27996         * tests/test-trunc2.c: Include minus-zero.h.
27997         (MINUS_ZERO): New macro.
27998         (trunc_reference): Keep in sync with lib/trunc.c.
27999         * tests/test-truncf2.c: Include minus-zero.h.
28000         (MINUS_ZERO): New macro.
28001         (truncf_reference): Keep in sync with lib/trunc.c.
28002         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
28003         * tests/test-trunc-ieee.c (main): Likewise.
28004         * tests/test-truncl-ieee.c (main): Likewise.
28005
28006         ceil: Implement result sign according to IEEE 754.
28007         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
28008         (FUNC): Return -0.0 for -1 < x < 0.
28009         * tests/test-ceil2.c: Include minus-zero.h.
28010         (MINUS_ZERO): New macro.
28011         (ceil_reference): Keep in sync with lib/ceil.c.
28012         * tests/test-ceilf2.c: Include minus-zero.h.
28013         (MINUS_ZERO): New macro.
28014         (ceilf_reference): Keep in sync with lib/ceil.c.
28015         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
28016         * tests/test-ceil-ieee.c (main): Likewise.
28017         * tests/test-ceill-ieee.c (main): Likewise.
28018
28019         floor: Implement result sign according to IEEE 754.
28020         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
28021         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
28022         * tests/test-floorf2.c (floorf_reference): Likewise.
28023         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
28024         * tests/test-floor-ieee.c (main): Likewise.
28025         * tests/test-floorl-ieee.c (main): Likewise.
28026
28027 2010-12-22  Bruno Haible  <bruno@clisp.org>
28028
28029         getaddrinfo: Update doc.
28030         * doc/posix-functions/gai_strerror.texi: Return type is also different
28031         on AIX and HP-UX.
28032
28033 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28034
28035         getaddrinfo, inet_ntop: Update doc for Solaris.
28036         * doc/posix-functions/gai_strerror.texi: Return type is also an
28037         issue on Solaris 9 and earlier.
28038         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
28039         on Solaris 10 and earlier.
28040
28041 2010-12-21  Bruno Haible  <bruno@clisp.org>
28042
28043         New module 'roundl-ieee'.
28044         * modules/roundl-ieee: New file.
28045         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
28046         test whether roundl works according to ISO C 99 with IEC 60559.
28047         * m4/roundl-ieee.m4: New file.
28048         * modules/roundl-ieee-tests: New file.
28049         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
28050         * tests/test-roundl.c (main): Remove signbit tests.
28051         * modules/roundl-tests (Depends-on): Remove signbit.
28052         * doc/posix-functions/roundl.texi: Mention the new module.
28053
28054 2010-12-21  Bruno Haible  <bruno@clisp.org>
28055
28056         New module 'truncl-ieee'.
28057         * modules/truncl-ieee: New file.
28058         * modules/truncl-ieee-tests: New file.
28059         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
28060         * tests/test-truncl.c (main): Remove signbit tests.
28061         * modules/truncl-tests (Depends-on): Remove signbit.
28062         * doc/posix-functions/truncl.texi: Mention the new module.
28063
28064 2010-12-21  Bruno Haible  <bruno@clisp.org>
28065
28066         New module 'ceill-ieee'.
28067         * modules/ceill-ieee: New file.
28068         * modules/ceill-ieee-tests: New file.
28069         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
28070         * tests/test-ceill.c (main): Remove signbit tests.
28071         * modules/ceill-tests (Depends-on): Remove signbit.
28072         * doc/posix-functions/ceill.texi: Mention the new module.
28073
28074 2010-12-21  Bruno Haible  <bruno@clisp.org>
28075
28076         New module 'floorl-ieee'.
28077         * modules/floorl-ieee: New file.
28078         * modules/floorl-ieee-tests: New file.
28079         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
28080         * tests/test-floorl.c (main): Remove signbit tests.
28081         * modules/floorl-tests (Depends-on): Remove signbit.
28082         * doc/posix-functions/floorl.texi: Mention the new module.
28083
28084 2010-12-21  Bruno Haible  <bruno@clisp.org>
28085
28086         New module 'round-ieee'.
28087         * modules/round-ieee: New file.
28088         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
28089         whether round works according to ISO C 99 with IEC 60559.
28090         * m4/round-ieee.m4: New file.
28091         * modules/round-ieee-tests: New file.
28092         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
28093         * tests/test-round1.c (main): Remove signbit tests.
28094         * modules/round-tests (Depends-on): Remove 'signbit'.
28095         * doc/posix-functions/round.texi: Mention the new module.
28096
28097 2010-12-21  Bruno Haible  <bruno@clisp.org>
28098
28099         New module 'trunc-ieee'.
28100         * modules/trunc-ieee: New file.
28101         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
28102         whether trunc works according to ISO C 99 with IEC 60559.
28103         * m4/trunc-ieee.m4: New file.
28104         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
28105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
28106         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
28107         * modules/trunc-ieee-tests: New file.
28108         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
28109         * tests/test-trunc1.c (main): Remove signbit tests.
28110         * modules/trunc-tests (Depends-on): Remove 'signbit'.
28111         * doc/posix-functions/trunc.texi: Mention the new module.
28112
28113 2010-12-21  Bruno Haible  <bruno@clisp.org>
28114
28115         New module 'ceil-ieee'.
28116         * modules/ceil-ieee: New file.
28117         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
28118         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
28119         ISO C 99 with IEC 60559.
28120         * m4/ceil-ieee.m4: New file.
28121         * modules/ceil (Files): Add lib/ceil.c.
28122         (Depends-on): Add 'float'.
28123         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28124         * lib/math.in.h (ceil): New declaration.
28125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
28126         REPLACE_CEIL.
28127         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
28128         * modules/ceil-ieee-tests: New file.
28129         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
28130         * tests/test-math-c++.cc: Check the signature of 'ceil'.
28131         * doc/posix-functions/ceil.texi: Mention the new module.
28132
28133 2010-12-21  Bruno Haible  <bruno@clisp.org>
28134
28135         New module 'floor-ieee'.
28136         * modules/floor-ieee: New file.
28137         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
28138         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
28139         ISO C 99 with IEC 60559.
28140         * m4/floor-ieee.m4: New file.
28141         * modules/floor (Files): Add lib/floor.c.
28142         (Depends-on): Add 'float'.
28143         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28144         * lib/math.in.h (floor): New declaration.
28145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
28146         REPLACE_FLOOR.
28147         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
28148         * modules/floor-ieee-tests: New file.
28149         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
28150         * tests/test-math-c++.cc: Check the signature of 'floor'.
28151         * doc/posix-functions/floor.texi: Mention the new module.
28152
28153 2010-12-21  Bruno Haible  <bruno@clisp.org>
28154
28155         New module 'roundf-ieee'.
28156         * modules/roundf-ieee: New file.
28157         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
28158         test whether roundf works according to ISO C 99 with IEC 60559.
28159         * m4/roundf-ieee.m4: New file.
28160         * modules/roundf-ieee-tests: New file.
28161         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
28162         * tests/test-roundf1.c (main): Remove signbit tests.
28163         * modules/roundf-tests (Depends-on): Remove 'signbit'.
28164         * doc/posix-functions/roundf.texi: Mention the new module.
28165
28166 2010-12-21  Bruno Haible  <bruno@clisp.org>
28167
28168         New module 'truncf-ieee'.
28169         * modules/truncf-ieee: New file.
28170         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
28171         test whether truncf works according to ISO C 99 with IEC 60559.
28172         * m4/truncf-ieee.m4: New file.
28173         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
28174         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
28175         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
28176         * modules/truncf-ieee-tests: New file.
28177         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
28178         * tests/test-truncf1.c (main): Remove signbit tests.
28179         * modules/truncf-tests (Depends-on): Remove 'signbit'.
28180         * doc/posix-functions/truncf.texi: Mention the new module.
28181
28182 2010-12-21  Bruno Haible  <bruno@clisp.org>
28183
28184         New module 'ceilf-ieee'.
28185         * modules/ceilf-ieee: New file.
28186         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
28187         test whether ceilf works according to ISO C 99 with IEC 60559.
28188         * m4/ceilf-ieee.m4: New file.
28189         * modules/ceilf-ieee-tests: New file.
28190         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
28191         * tests/test-ceilf1.c (main): Remove signbit tests.
28192         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
28193         * doc/posix-functions/ceilf.texi: Mention the new module.
28194
28195 2010-12-21  Bruno Haible  <bruno@clisp.org>
28196
28197         New module 'floorf-ieee'.
28198         * modules/floorf-ieee: New file.
28199         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
28200         test whether floorf works according to ISO C 99 with IEC 60559.
28201         * m4/floorf-ieee.m4: New file.
28202         * modules/floorf-ieee-tests: New file.
28203         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
28204         * tests/test-floorf1.c (main): Remove signbit tests.
28205         * modules/floorf-tests (Depends-on): Remove 'signbit'.
28206         * doc/posix-functions/floorf.texi: Mention the new module.
28207
28208 2010-12-21  Bruno Haible  <bruno@clisp.org>
28209
28210         Support for minus zero in autoconf macros.
28211         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
28212         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
28213         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
28214         * tests/minus-zero.h: Update comments.
28215
28216 2010-12-21  Bruno Haible  <bruno@clisp.org>
28217
28218         Tests for module 'ceil'.
28219         * modules/ceil-tests: New file.
28220         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
28221         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
28222
28223 2010-12-21  Bruno Haible  <bruno@clisp.org>
28224
28225         Tests for module 'floor'.
28226         * modules/floor-tests: New file.
28227         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
28228         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
28229
28230 2010-12-21  Bruno Haible  <bruno@clisp.org>
28231
28232         math: Fix indentation.
28233         * lib/math.in.h (floorf): Fix indentation.
28234
28235 2010-12-21  Bruno Haible  <bruno@clisp.org>
28236
28237         Fix cross-compilation guesses on Solaris.
28238         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
28239         not match "solaris2.10".
28240         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28241         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
28242         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
28243
28244 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28245
28246         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
28247         This fixes a problem observed with the latest coreutils snapshot
28248         that caused a test to fail on Solaris 8.  src/csplit.c's call
28249         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
28250         earlier, instead of returning the number of bytes that would have
28251         been generated; this causes csplit to incorrectly report memory
28252         exhaustion.
28253         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
28254         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
28255         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
28256         comments to match.
28257         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
28258         Fix typo in matching older versions of Solaris: "solaris2.10"
28259         is matched by the shell pattern "solaris2.[0-9]*".  This matters
28260         only for guessing while cross-compiling.
28261         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
28262
28263 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28264
28265         ftoastr: fix comment again
28266         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28267         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
28268         Also, simplify example a bit by using flags = 0.
28269
28270 2010-12-20  Bruno Haible  <bruno@clisp.org>
28271
28272         round*, trunc*: Update documentation regarding glibc.
28273         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
28274         * doc/posix-functions/round.texi: Likewise.
28275         * doc/posix-functions/roundl.texi: Likewise.
28276         * doc/posix-functions/truncf.texi: Likewise.
28277         * doc/posix-functions/trunc.texi: Likewise.
28278         * doc/posix-functions/truncl.texi: Likewise.
28279
28280 2010-12-20  Bruno Haible  <bruno@clisp.org>
28281
28282         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
28283         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
28284         * doc/posix-functions/round.texi: Likewise.
28285         * doc/posix-functions/roundl.texi: Likewise.
28286
28287 2010-12-20  Bruno Haible  <bruno@clisp.org>
28288
28289         ttyname_r: Add missing declaration on HP-UX 11.
28290         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
28291         HAVE_TTYNAME_R.
28292         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
28293         declared. Set HAVE_TTYNAME_R always.
28294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28295         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
28296         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
28297         HAVE_TTYNAME_R.
28298         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
28299
28300 2010-12-20  Bruno Haible  <bruno@clisp.org>
28301
28302         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
28303         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
28304         * doc/posix-functions/getlogin_r.texi: Likewise.
28305         * tests/test-getlogin.c: Include <errno.h>.
28306         (main): Avoid test failure on HP-UX 11.11.
28307         * tests/test-getlogin_r.c (main): Likewise.
28308
28309 2010-12-20  Bruno Haible  <bruno@clisp.org>
28310
28311         getlogin_r: Add missing declaration on HP-UX 11.
28312         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
28313         declared also when it exists as a function.
28314         * doc/posix-functions/getlogin_r.texi: Document this workaround.
28315
28316 2010-12-20  Bruno Haible  <bruno@clisp.org>
28317
28318         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
28319         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
28320         through wcrtomb.
28321
28322 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28323
28324         ftoastr: fix comment
28325         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28326         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28327
28328 2010-12-19  Bruno Haible  <bruno@clisp.org>
28329
28330         isnan: Ensure it is a macro.
28331         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28332         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28333         Solaris.
28334
28335 2010-12-19  Bruno Haible  <bruno@clisp.org>
28336
28337         ldexpl test: Fix link error on OSF/1 5.1.
28338         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28339
28340 2010-12-19  Bruno Haible  <bruno@clisp.org>
28341
28342         wctype: Make it work in C++ mode on OSF/1 5.1.
28343         * lib/wctype.in.h (iswblank): Declare but not define here.
28344         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28345         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28346         * modules/wctype (Files): Add lib/iswblank.c.
28347
28348 2010-12-19  Bruno Haible  <bruno@clisp.org>
28349
28350         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28351         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28352         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28353
28354 2010-12-19  Bruno Haible  <bruno@clisp.org>
28355
28356         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28357         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28358         _POSIX_PII_SOCKET.
28359         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28360         * doc/posix-functions/recvfrom.texi: Likewise.
28361         * doc/posix-functions/send.texi: Likewise.
28362         * doc/posix-functions/sendto.texi: Likewise.
28363
28364 2010-12-19  Bruno Haible  <bruno@clisp.org>
28365
28366         tcgetsid: Add missing declaration on OSF/1 5.1.
28367         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28368         HAVE_TCGETSID.
28369         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28370         Don't set HAVE_TCGETSID.
28371         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28372         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28373         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28374         HAVE_TCGETSID.
28375         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28376
28377 2010-12-19  Bruno Haible  <bruno@clisp.org>
28378
28379         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28380         * lib/stdio.in.h: During the include_next statement, let recursive
28381         includes of this file include only the system header file.
28382
28383 2010-12-19  Bruno Haible  <bruno@clisp.org>
28384
28385         iconv_open: Fix regression from 2010-12-04.
28386         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
28387         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
28388
28389 2010-12-19  Bruno Haible  <bruno@clisp.org>
28390
28391         stdbool test: Avoid a gcc warning.
28392         * tests/test-stdbool.c (main): Fail if e1 is false.
28393         Reported by Jim Meyering.
28394
28395 2010-12-19  Jim Meyering  <meyering@redhat.com>
28396
28397         setenv: restore to working order
28398         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28399         mistakenly removed.
28400         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28401         HAVE_SETENV.
28402         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28403         HAVE_SETENV.
28404
28405 2010-12-19  Bruno Haible  <bruno@clisp.org>
28406
28407         Document some different function declarations on OSF/1 5.1.
28408         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28409         * doc/posix-functions/inet_ntop.texi: Likewise.
28410         * doc/posix-functions/gethostname.texi: Likewise.
28411         * lib/unistd.in.h (gethostname): Update comment.
28412
28413 2010-12-19  Bruno Haible  <bruno@clisp.org>
28414
28415         doc: Mention vasprintf-posix module.
28416         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28417         the 'vasprintf-posix' module.
28418         * doc/glibc-functions/vasprintf.texi: Likewise.
28419
28420 2010-12-19  Bruno Haible  <bruno@clisp.org>
28421
28422         unsetenv: Add missing declaration on OSF/1 5.1.
28423         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28424         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28425         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28426         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28427         not HAVE_UNSETENV.
28428         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28429         HAVE_UNSETENV.
28430         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28431
28432 2010-12-19  Bruno Haible  <bruno@clisp.org>
28433
28434         setenv: Add missing declaration on OSF/1 5.1.
28435         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28436         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28437         declared. Don't set HAVE_SETENV.
28438         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28439         not HAVE_SETENV.
28440         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28441         HAVE_SETENV.
28442         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28443
28444 2010-12-19  Bruno Haible  <bruno@clisp.org>
28445
28446         nl_langinfo tests: Avoid gcc warning.
28447         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28448
28449 2010-12-19  Bruno Haible  <bruno@clisp.org>
28450
28451         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28452         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28453         _GL_CXXALIAS_SYS.
28454
28455 2010-12-19  Bruno Haible  <bruno@clisp.org>
28456
28457         stdbool: Relax test.
28458         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28459         address to 'bool' work in static initializer, for compilers other than
28460         GCC.
28461
28462 2010-12-19  Bruno Haible  <bruno@clisp.org>
28463
28464         ftello: Add missing declaration on OSF/1 5.1.
28465         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28466         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28468         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28469         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28470
28471 2010-12-19  Bruno Haible  <bruno@clisp.org>
28472
28473         fseeko: Add missing declaration on OSF/1 5.1.
28474         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28475         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28476         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
28477         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
28478         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
28479
28480 2010-12-19  Bruno Haible  <bruno@clisp.org>
28481
28482         fchdir: Add missing declaration on OSF/1 5.1.
28483         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
28484         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
28485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
28486         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
28487         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
28488
28489 2010-12-19  Bruno Haible  <bruno@clisp.org>
28490
28491         relocatable-prog-wrapper: Separate from relocatable-prog.
28492         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
28493         uninstall-relocwrapper rule here.
28494         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
28495         Reported by Ian Beckwith <ianb@erislabs.net>.
28496
28497 2010-12-19  Bruno Haible  <bruno@clisp.org>
28498
28499         unistr/u8-mbsnlen: Add missing dependency.
28500         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
28501         Reported by Ian Beckwith <ianb@erislabs.net>.
28502
28503 2010-12-19  Bruno Haible  <bruno@clisp.org>
28504
28505         iconv: Make it possible again to use this module without 'iconv-h'.
28506         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
28507         if it is not defined.
28508         Reported by Ian Beckwith <ianb@erislabs.net>.
28509
28510 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28511
28512         acl: port to Solaris 8 when copying from tmpfs to ufs
28513         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
28514         error number.  Problem observed on Solaris 8 with latest
28515         coreutils, with "mv A B", where A is on a tmpfs file system and B
28516         is on a ufs file system.  This caused coreutils' mv/part-symlink
28517         test to fail.
28518
28519         tests: set fail=0 at start
28520         * tests/init.sh (setup_): Move fail=0 initialization here ...
28521         (mktempd_): ... from here, so that tests can rely on fail being
28522         set to 0 initially.  This fixes a problem in coreutils; see:
28523         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
28524
28525 2010-12-18  Bruno Haible  <bruno@clisp.org>
28526
28527         memmem-simple: Stylistic changes.
28528         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
28529         Fix preprocessor directive indentation.
28530
28531 2010-12-15  Pádraig Brady <P@draigBrady.com>
28532
28533         memmem, memmem-simple: reorganize and expand empty needle check
28534         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
28535         functional checks to memmem-simple so that one has a fully functional
28536         memmem by using just this module.
28537         Restrict the performance only check to the memmem module.
28538         Also expand the empty needle check to ensure the correct
28539         pointer is returned, not just a non NULL pointer.
28540         * doc/glibc-functions/memmem.texi: Rearrange the portability
28541         documentation to correlate with the rearranged checks.
28542         Clarify exactly how the memmem and memmem-simple modules
28543         relate to each other.
28544
28545 2010-12-15  Pádraig Brady <P@draigBrady.com>
28546             Bruno Haible  <bruno@clisp.org>
28547
28548         Improve cross-compilation guesses for uClibc.
28549         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
28550         that uClibc does not have the glibc bug.
28551         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
28552         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
28553
28554 2010-12-14  Eric Blake  <eblake@redhat.com>
28555
28556         configmake: provide fallbacks for oldest supported autotools
28557         * m4/configmake.m4: New file.
28558         * modules/configmake (Files): Ship it.
28559         (configure.ac): Use it to guarantee fallbacks.
28560
28561 2010-12-13  Pádraig Brady <P@draigBrady.com>
28562
28563         read-file: Improve handling of large files
28564         * lib/read-file.c (fread_file): Minimize realloc()s
28565         for regular files, and better manage sizes around SIZE_MAX.
28566
28567 2010-12-13  Eric Blake  <eblake@redhat.com>
28568
28569         cloexec, fcntl: relax license
28570         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
28571         consent from all contributors.
28572         * modules/fcntl (License): Likewise.
28573
28574 2010-12-10  Bruno Haible  <bruno@clisp.org>
28575
28576         Tests for module 'pipe-posix'.
28577         * modules/pipe-posix-tests: New file.
28578         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
28579
28580 2010-12-10  Bruno Haible  <bruno@clisp.org>
28581
28582         pipe-posix: Make it work in C++ mode.
28583         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
28584         (pipe): Use common idiom, not a macro definition.
28585         * lib/pipe.c: New file.
28586         * m4/pipe.m4: New file.
28587         * modules/pipe-posix (Description): Enhance.
28588         (Files): Add lib/pipe.c, m4/pipe.m4.
28589         (configure.ac): Invoke gl_FUNC_PIPE.
28590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
28591         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
28592         * tests/test-unistd-c++.cc: Check the signature of pipe.
28593
28594 2010-12-10  Bruno Haible  <bruno@clisp.org>
28595
28596         Rename module 'pipe' to 'spawn-pipe'.
28597         * modules/spawn-pipe: New file, renamed from modules/pipe.
28598         (Files, configure.ac, Makefile.am): Update.
28599         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
28600         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
28601         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
28602         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
28603         "spawn-pipe.h" instead of "pipe.h".
28604         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
28605         to gl_SPAWN_PIPE.
28606         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
28607         (Files, Makefile.am): Update.
28608         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
28609         Update.
28610         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
28611         Include "spawn-pipe.h" instead of "pipe.h".
28612         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
28613         * lib/javacomp.c: Likewise.
28614         * lib/javaversion.c: Likewise.
28615         * lib/pipe-filter-gi.c: Likewise.
28616         * lib/pipe-filter-ii.c: Likewise.
28617         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
28618         * modules/javacomp (Depends-on): Likewise.
28619         * modules/javaversion (Depends-on): Likewise.
28620         * modules/pipe-filter-gi (Depends-on): Likewise.
28621         * modules/pipe-filter-ii (Depends-on): Likewise.
28622         * MODULES.html.sh (Executing programs): Update.
28623         * NEWS: Mention the change.
28624
28625 2010-12-10  Eric Blake  <eblake@redhat.com>
28626
28627         pipe-posix: new module
28628         * modules/pipe-posix: New file.
28629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
28630         (gl_UNISTD_H): Check for declaration.
28631         * modules/unistd (Makefile.am): Substitute it.
28632         * lib/unistd.in.h (pipe): Provide it for mingw.
28633         * doc/posix-functions/pipe.texi (pipe): Update documentation.
28634         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
28635
28636 2010-12-07  Bruno Haible  <bruno@clisp.org>
28637
28638         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
28639         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
28640         u8_strcmp_gnu.
28641         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
28642
28643 2010-12-06  Bruno Haible  <bruno@clisp.org>
28644
28645         Update internal documentation.
28646         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
28647
28648 2010-12-04  Bruno Haible  <bruno@clisp.org>
28649
28650         Put more information about failed tests into the test return codes.
28651         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
28652         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
28653         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
28654         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28655         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
28656         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28657         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28658         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28659         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
28660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28661         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
28662         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28663         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
28664         * m4/stdint.m4 (gl_STDINT_H): Likewise.
28665         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
28666         returns a bit mask.
28667         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
28668         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
28669         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
28670         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
28671         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28672         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28673         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28674         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28675         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28676         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28677         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28678         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28679         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28680         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28681         * m4/link.m4 (gl_FUNC_LINK): Likewise.
28682         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28683         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
28684         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
28685         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28686         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
28687         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28688         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28689         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
28690         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
28691         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28692         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28693         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
28694         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28695         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28696         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
28697         gl_PRINTF_PRECISION): Likewise.
28698         * m4/regex.m4 (gl_REGEX): Likewise.
28699         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28700         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
28701         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
28702         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28703         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28704         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28705         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
28706         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
28707         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28708         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28709         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28710         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28711         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28712         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
28713         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28714         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28715         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
28716         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28717         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28718         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
28719         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
28720         enumerated value.
28721         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
28722
28723 2010-12-04  Bruno Haible  <bruno@clisp.org>
28724
28725         Update for Solaris 11 2010-11.
28726         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
28727         Express, released in November 2010.
28728
28729 2010-12-04  Bruno Haible  <bruno@clisp.org>
28730
28731         nproc: Relax license.
28732         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
28733         and Paul Eggert.
28734         Requested by Ludovic Courtès <ludo@gnu.org>.
28735
28736 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
28737
28738         utimecmp: fine-grained src to nearby coarse-grained dest
28739
28740         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
28741         and the source is on a file system with higher-resolution time
28742         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
28743         not work, and the time stamps are close together, the algorithm to
28744         determine the exact resolution from the read-back mtime was buggy:
28745         it had a "!=" where it should have had an "==".  This bug has been
28746         in the code ever since it was introduced to gnulib.
28747         Problem reported by Dan Jacobson in
28748         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
28749
28750 2010-11-30  Bruno Haible  <bruno@clisp.org>
28751
28752         strerror_r-posix: Fix autoconf test.
28753         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
28754
28755 2010-11-28  Bruno Haible  <bruno@clisp.org>
28756             Paul Eggert  <eggert@cs.ucla.edu>
28757
28758         Tests for module 'getdomainname'.
28759         * modules/getdomainname-tests: New file.
28760         * tests/test-getdomainname.c: New file, based on
28761         tests/test-gethostname.c.
28762
28763 2010-11-28  Bruno Haible  <bruno@clisp.org>
28764             Paul Eggert  <eggert@cs.ucla.edu>
28765
28766         getdomainname: Use the system function when possible.
28767         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
28768         (getdomainname): Replace if needed. Provide the declaration if it is
28769         missing. Don't use _GL_CXXALIAS_SYS_CAST.
28770         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
28771         (getdomainname): When the system has getdomainname, call the system
28772         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
28773         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28774         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
28775         found in libnsl. Look for the declaration also in <netdb.h>. Replace
28776         the function if its second argument is of type 'int' or if it is found
28777         in libnsl.
28778         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
28779         <sys/systeminfo.h> and sysinfo().
28780         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
28781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28782         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
28783         HAVE_GETDOMAINNAME.
28784         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
28785         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
28786         * doc/glibc-functions/getdomainname.texi: Document the problems with
28787         the getdomainname declaration.
28788
28789 2010-11-28  Bruno Haible  <bruno@clisp.org>
28790
28791         sys_socket: Ensure ss_family field on AIX.
28792         * lib/sys_socket.in.h (ss_family): New macro definition.
28793         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
28794         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
28795         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28796         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28797         * modules/sys_socket (Makefile.am): Substitute
28798         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28799         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
28800
28801 2010-11-27  Bruno Haible  <bruno@clisp.org>
28802
28803         readline: Improve configure output.
28804         * m4/readline.m4 (gl_FUNC_READLINE): Make the
28805         "checking for readline..." result understandable.
28806
28807 2010-11-27  Bruno Haible  <bruno@clisp.org>
28808
28809         *printf-posix: Detect a bug on Solaris 10/x86.
28810         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
28811         for floating-point output.
28812         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
28813         directive.
28814         * tests/test-snprintf-posix.h (test_function): Likewise.
28815         * tests/test-sprintf-posix.h (test_function): Likewise.
28816         * tests/test-vasprintf-posix.c (test_function): Likewise.
28817         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
28818         * doc/posix-functions/printf.texi: Likewise.
28819         * doc/posix-functions/snprintf.texi: Likewise.
28820         * doc/posix-functions/sprintf.texi: Likewise.
28821         * doc/posix-functions/vfprintf.texi: Likewise.
28822         * doc/posix-functions/vprintf.texi: Likewise.
28823         * doc/posix-functions/vsnprintf.texi: Likewise.
28824         * doc/posix-functions/vsprintf.texi: Likewise.
28825         * doc/glibc-functions/obstack_printf.texi: Likewise.
28826         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28827
28828 2010-11-27  Bruno Haible  <bruno@clisp.org>
28829
28830         Fix link error when module libunistring-optional is in use.
28831         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
28832         * modules/striconveha-tests (Makefile.am): Likewise.
28833
28834 2010-11-27  Bruno Haible  <bruno@clisp.org>
28835
28836         regex: Mention link dependencies.
28837         * modules/regex (Link): New section.
28838         * modules/rpmatch (Link): Likewise.
28839         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
28840
28841 2010-11-27  Bruno Haible  <bruno@clisp.org>
28842
28843         ftoastr: Fix compilation error on Solaris.
28844         * lib/ftoastr.c: Include <config.h>.
28845
28846 2010-11-27  Bruno Haible  <bruno@clisp.org>
28847
28848         getloadavg: Update documentation.
28849         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
28850
28851 2010-11-27  Bruno Haible  <bruno@clisp.org>
28852
28853         sys_socket: Fix test whether the functions are declared.
28854         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
28855         not <sys/select.h>.
28856
28857 2010-11-27  Bruno Haible  <bruno@clisp.org>
28858
28859         getpass: Make sure to get system declaration on some platforms.
28860         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
28861         gl_USE_SYSTEM_EXTENSIONS.
28862         * modules/getpass (Depends-on): Add extensions.
28863
28864 2010-11-26  Bruno Haible  <bruno@clisp.org>
28865
28866         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
28867         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
28868         'iconv' module is present.
28869         (ICONV_CONST): New macro.
28870         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
28871         ICONV_CONST.
28872         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
28873         set ICONV_CONST.
28874         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
28875         here.
28876         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
28877         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
28878         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
28879         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
28880         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
28881         present.
28882
28883 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28884
28885         ftoastr: comment fix
28886         * lib/ftoastr.c: "little" -> "little or no" in comment
28887
28888 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
28889
28890         stdint: port to GCC 4.3 + OSX + Octave
28891         On this platform, stdint.h is buggy and defines int64_t to long
28892         long int.  The replacement defined it to long int, causing
28893         problems with C++ style name mangling.  Instead, trust the system
28894         definition if INT64_MAX is defined, and likewise for the unsigned
28895         variant.   Problem reported by Jarno Rajahalme in
28896         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
28897         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
28898         and don't mess with int64_t and INT64_MAX in this case.
28899         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
28900
28901 2010-11-24  Bruno Haible  <bruno@clisp.org>
28902
28903         doc: Corrections regarding MacOS X 10.4 and 10.5.
28904         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
28905         MacOS X.
28906         Reported by Simon Josefsson.
28907
28908 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
28909
28910         Uninstall ".bin" files installed by relocwrapper.
28911         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
28912         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
28913         unless it is already there.
28914
28915 2010-11-21  Bruno Haible  <bruno@clisp.org>
28916
28917         Update for NetBSD 5.0.
28918         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28919         NetBSD; the test fails on NetBSD 5.0.
28920         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28921         about NetBSD.
28922
28923 2010-11-21  Bruno Haible  <bruno@clisp.org>
28924
28925         Update for HP-UX 11.23 and HP-UX 11.31.
28926         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
28927         HP-UX.
28928
28929 2010-11-21  Bruno Haible  <bruno@clisp.org>
28930
28931         Update for MacOS X 10.5.
28932         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28933         MacOS X; the test fails on MacOS X 10.5.8.
28934         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28935         about MacOS X.
28936
28937 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
28938
28939         bootstrap: add bootstrap_sync option.
28940         See discussion at
28941         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
28942         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
28943         * build-aux/bootstrap: Accept --bootstrap-sync to update
28944         bootstrap if it is not identical to the local gnulib's
28945         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
28946         enable this by default.  Accept --no-bootstrap-sync to disable
28947         it.
28948
28949 2010-11-20  Bruno Haible  <bruno@clisp.org>
28950
28951         Ensure that <features.h> is included before __GLIBC__ is tested.
28952         * lib/printf-parse.h: Include <features.h>.
28953         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
28954         Reported by Mike Frysinger <vapier@gentoo.org>.
28955
28956         Ensure that <features.h> is included before __GLIBC__ is tested.
28957         * lib/wchar.in.h: Include <features.h>.
28958         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
28959         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
28960         Reported by Mike Frysinger <vapier@gentoo.org>.
28961
28962         Ensure that <features.h> is included before __GLIBC__ is tested.
28963         * lib/arpa_inet.in.h: Include <features.h>.
28964         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
28965         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
28966         Reported by Mike Frysinger <vapier@gentoo.org>.
28967
28968         Ensure that <features.h> is included before __GLIBC__ is tested.
28969         * build-aux/link-warning.h: Include <features.h>.
28970         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
28971         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
28972         Reported by Mike Frysinger <vapier@gentoo.org>.
28973
28974         Ensure that <features.h> is included before __GLIBC__ is tested.
28975         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
28976         Reported by Mike Frysinger <vapier@gentoo.org>.
28977
28978 2010-11-20  Bruno Haible  <bruno@clisp.org>
28979
28980         memmem: Fix autoconf test.
28981         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
28982
28983 2010-11-20  Bruno Haible  <bruno@clisp.org>
28984
28985         Port to uClibc.
28986         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
28987         * lib/fcntl.in.h: Likewise.
28988         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
28989         * lib/mbrtowc.c (mbrtowc): Likewise.
28990         * lib/relocatable.c (find_shared_library_fullname): Likewise.
28991         * lib/strerror_r.c: Likewise.
28992         * lib/unistr/u8-strnlen.c: Likewise.
28993         * lib/vasnprintf.c (decimal_point_char): Likewise.
28994         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28995         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28996         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28997         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28998         * tests/test-sigaction.c (handler, main): Likewise.
28999         * lib/freading.h: Treat uClibc like a non-glibc platform.
29000         * lib/freading.c: Likewise.
29001         * lib/gettext.h: Likewise.
29002         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
29003         Likewise.
29004         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
29005         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
29006         * lib/propername.c (proper_name_utf8): Likewise.
29007         * lib/spawn.in.h: Likewise.
29008         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
29009         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
29010         mem_cd_iconveh_internal): Likewise.
29011         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
29012         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29013         strstr, strcasestr): Likewise.
29014         * lib/unicodeio.c (unicode_to_mb): Likewise.
29015         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
29016         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
29017         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
29018         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
29019         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
29020         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
29021         * lib/unistr/u8-stpncpy.c: Likewise.
29022         * lib/vasnprintf.c (VASNPRINTF): Likewise.
29023         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
29024         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29025         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29026         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29027         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
29028         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
29029         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
29030         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
29031         Likewise.
29032         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29033         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29034         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29035         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29036         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29037         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29038         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29039         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
29040         * tests/test-getopt.h (OPTIND_MIN): Likewise.
29041         * tests/test-striconveha.c (main): Likewise.
29042         * tests/test-vasnprintf-posix.c (test_function): Likewise.
29043         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
29044         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
29045         * doc/posix-functions/getline.texi: Likewise.
29046         Reported by Mike Frysinger <vapier@gentoo.org>.
29047
29048 2010-11-20  Bruno Haible  <bruno@clisp.org>
29049
29050         nproc: Fix condition.
29051         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
29052         HAVE_PTHREAD_AFFINITY_NP.
29053
29054 2010-11-20  Bruno Haible  <bruno@clisp.org>
29055
29056         Fix a comment.
29057         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
29058
29059 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
29060
29061         ftoastr: don't assume snprintf
29062         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
29063         Implement a subset of snprintf here, by using sprintf safely.
29064         * modules/ftoastr (Depends-on): Remove snprintf.
29065
29066 2010-11-19  Jim Meyering  <meyering@redhat.com>
29067
29068         test-rename.h: fix compilation failure
29069         * tests/test-rename.h (test_rename): Add omitted "}".
29070
29071 2010-11-17  Jim Meyering  <meyering@redhat.com>
29072
29073         maint.mk: add a URL discussing the no-@acronym policy
29074         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
29075
29076 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29077
29078         ftoastr: depend on snprintf, improve comments
29079         * lib/ftoastr.c: Also mention Loitsch's draft.
29080         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
29081         needed in the current implementation, but it might simplify
29082         speeding up the code later.
29083         * modules/ftoastr: Depend on snprintf; this improves portability.
29084         Suggested by Bruno Haible in the same email.
29085
29086         ftoastr: port to hosts lacking strtof and strtold
29087         Problem reported by Bruno Haible in
29088         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
29089         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
29090         environment and strtold (and presumably strtof) are not available.
29091         * modules/ftoastr (Files): Add m4/c-strtod.m4.
29092         (configure.ac): Require gl_C99_STRTOLD.
29093
29094 2010-11-18  Bruno Haible  <bruno@clisp.org>
29095
29096         c-strtold: Avoid link error on AIX 7.
29097         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
29098         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
29099         (gl_C_STRTOLD): Test whether strtold_l exists.
29100         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29101
29102 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29103
29104         intprops: new macro INT_BITS_STRLEN_BOUND
29105         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
29106         ftoastr.h.  This exposes an internal of intprops.h that was formerly
29107         not exposed.  Also, it uses a slightly tighter bound than before;
29108         though this makes no practical difference, we might as well be as
29109         tight as we easily can.
29110
29111         ftoastr: new module, for lossless conversion of floats to short strings
29112         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
29113         * modules/ftoastr: New files.
29114
29115 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29116
29117         bootstrap: port to Solaris sed
29118         * build-aux/bootstrap (get_version): Port to Solaris sed.
29119         See Ralf Wildenhues's note in
29120         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
29121
29122 2010-11-14  Jim Meyering  <meyering@redhat.com>
29123
29124         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
29125         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
29126         and move definition closer to sole use.
29127
29128 2010-11-13  Jim Meyering  <meyering@redhat.com>
29129
29130         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
29131         Now we require at least autoconf-2.59, which means the work-around
29132         is no longer needed.
29133         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
29134         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29135         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29136         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
29137         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
29138
29139 2010-11-13  Bruno Haible  <bruno@clisp.org>
29140
29141         rename, renameat: Avoid test failures at NFS mounted locations.
29142         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
29143         functions.
29144         (test_rename): Use assert_nonexistent.
29145         * tests/test-rename.c: Include <dirent.h>.
29146         * tests/test-renameat.c: Likewise.
29147         Reported by Gary V. Vaughan <gary@gnu.org>.
29148
29149         rename, renameat: Document Linux bug with NFS
29150         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
29151         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
29152         * doc/posix-functions/renameat.texi: Likewise.
29153         Suggested by Eric Blake.
29154
29155 2010-11-13  Bruno Haible  <bruno@clisp.org>
29156
29157         rename test: Add comments.
29158         * tests/test-rename.h (test_rename): Add structure and comments.
29159
29160 2010-11-13  Eric Blake  <eblake@redhat.com>
29161
29162         maintainer-makefile: cover a few more files
29163         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
29164         scripts generated within C files, for libvirt.
29165
29166 2010-11-13  Bruno Haible  <bruno@clisp.org>
29167
29168         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
29169         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
29170         character, return the number of bytes that belong together, not always
29171         1.
29172         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
29173         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
29174         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
29175         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
29176         number of bytes of an invalid character.
29177         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
29178         (main): Invoke it.
29179         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
29180         results.
29181         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
29182         malformed byte sequences.
29183         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
29184         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
29185         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
29186         Reported by Ben Pfaff and Paolo Bonzini.
29187
29188 2010-11-13  Bruno Haible  <bruno@clisp.org>
29189
29190         openat: Work around glibc bug with fchownat() and empty file names.
29191         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
29192         (gl_FUNC_FCHOWNAT): Invoke it.
29193         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
29194         * doc/posix-functions/fchownat.texi: Document the glibc bug.
29195         Reported by Gary V. Vaughan <gary@gnu.org>.
29196
29197 2010-11-13  Bruno Haible  <bruno@clisp.org>
29198
29199         openat: Ensure autoconf macro ordering.
29200         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
29201         gl_USE_SYSTEM_EXTENSIONS.
29202         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
29203
29204 2010-11-13  Bruno Haible  <bruno@clisp.org>
29205
29206         Update comments.
29207         * lib/unistr/u8-check.c: Update file name in comments.
29208         * lib/unistr/u8-mblen.c: Likewise.
29209         * lib/unistr/u8-prev.c: Likewise.
29210         * lib/unistr/u8-strmblen.c: Likewise.
29211         * lib/unistr/u8-strmbtouc.c: Likewise.
29212
29213 2010-11-13  Jim Meyering  <meyering@redhat.com>
29214
29215         tests: avoid test failure on Solaris 10 due to lack of PATH export
29216         * tests/test-update-copyright.sh: Don't forget to export PATH.
29217
29218         init.sh: ensure that IFS is defined, just in case...
29219         * tests/init.sh (setup_): Ensure that IFS is defined,
29220         so that saving and restoring it works as expected.  This
29221         appears to be useful at least for an old version of dash
29222         from a long time ago (RH 6).  See here for details:
29223         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
29224
29225         maint.mk: tighten "test a == b" check
29226         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
29227         test to files that contain something like #!/bin/sh.
29228         Without this, coreutils would get two false positives in
29229         the comments of C source files.
29230
29231 2010-11-12  Eric Blake  <eblake@redhat.com>
29232
29233         bootstrap: fix typo in previous attempt
29234         * build-aux/bootstrap (buildreq): Correct the grouping.
29235         Reported by Paul Eggert.
29236
29237         maintainer-makefile: prohibit test x == x
29238         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
29239         Based on a report by Matthias Bolte.
29240
29241         bootstrap: allow FreeBSD gzip
29242         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
29243         which has no '.' and goes to stderr.
29244         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
29245         Reported by Matthias Bolte.
29246
29247         maintainer-makefile: check for i18n setup
29248         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
29249         will likely work.
29250
29251 2010-11-12  Bruno Haible  <bruno@clisp.org>
29252
29253         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
29254         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
29255         * lib/nanosleep.c (nanosleep): Likewise.
29256
29257 2010-11-11  Bruno Haible  <bruno@clisp.org>
29258
29259         fcntl-h: Fix for use of C++ on glibc systems.
29260         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
29261         also on glibc systems in C++ mode.
29262         Reported by Gary V. Vaughan <gary@gnu.org>.
29263
29264 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29265
29266         mknod: avoid false failure with dash
29267         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
29268
29269 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29270
29271         unlink: Fix "is it should" typo in diagnostic.
29272         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
29273         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
29274
29275 2010-11-11  Bruno Haible  <bruno@clisp.org>
29276
29277         Tests for module 'strerror_r-posix'.
29278         * modules/strerror_r-posix-tests: New file.
29279         * tests/test-strerror_r.c: New file.
29280         * tests/test-string-c++.cc: Check the signature of strerror_r.
29281
29282         New module 'strerror_r-posix'.
29283         * lib/string.in.h (strerror_r): New declaration.
29284         * lib/strerror_r.c: New file.
29285         * m4/strerror_r.m4: New file.
29286         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
29287         of strerror_r.
29288         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
29289         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29290         * modules/strerror_r-posix: New file.
29291         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
29292         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29293         * doc/posix-functions/strerror_r.texi: Mention the new module and the
29294         portability problems.
29295
29296 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
29297
29298         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
29299         line is also considered for output. Quoted function name in shell
29300         command, so temporary files for functions like MyClass::operator()
29301         are removed correctly without errors.
29302
29303 2010-11-09  Bruno Haible  <bruno@clisp.org>
29304
29305         * doc/posix-functions/strerror.texi: List more failing platforms.
29306
29307         * doc/posix-functions/strerror.texi: Add a comment.
29308
29309 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29310
29311         fdopendir: fix bug on MacOS X when low on file descriptors
29312
29313         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
29314         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
29315         All callers changed.
29316         (fdopendir): Invoke save_cwd at the top level, not after using
29317         multiple dup() calls to use up file descriptors.  Then retry
29318         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
29319         less than the maximum number of open file descriptors, because
29320         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
29321         on Mac OS X 10.6.4 for tar 1.24
29322         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
29323         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29324         and for tar 1.25
29325         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29326
29327 2010-11-07  Bruno Haible  <bruno@clisp.org>
29328
29329         vasnprintf: Support I flag on glibc systems.
29330         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29331         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29332         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29333         snprintf function.
29334         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29335         glibc systems.
29336         * tests/test-vasnprintf-posix3.c: New file.
29337         * modules/vasnprintf-posix-tests (Files): Add it.
29338         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29339
29340 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29341
29342         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29343         * MODULES.html.sh: For compiler warnings, use name
29344         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29345
29346 2010-11-05  Eric Blake  <eblake@redhat.com>
29347
29348         ceil, floor: avoid spurious failure with icc
29349         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29350         [denormals-as-zero] when optimizing without -mieee-fp option.
29351         * tests/test-floorf2.c (floorf_reference): Likewise.
29352         * tests/test-ceilf1.c (dummy): New function.
29353         (main): Use it to outsmart icc's optimization.
29354         * tests/test-floorf1.c (dummy, main): Likewise.
29355
29356         tests: require working signbit
29357         * modules/ceilf-tests (Depends-on): Add signbit.
29358         * modules/ceill-tests (Depends-on): Likewise.
29359         * modules/floorf-tests (Depends-on): Likewise.
29360         * modules/floorl-tests (Depends-on): Likewise.
29361         * modules/round-tests (Depends-on): Likewise.
29362         * modules/roundf-tests (Depends-on): Likewise.
29363         * modules/roundl-tests (Depends-on): Likewise.
29364         * modules/trunc-tests (Depends-on): Likewise.
29365         * modules/truncf-tests (Depends-on): Likewise.
29366         * modules/truncl-tests (Depends-on): Likewise.
29367
29368         strtod: work around icc bug
29369         * lib/strtod.c (minus_zero): Define to working value.
29370         (strtod): Use it to avoid icc bug.
29371
29372         copysign: enhance tests
29373         * modules/copysign-tests (Files): Add minus-zero.h.
29374         * tests/test-copysign.c (main): Also test zeros.
29375
29376 2010-11-04  Eric Blake  <eblake@redhat.com>
29377
29378         ceil, floor, round, trunc: enhance tests of -0
29379         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29380         * tests/test-ceill.c (main): Likewise.
29381         * tests/test-floorf1.c (main): Likewise.
29382         * tests/test-floorl.c (main): Likewise.
29383         * tests/test-round1.c (main): Likewise.
29384         * tests/test-roundf1.c (main): Likewise.
29385         * tests/test-roundl.c (main): Likewise.
29386         * tests/test-trunc1.c (main): Likewise.
29387         * tests/test-truncf1.c (main): Likewise.
29388         * tests/test-truncl.c (main): Likewise.
29389
29390 2010-11-04  Eric Blake  <eblake@redhat.com>
29391
29392         frexp, tests: work around ICC bug with -zero
29393         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29394         works with more compilers.
29395         * tests/minus-zero.h: New file.
29396         * modules/ceilf-tests (Files): Include it.
29397         * modules/ceill-tests (Files): Likewise.
29398         * modules/floorf-tests (Files): Likewise.
29399         * modules/floorl-tests (Files): Likewise.
29400         * modules/frexp-nolibm-tests (Files): Likewise.
29401         * modules/frexp-tests (Files): Likewise.
29402         * modules/frexpl-nolibm-tests (Files): Likewise.
29403         * modules/frexpl-tests (Files): Likewise.
29404         * modules/isnan-tests (Files): Likewise.
29405         * modules/isnand-nolibm-tests (Files): Likewise.
29406         * modules/isnand-tests (Files): Likewise.
29407         * modules/isnanf-nolibm-tests (Files): Likewise.
29408         * modules/isnanf-tests (Files): Likewise.
29409         * modules/isnanl-nolibm-tests (Files): Likewise.
29410         * modules/isnanl-tests (Files): Likewise.
29411         * modules/round-tests (Files): Likewise.
29412         * modules/roundf-tests (Files): Likewise.
29413         * modules/roundl-tests (Files): Likewise.
29414         * modules/ldexpl-tests (Files): Likewise.
29415         * modules/signbit-tests (Files): Likewise.
29416         * modules/snprintf-posix-tests (Files): Likewise.
29417         * modules/sprintf-posix-tests (Files): Likewise.
29418         * modules/strtod-tests (Files): Likewise.
29419         * modules/trunc-tests (Files): Likewise.
29420         * modules/truncf-tests (Files): Likewise.
29421         * modules/truncl-tests (Files): Likewise.
29422         * modules/vsnprintf-posix-tests (Files): Likewise.
29423         * modules/vsprintf-posix-tests (Files): Likewise.
29424         * modules/vasnprintf-posix-tests (Files): Likewise.
29425         * modules/vasprintf-posix-tests (Files): Likewise.
29426         * tests/test-ceilf1.c (main): Use it.
29427         * tests/test-ceill.c (main): Likewise.
29428         * tests/test-floorf1.c (main): Likewise.
29429         * tests/test-floorl.c (main): Likewise.
29430         * tests/test-frexp.c (main): Likewise.
29431         * tests/test-frexpl.c (main): Likewise.
29432         * tests/test-isnan.c (main): Likewise.
29433         * tests/test-isnand.h (main): Likewise.
29434         * tests/test-isnanf.h (main): Likewise.
29435         * tests/test-isnanl.h (main): Likewise.
29436         * tests/test-ldexpl.c (main): Likewise.
29437         * tests/test-round.c (main): Likewise.
29438         * tests/test-roundf.c (main): Likewise.
29439         * tests/test-roundl.c (main): Likewise.
29440         * tests/test-signbit.c (test_signbitf, test_signbitd)
29441         (test_signbitl): Likewise.
29442         * tests/test-snprintf-posix.h (test_function): Likewise.
29443         * tests/test-sprintf-posix.h (test_function): Likewise.
29444         * tests/test-strtod.c (main): Likewise.
29445         * tests/test-trunc1.c (main): Likewise.
29446         * tests/test-truncf1.c (main): Likewise.
29447         * tests/test-truncl.c (main): Likewise.
29448
29449         isnanl: work around icc bug
29450         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29451
29452 2010-11-03  Eric Blake  <eblake@redhat.com>
29453
29454         tests: fix compiler warnings
29455         * tests/test-getopt.h (test_getopt): Fix condition.
29456         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29457         * tests/test-pipe2.c (main): Likewise.
29458         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29459
29460         utimens: fix broken m4 test
29461         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29462
29463 2010-10-28  Bruno Haible  <bruno@clisp.org>
29464
29465         posix_spawn*, getdtablesize: Relax license.
29466         * modules/posix_spawn (License): Change to LGPLv2+.
29467         * modules/posix_spawnp (License): Likewise.
29468         * modules/posix_spawn-internal (License): Likewise.
29469         * modules/posix_spawnattr_init (License): Likewise.
29470         * modules/posix_spawnattr_getflags (License): Likewise.
29471         * modules/posix_spawnattr_setflags (License): Likewise.
29472         * modules/posix_spawnattr_getpgroup (License): Likewise.
29473         * modules/posix_spawnattr_setpgroup (License): Likewise.
29474         * modules/posix_spawnattr_getschedparam (License): Likewise.
29475         * modules/posix_spawnattr_setschedparam (License): Likewise.
29476         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
29477         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
29478         * modules/posix_spawnattr_getsigdefault (License): Likewise.
29479         * modules/posix_spawnattr_setsigdefault (License): Likewise.
29480         * modules/posix_spawnattr_getsigmask (License): Likewise.
29481         * modules/posix_spawnattr_setsigmask (License): Likewise.
29482         * modules/posix_spawnattr_destroy (License): Likewise.
29483         * modules/posix_spawn_file_actions_init (License): Likewise.
29484         * modules/posix_spawn_file_actions_addclose (License): Likewise.
29485         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
29486         * modules/posix_spawn_file_actions_addopen (License): Likewise.
29487         * modules/posix_spawn_file_actions_destroy (License): Likewise.
29488         * modules/getdtablesize (License): Likewise.
29489         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
29490
29491 2010-10-26  Bruno Haible  <bruno@clisp.org>
29492
29493         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
29494         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
29495         Cygwin and mingw.
29496         Suggested by Eric Blake.
29497
29498 2010-10-26  Bruno Haible  <bruno@clisp.org>
29499
29500         stdio: Work around compilation error due to renameat() on Solaris 10.
29501         * lib/stdio.in.h: Include <unistd.h> on Solaris.
29502         * lib/renameat.c: Don't include <unistd.h> here.
29503         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
29504         Reported by Paul Eggert and Eric Blake.
29505
29506 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29507
29508         renameat: port to Solaris 10, which declares renameat in unistd.h
29509
29510         * lib/renameat.c: Include unistd.h before stdio.h, because
29511         Solaris 10 declares renameat in unistd.h.  Problem encountered
29512         when building GNU tar 1.24 on Solaris 10.
29513
29514 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29515
29516         fdopendir: fix C89 compilation
29517         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
29518         compilers.
29519
29520 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
29521
29522         inttostr: simplify by removing unnecessary redundancy
29523         * lib/anytostr.c: Don't include verify.h.
29524         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
29525         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
29526         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
29527         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
29528         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
29529         Likewise.
29530         * modules/inttostr (Depends-on): Remove 'verify'.
29531
29532 2010-10-23  Bruno Haible  <bruno@clisp.org>
29533
29534         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
29535         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
29536         Reported by Eric Blake.
29537
29538 2010-10-23  Bruno Haible  <bruno@clisp.org>
29539
29540         Tests: Fix LOCALE_JA on MirBSD 10.
29541         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
29542         to an UTF-8 locale.
29543         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
29544         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29545         Reported by Eric Blake.
29546
29547 2010-10-21  Bruno Haible  <bruno@clisp.org>
29548
29549         nl_langinfo test: Avoid test failure on NetBSD 5.
29550         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
29551         Reported by Eric Blake.
29552
29553 2010-10-21  Eric Blake  <eblake@redhat.com>
29554
29555         c-stack: work around libsigsegv 2.8 bug
29556         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
29557         overflow on at least PowerPC64.
29558
29559 2010-10-17  Bruno Haible  <bruno@clisp.org>
29560
29561         userspec: Drop redundant file.
29562         * modules/userspec (Files): Remove lib/inttostr.h.
29563
29564 2010-10-17  Bruno Haible  <bruno@clisp.org>
29565
29566         nl_langinfo tests: Silence some warnings.
29567         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
29568         Reported by Jim Meyering.
29569
29570 2010-10-17  Bruno Haible  <bruno@clisp.org>
29571
29572         Make use of GCC's attribute __alloc_size__.
29573         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
29574         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
29575         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
29576         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
29577         __alloc_size__.
29578         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29579         Suggested by Jim Meyering.
29580
29581 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
29582
29583         bootstrap: anchor .gitignore entries.
29584         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
29585         with...
29586         (insert_vc_ignore): ... this new function, which prepends `/' to
29587         all .gitignore entries before passing them to
29588         insert_sorted_if_absent.
29589
29590 2010-10-16  Bruno Haible  <bruno@clisp.org>
29591
29592         nextafter: Fix configure check.
29593         * modules/nextafter (configure.ac): Correct expected prototype.
29594
29595 2010-10-16  Bruno Haible  <bruno@clisp.org>
29596
29597         termios: Update documentation.
29598         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
29599
29600 2010-10-16  Bruno Haible  <bruno@clisp.org>
29601
29602         tests: Make them compile with TinyCC.
29603         * tests/test-strstr.c (main): Remove parentheses around array
29604         initializer.
29605
29606 2010-10-15  Eric Blake  <eblake@redhat.com>
29607
29608         ignore-value: make header idempotent
29609         * lib/ignore-value.h: Add double-inclusion guards.
29610         Reported by Stefan Berger.
29611
29612 2010-10-15  Jim Meyering  <meyering@redhat.com>
29613
29614         GNUmakefile: handle "stable" target, not "major"
29615         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
29616         lists in maint.mk and announce-gen.  Without this, "make stable"
29617         would fail to ensure that $(VERSION) is up to date.
29618
29619 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
29620
29621         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
29622         & co.
29623
29624 2010-10-14  Bruno Haible  <bruno@clisp.org>
29625
29626         vasnprintf: Don't set errno to 0.
29627         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
29628         block that sets it to 0.
29629         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
29630
29631 2010-10-14  Bruno Haible  <bruno@clisp.org>
29632
29633         socketlib: Fix.
29634         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
29635         gl_PREREQ_SYS_H_WINSOCK2.
29636         Reported by Ian Beckwith <ianb@erislabs.net>.
29637
29638 2010-10-13  Jim Meyering  <meyering@redhat.com>
29639
29640         test-select-stdin.c: avoid warn_unused_result warnings
29641         * tests/test-select-stdin.c: Include "macros.h".
29642         ASSERT that read and fflush succeed.
29643
29644 2010-10-13  Jim Meyering  <meyering@redhat.com>
29645
29646         git-version-gen: do require git-VC'd files in cwd
29647         * build-aux/git-version-gen: Reject a git version string
29648         if there are no commits associated with the current directory.
29649         This avoids an unlikely false-positive (unrelated dir whose parent
29650         repository also contains a tag matching v*), as pointed out
29651         by Giuseppe Scrivano in
29652         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
29653
29654 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29655
29656         argv-iter: omit nonconforming declaration
29657         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
29658         enum arg_iter_err declaration, which doesn't conform to C99.
29659         Solaris 10 cc warns about this.
29660
29661 2010-10-13  Eric Blake  <eblake@redhat.com>
29662
29663         termios: fix compilation on mingw
29664         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
29665         (gl_TERMIOS_H): Adjust it on mingw.
29666         * modules/termios (Makefile.am): Substitute new key.
29667         * lib/termios.in.h (includes): Make include_next conditional.
29668         * doc/posix-headers/termios.texi (termios.h): Update
29669         documentation.
29670         Reported by Daniel P. Berrange.
29671
29672 2010-10-13  Jim Meyering  <meyering@redhat.com>
29673
29674         git-version-gen: don't require that .git/ be in the current dir
29675         * build-aux/git-version-gen: Adjust this script so that it works
29676         when run from any working directory beneath the top-level .git/-
29677         containing directory.  Inspired by a patch from Giuseppe Scrivano,
29678         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
29679
29680         test-select: avoid warn_unused_result warnings
29681         * tests/test-select.c: Include "macros.h".
29682         ASSERT that each call to read, write, and pipe succeeds.
29683         While not technically required, also check each "close".
29684         * modules/select-tests (Files): Add tests/macros.h.
29685
29686         test-symlinkat: remove declaration of unused local
29687         * tests/test-symlinkat.c (main): Remove unused local, "buf".
29688
29689         test-inttostr: avoid shadowing warnings
29690         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
29691         and use malloc rather than the stack for the same reason as
29692         mentioned in the comment justifying the other allocation.
29693
29694 2010-10-11  Bruno Haible  <bruno@clisp.org>
29695
29696         stdlib: Allow multiple gnulib generated replacements to coexist.
29697         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
29698         Reported by Sam Steingold <sds@gnu.org>.
29699
29700 2010-10-11  Jim Meyering  <meyering@redhat.com>
29701
29702         fix a documentation typo
29703         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
29704
29705 2010-10-11  Eric Blake  <eblake@redhat.com>
29706
29707         futimens: work around Solaris 11 bug
29708         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
29709         * tests/test-futimens.h (test_futimens): Enhance, rather than
29710         weaken test.
29711         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29712
29713 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29714
29715         Indentation.
29716         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
29717         higher-level operators more to the left.
29718
29719 2010-10-11  Jim Meyering  <meyering@redhat.com>
29720
29721         test-futimens: avoid unwarranted test failure on Solaris 5.11
29722         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
29723         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
29724         because it tries to dereference the NULL name argument.
29725
29726 2010-10-11  Bruno Haible  <bruno@clisp.org>
29727
29728         Indentation.
29729         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
29730         indentation.
29731
29732 2010-10-11  Jim Meyering  <meyering@redhat.com>
29733
29734         spawn.in.h: make indentation consistent with parentheses
29735         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
29736         Make indentation consistent with parentheses.
29737
29738 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
29739
29740         Fix mismatched parens in previous commit
29741         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
29742         parens.
29743
29744 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29745
29746         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
29747
29748         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
29749         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
29750         * lib/malloca.c: Include "verify.h".
29751         (verify1): Remove, replacing with a verify call.
29752         * lib/relocwrapper.c (verify1): Likewise.
29753         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
29754         Likewise.
29755         * modules/malloca (Depends-on): Add 'verify'.
29756         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
29757         * modules/vasnprintf (Depends-on): Add 'verify'.
29758         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29759         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29760         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29761         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29762         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29763         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29764         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29765
29766         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
29767
29768         Formerly the style was sometimes 2*X - 1, because the C standard
29769         was wrongly thought to disallow ?: in integral constant expressions.
29770         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
29771         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
29772         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
29773         * lib/stdint.in.h (_verify_intmax_size): Likewise.
29774         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
29775         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
29776         verify that time_t cannot be floating.
29777
29778 2010-10-08  Eric Blake  <eblake@redhat.com>
29779
29780         time: enforce recent POSIX ruling that time_t is integral
29781         * lib/time.in.h (__time_t_must_be_integral): Detect any
29782         problematic systems, allowing the rest of gnulib to assume POSIX.
29783
29784 2010-10-08  Jim Meyering  <meyering@redhat.com>
29785
29786         fdopendir: fix a bug on systems lacking openat and /proc support
29787         OpenBSD 4.7 is one such system.  The most noticeable effect was
29788         failure of any application making nontrivial use of fts: rm, du,
29789         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
29790           ./rm: traversal failed: `a': Bad file descriptor
29791         Debugging that, you see that even though FD 6 was closed just
29792         prior to the opendir call in fd_clone_opendir, its resulting
29793         dir->dd_fd was 8, rather than the expected value of 6:
29794
29795         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
29796         93                close (fd);
29797         (gdb) n
29798         94                dir = fd_clone_opendir (dupfd);
29799         (gdb) n
29800         95                saved_errno = errno;
29801         (gdb) p dir->dd_fd
29802         $11 = 8
29803
29804         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
29805         The problem is that on OpenBSD, fd_clone_opendir has to resort
29806         to using the old-style save/restore CWD mechanism, due to its
29807         lack of openat/proc support, and *that* would steal the FD (6)
29808         that opendir was supposed to use.
29809
29810         The fix is to squirrel away the desired FD so that save_cwd uses a
29811         different one, and then free the dest FD right before calling opendir.
29812         That guarantees opendir will use the required file descriptor.
29813
29814         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
29815
29816 2010-10-08  Bruno Haible  <bruno@clisp.org>
29817
29818         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
29819         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
29820
29821 2010-10-08  Bruno Haible  <bruno@clisp.org>
29822
29823         nanosleep: Make replacement POSIX compliant.
29824         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
29825         is out of range.
29826         Reported by Jim Meyering.
29827
29828 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29829
29830         bootstrap: add hook for altering gnulib.mk, for Bison
29831         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
29832         the Bison bootstrapping process can rewrite file names and variables
29833         in this file before later parts of 'bootstrap' use the file.
29834         Bison wants to include lib/gnulib.mk from the top-level makefile,
29835         so it needs the file names in this file to be relative to the top
29836         level, not relative to lib; plus it needs variable names to be
29837         rewritten.
29838         (slurp): Use the new function.
29839
29840         bootstrap: reformat for readability
29841         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
29842
29843 2010-10-08  Eric Blake  <eblake@redhat.com>
29844
29845         docs: update cygwin progress
29846         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
29847         1.7.7.
29848         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
29849         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
29850         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
29851         * doc/posix-functions/carg.texi (carg): Likewise.
29852         * doc/posix-functions/cargf.texi (cargf): Likewise.
29853         * doc/posix-functions/casin.texi (casin): Likewise.
29854         * doc/posix-functions/casinf.texi (casinf): Likewise.
29855         * doc/posix-functions/casinh.texi (casinh): Likewise.
29856         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
29857         * doc/posix-functions/catan.texi (catan): Likewise.
29858         * doc/posix-functions/catanf.texi (catanf): Likewise.
29859         * doc/posix-functions/catanh.texi (catanh): Likewise.
29860         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
29861         * doc/posix-functions/ccos.texi (ccos): Likewise.
29862         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
29863         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
29864         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
29865         * doc/posix-functions/cexp.texi (cexp): Likewise.
29866         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
29867         * doc/posix-functions/cimag.texi (cimag): Likewise.
29868         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
29869         * doc/posix-functions/clog.texi (clog): Likewise.
29870         * doc/posix-functions/clogf.texi (clogf): Likewise.
29871         * doc/posix-functions/conj.texi (conj): Likewise.
29872         * doc/posix-functions/conjf.texi (conjf): Likewise.
29873         * doc/posix-functions/cpow.texi (cpow): Likewise.
29874         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
29875         * doc/posix-functions/cproj.texi (cproj): Likewise.
29876         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
29877         * doc/posix-functions/creal.texi (creal): Likewise.
29878         * doc/posix-functions/crealf.texi (crealf): Likewise.
29879         * doc/posix-functions/csin.texi (csin): Likewise.
29880         * doc/posix-functions/csinf.texi (csinf): Likewise.
29881         * doc/posix-functions/csinh.texi (csinh): Likewise.
29882         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
29883         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
29884         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
29885         * doc/posix-functions/ctan.texi (ctan): Likewise.
29886         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
29887         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
29888         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
29889         * doc/posix-headers/complex.texi (complex.h): Likewise.
29890
29891 2010-10-07  Jim Meyering  <meyering@redhat.com>
29892
29893         parse-datetime: avoid compilation failure on OpenBSD 4.7
29894         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
29895         This works around a compilation failure on OpenBSD 4.7:
29896         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
29897
29898 2010-10-07  Eric Blake  <eblake@redhat.com>
29899
29900         docs: update cygwin progress
29901         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
29902         1.7.6.
29903         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29904         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
29905         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
29906         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
29907         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
29908         Likewise.
29909         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
29910         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
29911         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
29912         Likewise.
29913         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
29914         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
29915         Likewise.
29916         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
29917         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
29918         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
29919         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
29920         Likewise.
29921         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
29922         Likewise.
29923         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
29924
29925         docs: update parse-datetime history
29926         * doc/parse-datetime.texi (Authors of parse_datetime): Better
29927         documentation of this function's history and alternatives.
29928
29929         cygwin: use more robust version check
29930         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
29931         exclude an eventual cygwin 1.9.1.
29932         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29933         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29934         (gl_FUNC_STRCASESTR): Likewise.
29935         Reported by Bruno Haible.
29936
29937 2010-10-06  Bruno Haible  <bruno@clisp.org>
29938
29939         string, sys_select: Avoid #including large headers unless necessary.
29940         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
29941         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
29942         OSF/1, BeOS, Haiku.
29943         Reported by Jim Meyering.
29944
29945 2010-10-05  Eric Blake  <eblake@redhat.com>
29946
29947         memmem, strstr, strcasestr: fix bug with long periodic needle
29948         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
29949         periodic needle having false positive.
29950         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
29951         and cygwin 1.7.7.
29952         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
29953         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29954         (gl_FUNC_STRCASESTR): Likewise.
29955         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29956         * tests/test-memmem.c (main): Expose the bug.
29957         * tests/test-strcasestr.c (main): Likewise.
29958         * tests/test-strstr.c (main): Likewise.
29959         * tests/test-c-strcasestr.c (main): Likewise.
29960         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
29961         * doc/posix-functions/strstr.texi (strstr): Likewise.
29962         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29963         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
29964
29965 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29966
29967         parse-datetime: do some more renaming
29968         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
29969         parse_datetime, not get_date.  Mention the renaming.
29970         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
29971         in comments.
29972         * m4/bison.m4: Likewise.
29973
29974 2010-10-05  Eric Blake  <eblake@redhat.com>
29975
29976         parse-datetime: better name than get_date
29977         * NEWS: Reword the deprecation notice.
29978         * modules/get_date: Rename to modules/parse-datetime.
29979         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
29980         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
29981         * lib/get_date.y: Rename to lib/parse-datetime.y.
29982         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
29983         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
29984         * doc/getdate.texi: Provide fallback wrapper.
29985         * lib/getdate.h: Move guts, and wrap...
29986         * lib/parse-datetime.h: ...new file.
29987         * lib/parse-datetime.y (get_date): Rename...
29988         (parse_datetime): ...to this.
29989         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
29990         (gl_PARSE_DATETIME): ...to this.
29991         * doc/posix-functions/getdate.texi (get_date): Provide fallback
29992         documentation.
29993         * modules/getdate (Files): Provide fallback docs and header.
29994         (Notice, Depends-on): Update references.
29995         * tests/test-parse-datetime.c: Likewise.
29996         * DEPENDENCIES: Likewise.
29997         * MODULES.html.sh (Date and time <time.h>): Likewise.
29998         * doc/parse-datetime.texi (Date input formats)
29999         (Authors of parse_datetime): Likewise.
30000         * modules/parse-datetime (Files, configure.ac, Makefile.am)
30001         (Include): Likewise.
30002         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
30003         * gnulib-tool: Likewise.
30004         * m4/bison.m4 (gl_BISON): Likewise.
30005         Suggested by Bruno Haible.
30006
30007 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30008
30009         more ports to Solaris tr, which needs [] around ranges
30010         * gnulib-tool: Solaris tr needs [] around ranges.
30011         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
30012         * tests/test-pipe-filter-gi1.c (main): Likewise.
30013         * tests/test-pipe-filter-ii1.c (main): Likewise.
30014
30015 2010-10-05  Eric Blake  <eblake@redhat.com>
30016
30017         bootstrap: fix Solaris regression
30018         * build-aux/bootstrap (check_versions): Solaris tr still needs []
30019         around ranges.
30020         Reported by Pádraig Brady.
30021
30022         bootstrap: work with pkg-config
30023         * build-aux/bootstrap (check_versions): Also transliterate - in
30024         prerequisite name.
30025         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
30026         prerequisites that were already found, to avoid confusion.
30027         Reported by Justin Clift.
30028
30029         faccessat: remove unused wrappers
30030         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
30031         presence of these wrappers dragged in -lgen on Solaris.
30032         Reported by Clemens Brogi; fix suggested by Paul Eggert.
30033
30034 2010-10-05  Jim Meyering  <meyering@redhat.com>
30035
30036         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
30037         * Makefile (sc_pragma_columns): New syntax-check rule.
30038
30039 2010-10-04  Bruno Haible  <bruno@clisp.org>
30040
30041         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
30042         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
30043         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
30044         Reported by Bruce Korb and Eric Blake.
30045
30046 2010-10-04  Bruno Haible  <bruno@clisp.org>
30047
30048         threadlib: Make option --with-libpth-prefix work.
30049         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
30050         use $LIBPTH, not just -lpth.
30051
30052 2010-10-04  Bruno Haible  <bruno@clisp.org>
30053
30054         Avoid line length limitation from HP NonStop system header files.
30055         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
30056         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
30057         * lib/ctype.in.h: Likewise.
30058         * lib/dirent.in.h: Likewise.
30059         * lib/errno.in.h: Likewise.
30060         * lib/fcntl.in.h: Likewise.
30061         * lib/float.in.h: Likewise.
30062         * lib/getopt.in.h: Likewise.
30063         * lib/iconv.in.h: Likewise.
30064         * lib/inttypes.in.h: Likewise.
30065         * lib/langinfo.in.h: Likewise.
30066         * lib/locale.in.h: Likewise.
30067         * lib/math.in.h: Likewise.
30068         * lib/netdb.in.h: Likewise.
30069         * lib/netinet_in.in.h: Likewise.
30070         * lib/poll.in.h: Likewise.
30071         * lib/pthread.in.h: Likewise.
30072         * lib/pty.in.h: Likewise.
30073         * lib/sched.in.h: Likewise.
30074         * lib/se-selinux.in.h: Likewise.
30075         * lib/search.in.h: Likewise.
30076         * lib/signal.in.h: Likewise.
30077         * lib/spawn.in.h: Likewise.
30078         * lib/stdarg.in.h: Likewise.
30079         * lib/stddef.in.h: Likewise.
30080         * lib/stdint.in.h: Likewise.
30081         * lib/stdio.in.h: Likewise.
30082         * lib/stdlib.in.h: Likewise.
30083         * lib/string.in.h: Likewise.
30084         * lib/strings.in.h: Likewise.
30085         * lib/sys_file.in.h: Likewise.
30086         * lib/sys_ioctl.in.h: Likewise.
30087         * lib/sys_select.in.h: Likewise.
30088         * lib/sys_socket.in.h: Likewise.
30089         * lib/sys_stat.in.h: Likewise.
30090         * lib/sys_time.in.h: Likewise.
30091         * lib/sys_times.in.h: Likewise.
30092         * lib/sys_utsname.in.h: Likewise.
30093         * lib/sys_wait.in.h: Likewise.
30094         * lib/sysexits.in.h: Likewise.
30095         * lib/termios.in.h: Likewise.
30096         * lib/time.in.h: Likewise.
30097         * lib/unistd.in.h: Likewise.
30098         * lib/wchar.in.h: Likewise.
30099         * lib/wctype.in.h: Likewise.
30100         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
30101         * modules/ctype (Makefile.am): Likewise.
30102         * modules/dirent (Makefile.am): Likewise.
30103         * modules/errno (Makefile.am): Likewise.
30104         * modules/fcntl-h (Makefile.am): Likewise.
30105         * modules/float (Makefile.am): Likewise.
30106         * modules/getopt-posix (Makefile.am): Likewise.
30107         * modules/iconv-h (Makefile.am): Likewise.
30108         * modules/inttypes (Makefile.am): Likewise.
30109         * modules/langinfo (Makefile.am): Likewise.
30110         * modules/locale (Makefile.am): Likewise.
30111         * modules/math (Makefile.am): Likewise.
30112         * modules/netdb (Makefile.am): Likewise.
30113         * modules/netinet_in (Makefile.am): Likewise.
30114         * modules/poll-h (Makefile.am): Likewise.
30115         * modules/pthread (Makefile.am): Likewise.
30116         * modules/pty (Makefile.am): Likewise.
30117         * modules/sched (Makefile.am): Likewise.
30118         * modules/search (Makefile.am): Likewise.
30119         * modules/selinux-h (Makefile.am): Likewise.
30120         * modules/signal (Makefile.am): Likewise.
30121         * modules/spawn (Makefile.am): Likewise.
30122         * modules/stdarg (Makefile.am): Likewise.
30123         * modules/stddef (Makefile.am): Likewise.
30124         * modules/stdint (Makefile.am): Likewise.
30125         * modules/stdio (Makefile.am): Likewise.
30126         * modules/stdlib (Makefile.am): Likewise.
30127         * modules/string (Makefile.am): Likewise.
30128         * modules/strings (Makefile.am): Likewise.
30129         * modules/sys_file (Makefile.am): Likewise.
30130         * modules/sys_ioctl (Makefile.am): Likewise.
30131         * modules/sys_select (Makefile.am): Likewise.
30132         * modules/sys_socket (Makefile.am): Likewise.
30133         * modules/sys_stat (Makefile.am): Likewise.
30134         * modules/sys_time (Makefile.am): Likewise.
30135         * modules/sys_times (Makefile.am): Likewise.
30136         * modules/sys_utsname (Makefile.am): Likewise.
30137         * modules/sys_wait (Makefile.am): Likewise.
30138         * modules/sysexits (Makefile.am): Likewise.
30139         * modules/termios (Makefile.am): Likewise.
30140         * modules/time (Makefile.am): Likewise.
30141         * modules/unistd (Makefile.am): Likewise.
30142         * modules/wchar (Makefile.am): Likewise.
30143         * modules/wctype (Makefile.am): Likewise.
30144
30145 2010-10-04  Bruno Haible  <bruno@clisp.org>
30146
30147         read-file tests: Avoid a test failure on NonStop Kernel.
30148         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
30149         a regular file.
30150         Reported by Joachim Schmitz <schmitz@hp.com>.
30151
30152 2010-10-03  Bruno Haible  <bruno@clisp.org>
30153
30154         gnulib-tool: Fixes for --create-testdir with --libtool.
30155         * gnulib-tool (func_get_automake_snippet): Don't augment
30156         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
30157         an executable.
30158         (func_create_testdir): Handle module 'alloca' like func_import.
30159         Reported by Bruce Korb <bruce.korb@gmail.com>.
30160
30161 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
30162
30163         Avoid some lines longer than 80 characters.
30164         * lib/stdint.in.h: Break long comment lines.
30165         * lib/math.in.h: Likewise.
30166         (_GL_NUM_UINT_WORDS): New macro, for readability.
30167         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
30168         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
30169         * lib/stdlib.in.h: Likewise.
30170         * lib/spawn.in.h: Likewise.
30171         * lib/sys_socket.in.h: Update an URL.
30172         * lib/sys_stat.in.h: Break long line.
30173
30174 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
30175
30176         Improve pmccabe2html.
30177         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
30178         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
30179         when the sources change. Remove the line in the HTML about "Used
30180         ranges" (which implied that there might be other unused ranges),
30181         rename "Resume" to "Summary" (easier to understand for more users).
30182         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
30183         styles, and some unnecessary blank lines.
30184
30185 2010-10-03  Bruno Haible  <bruno@clisp.org>
30186             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30187
30188         acl: Add support for ACLs on NonStop Kernel.
30189         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
30190         Check whether the function aclsort() exists.
30191         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
30192         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
30193         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30194         (acl_nontrivial [HAVE_ACLSORT]: New function.
30195         (file_has_acl): Implement for NonStop Kernel.
30196         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30197         (qset_acl): Implement for NonStop Kernel.
30198         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
30199         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30200         (main): Implement for NonStop Kernel.
30201         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
30202         Kernel. Handle this flavor.
30203         * tests/test-set-mode-acl.sh: Likewise.
30204         * tests/test-copy-acl.sh: Likewise.
30205         * tests/test-copy-file.sh: Likewise.
30206
30207 2010-10-03  Bruno Haible  <bruno@clisp.org>
30208
30209         Info about ACLs on NonStop Kernel.
30210         * doc/acl-resources.txt: Add info about NonStop Kernel.
30211         References by Joachim Schmitz <schmitz@hp.com>.
30212
30213 2010-10-02  Bruno Haible  <bruno@clisp.org>
30214
30215         Define missing EDQUOT on NonStop Kernel.
30216         * lib/errno.in.h (EDQUOT): Assign a value if missing.
30217         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
30218         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
30219         missing.
30220         * doc/posix-headers/errno.texi: Mention the NSK bug.
30221         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
30222         Reported by Joachim Schmitz <schmitz@hp.com>.
30223
30224 2010-10-02  Bruno Haible  <bruno@clisp.org>
30225
30226         Update doc for POSIX:2008.
30227         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
30228         Update URL of POSIX specification.
30229
30230 2010-10-02  Bruno Haible  <bruno@clisp.org>
30231
30232         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
30233         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
30234         from gnulib, not from Automake.
30235
30236 2010-10-02  Bruno Haible  <bruno@clisp.org>
30237
30238         New module 'system-posix'.
30239         * modules/system-posix: New file.
30240         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
30241         module is present.
30242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30243         GNULIB_SYSTEM_POSIX.
30244         * modules/stdlib (Depends-on): Remove sys_wait.
30245         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
30246         * doc/posix-functions/system.texi: Mention the new module.
30247         * doc/posix-headers/stdlib.texi: Likewise.
30248         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
30249         define test_sys_wait_macros to a no-op.
30250         Reported by Sam Steingold <sds@gnu.org>.
30251
30252 2010-09-30  Bruno Haible  <bruno@clisp.org>
30253
30254         More renaming from 'getdate' to 'get_date'.
30255         * doc/get_date.texi: Renamed from doc/getdate.texi.
30256         * modules/get_date (Files): Update.
30257         * MODULES.html.sh (Date and time <time.h>): Update.
30258         * DEPENDENCIES: Update.
30259         * gnulib-tool: Update comment.
30260         * m4/bison.m4 (gl_BISON): Likewise.
30261         * m4/get_date.m4 (gl_GET_DATE): Likewise.
30262
30263 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
30264
30265         bootstrap: support ACLOCAL_FLAGS during aclocal
30266         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
30267         can add additional -I dir for third-party .m4 files.
30268
30269 2010-09-30  Eric Blake  <eblake@redhat.com>
30270
30271         bootstrap: use glibtoolize on MacOS
30272         * build-aux/bootstrap (check_versions): Convert libtool into
30273         libtoolize.
30274         (tool search): Move libtool check earlier, and look for
30275         glibtoolize for MacOS.
30276         (gnulib_tool_options): Auto-add --libtool when appropriate.
30277         Reported by Justin Clift.
30278
30279         poll: fix typo that broke test on MacOS
30280         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
30281         Reported by Justin Clift.
30282
30283         getdate: rename to get_date
30284         Note: getdate.h is not renamed, to minimize client impact.
30285         * modules/getdate: Mark obsolete.  Move old contents...
30286         * modules/get_date: ...to new module name.
30287         * modules/getdate-tests: Move...
30288         * modules/get_date-tests: ...here.
30289         * m4/getdate.m4: Move...
30290         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
30291         * lib/getdate.y: Move...
30292         * lib/get_date.y: ...here.
30293         * tests/test-getdate.c: Move...
30294         * tests/test-get_date.c: ...here.
30295         * doc/posix-functions/getdate.texi (getdate): Update name.
30296         * NEWS: Mention the change.
30297
30298 2010-09-29  Bruno Haible  <bruno@clisp.org>
30299
30300         Separate the module 'waitpid' from the module 'sys_wait'.
30301         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
30302         present.
30303         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
30304         gl_MODULE_INDICATOR_FOR_TESTS.
30305         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
30306         * modules/sys_wait (Depends-on): Remove waitpid.
30307         (Makefile.am): Substitute GNULIB_WAITPID.
30308         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
30309         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
30310         signature only if the 'waitpid' module is present.
30311         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
30312         * NEWS: Mention the change.
30313         * modules/grantpt (Depends-on): Add waitpid.
30314         * modules/wait-process (Depends-on): Likewise.
30315
30316 2010-09-29  Bruno Haible  <bruno@clisp.org>
30317
30318         More tests for module 'sys_wait'.
30319         * modules/sys_wait-c++-tests: New file.
30320         * tests/test-sys_wait-c++.cc: New file.
30321         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
30322         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30323
30324 2010-09-29  Bruno Haible  <bruno@clisp.org>
30325
30326         New module 'waitpid'.
30327         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30328         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30329         Don't include <process.h>.
30330         (waitpid): Declare only, using modern idiom.
30331         * m4/waitpid.m4: New file.
30332         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30333         * modules/waitpid: New file.
30334         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30335         (Makefile.am): Update.
30336         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30337
30338 2010-09-28  Bruno Haible  <bruno@clisp.org>
30339
30340         poll: Assume ANSI C.
30341         * lib/poll.c (poll): Use an ANSI C declaration.
30342
30343 2010-09-28  Bruno Haible  <bruno@clisp.org>
30344
30345         poll-h: Create poll.h on all platforms.
30346         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30347         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30348         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30349         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30350         (gl_REPLACE_POLL_H): Don't set POLL_H.
30351         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30352         * modules/poll-h (Depends-on): Add include_next.
30353         (Makefile.am): Create poll.h unconditionally. Substitute also
30354         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30355
30356 2010-09-28  Bruno Haible  <bruno@clisp.org>
30357
30358         Tests for module 'poll-h'.
30359         * modules/poll-h-c++-tests: New file.
30360         * tests/test-poll-h-c++.cc: New file.
30361
30362         Tests for module 'poll-h'.
30363         * modules/poll-h-tests: New file.
30364         * tests/test-poll-h.c: New file.
30365
30366 2010-09-28  Bruno Haible  <bruno@clisp.org>
30367
30368         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30369         * modules/poll-h (Depends-on): Add 'extensions'.
30370
30371 2010-09-28  Bruno Haible  <bruno@clisp.org>
30372
30373         New module 'poll-h'.
30374         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30375         (poll): Use modern idiom.
30376         * modules/poll-h: New file.
30377         * modules/poll (Files): Remove lib/poll.in.h.
30378         (Depends-on): Add poll-h.
30379         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30380         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30381         * m4/poll_h.m4: New file.
30382         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30383         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30384         and invoke gl_REPLACE_POLL_H.
30385         * lib/poll.c: Use common idiom.
30386         * tests/test-poll.c: Likewise.
30387         * doc/posix-headers/poll.texi: Mention the poll-h module.
30388         Suggested by Eric Blake.
30389
30390 2010-09-26  Bruno Haible  <bruno@clisp.org>
30391
30392         sys_wait: Implement WSTOPSIG.
30393         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30394         Reported by Simon Josefsson.
30395
30396 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30397
30398         stdlib, sys_wait: Avoid compilation error on mingw.
30399         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30400
30401 2010-09-26  Bruno Haible  <bruno@clisp.org>
30402
30403         stdlib tests: Avoid code duplication.
30404         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30405         * modules/sys_wait-tests (Files): Likewise.
30406         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30407         * tests/test-stdlib.c: Include test-sys_wait.h.
30408         (main): Invoke test_sys_wait_macros.
30409         * tests/test-sys_wait.c: Include test-sys_wait.h.
30410         (main): Invoke test_sys_wait_macros.
30411
30412 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30413
30414         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30415         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30416         sure Windows sockets are working before calling getaddrinfo.
30417         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30418         * doc/gnulib.texi (Windows sockets): Fix typo.
30419
30420 2010-09-25  Bruno Haible  <bruno@clisp.org>
30421
30422         Tests for module 'regex-quote'.
30423         * modules/regex-quote-tests: New file.
30424         * tests/test-regex-quote.c: New file.
30425
30426         New module 'regex-quote'.
30427         * lib/regex-quote.h: New file.
30428         * lib/regex-quote.c: New file.
30429         * modules/regex-quote: New file.
30430         Suggested by Reuben Thomas <rrt@sc3d.org>.
30431
30432 2010-09-24  Bruno Haible  <bruno@clisp.org>
30433
30434         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30435         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30436
30437 2010-09-23  Bruno Haible  <bruno@clisp.org>
30438
30439         setenv: Relax license.
30440         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30441         Blake.
30442         Requested by Eric Blake.
30443
30444 2010-09-22  Bruno Haible  <bruno@clisp.org>
30445
30446         termios: Relax license.
30447         * modules/termios (License): Change to LGPLv2+.
30448         Requested by Eric Blake.
30449
30450 2010-09-22  Bruno Haible  <bruno@clisp.org>
30451
30452         threadlib: Allow the package to change the default to 'no'.
30453         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30454         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30455         Reported by Paul Eggert.
30456
30457 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30458             Bruno Haible  <bruno@clisp.org>
30459
30460         Fix endless loop in mbmemcasecoll.
30461         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30462         byte.
30463         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30464
30465 2010-09-22  Bruno Haible  <bruno@clisp.org>
30466
30467         Tests for module 'memcoll'.
30468         * modules/memcoll-tests: New file.
30469         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30470
30471         memcoll, xmemcoll: Clarify size vs. length.
30472         * modules/memcoll.c (memcoll0): Clarify specification.
30473         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30474         passed to collate_error.
30475
30476 2010-09-22  Bruno Haible  <bruno@clisp.org>
30477
30478         Tests for module 'memcasecmp'.
30479         * modules/memcasecmp-tests: New file.
30480         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
30481
30482 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30483
30484         * lib/pthread.in.h: Add split double-inclusion guard, and include
30485         system <pthread.h> if there is one.  Use @@-style as in other
30486         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
30487         pthread.h doesn't.
30488         (pthread_mutexattr_destroy, pthread_mutexattr_init):
30489         (pthread_mutexattr_settype, pthread_mutex_trylock):
30490         New static inline functions, if there's no system <pthread.h>.
30491         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
30492         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
30493         Approximate with mutexes if the system lacks spinlocks, as in
30494         MacOS.
30495         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
30496         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
30497         @@-style.  Check for spinlocks separately.
30498         (gl_PTHREAD_DEFAULTS): New macro.
30499         * modules/pthread: Redo to use a more typical style for in.h files.
30500
30501 2010-09-21  Eric Blake  <eblake@redhat.com>
30502
30503         net_if: enhance tests
30504         * tests/test-net_if.c (main): Move signature checks earlier.
30505         Print failures to stderr.
30506         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
30507         Document the bug that we do not yet fix.
30508
30509 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30510
30511         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
30512         about gnulib, not GSS.
30513
30514 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30515
30516         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
30517         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
30518         for Emacs.
30519         * build-aux/pmccabe2html: Make Makefile.am example code more
30520         cut-and-paste friendly.
30521
30522 2010-09-21  Simon Josefsson  <simon@josefsson.org>
30523
30524         * tests/test-net_if.c: New file.
30525         * modules/net_if-tests: New file.
30526
30527 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30528
30529         pthread: add pthread_spin_destroy
30530         * lib/pthread.in.h (pthread_spin_destroy): New function.
30531
30532 2010-09-19  Bruno Haible  <bruno@clisp.org>
30533
30534         gnulib-tool: Fix --help output.
30535         * gnulib-tool (func_usage): Fix help message.
30536         Reported by Reuben Thomas <rrt@sc3d.org>.
30537
30538 2010-09-18  Jim Meyering  <meyering@redhat.com>
30539
30540         maint.mk: avoid unexpanded \n in two diagnostics
30541         * top/maint.mk (sc_prohibit_always_true_header_tests):
30542         Don't use a literal \n in a halt=... assignment.  It would not be
30543         expanded, and the two \n bytes would appear in the diagnostic output
30544         rather than the desired newline.  Use halt=$$(printf ... instead.
30545         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30546
30547 2010-09-18  Bruno Haible  <bruno@clisp.org>
30548
30549         netinet_in: Doc tweak.
30550         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
30551         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30552
30553 2010-09-18  Jim Meyering  <meyering@redhat.com>
30554
30555         init.sh: correct an outdated comment
30556         * tests/init.sh (create_exe_shims_):  s/function/alias/
30557
30558         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
30559         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
30560         a file named "*.exe" is removed between the glob expansion and the
30561         processing of that oddly named file.
30562
30563 2010-09-17  Eric Blake  <eblake@redhat.com>
30564
30565         mirbsd: add some more support
30566         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
30567         in BSD family.
30568         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
30569         devices as OpenBSD.
30570         * m4/host-os.m4 (mirbsd): Add MirBSD.
30571
30572         tests: fix unportable assumption on sys/wait.h
30573         * tests/test-sys_wait.c (main): Relax test.
30574         * tests/test-stdlib.c (main): Likewise.
30575
30576         init.sh: accommodate directory with no .exes
30577         * tests/init.sh: Accomodate directory containing only scripts.
30578
30579         tests: avoid compiler warning
30580         * tests/test-stdlib.c (main): Use the variable.
30581
30582         fdutimens, fdutimensat: update signature, again
30583         * lib/utimens.h (gl_futimens): Delete, and move signature...
30584         (fdutimens): ...here.
30585         (fdutimensat): Rearrange signature.
30586         (lutimensat): Rename variable for clarity.
30587         * lib/fdutimensat.c (fdutimensat): Update signature.
30588         * lib/utimens.c (fdutimens): Likewise.
30589         (gl_futimens): Delete.
30590         (utimens, lutimens): Update callers.
30591         * lib/futimens.c (futimens): Likewise.
30592         * tests/test-fdutimensat.c: Likewise.
30593         * tests/test-utimens.c: Likewise.
30594         * tests/test-futimens.h: Update comment.
30595         * NEWS: Mention this.
30596         Suggested by Paul Eggert.
30597
30598 2010-09-17  Bruno Haible  <bruno@clisp.org>
30599
30600         Take over the maintenance of some older macros from Autoconf.
30601         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
30602         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
30603         GNU Autoconf.
30604         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
30605         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
30606
30607 2010-09-17  Eric Blake  <eblake@redhat.com>
30608
30609         fdutimensat: drop atflag validation
30610         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
30611         with valid fd, to close a race scenario where futimens is
30612         unsupported and FILE was replaced by a symlink.
30613         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
30614         accordingly.
30615         Suggested by Paul Eggert.
30616
30617 2010-09-16  Bruno Haible  <bruno@clisp.org>
30618
30619         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
30620         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
30621
30622 2010-09-16  Bruno Haible  <bruno@clisp.org>
30623
30624         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
30625         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
30626         login_tty exists.
30627         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30628
30629 2010-09-16  Bruno Haible  <bruno@clisp.org>
30630
30631         login_tty: Make the replacement code work on BSD systems.
30632         * lib/login_tty.c: Include <sys/ioctl.h>.
30633         (login_tty): Use ioctl TIOCSCTTY when available.
30634         * modules/login_tty (Depends-on): Add sys_ioctl.
30635         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30636
30637 2010-09-16  Bruno Haible  <bruno@clisp.org>
30638
30639         login_tty: Stricter unit test.
30640         * modules/login_tty-tests (Depends-on): Add tcgetsid.
30641         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
30642         and tcgetsid() after login_tty.
30643         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30644
30645 2010-09-16  Bruno Haible  <bruno@clisp.org>
30646
30647         New module 'tcgetsid'.
30648         * lib/tcgetsid.c: New file.
30649         * m4/tcgetsid.m4: New file.
30650         * modules/tcgetsid: New file.
30651         * modules/termios (Depends-on): Add c++defs, warn-on-use.
30652         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
30653         GNULIB_TCGETSID, HAVE_TCGETSID.
30654         * lib/termios.in.h: Include <sys/types.h>.
30655         (tcgetsid): New declaration.
30656         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
30657         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
30658         * doc/posix-functions/tcgetsid.texi: Mention the new module.
30659         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
30660
30661 2010-09-16  Bruno Haible  <bruno@clisp.org>
30662
30663         Tests for module 'termios'.
30664         * modules/termios-c++-tests: New file.
30665         * modules/termios-tests: New file.
30666         * tests/test-termios-c++.cc: New file.
30667         * tests/test-termios.c: New file.
30668
30669         New module 'termios'.
30670         * modules/termios: New file.
30671         * lib/termios.in.h: New file.
30672         * m4/termios_h.m4: New file.
30673         * doc/posix-headers/termios.texi: Mention the new module.
30674
30675 2010-09-16  Eric Blake  <eblake@redhat.com>
30676
30677         fdutimensat: add an atflag parameter
30678         * lib/fdutimensat.c (fdutimensat): Add new parameter.
30679         * lib/utimens.h (fdutimensat): Update prototype.
30680         * tests/test-fdutimensat.c: Adjust test to match.
30681         * NEWS: Document the change.
30682         Suggested by Paul Eggert.
30683
30684 2010-09-16  Bruno Haible  <bruno@clisp.org>
30685
30686         Fix typos in comments.
30687         * lib/striconveh.h: Fix typo in comment.
30688         * lib/login_tty.c (login_tty): Likewise.
30689
30690 2010-09-15  Bruno Haible  <bruno@clisp.org>
30691
30692         stdlib: clarify MirBSD WEXITSTATUS bug
30693         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
30694         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30695
30696 2010-09-15  Eric Blake  <eblake@redhat.com>
30697
30698         stdlib: work around MirBSD WEXITSTATUS bug
30699         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
30700         * modules/stdlib (Depends-on): Add sys_wait.
30701         * tests/test-sys_wait.c (main): Enhance test.
30702         * tests/test-stdlib.c (main): Likewise.
30703         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
30704
30705         docs: mention MacOS issue with WEXITSTATUS(constant)
30706         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
30707         issue.
30708         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30709
30710         strnlen: add tests
30711         * modules/strnlen-tests: New file.
30712         * tests/test-strnlen.c: Likewise.
30713
30714 2010-09-14  Bruno Haible  <bruno@clisp.org>
30715
30716         unistr/base: Avoid link errors when module 'libunistring' is also used.
30717         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
30718         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
30719         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
30720         Declare also when HAVE_LIBUNISTRING is set.
30721         Reported by Pádraig Brady <P@draigbrady.com>.
30722
30723 2010-09-14  Eric Blake  <eblake@redhat.com>
30724
30725         test-rawmemchr: make more robust
30726         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
30727         (Depends-on, configure.ac): Add needed prerequisites to use it.
30728         * modules/memchr-tests (Files, Depends-on, configure.ac):
30729         Likewise, to avoid implicit reliance on memchr module prereqs.
30730         * tests/test-memchr.c (main): Ensure proper masking.
30731         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
30732         reads.
30733
30734         memchr: detect glibc Alpha bug
30735         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
30736         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
30737         Alpha.
30738         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
30739         * tests/test-memchr.c (main): Enhance test.
30740         Reported by Nelson H. F. Beebe.
30741
30742 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30743
30744         fts, getcwd, glob: audit for dirfd returning -1
30745         * lib/fts.c (opendir): Remove #define; no longer used.
30746         (opendirat): New arg PDIR_FD.  All callers changed.
30747         (fts_build, _opendir2): Use new opendirat to avoid the need for
30748         dirfd, or for checking whether dirfd returns a negative value.
30749         Don't use opendir; always use openat followed by fdopendir.
30750         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
30751         it.
30752         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
30753         returns -1 here.
30754         * modules/fts (Depends-on): Remove dirfd.
30755         * modules/getcwd (Depends-on): Likewise.
30756
30757 2010-09-13  Eric Blake  <eblake@redhat.com>
30758
30759         float: fix broken MirBSD header
30760         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
30761         * doc/posix-headers/float.texi (float.h): Document it.
30762
30763 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30764
30765         fts: use O_NOFOLLOW to avoid race condition when opening a directory
30766         * lib/fts.c (opendirat): New arg extra_flags.
30767         (__opendir2): Use it to avoid following symlinks when opening
30768         a directory, if symlinks are not supposed to be followed.  See
30769         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
30770
30771         fdopendir: preserve argument fd before returning
30772         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
30773         (fdopendir_with_dup, fd_clone_opendir): New static functions.
30774         (fdopendir): Use them, arranging for FD to be open to the same
30775         directory that it was when it started.  (It might be temporarily
30776         closed while fdopendir is running, so this not thread- or
30777         signal-safe.)  Be careful to do the right thing even when file
30778         descriptors are scarce and dup fails with errno == EMFILE.  See
30779         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
30780
30781 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
30782
30783         regex: Pass the system regex if its only problem is 32-bit regoff_t.
30784         * NEWS: Document change.
30785         * m4/regex.m4: Disable test for regoff_t size.
30786
30787 2010-09-13  Jim Meyering  <meyering@redhat.com>
30788
30789         fts: don't operate on an invalid file descriptor after failed dup
30790         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
30791         negative file descriptor.
30792
30793 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
30794
30795         savedir: add streamsavedir, deprecate fdsavedir
30796         * NEWS: Mention deprecation of fdsavedir.
30797         * lib/savedir.c (streamsavedir): New extern function, whose name
30798         ends in "savedir" to be consistent with the others.  This differs
30799         from savedirstream in that it doesn't close its argument.  The
30800         next version of GNU tar will use this instead of fdsavedir, to
30801         avoid some race conditions and conserve file descriptors.
30802         (savedirstream): Reimplement as a wrapper around streamsavedir.
30803         (fdsavedir): Add a comment deprecating this function.  As far as
30804         I know, only GNU tar used it, and GNU tar doesn't need it any more.
30805         * lib/savedir.h (streamsavedir): New decl.
30806         (fdsavedir): Add a comment deprecating this.
30807
30808 2010-09-10  Bruno Haible  <bruno@clisp.org>
30809
30810         langinfo: Fix last commit.
30811         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
30812         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
30813         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30814
30815 2010-09-10  Bruno Haible  <bruno@clisp.org>
30816
30817         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
30818         * lib/progreloc.c (O_EXEC): Define fallback.
30819
30820 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
30821
30822         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
30823         * NEWS: Document recent changes to fcntl-h.
30824         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
30825         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
30826         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
30827         Similarly for O_SEARCH; this last was already true, but not documented.
30828         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
30829         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
30830         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
30831         Likewise.
30832         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
30833         is zero, not whether it is defined.
30834         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
30835         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
30836         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
30837
30838 2010-09-10  Bruno Haible  <bruno@clisp.org>
30839
30840         langinfo, nl_langinfo: Fix for IRIX 5.3.
30841         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
30842         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
30843         HAVE_LANGINFO_YESEXPR.
30844         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
30845         HAVE_LANGINFO_YESEXPR.
30846         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
30847         HAVE_LANGINFO_T_FMT_AMPM is 0.
30848         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
30849         HAVE_LANGINFO_YESEXPR is 0.
30850         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
30851         NOEXPR.
30852         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
30853         * doc/posix-functions/nl_langinfo.texi: Likewise.
30854         Reported by Eric Blake.
30855
30856 2010-09-10  Bruno Haible  <bruno@clisp.org>
30857
30858         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
30859         * doc/glibc-functions/login_tty.texi: Mention the include file problem
30860         on FreeBSD 8.0 and OpenBSD 4.6.
30861         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
30862         * m4/pty_h.m4 (gl_PTY_H): Likewise.
30863         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
30864         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
30865         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
30866         ac_includes_default.
30867         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30868
30869 2010-09-09  Eric Blake  <eblake@redhat.com>
30870
30871         strsignal: work around NetBSD bug
30872         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
30873         * lib/string.in.h (includes): Likewise.
30874         * doc/posix-functions/strsignal.texi (strsignal): Document the
30875         bug.
30876         Reported by Nelson H. F. Beebe.
30877
30878         gnulib-tool: work with NetBSD /bin/sh
30879         * gnulib-tool (func_cache_var, func_cache_lookup_module)
30880         (func_get_description, func_get_comment, func_get_status)
30881         (func_get_notice, func_get_applicability, func_get_filelist)
30882         (func_get_dependencies, func_get_autoconf_early_snippet)
30883         (func_get_autoconf_snippet, func_get_automake_snippet)
30884         (func_get_include_directive, func_get_link_directive)
30885         (func_get_license, func_get_maintainer, func_import): Avoid
30886         shell syntax errors from parsing syntax extensions.
30887
30888 2010-09-09  Bruno Haible  <bruno@clisp.org>
30889
30890         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30891         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
30892         a reliable way to determine whether the 'alias' command works.
30893
30894 2010-09-08  Jim Meyering  <meyering@redhat.com>
30895
30896         init.sh: penalize a set-x-impaired shell; don't disqualify it
30897         * tests/init.sh: Too many shells corrupt application stderr when
30898         you set -x, so we can't afford to disqualify them, since at least
30899         on Irix-6.5, that would disqualify all bourne shells.
30900         Instead, use a two-pass approach.
30901         On the first pass, try to find a shell that meets the stricter
30902         condition that set -x does not corrupt stderr.
30903         If no shell meets the stricter condition, retest each candidate
30904         shell, but without that extra condition.  Finally, when
30905         VERBOSE=yes is requested and set -x might cause trouble, simply
30906         issue a warning and refrain from enabling debug output.
30907
30908 2010-09-08  Eric Blake  <eblake@redhat.com>
30909
30910         unsetenv: fix OpenBSD bug
30911         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
30912         * doc/posix-functions/unsetenv.texi (unsetenv): Update
30913         documentation.
30914         Reported by Jim Meyering.
30915
30916         strtod: work around IRIX 6.5 bug
30917         * lib/strtod.c (strtod): Reparse number on shorter string if
30918         exponent parse was invalid.
30919         * tests/test-strtod.c (main): Add check for "0x1p 2".
30920         Reported by Tom G. Christensen.
30921
30922         getopt: optimize previous patch
30923         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
30924         empty variable.  Speed up awk script.
30925         Reported by Paolo Bonzini.
30926
30927 2010-09-08  Jim Meyering  <meyering@redhat.com>
30928
30929         test.sh: disqualify shells for which set -x corrupts stderr
30930         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
30931         and OpenBSD 4.7.  They make it so with "set -x", environment settings
30932         appear in stderr output.  For example, this command:
30933             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
30934         prints "P=1" on those two systems:
30935
30936 2010-09-08  Bruno Haible  <bruno@clisp.org>
30937
30938         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30939         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
30940         commands, because some shells ignore redirections when there is an
30941         error in the command lookup.
30942         Reported by Eric Blake.
30943
30944 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
30945
30946         * lib/regex.h: Fix a mention of `regex_compile' (should be
30947         `re_compile_pattern').
30948         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
30949         (re_set_registers): Correct name of parameter in comment.
30950
30951         * doc/regex.texi: Add documentation for missing syntax flags.
30952         Remove commented-out documentation of defunct syntax option
30953         RE_NO_EMPTY_ALTS.
30954         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
30955         Add documentation of re_set_registers.
30956         Document trick to re-use a pattern buffer by setting fastmap manually.
30957         Update documentation of struct re_pattern_buffer per public members.
30958         Uncomment documentation of equivalence class operators and
30959         collating symbol operators, since they are now implemented,
30960         Explain leftmost-longest matching in relation to alternatives.
30961         Tidy documentation of substring matching.
30962         Remove POSIX documentation, which is done better in
30963         glibc, and refer the reader there. Keep BSD API documentation, as
30964         that is not readily available elsewhere.
30965
30966 2010-09-07  Eric Blake  <eblake@redhat.com>
30967
30968         getopt: handle POSIXLY_CORRECT set but not exported
30969         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
30970         export state of POSIXLY_CORRECT, due to bash set -o posix.
30971         Reported by Dustin J. Mitchell.
30972
30973 2010-09-05  Bruno Haible  <bruno@clisp.org>
30974
30975         gnulib-tool: Highlight the changed options.
30976         * gnulib-tool (func_usage): Display the --import, --add-import,
30977         --remove-import explanations in bold font.
30978
30979 2010-09-06  Karl Berry  <karl@gnu.org>
30980
30981         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
30982
30983 2010-09-05  Bruno Haible  <bruno@clisp.org>
30984
30985         uniwidth/width: Update comment.
30986         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
30987         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
30988
30989 2010-09-05  Bruno Haible  <bruno@clisp.org>
30990
30991         isinf, isnan: Relax license.
30992         * modules/isinf (License): Change from GPL to LGPL, with consent from
30993         Ben Pfaff.
30994         * modules/isnan (License): Likewise.
30995         Requested by Ludovic Courtès.
30996
30997 2010-09-04  Bruno Haible  <bruno@clisp.org>
30998
30999         gnulib-tool: Help migration from --import to --add-import or --update.
31000         * gnulib-tool: Emit a verbose error message when --import is used
31001         without any module name.
31002
31003 2010-09-04  Bruno Haible  <bruno@clisp.org>
31004
31005         Update doc about gnulib-tool.
31006         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
31007         'gnulib-tool --update' in more detail.
31008         Reported by Eric Blake.
31009
31010 2010-09-04  Bruno Haible  <bruno@clisp.org>
31011
31012         gnulib-tool: Change --import. New options --add/remove-import.
31013         * gnulib-tool: New options --add-import, --remove-import.
31014         (func_usage): Document them.
31015         (have_associative): Define always.
31016         (func_import): In import mode, don't merge the specified settings with
31017         the cached settings. Implement remove-import mode.
31018         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
31019         Explain when to use them versus --import.
31020         (Simple update): Use --add-import instead of --import.
31021         * NEWS: Mention the change.
31022
31023 2010-09-04  Bruno Haible  <bruno@clisp.org>
31024
31025         * doc/gnulib-tool.texi (Initial import): Update paragraph about
31026         separate gnulib.mk.
31027
31028 2010-09-04  Bruno Haible  <bruno@clisp.org>
31029
31030         gnulib-tool: Don't talk about CVS any more.
31031         * gnulib-tool (func_usage, func_import): Write "version control"
31032         instead of CVS.
31033
31034 2010-09-04  Jim Meyering  <meyering@redhat.com>
31035
31036         maint.mk: avoid obscure sc_copyright_check failure in coreutils
31037         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
31038         false positives (whose names may be ill-chosen) when searching
31039         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
31040         would cause a false-positive.
31041
31042         avoid coreutils "make distcheck" failure
31043         Coreutils tests with an absolute build directory name that contains
31044         a space.  Not quoting this directory name caused a failure.
31045         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
31046         * tests/test-vc-list-files-cvs.sh: Likewise.
31047
31048 2010-09-04  Bruno Haible  <bruno@clisp.org>
31049
31050         gnulib-tool: Avoid error when run in a package without Makefile.am.
31051         * gnulib-tool: When collecting the m4dirs in a package that does not
31052         have a Makefile.am, eliminate those directories that contain no
31053         gnulib-cache.m4. Fix expression that counts these directories.
31054
31055 2010-09-04  Bruno Haible  <bruno@clisp.org>
31056
31057         update-copyright test: Improve output when perl is missing or too old.
31058         * tests/test-update-copyright.sh: Move test of Perl version down after
31059         the test whether Perl exists. Provide an explanation relating Perl's
31060         error message to Automake's SKIP: message.
31061
31062 2010-09-04  Bruno Haible  <bruno@clisp.org>
31063
31064         Don't augment PATH in TESTS_ENVIRONMENT.
31065         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
31066         set abs_aux_dir instead of augmenting PATH.
31067         * modules/vc-list-files-tests (Makefile.am): Likewise.
31068         * tests/test-update-copyright.sh: Augment PATH here.
31069         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
31070         path_prepend_.
31071         * tests/test-vc-list-files-git.sh: Likewise.
31072
31073 2010-09-04  Jim Meyering  <meyering@redhat.com>
31074
31075         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
31076         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
31077
31078 2010-09-04  Bruno Haible  <bruno@clisp.org>
31079
31080         strdup: Fix compilation error in C++ mode.
31081         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
31082         the macro.
31083
31084 2010-09-04  Bruno Haible  <bruno@clisp.org>
31085
31086         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
31087         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
31088         macro into a function.
31089         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31090
31091 2010-09-04  Bruno Haible  <bruno@clisp.org>
31092
31093         Set PATH_SEPARATOR the same way autoconf does.
31094         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
31095         the value of PATH_SEPARATOR the same way autoconf-generated configure
31096         scripts do.
31097         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
31098         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31099
31100 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31101
31102         Set PATH_SEPARATOR the same way autoconf does.
31103         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
31104         the same way autoconf-generated configure scripts do.
31105         * posix-modules: Likewise.
31106
31107 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31108
31109         hash: fix safe_hasher const typo
31110         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
31111         const; otherwise, there is a type error later.
31112
31113 2010-09-02  Jim Meyering  <meyering@redhat.com>
31114
31115         test-update-copyright.sh: require perl 5.8.0
31116         * tests/test-update-copyright.sh: Require 5.8.0,
31117         which Tom G. Christensen has confirmed is adequate,
31118         while 5.6.1 is not.
31119
31120 2010-09-02  Eric Blake  <eblake@redhat.com>
31121
31122         tests: init.sh improvements for re-exec'ing with zsh
31123         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
31124         -vx through shell re-exec.
31125         Reported by Tom G. Christensen.
31126
31127         wctype: fix typo in previous commit
31128         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
31129         Reported by Ludovic Courtès.
31130
31131 2010-09-02  Jim Meyering  <meyering@redhat.com>
31132
31133         test-update-copyright.sh: skip test if Perl is too old
31134         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
31135         Reported by Tom G. Christensen.
31136
31137 2010-09-02  Bruno Haible  <bruno@clisp.org>
31138
31139         wctype: Avoid compilation error on IRIX 6.5.30.
31140         * lib/wctype.in.h (iswblank): Declare with a replacement if
31141         REPLACE_ISWBLANK is set.
31142         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
31143         declared. Set REPLACE_ISWBLANK.
31144         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
31145         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
31146         * doc/posix-headers/wctype.texi: Likewise.
31147         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31148
31149 2010-09-01  Bruno Haible  <bruno@clisp.org>
31150
31151         New module 'socketlib'.
31152         * modules/socketlib: New file.
31153         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
31154         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
31155         * modules/sockets (Depends-on): Add socketlib.
31156         Suggested by Sam Steingold <sds@gnu.org>.
31157
31158 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31159
31160         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
31161
31162         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
31163         when one needs search access to a directory but not read access.
31164         On systems where it is available, it works in some cases where
31165         O_RDONLY does not, namely on directories that are searchable but
31166         not readable, and which need only to be searchable.  If O_SEARCH
31167         is not available, fall back to the traditional method of using
31168         O_RDONLY.
31169
31170         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
31171         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
31172         when opening a directory that needs only to be searchable.
31173         * lib/chdir-safer.c (chdir_no_follow): Likewise.
31174         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
31175         * lib/openat-proc.c (openat_proc_name): Likewise.
31176         * lib/openat.c (openat_needs_fchdir): Likewise.
31177         * lib/save-cwd.c (save_cwd): Likewise.
31178         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
31179
31180 2010-08-28  Bruno Haible  <bruno@clisp.org>
31181
31182         New module 'host-cpu-c-abi'.
31183         * modules/host-cpu-c-abi: New file.
31184         * m4/host-cpu-c-abi.m4: New file, based on part of
31185         clisp/src/m4/general.m4.
31186         Requested by Sam Steingold <sds@gnu.org>.
31187
31188 2010-08-31  Eric Blake  <eblake@redhat.com>
31189         and Jim Meyering  <meyering@redhat.com>
31190
31191         hash: factor, and guard against misbehaving hasher function
31192         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
31193         of table->hasher's return value.  Also protect against a hash value
31194         so large that adding it to table->bucket results in a NULL pointer.
31195         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
31196         Use it in place of open-coded check-and-abort.
31197
31198 2010-08-30  Bruno Haible  <bruno@clisp.org>
31199
31200         hash: silence spurious clang warning
31201         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
31202         Reported by Eric Blake.
31203
31204 2010-08-30  Eric Blake  <eblake@redhat.com>
31205
31206         strstr, memmem, strcasestr: avoid leaked shell message
31207         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
31208         FreeBSD.
31209         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31210         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31211
31212         tests: silence clang warning
31213         * tests/test-malloca.c (do_allocation): Avoid dead store.
31214
31215 2010-08-29  Bruno Haible  <bruno@clisp.org>
31216
31217         gettext: Fix recent mistake.
31218         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
31219
31220 2010-08-29  Bruno Haible  <bruno@clisp.org>
31221
31222         selinux-h: Offer a --without-selinux option.
31223         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
31224         --without-selinux was specified, skip all tests and define
31225         HAVE_SELINUX_SELINUX_H to 0.
31226         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
31227         set LIB_SELINUX to empty.
31228         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
31229         gl_LIBSELINUX. If --without-selinux was specified, replace
31230         selinux/context.h.
31231         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
31232
31233 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31234             Bruno Haible  <bruno@clisp.org>
31235
31236         Make the module 'realloc-gnu' work again on AIX and OSF/1.
31237         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
31238         of HAVE_REALLOC.
31239         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
31240         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
31241         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
31242         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31243
31244 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31245             Bruno Haible  <bruno@clisp.org>
31246
31247         Make the module 'calloc-gnu' work again on AIX and OSF/1.
31248         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
31249         HAVE_CALLOC.
31250         * lib/xmalloc.c: Update accordingly.
31251         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
31252         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
31253         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
31254
31255 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31256             Bruno Haible  <bruno@clisp.org>
31257
31258         Make the module 'malloc-gnu' work again on AIX and OSF/1.
31259         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
31260         HAVE_MALLOC.
31261         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
31262         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
31263         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31264
31265 2010-08-29  Bruno Haible  <bruno@clisp.org>
31266
31267         Update modules list.
31268         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31269         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
31270         (String handling <string.h>): Add astrxfrm.
31271         (File system functions): Add readlinkat.
31272
31273 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31274
31275         Tests for module 'realloc-gnu'.
31276         * modules/realloc-gnu-tests: New file.
31277         * tests/test-realloc-gnu.c: New file.
31278
31279         Tests for module 'calloc-gnu'.
31280         * modules/calloc-gnu-tests: New file.
31281         * tests/test-calloc-gnu.c: New file.
31282
31283         Tests for module 'malloc-gnu'.
31284         * modules/malloc-gnu-tests: New file.
31285         * tests/test-malloc-gnu.c: New file.
31286
31287 2010-08-28  Bruno Haible  <bruno@clisp.org>
31288
31289         Rename module 'realloc' -> 'realloc-gnu'.
31290         * modules/realloc-gnu: New file, copied from modules/realloc.
31291         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
31292         obsolete.
31293         * modules/mgetgroups (Depends-on): Update.
31294         * doc/posix-functions/realloc.texi: Update.
31295         * NEWS: Mention the change.
31296
31297         Rename module 'calloc' -> 'calloc-gnu'.
31298         * modules/calloc-gnu: New file, copied from modules/calloc.
31299         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
31300         obsolete.
31301         * doc/posix-functions/calloc.texi: Update.
31302         * NEWS: Mention the change.
31303
31304         Rename module 'malloc' -> 'malloc-gnu'.
31305         * modules/malloc-gnu: New file, copied from modules/malloc.
31306         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
31307         obsolete.
31308         * modules/argp (Depends-on): Update.
31309         * modules/regex (Depends-on): Update.
31310         * doc/posix-functions/malloc.texi: Update.
31311         * NEWS: Mention the change.
31312
31313 2010-08-28  Eric Blake  <eblake@redhat.com>
31314
31315         pread, pwrite: add missing dependency
31316         * modules/pread (Depends-on): Add extensions.
31317         * modules/pwrite (Depends-on): Likewise.
31318
31319 2010-08-28  Bruno Haible  <bruno@clisp.org>
31320
31321         unistr/u*-strchr: Fix tests dependencies.
31322         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
31323         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31324         Reported by Ian Beckwith <ianb@erislabs.net>.
31325
31326 2010-08-28  Bruno Haible  <bruno@clisp.org>
31327
31328         read-file: Don't occupy too much unused memory.
31329         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31330
31331 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31332             Eric Blake  <eblake@redhat.com>
31333             Bruno Haible  <bruno@clisp.org>
31334
31335         read-file: Avoid memory reallocations with regular files.
31336         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31337         (fread_file): With regular files, use the remaining length as the
31338         initial buffer size.  Check against overflow.
31339         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31340         sys_stat.
31341
31342 2010-08-28  Bruno Haible  <bruno@clisp.org>
31343
31344         ftello: Relax license.
31345         * modules/ftello (License): Relax to LGPLv2+.
31346         Reported by Eric Blake.
31347
31348 2010-08-28  Bruno Haible  <bruno@clisp.org>
31349
31350         Avoid relocwrapper link errors due to gnulib replacement functions.
31351         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31352         function.
31353         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31354
31355 2010-08-28  Bruno Haible  <bruno@clisp.org>
31356
31357         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31358         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31359         defined.
31360         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31361         Suggested by Eric Blake.
31362
31363 2010-08-28  Bruno Haible  <bruno@clisp.org>
31364
31365         sys_socket, netdb: Ensure socklen_t gets defined.
31366         * modules/sys_socket (Depends-on): Add socklen.
31367         * modules/netdb (Depends-on): Likewise.
31368         * modules/getaddrinfo (Depends-on): Remove socklen.
31369         * modules/getsockopt (Depends-on): Likewise.
31370         * modules/setsockopt (Depends-on): Likewise.
31371         * tests/test-sys_socket.c: Check that socklen_t is defined.
31372         * tests/test-netdb.c: Likewise.
31373         * m4/socklen.m4: Update comments.
31374         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31375
31376 2010-08-27  Eric Blake  <eblake@redhat.com>
31377
31378         login_tty: add missing dependency
31379         * modules/login_tty (Depends-on): Add pty.
31380
31381 2010-08-26  Eric Blake  <eblake@redhat.com>
31382
31383         lib-symbol-versions: fix m4 quoting
31384         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31385         format for AC_LINK_IFELSE.
31386
31387         glob: fix compile test
31388         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
31389
31390         btowc: fix missing file
31391         * modules/btowc (Files): Also ship locale-fr.m4.
31392
31393         lseek: fix link test
31394         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31395         AC_LINK_IFELSE.
31396
31397         include_next: silence autoconf 2.68 warning
31398         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31399         AC_COMPILE_IFELSE as special.
31400         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31401         autoconf < 2.68.
31402
31403         acl: fix compilation test
31404         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31405         AC_COMPILE_IFELSE.
31406
31407 2010-08-26  Bruno Haible  <bruno@clisp.org>
31408
31409         Modernize AC_TRY_RUN invocations.
31410         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31411         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31412         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31413         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31414         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31415         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31416         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31417         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31418         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31419         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31420         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31421         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31422         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31423         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31424         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31425         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31426         gl_MBRLEN_NUL_RETVAL): Likewise.
31427         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31428         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31429         Likewise.
31430         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31431         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31432         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31433         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31434         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31435         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31436         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31437         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31438         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31439         Likewise.
31440         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31441         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31442         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31443         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31444         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31445         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31446         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31447         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31448         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31449         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31450
31451 2010-08-26  Bruno Haible  <bruno@clisp.org>
31452
31453         Modernize AC_TRY_LINK invocations.
31454         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31455         AC_TRY_LINK.
31456         * m4/argp.m4 (gl_ARGP): Likewise.
31457         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31458         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31459         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31460         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31461         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31462         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31463         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31464         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31465         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31466         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31467         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31468         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31469         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31470         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31471         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31472         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31473         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31474         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31475         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31476         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
31477         Likewise.
31478         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
31479         Likewise.
31480         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
31481         Likewise.
31482         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31483         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
31484         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
31485         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31486         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31487         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31488         * m4/servent.m4 (gl_SERVENT): Likewise.
31489         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31490         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31491         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31492         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31493         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31494         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31495         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31496         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31497         * modules/tsearch-tests (configure.ac): Likewise.
31498
31499 2010-08-26  Bruno Haible  <bruno@clisp.org>
31500
31501         Modernize AC_TRY_COMPILE invocations.
31502         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
31503         AC_TRY_COMPILE.
31504         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
31505         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
31506         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31507         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
31508         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31509         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31510         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31511         * m4/lock.m4 (gl_LOCK): Likewise.
31512         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
31513         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31514         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
31515         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31516         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31517         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
31518         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31519         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
31520         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31521         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31522         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31523         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31524         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
31525         extraneous semicolon.
31526
31527 2010-08-26  Jim Meyering  <meyering@redhat.com>
31528
31529         stat-time: relax license LGPL
31530         * modules/stat-time (License): Change from GPL to LGPL,
31531         with consent from all contributors, for use in libguile.
31532         Requested by Ludovic Courtès.
31533
31534 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
31535
31536         poll: return immediately on POLLHUP.
31537         * lib/poll.c (poll): Always set timeout before wait_timeout is
31538         computed.
31539
31540 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31541
31542         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
31543         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
31544         rmdir ("dir/.//"), unlinkat.
31545
31546 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31547
31548         stdbool: avoid spurious failure with modern xlc
31549         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31550
31551 2010-08-24  Bruno Haible  <bruno@clisp.org>
31552
31553         getloadavg: simplify code
31554         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
31555         gl_have_func. Update comments.
31556
31557 2010-08-24  Eric Blake  <eblake@redhat.com>
31558
31559         getloadavg: don't define SVR4 on cygwin
31560         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
31561         only define SVR4 when -lkvm is required.
31562         Reported by Yaakov Selkowitz.
31563
31564 2010-08-24  Bruno Haible  <bruno@clisp.org>
31565
31566         priv-set: fix comment
31567         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
31568
31569 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31570
31571         priv-set: fix comments
31572         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
31573         to match code, as suggested by David Bartley in:
31574         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
31575
31576 2010-08-23  Eric Blake  <eblake@redhat.com>
31577
31578         stdbool: avoid rejecting clang
31579         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31580         * tests/test-stdbool.c: Enable more tests if using the system
31581         <stdbool.h> instead of the gnulib replacement.
31582         (main): Move xlc bug test to a runtime test for all compilers.
31583         Reported by Anders Kaseorg.
31584
31585         argz: fix shell quoting issue
31586         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
31587         Reported by Charles Wilson.
31588
31589 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
31590             Erik Faye-Lund <kusmabite@gmail.com>
31591
31592         poll, select: handle ERROR_BROKEN_PIPE.
31593         * lib/poll.c (win32_compute_revents): Return POLLHUP when
31594         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31595         * lib/select.c (win32_compute_revents): Do not mark a pipe
31596         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31597
31598 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
31599
31600         fts: allow compilation with C++
31601         * lib/fts_.h: Specify extern "C" linkage with C++.
31602
31603 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31604
31605         Fix gnulib-tool sed script de-commentation for AIX sed.
31606         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
31607         sed.
31608
31609 2010-08-17  Eric Blake  <eblake@redhat.com>
31610
31611         test-stddef: test for (some) offsetof bugs
31612         * tests/test-stddef.c: Enhance test to ensure correct type of
31613         offsetof.
31614         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
31615         that we are not fixing at this time.
31616
31617 2010-08-15  Bruno Haible  <bruno@clisp.org>
31618
31619         stpncpy: Allow stpncpy to be defined as a macro.
31620         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
31621         if it's already correctly declared.
31622         * lib/string.in.h (stpncpy): Undefine before redefining.
31623         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
31624
31625 2010-08-14  Bruno Haible  <bruno@clisp.org>
31626
31627         Rename module 'memxfrm' to 'amemxfrm'.
31628         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
31629         (amemxfrm): Renamed from memxfrm.
31630         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
31631         (amemxfrm): Renamed from memxfrm.
31632         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
31633         * NEWS: Mention the change.
31634         * MODULES.html.sh (String handling <string.h>): Update.
31635         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
31636         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
31637         * lib/unicase/u16-casexfrm.c: Likewise.
31638         * lib/unicase/u32-casexfrm.c: Likewise.
31639         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
31640         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
31641         * lib/uninorm/u16-normxfrm.c: Likewise.
31642         * lib/uninorm/u32-normxfrm.c: Likewise.
31643         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
31644         memxfrm.
31645         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
31646         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
31647         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
31648         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
31649         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
31650         Suggested by Paul Eggert.
31651
31652 2010-08-14  Bruno Haible  <bruno@clisp.org>
31653
31654         Tests for module 'astrxfrm'.
31655         * modules/astrxfrm-tests: New file.
31656         * tests/test-astrxfrm.c: New file.
31657
31658         New module 'astrxfrm'.
31659         * lib/astrxfrm.h: New file.
31660         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
31661         * modules/astrxfrm: New file.
31662
31663 2010-08-14  Reuben Thomas <rrt@sc3d.org>
31664
31665         regex: Tweak doc.
31666         * doc/regex.texi (Overview): Don't mention regex.c.
31667         (GNU Regular Expression Compiling): Likewise.
31668         (Match-end-of-line Operator): Mention 'not_eol'.
31669
31670 2010-08-14  Brian Gough  <bjg@gnu.org>
31671             Bruno Haible  <bruno@clisp.org>
31672
31673         git-merge-changelog: add doc relating to use with bzr and hg.
31674         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
31675
31676 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
31677
31678         pthread: fix pthread.h creation for srcdir != builddir
31679         * modules/pthread (Makefile.am): Fix the rule to work also in a
31680         non-srcdir build.
31681
31682 2010-08-13  Karl Berry  <karl@gnu.org>
31683
31684         * doc/regex.texi (Predefined Syntaxes): @smallexample.
31685         * doc/posix-*/*: force line break before @url of POSIX
31686         specifications.
31687         Suggested by Werner Lemberg.
31688
31689 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31690
31691         strtod: fix const diagnostic
31692         * lib/strtod.c (strtod): Don't assign const char * to char *,
31693         as this elicits a warning from GCC when warnings are enabled.
31694
31695 2010-08-10  Pádraig Brady <P@draigbrady.com>
31696         and Eric Blake  <eblake@redhat.com>
31697
31698         copy-acl: ignore ENOTSUP on HP-UX
31699         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
31700         so that it is available for HP-UX.
31701         * lib/copy-acl.c (qcopy_acl): Use it.
31702         Reported by Patrick M. Callahan.
31703
31704 2010-08-10  Eric Blake  <eblake@redhat.com>
31705
31706         open, chown: relax license
31707         * modules/open (License): Change to LGPLv2+, with consent by all
31708         authors, for use in augeas.
31709         * modules/chown (License): Likewise.
31710         * modules/lchown (Likewise): Likewise.
31711         Requested by Adam Stokes.
31712
31713 2010-08-09  Karl Berry  <karl@gnu.org>
31714
31715         * build-aux/ar-lib: new file, import from Automake.
31716         * config/srclist.txt: autocheck for updates.
31717
31718 2010-08-09  Eric Blake  <eblake@redhat.com>
31719
31720         readlinkat: adjust client modules
31721         * modules/areadlinkat (Depends-on): Use readlinkat, not
31722         symlinkat.
31723         * modules/areadlinkat-with-size (Depends-on): Likewise.
31724
31725         mknod: be more vocal about danger of running tests as root
31726         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
31727         root, since that is just asking for problems.
31728         Suggested by Bruno Haible, based on a report by Rainer Tammer.
31729
31730         readlinkat: split into its own module
31731         * modules/symlinkat: Split readlinkat...
31732         * modules/readlinkat: ...into separate module.
31733         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
31734         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
31735         * lib/symlinkat.c (readlinkat): Move...
31736         * lib/readlinkat.c: ...into new file.
31737         * modules/symlinkat-tests: Split readlinkat test...
31738         * modules/readlinkat-tests: ...into separate module.
31739         * tests/test-symlinkat.c: Split...
31740         * tests/test-readlinkat.c: ...into new file.
31741         * NEWS: Document the split.
31742         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31743         * lib/unistd.in.h (readlinkat): Likewise.
31744         Suggested by Bruno Haible.
31745
31746 2010-08-08  Bruno Haible  <bruno@clisp.org>
31747
31748         memxfrm: Speed up.
31749         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
31750         that usually only one call to strxfrm is necessary for each string
31751         part.
31752         Reported by Paul Eggert <eggert@cs.ucla.edu>.
31753
31754 2010-08-07  Karl Berry  <karl@gnu.org>
31755
31756         * doc/posix-headers/limits.texi,
31757         * doc/posix-functions/malloc.texi,
31758         * doc/posix-functions/strsignal.texi: missing @item.
31759         * doc/ld-version-script.texi: spurious leading i.
31760         * doc/regex.texi (Interval Operators): no commas inside @var.
31761
31762 2010-08-01  Bruno Haible  <bruno@clisp.org>
31763
31764         Integrate the regex documentation.
31765         * doc/gnulib.texi: Define 'cn' index.
31766         (Regular expressions): New a chapter that includes regex.texi and
31767         regexprops-generic.texi.
31768         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
31769         syntax.
31770
31771         Whitespace cleanup.
31772         * doc/regex.texi: Remove trailing spaces.
31773
31774         Add regex documentation.
31775         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
31776         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
31777         Written by Kathy A. Hargreaves and Karl Berry.
31778
31779 2010-08-01  Bruno Haible  <bruno@clisp.org>
31780
31781         link: Update documentation.
31782         * doc/posix-functions/link.texi: Update regarding Solaris.
31783
31784 2010-07-31  Bruno Haible  <bruno@clisp.org>
31785
31786         Update modules list.
31787         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
31788         (String handling <string.h>): Add memcmp2, memxfrm.
31789         (Container data structures): Add xlist, xsublist, xoset.
31790         (Core language properties): Add alignof, unused-parameter.
31791         (Process control, Numeric conversion functions <stdlib.h>): Renamed
31792         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
31793         (Unibyte characters <ctype.h>): New section.
31794         (String handling <string.h>): New section.
31795         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
31796         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
31797         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
31798         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
31799         tan, tanh, tanl, y0, y1, yn.
31800         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
31801         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
31802         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
31803         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
31804         unlockpt, vdprintf, vdprintf-posix.
31805         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
31806         (File system functions): Add concat-filename, sys_file, sys_ioctl,
31807         xconcat-filename.
31808         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
31809         getdtablesize, pipe2, pipe2-safer.
31810         (Security): New section.
31811         (Networking functions): Add accept4.
31812         (Signal handling): Add sigpipe.
31813         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
31814         mbmemcasecoll.
31815         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
31816         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
31817         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
31818         pipe-filter-ii.
31819         (Misc): Add argp-version-etc, login_tty, parse-duration.
31820
31821 2010-07-31  Bruno Haible  <bruno@clisp.org>
31822
31823         Improve doc in MODULES.html.
31824         * modules/linkat (Description): Add the word "function".
31825         * modules/mkfifo (Description): Likewise.
31826         * modules/mknod (Description): Likewise.
31827         * modules/remove (Description): Likewise.
31828         * modules/renameat (Description): Likewise.
31829         * modules/stat (Description): Likewise.
31830         * modules/symlink (Description): Likewise.
31831         * modules/unlink (Description): Likewise.
31832
31833 2010-07-31  Bruno Haible  <bruno@clisp.org>
31834
31835         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
31836         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
31837         option --enable/disable-c++ instead of --enable/disable-cxx.
31838         * NEWS: Mention the change.
31839
31840 2010-07-31  Bruno Haible  <bruno@clisp.org>
31841
31842         readlink, areadlink: Relax test a bit.
31843         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
31844         alternative to ENOTDIR.
31845         * tests/test-areadlink.h (test_areadlink): Likewise.
31846         Reported by Rainer Tammer.
31847
31848 2010-07-31  Bruno Haible  <bruno@clisp.org>
31849
31850         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
31851         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
31852         character, perform the search using U_STRCHR.
31853         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
31854         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
31855         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
31856         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
31857         Suggested by Paolo Bonzini.
31858
31859 2010-07-31  Bruno Haible  <bruno@clisp.org>
31860
31861         unistr/u*-strstr: Fix dependencies.
31862         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
31863         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
31864         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
31865
31866 2010-07-31  Bruno Haible  <bruno@clisp.org>
31867
31868         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
31869         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
31870         the beginning of the loop.
31871         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
31872         cases in 'switch' statement.
31873
31874         unistr/u8-strchr: Fix several bugs.
31875         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
31876         the string. When not found, return NULL, not a pointer near the end.
31877
31878         More tests for unistr/u8-strchr.
31879         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
31880         that the function does not read past the first occurrence of the byte
31881         being searched.
31882         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
31883         * tests/unistr/test-u16-strchr.c (main): New function.
31884         * tests/unistr/test-u32-strchr.c (main): New function.
31885
31886 2010-07-31  Bruno Haible  <bruno@clisp.org>
31887
31888         posix-modules: Ignore backup files of documentation files.
31889         * posix-modules: grep only through files named *.texi.
31890
31891 2010-07-31  Bruno Haible  <bruno@clisp.org>
31892
31893         symlinkat: Fix documentation.
31894         * doc/posix-functions/readlinkat.texi: Fix module name.
31895
31896 2010-07-31  Bruno Haible  <bruno@clisp.org>
31897
31898         fchownat: Replace also when chown has the trailing slash bug.
31899         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
31900         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
31901         introduced on 2010-04-10.
31902         Reported by Rainer Tammer.
31903
31904 2010-07-31  Bruno Haible  <bruno@clisp.org>
31905
31906         linkat: Work around AIX 7.1 bug.
31907         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
31908         whether linkat handles trailing slash correctly. If not, replace linkat
31909         and define LINKAT_TRAILING_SLASH_BUG.
31910         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
31911         check whether (fd1,file1) points to a directory if file1 or file2 ends
31912         in a slash. Code taken from lib/link.c.
31913         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
31914         Reported by Rainer Tammer.
31915
31916 2010-07-31  Bruno Haible  <bruno@clisp.org>
31917
31918         Correctly determine whether pow is available in libc on AIX 7 with xlc.
31919         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
31920         This disables an xlc optimization that was causing wrong test results.
31921         Reported by Rainer Tammer.
31922
31923 2010-07-31  Bruno Haible  <bruno@clisp.org>
31924
31925         iconv: Work around AIX 6.1..7.1 bug.
31926         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
31927         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
31928         cross-compiling, guess no on all versions of AIX.
31929         Reported by Rainer Tammer.
31930
31931 2010-07-31  Bruno Haible  <bruno@clisp.org>
31932
31933         readlink: Relax test a bit.
31934         * tests/test-readlink.h (test_readlink): Allow different errno value
31935         when readlink is called with a file name that ends in / and refers to
31936         a file.
31937         Suggested by Eric Blake.
31938         Reported by Rainer Tammer.
31939
31940 2010-07-31  Bruno Haible  <bruno@clisp.org>
31941
31942         copysign: Does not require -lm on glibc systems.
31943         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
31944         gl_COMMON_DOUBLE_MATHFUNC.
31945         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
31946
31947 2010-07-31  Bruno Haible  <bruno@clisp.org>
31948
31949         duplocale: Work around AIX 7.1 bug.
31950         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
31951         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
31952         * lib/duplocale.c (rpl_duplocale): Update comment.
31953         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
31954         Reported by Rainer Tammer.
31955
31956 2010-07-30  Bruno Haible  <bruno@clisp.org>
31957
31958         dirfd: Avoid link error on AIX 7.1.
31959         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
31960         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
31961         exist, set REPLACE_DIRFD.
31962         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
31963         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
31964         * doc/posix-functions/dirfd.texi: Update.
31965         Reported by Rainer Tammer.
31966
31967 2010-07-30  Eric Blake  <eblake@redhat.com>
31968
31969         strtod: next round of AIX fixes
31970         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
31971         exponent.
31972         * tests/test-strtod.c (main): Enhance tests.
31973         * doc/posix-functions/strtod.texi (strtod): Document next bug.
31974         Reported by Rainer Tammer.
31975
31976         futimens: fix configure check
31977         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
31978         Reported by Bruno Haible.
31979
31980 2010-07-30  Bruno Haible  <bruno@clisp.org>
31981
31982         getline: Update regarding AIX.
31983         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
31984         Reported by Rainer Tammer.
31985
31986 2010-07-30  Bruno Haible  <bruno@clisp.org>
31987
31988         wcwidth: Drop replacement on AIX 7.
31989         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
31990         AIX 7.
31991         Reported by Rainer Tammer.
31992
31993 2010-07-30  Bruno Haible  <bruno@clisp.org>
31994
31995         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
31996         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
31997         a 'char *'.
31998         Reported by Rainer Tammer.
31999
32000 2010-07-30  Bruno Haible  <bruno@clisp.org>
32001
32002         unlink: Update regarding AIX.
32003         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
32004         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
32005         Reported by Rainer Tammer.
32006
32007 2010-07-30  Bruno Haible  <bruno@clisp.org>
32008
32009         symlink: Update regarding AIX.
32010         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
32011         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
32012         Reported by Rainer Tammer.
32013
32014 2010-07-30  Bruno Haible  <bruno@clisp.org>
32015
32016         strndup: Update regarding AIX.
32017         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
32018         AIX 7.
32019         Reported by Rainer Tammer.
32020
32021 2010-07-30  Bruno Haible  <bruno@clisp.org>
32022
32023         stat: Update regarding AIX.
32024         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
32025         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
32026         Reported by Rainer Tammer.
32027
32028 2010-07-30  Bruno Haible  <bruno@clisp.org>
32029
32030         truncl: Fix autoconf test.
32031         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
32032         whether truncl works.
32033         Reported by Rainer Tammer.
32034
32035 2010-07-30  Bruno Haible  <bruno@clisp.org>
32036
32037         round: Update regarding AIX.
32038         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
32039         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
32040         Reported by Rainer Tammer.
32041
32042 2010-07-30  Bruno Haible  <bruno@clisp.org>
32043
32044         rename: Update regarding AIX.
32045         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
32046         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
32047         Reported by Rainer Tammer.
32048
32049 2010-07-30  Bruno Haible  <bruno@clisp.org>
32050
32051         printf.m4: Update regarding AIX.
32052         * m4/printf.m4: Update comments regarding AIX.
32053         Reported by Rainer Tammer.
32054
32055 2010-07-30  Bruno Haible  <bruno@clisp.org>
32056
32057         iconv: Update regarding AIX.
32058         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
32059         AIX 7.
32060         Reported by Rainer Tammer.
32061
32062 2010-07-30  Bruno Haible  <bruno@clisp.org>
32063
32064         getopt: Update regarding AIX.
32065         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
32066         no on AIX.
32067         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
32068         Reported by Rainer Tammer.
32069
32070 2010-07-30  Bruno Haible  <bruno@clisp.org>
32071
32072         ldexpl; Update regarding AIX.
32073         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
32074         on AIX 7.
32075         Reported by Rainer Tammer.
32076
32077 2010-07-30  Bruno Haible  <bruno@clisp.org>
32078
32079         frexpl: Update regarding AIX.
32080         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
32081         on AIX 7.
32082         Reported by Rainer Tammer.
32083
32084 2010-07-30  Bruno Haible  <bruno@clisp.org>
32085
32086         open, fopen: Update regarding AIX.
32087         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
32088         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
32089         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
32090         * doc/posix-functions/fopen.texi: Likewise.
32091         Reported by Rainer Tammer.
32092
32093 2010-07-30  Bruno Haible  <bruno@clisp.org>
32094
32095         chown: Update doc regarding AIX.
32096         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
32097         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
32098         Reported by Rainer Tammer.
32099
32100 2010-07-30  Eric Blake  <eblake@redhat.com>
32101
32102         strtod: fix bug in replacement function on AIX
32103         * lib/strtod.c (strtod): Special case broken "0x" parse in
32104         underlying strtod.
32105         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
32106         * doc/posix-functions/strtod.texi (strtod): Likewise.
32107         Reported by Rainer Tammer.
32108
32109 2010-07-30  Bruno Haible  <bruno@clisp.org>
32110
32111         mbrlen: Fix cross-compilation guess for AIX.
32112         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
32113         guess. Leftover from 2008-12-22.
32114
32115 2010-07-30  Bruno Haible  <bruno@clisp.org>
32116
32117         mbrtowc: Fix cross-compilation guess for AIX.
32118         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
32119         guess. Leftover from 2008-12-21.
32120
32121 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
32122
32123         init.sh: work around trap limitation of some shells
32124         * tests/init.sh (setup_): Move exit trap outside of shell function.
32125
32126 2010-07-29  Eric Blake  <eblake@redhat.com>
32127
32128         strtod: aid debugging
32129         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
32130         understanding why strtod is rejected.
32131
32132 2010-07-28  Bruno Haible  <bruno@clisp.org>
32133
32134         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
32135         * lib/unistr/u8-chr.c: Include <string.h>.
32136         * tests/unistr/test-u8-chr.c: Likewise.
32137         * tests/unistr/test-u16-chr.c: Likewise.
32138         * tests/unistr/test-u32-chr.c: Likewise.
32139         * tests/unistr/test-u8-strchr.c: Likewise.
32140         * tests/unistr/test-u16-strchr.c: Likewise.
32141         * tests/unistr/test-u32-strchr.c: Likewise.
32142         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
32143         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
32144         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
32145         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
32146
32147 2010-07-28  Bruno Haible  <bruno@clisp.org>
32148
32149         Use spaces for indentation, not tabs.
32150         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32151
32152 2010-07-27  Bruno Haible  <bruno@clisp.org>
32153
32154         mbspcasecmp: Fix function specification.
32155         * lib/string.in.h (mbspcasecmp): Fix specification comment.
32156         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
32157         Reported by Eric Blake <eblake@redhat.com>.
32158
32159 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
32160
32161         timespec: use cast and not conditional, as truncation isn't possible
32162         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
32163         instead of a conditional.  Comment about the situation in more detail.
32164         This undoes most of the 2009-10-29 patch.
32165
32166 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
32167
32168         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
32169         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
32170         * lib/unistr/u8-strchr.c: Likewise.
32171         * modules/unistr/u8-chr: Depend on memchr.
32172
32173         unistr/u*-strchr: add tests
32174         * modules/unistr/u8-strchr-tests: New file.
32175         * modules/unistr/u16-strchr-tests: New file.
32176         * modules/unistr/u32-strchr-tests: New file.
32177         * tests/unistr/test-strchr.h: New file.
32178         * tests/unistr/test-u8-strchr.c: New file.
32179         * tests/unistr/test-u16-strchr.c: New file.
32180         * tests/unistr/test-u32-strchr.c: New file.
32181
32182         unistr/u*-chr: test multibyte sequences more
32183         * tests/unistr/test-chr.h: Do complete testing of the characters in the
32184         test vector.
32185         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
32186         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
32187         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
32188
32189         unistr/u*-chr: test multibyte sequences
32190         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
32191
32192         unistr/u*-chr: prepare for multibyte tests
32193         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
32194         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
32195         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
32196         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
32197         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
32198         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
32199
32200 2010-07-18  Bruno Haible  <bruno@clisp.org>
32201
32202         unistr/u8-strchr: Optimize non-ASCII argument case.
32203         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
32204         because the first byte often matches anyway.
32205         Reported by Pádraig Brady <P@draigbrady.com>.
32206
32207 2010-07-15  Karl Berry  <karl@gnu.org>
32208
32209         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
32210
32211 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
32212
32213         getcwd: on Solaris, work better if ancestors are inaccessible
32214         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
32215         buffer and size, try again with a large buffer.  This works better
32216         on Solaris, since its getcwd succeeds even if the path to the root
32217         is inaccessible, and this is helpful in common cases such as .zfs
32218         hidden directories.  Problem reported by J Chapman Flack in
32219         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
32220         Use system getcwd if it's declared, not merely if it's partly
32221         working; use the partly-working test only to avoid needless effort
32222         if the system getcwd fails.
32223         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
32224         comment that was already obsolete and is now even more obsolete.
32225         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
32226         now might call strdup.
32227
32228 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
32229
32230         pthread: Add enough so that coreutils/src/sort.c compiles.
32231         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
32232         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
32233         gnulib. Include <sched.h> and <time.h>, as per POSIX.
32234         Include <sys/types.h>, in case it defines pthread_t.
32235         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
32236         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
32237         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
32238         (pthread_rwlockattr_t, pthread_spinlock_t):
32239         New typedefs, if HAVE_PTHREAD_T is not defined.
32240         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
32241         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
32242         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
32243         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
32244         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
32245         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
32246         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
32247         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
32248         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
32249         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
32250         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
32251         New macros.
32252         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
32253         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
32254         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
32255         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
32256         (pthread_spin_unlock): New dummy functions.
32257         (pthread_create): Return EAGAIN; don't set errno.
32258         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
32259         require AC_C_INLINE.
32260         * modules/pthread (Depends-on): Add sched, time.
32261         (pthread.h): Use AM_V_GEN.
32262
32263 2010-07-13  Bruno Haible  <bruno@clisp.org>
32264
32265         striconveh: Don't malloc memory if the result buffer is sufficient.
32266         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
32267         buffer if its size is sufficient.
32268         Reported by Ludovic Courtès <ludo@gnu.org>.
32269
32270 2010-07-13  Bruno Haible  <bruno@clisp.org>
32271
32272         strtod: Add safety check.
32273         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
32274
32275 2010-07-12  Bruno Haible  <bruno@clisp.org>
32276
32277         Unify tests that set gl_cv_func_ldexpl_no_libm.
32278         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
32279         gl_FUNC_LDEXPL.
32280         (gl_FUNC_LDEXPL): Invoke it.
32281         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32282
32283 2010-07-12  Bruno Haible  <bruno@clisp.org>
32284
32285         Unify tests that set gl_cv_func_ldexp_no_libm.
32286         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
32287         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
32288         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
32289         (configure.ac): Simply invoke gl_FUNC_LDEXP.
32290         * modules/strtod (Files): Add m4/ldexp.m4.
32291
32292 2010-07-12  Bruno Haible  <bruno@clisp.org>
32293
32294         Unify tests that set gl_cv_func_frexpl_no_libm.
32295         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
32296         gl_FUNC_FREXPL_NO_LIBM.
32297         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
32298         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32299
32300 2010-07-12  Bruno Haible  <bruno@clisp.org>
32301
32302         Unify tests that set gl_cv_func_frexp_no_libm.
32303         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
32304         gl_FUNC_FREXP_NO_LIBM.
32305         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
32306         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32307
32308 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32309
32310         memcoll: clarify sizes versus lengths, document better, and tweak perf
32311         * lib/memcoll.c (strcoll_loop, memcoll0):
32312         Improve quality of descriptive comments.  Name variables
32313         consistently as to whether they are lengths (which do not include
32314         terminating null) versus sizes (which do).
32315         * lib/xmemcoll.c (xmemcoll0): Likewise.
32316         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
32317         returned when s1size == 0; this is easier to compile and saves
32318         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
32319
32320 2010-07-12  Bruno Haible  <bruno@clisp.org>
32321
32322         Tests for module '_Exit'.
32323         * modules/_Exit-tests: New file.
32324         * tests/test-_Exit.sh: New file.
32325         * tests/test-_Exit.c: New file.
32326
32327         New module '_Exit'.
32328         * lib/stdlib.in.h (__attribute__): New macro.
32329         (_Exit): New declaration.
32330         * lib/_Exit.c: New file.
32331         * m4/_Exit.m4: New file.
32332         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32333         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32334         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32335         * modules/_Exit: New file.
32336         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32337         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32338
32339 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32340
32341         strtod: make it more-accurate typically, and don't require libm
32342         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32343         Include limits.h.  Don't include string.h.
32344         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32345         (locale_isspace): New function, so that no casts are needed to
32346         check whether *s is a space.
32347         (ldexp): Provide an unused dummy if not available.
32348         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32349         (strtod): Use them.  This implementation prefers to use the
32350         underlying strtod if available, falling back on our own code
32351         only to fix known bugs.  This is more likely to produce an
32352         accurate result.  Also, it avoids the use of libm functions.
32353         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32354         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32355         was absent, but it caused a test failure with coreutils.
32356         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32357         with libm.
32358         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32359         * modules/strtod-tests (Makefile.am): Likewise.
32360
32361 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32362             Bruno Haible  <bruno@clisp.org>
32363
32364         unistr/u8-strchr: Optimize ASCII argument case.
32365         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32366
32367 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32368
32369         (x)memcoll: minor tweaks
32370         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32371         is after the type that it qualifies.
32372         (memcoll0): Likewise.
32373         * lib/memcoll.h (memcoll0): Likewise.
32374         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32375         * lib/xmemcoll.h (xmemcoll0): Likewise.
32376         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32377         differs from memcoll in that the NUL byte is part of the argument.
32378         Omit the abort-checks, as performance is a real issue here.  Plus,
32379         the checks were wrong anyway (an off-by-one error).  Omit local
32380         variable 'diff', as it's a bit clearer that way.
32381         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32382         no longer needed.
32383
32384 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32385
32386         (x)memcoll: speedup when input is known to be NUL delimited
32387         * lib/memcoll.c: Include stdlib.
32388         (memcoll0): New function.
32389         (strcoll_loop): New function, refactored for use in both memcoll
32390         and memcoll0.
32391         * lib/memcoll.h (memcoll0): Add prototype.
32392         * lib/xmemcoll.c (xmemcoll0): New function.
32393         (collate_error): New function, refactored for use in both xmemcoll
32394         and xmemcoll0.
32395         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32396         * m4/memcoll.m4: add inline invocation.
32397
32398 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32399
32400         * build-aux/bootstrap: Remove any local translations
32401         from the translation project synchronization directory,
32402         so that local only translations are not distributed.
32403
32404 2010-07-04  Bruno Haible  <bruno@clisp.org>
32405
32406         fsusage: Clarify which code applies to which platforms.
32407         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32408         platform.
32409         * lib/fsusage.c (get_fs_usage): Likewise.
32410
32411 2010-07-04  Bruno Haible  <bruno@clisp.org>
32412
32413         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32414         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32415         Reported by Martin Lambers <marlam@marlam.de>.
32416
32417 2010-07-04  Jim Meyering  <meyering@redhat.com>
32418
32419         hash: once again explicitly disallow insertion of NULL
32420         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32421         inserting a NULL pointer cannot work with these functions.
32422         Add a comment with details.
32423         This reverts part of the 2010-07-01 commit, 5bef1a35
32424         "hash: extend module to deal with non-pointer keys".
32425
32426 2010-07-01  Bruno Haible  <bruno@clisp.org>
32427
32428         stdbool: Update doc.
32429         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32430         Info from Christian Weisgerber <naddy@mips.inka.de>.
32431
32432 2010-07-01  Jim Meyering  <meyering@redhat.com>
32433
32434         hash: extend module to deal with non-pointer keys
32435         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32436         but that allows insertion of non-pointer entries.
32437         Do not disallow an ENTRY value of NULL.
32438         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32439         * lib/hash.h (hash_insert0): Declare.
32440
32441 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32442
32443         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32444         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32445         not present (i.e. with autoconf 2.59 and when using gettextize, not
32446         gnulib), require AC_GNU_SOURCE instead.
32447
32448 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32449
32450         idpriv-drop: Fix tests.
32451         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32452         not to the test-idpriv-droptemp program.
32453
32454 2010-06-29  Bruno Haible  <bruno@clisp.org>
32455
32456         string: Fix syntax error with g++ 2.96.
32457         * lib/string.in.h (__pure__): Remove definition.
32458         (_GL_ATTRIBUTE_PURE): New macro.
32459         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32460         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32461         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32462
32463 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32464
32465         unitypes: Fix bug introduced on 2010-05-18.
32466         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32467
32468 2010-06-22  Eric Blake  <eblake@redhat.com>
32469
32470         memmem: slight optimization
32471         * lib/str-two-way.h (critical_factorization): Update comments.
32472         Reduce work during factorization phase.
32473         Reported by Carlos Bueno <carlos@bueno.org>.
32474
32475 2010-06-21  Bruno Haible  <bruno@clisp.org>
32476
32477         Fix HAVE_CALLOC_POSIX misnomer.
32478         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
32479         !HAVE_CALLOC_POSIX.
32480         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
32481         HAVE_CALLOC_POSIX.
32482         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
32483         instead of HAVE_CALLOC_POSIX.
32484         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
32485         HAVE_CALLOC_POSIX.
32486
32487         Use modern idiom for calloc() replacement.
32488         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
32489         AC_FUNC_CALLOC.
32490         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
32491         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
32492         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32493         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
32494         (gl_REPLACE_CALLOC): New macro.
32495
32496 2010-06-21  Bruno Haible  <bruno@clisp.org>
32497
32498         Fix HAVE_REALLOC_POSIX misnomer.
32499         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
32500         !HAVE_REALLOC_POSIX.
32501         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
32502         HAVE_REALLOC_POSIX.
32503         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
32504         instead of HAVE_REALLOC_POSIX.
32505         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
32506         HAVE_REALLOC_POSIX.
32507
32508         Use modern idiom for realloc() replacement.
32509         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
32510         AC_FUNC_REALLOC.
32511         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
32512         Autoconf's AC_FUNC_REALLOC.
32513         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32514         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
32515         (gl_REPLACE_REALLOC): New macro.
32516         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32517
32518 2010-06-21  Bruno Haible  <bruno@clisp.org>
32519
32520         Fix HAVE_MALLOC_POSIX misnomer.
32521         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
32522         !HAVE_MALLOC_POSIX.
32523         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
32524         HAVE_MALLOC_POSIX.
32525         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
32526         instead of HAVE_MALLOC_POSIX.
32527         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
32528         HAVE_MALLOC_POSIX.
32529
32530         Use modern idiom for malloc() replacement.
32531         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
32532         AC_FUNC_MALLOC.
32533         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
32534         Autoconf's AC_FUNC_MALLOC.
32535         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32536         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
32537         (gl_REPLACE_MALLOC): New macro.
32538         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32539
32540 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
32541
32542         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
32543         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
32544         This macro takes 3 arguments, not 4.
32545
32546 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
32547
32548         ipv6: fix detection under mingw
32549         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
32550         in6_addr.
32551
32552 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
32553
32554         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
32555         that strtod() works when cross-compiling to a glibc version known
32556         to work.
32557
32558 2010-06-15  Bruno Haible  <bruno@clisp.org>
32559
32560         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
32561
32562 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
32563
32564         select: Correct timeout.
32565         * lib/select.c (rpl_select): Compute wait_timeout correctly.
32566
32567 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32568
32569         git-version-gen: init shell var to avoid env var influence
32570         * build-aux/git-version-gen (v): Init shell var to empty.
32571
32572 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32573
32574         priv-set: Don't assume that priv.h exists merely because getppriv does.
32575         See Jan Andersen's bug report about AIX 5L in
32576         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
32577         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
32578         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
32579         * lib/priv-set.h: Likewise.
32580         * tests/test-priv-set.c: Likewise.
32581
32582 2010-06-13  Bruno Haible  <bruno@clisp.org>
32583
32584         relocatable: Make it easier to test whether to install wrappers.
32585         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
32586         RELOCATABLE_VIA_WRAPPER.
32587
32588 2010-06-13  Bruno Haible  <bruno@clisp.org>
32589
32590         gnulib-tool: Display specified modules and dependencies differently.
32591         * gnulib-tool (func_show_module_list): New function.
32592         (func_import, func_create_testdir): Invoke it.
32593         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32594
32595 2010-06-13  Bruno Haible  <bruno@clisp.org>
32596
32597         gnulib-tool: Align code of func_import and func_create_testdir.
32598         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
32599         specified_modules.
32600
32601 2010-06-12  Jim Meyering  <meyering@redhat.com>
32602
32603         test-inttostr: avoid spurious failure on Solaris 9
32604         * tests/test-inttostr.c (main): Skip the test when snprintf fails
32605         to accept "%ju".  Reported by Bruno Haible.
32606
32607 2010-06-11  Jim Meyering  <meyering@redhat.com>
32608
32609         test-sys_socket: mark variables as used more readably
32610         * tests/test-sys_socket.c (main): Mark otherwise unused variables
32611         as "used" explicitly via (void) statement casts.  This is more
32612         readable than using them in an artificial return expression.
32613         Suggestion from Bruno Haible.
32614
32615 2010-06-11  Bruno Haible  <bruno@clisp.org>
32616
32617         Avoid some more warnings from "gcc -Wwrite-strings".
32618         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
32619         to 'const char *'.
32620         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
32621         * tests/test-c-strcasestr.c (main): Likewise.
32622         * tests/test-mbscasestr1.c (main): Likewise.
32623         * tests/test-mbscasestr2.c (main): Likewise.
32624         * tests/test-memmem.c (main): Likewise.
32625         * tests/test-strstr.c (main): Likewise.
32626         * tests/test-strcasestr.c (main): Likewise.
32627
32628 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32629
32630         init.sh: change framework_failure_ to fail with status 99, not 1
32631         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
32632         automake's parallel-tests rule that this is an unexpected failure,
32633         even if the test is listed in XFAIL_TESTS.
32634
32635 2010-06-11  Jim Meyering  <meyering@redhat.com>
32636
32637         test-inttostr: avoid warnings about 4-6KB literal strings
32638         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
32639         Include "macros.h", for its definition of ASSERT.
32640         (CK): s/assert/ASSERT/
32641         * modules/inttostr-tests (Files): Add macros.h.
32642
32643         init.sh: don't use $ME_ or skip_ before they are defined
32644         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
32645         their first uses.  Also hoist their companions: warn_, fail_,
32646         framework_failure_, $stderr_fileno.  Prompted by a patch from
32647         Stefano Lattarini.
32648
32649         test-sys_socket: avoid set-but-not-used warnings from gcc
32650         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
32651         avoid warning about set-but-not-used variables.
32652
32653         test-xvasprintf: avoid 'const' discard warnings
32654         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
32655         "const" when assigning from literal strings.
32656         (test_xasprintf): Add "void" in function argument list to placate
32657         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
32658
32659         tests: avoid compilation warnings in argmatch and exclude tests...
32660         in packages that define ARGMATCH_DIE_DECL, like coreutils.
32661         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
32662         Since it always exits, declare with the "noreturn" attribute.
32663         * tests/test-argmatch.c: Likewise.
32664
32665         tests: avoid 'const' discard warnings in mbsstr tests
32666         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
32667         * tests/test-mbsstr2.c (main): Likewise.
32668
32669         test-verify: avoid warning from gcc's -Wmissing-declarations
32670         * tests/test-verify.c (function): Declare to be static.
32671
32672         test-inttostr.c: include <string.h> for use of strcmp
32673         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
32674
32675         test-linkat: avoid failed assertion on "other" architectures
32676         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
32677         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
32678         sparc: https://bugs.launchpad.net/bugs/591968
32679
32680 2010-06-11  Jim Meyering  <meyering@redhat.com>
32681
32682         printf.m4: avoid autoconf's "Expanded Before Required" warning
32683         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
32684         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
32685         autoconf warning.
32686
32687 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
32688
32689         Replacement header templates are now named with ".in", not "_".
32690         * doc/gnulib-intro.texi: Correct.
32691
32692 2010-06-10  Jim Meyering  <meyering@redhat.com>
32693
32694         inttostr-tests: depend on snprintf, not snprintf-posix
32695         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
32696         snprintf-posix, to avoid this aclocal failure:
32697           missing file gnulib-tests/vasnprintf.c
32698           configure.ac:45: error: expected source file, required through \
32699           AC_LIBSOURCES, not found
32700
32701 2010-06-10  Jim Meyering  <meyering@redhat.com>
32702
32703         inttostr: add a new function, inttostr, and tests
32704         The namesake function was not available.  The existence of the
32705         template file, inttostr.c makes its addition nontrivial.
32706         * lib/anytostr.c: Rename from inttostr.c.
32707         (anytostr): Rename from inttostr.
32708         * lib/inttostr.c: New file.
32709         * modules/inttostr (Files): Add anytostr.c.
32710         (Makefile.am): Set lib_SOURCES instead of ...
32711         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
32712         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
32713         * lib/offtostr.c: Likewise.
32714         * lib/uinttostr.c: Likewise.
32715         * lib/umaxtostr.c: Likewise.
32716         * modules/inttostr-tests: New file.
32717         * tests/test-inttostr.c: New file.  Test these functions.
32718
32719 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
32720             Bruno Haible  <bruno@clisp.org>
32721
32722         Add "Extending Gnulib" chapter to manual.
32723         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
32724         chapter.
32725         (Extending Gnulib): New chapter.
32726         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
32727         chapter.
32728
32729 2010-06-09  Bruno Haible  <bruno@clisp.org>
32730
32731         Avoid relocwrapper link errors due to gnulib replacement functions.
32732         * lib/areadlink.c: Use the system's malloc, realloc functions.
32733         (areadlink): Set errno to ENOMEM explicitly.
32734         * modules/areadlink (Depends-on): Remove malloc-posix.
32735         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32736
32737 2010-06-09  Bruno Haible  <bruno@clisp.org>
32738
32739         Avoid relocwrapper link errors due to gnulib replacement functions.
32740         * lib/canonicalize-lgpl.c: Use the system's malloc function.
32741         * lib/malloca.c: Likewise.
32742         * lib/relocatable.c: Likewise.
32743         * lib/progreloc.c: Use the system's malloc, sprintf functions.
32744         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
32745         * lib/setenv.c: Use the system's malloc, realloc functions.
32746         * lib/strerror.c: Use the system's sprintf function.
32747         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32748
32749 2010-06-04  Bruno Haible  <bruno@clisp.org>
32750
32751         Prefer documented low-level autoconf macro names.
32752         * m4/lib-link.m4: Use m4_translit instead of translit.
32753         * m4/environ.m4: Likewise.
32754         * m4/mathfunc.m4: Likewise.
32755         * m4/onceonly.m4: Likewise.
32756         * m4/stdint.m4: Likewise.
32757         Suggested by Eric Blake.
32758
32759 2010-06-04  Martin Lambers  <marlam@marlam.de>
32760             Bruno Haible  <bruno@clisp.org>
32761
32762         havelib: Allow library names with '+' characters.
32763         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32764         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
32765
32766 2010-06-09  Bruno Haible  <bruno@clisp.org>
32767
32768         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
32769         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
32770         realloc failed.
32771
32772 2010-06-08  Peter Simons  <simons@cryp.to>
32773
32774         maint.mk: make the news-check rule more configurable
32775         * top/maint.mk (news-check-lines-spec): New variable.
32776         (news-check): Use "sed -n 1,10p" in place of "head".
32777
32778 2010-06-07  Jim Meyering  <meyering@redhat.com>
32779
32780         do-release-commit-and-tag: fix typo in --help
32781         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
32782
32783         regex: avoid new dead-code warning with gcc-4.6.0
32784         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
32785         if-block containing a while-loop.  It's been unused for at least
32786         5 years.
32787
32788 2010-06-05  Bruno Haible  <bruno@clisp.org>
32789
32790         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
32791         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
32792
32793 2010-06-04  Bruno Haible  <bruno@clisp.org>
32794
32795         Update to GNU gettext 0.18.1.
32796         * modules/gettext (configure.ac): Require gettext infrastructure from
32797         version 0.18.1.
32798
32799 2010-06-03  Bruno Haible  <bruno@clisp.org>
32800
32801         Don't use AC_LIBOBJ with file names in subdirectories.
32802         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
32803         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
32804         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
32805         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
32806         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
32807         gl_LIBUNISTRING_LIBSOURCE.
32808         (Makefile.am): Augment lib_SOURCES here, conditionally.
32809         * NEWS: Drop requirement for Automake option 'subdir-objects'.
32810
32811 2010-06-03  Bruno Haible  <bruno@clisp.org>
32812
32813         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
32814         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
32815         expansion does not end with a newline.
32816         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
32817         unnecessary newline.
32818
32819 2010-06-03  Bruno Haible  <bruno@clisp.org>
32820
32821         Reduce dependencies.
32822         * tests/test-quotearg.h: New file, extracted from
32823         tests/test-quotearg.c.
32824         * tests/test-quotearg-simple.c: New file, extracted from
32825         tests/test-quotearg.c.
32826         * tests/test-quotearg.c: Don't include <ctype.h>.
32827         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
32828         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
32829         use_quote_double_quotes, use_quotearg_colon): Moved to
32830         tests/test-quotearg.h.
32831         (results_g, flag_results, custom_quotes, custom_results): Moved
32832         to tests/test-quotearg-simple.c.
32833         (main): Moved the part that does not depend on gettext to
32834         tests/test-quotearg-simple.c. Return 77 if the test cannot be
32835         performed.
32836         * modules/quotearg-simple: New file.
32837         * modules/quotearg-simple-tests: New file.
32838         * modules/quotearg (Depends-on): Add quotearg-simple.
32839         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
32840         (Files): Add tests/test-quotearg.h.
32841         Reported by Paolo Bonzini.
32842
32843 2010-06-03  Bruno Haible  <bruno@clisp.org>
32844
32845         Reduce dependencies.
32846         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
32847
32848 2010-06-03  Bruno Haible  <bruno@clisp.org>
32849
32850         time: Undefine more broken macros.
32851         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
32852         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
32853         Reported by Eric Blake.
32854
32855 2010-06-03  Bruno Haible  <bruno@clisp.org>
32856
32857         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
32858         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
32859         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
32860         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
32861         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
32862         Reported by Ludovic Courtès <ludo@gnu.org>.
32863
32864 2010-06-02  Eric Blake  <eblake@redhat.com>
32865
32866         time: work with mingw + pthreads-win32 library
32867         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
32868         if timespec is defined only in pthread.h.
32869         * modules/time (Makefile.am): Substitute it.
32870         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
32871         <pthread.h>, when needed.
32872         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
32873         from the library.
32874
32875 2010-05-31  Bruno Haible  <bruno@clisp.org>
32876
32877         Avoid expanding two macros in the wrong order.
32878         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
32879         gl_LIBUNISTRING if it is defined.
32880         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
32881         autoconf >= 2.64.
32882         Reported by Ludovic Courtès <ludo@gnu.org>.
32883
32884 2010-05-27  Jim Meyering  <meyering@redhat.com>
32885
32886         maint.mk: also prohibit "#undef" of always-defined symbols
32887         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
32888         Allow more than one space before the symbol name.
32889         (sc_prohibit_always-defined_macros): Use grep's -E, now that
32890         the regexp uses alternation.
32891
32892 2010-05-26  Eric Blake  <eblake@redhat.com>
32893
32894         maint.mk: avoid echo -e
32895         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
32896         Convert all uses of echo -* to printf.
32897         Reported by Matthias Bolte.
32898
32899 2010-05-25  Bruno Haible  <bruno@clisp.org>
32900
32901         Update to GNU gettext 0.18, part 2.
32902         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
32903         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
32904
32905 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32906
32907         Add missing include in test-pwrite.c.
32908         * tests/test-pwrite.c: Include string.h, for strcmp.
32909
32910 2010-05-24  Bruno Haible  <bruno@clisp.org>
32911
32912         * NEWS: Mention requirement for Automake option 'subdir-objects'.
32913
32914 2010-05-24  Bruno Haible  <bruno@clisp.org>
32915
32916         Don't use conversion with transliteration in u{8,16,32}_strcoll.
32917         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
32918         iconveh_error argument.
32919         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
32920         U_STRCONV_TO_LOCALE.
32921         * lib/unistr/u16-strcoll.c: Likewise.
32922         * lib/unistr/u32-strcoll.c: Likewise.
32923         * modules/unistr/u8-strcoll (Depends-on): Add
32924         uniconv/u8-strconv-to-enc, localcharset. Remove
32925         uniconv/u8-strconv-to-locale.
32926         (configure.ac): Bump version number.
32927         * modules/unistr/u16-strcoll (Depends-on): Add
32928         uniconv/u16-strconv-to-enc, localcharset. Remove
32929         uniconv/u16-strconv-to-locale.
32930         (configure.ac): Bump version number.
32931         * modules/unistr/u32-strcoll (Depends-on): Add
32932         uniconv/u32-strconv-to-enc, localcharset. Remove
32933         uniconv/u32-strconv-to-locale.
32934         (configure.ac): Bump version number.
32935
32936 2010-05-24  Bruno Haible  <bruno@clisp.org>
32937
32938         Avoid a test failure on NetBSD 5.0.
32939         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
32940         an iconv() bug.
32941
32942 2010-05-24  Bruno Haible  <bruno@clisp.org>
32943
32944         Adjust #include directive style.
32945         * modules/regex (Includes): Recommend to write <regex.h>.
32946
32947 2010-05-24  Bruno Haible  <bruno@clisp.org>
32948
32949         regex: Don't require alloca.
32950         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
32951         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
32952         only inside if (0).
32953
32954 2010-05-23  Jim Meyering  <meyering@redhat.com>
32955
32956         test-renameat.c: include <sys/stat.h>
32957         * tests/test-renameat.c: Include <sys/stat.h>; required for
32958         definition of S_IS* macros.
32959
32960 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
32961
32962         Update maintainer documentation for 'relocatable-prog' module.
32963         * doc/relocatable-maint.texi: Update.
32964         Comments by Bruno Haible.
32965
32966 2010-05-23  Bruno Haible  <bruno@clisp.org>
32967
32968         git-merge-changelog: Enable --split-merged-entry by default.
32969         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
32970         (usage): Don't mention this option any more.
32971         Reported by Ralf Wildenhues.
32972
32973 2010-05-23  Jim Meyering  <meyering@redhat.com>
32974
32975         test-pwrite: do not leave behind a test file named "out"
32976         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
32977         The trivial-looking use of init.sh is really necessary.
32978         It ensures that the temporary file, "out", is created in
32979         a temporary directory, and removed upon termination.
32980         * tests/test-pwrite.sh: Re-add file.
32981         * modules/pwrite-tests: Reference it.
32982
32983 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32984
32985         Fix output redirection buglet in init.sh.
32986         * tests/init.sh: Fix redirection of stderr.
32987
32988 2010-05-20  Simon Josefsson  <simon@josefsson.org>
32989
32990         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
32991
32992 2010-05-17  Simon Josefsson  <simon@josefsson.org>
32993
32994         * modules/valgrind-tests: New file.
32995         * m4/valgrind-tests.m4: New file.
32996         * doc/valgrind-tests.texi: New file.
32997         * doc/gnulib.texi (Running self-tests under valgrind): New
32998         section.
32999
33000 2010-05-19  Bruno Haible  <bruno@clisp.org>
33001
33002         Clean up dead code in recent commit.
33003         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
33004         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
33005         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
33006         Suggested by Paolo Bonzini.
33007
33008 2010-05-19  Bruno Haible  <bruno@clisp.org>
33009
33010         Avoid valgrind error reports from libunistring.
33011         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
33012         * modules/libunistring (Files): Add it.
33013         * modules/libunistring-optional (Files): Likewise.
33014
33015 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
33016             Bruno Haible  <bruno@clisp.org>
33017
33018         New module 'libunistring-optional'.
33019         * modules/libunistring-optional: New file.
33020         * m4/libunistring-base.m4: New file.
33021         * m4/libunistring-optional.m4: New file.
33022         * lib/unicase.in.h: Renamed from lib/unicase.h.
33023         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
33024         * lib/unictype.in.h: Renamed from lib/unictype.h.
33025         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
33026         * lib/uniname.in.h: Renamed from lib/uniname.h.
33027         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
33028         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
33029         * lib/unistr.in.h: Renamed from lib/unistr.h.
33030         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
33031         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
33032         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
33033         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
33034         gl_LIBUNISTRING. If the library was found, determine the installed
33035         version and set LIBUNISTRING_VERSION.
33036         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
33037         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
33038         handle a configuration option --with-included-libunistring.
33039         * modules/libunistring (Files): Add m4/absolute-header.m4.
33040         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
33041         Add m4/libunistring-base.m4.
33042         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33043         (Makefile.am): Build unicase.h from unicase.in.h.
33044         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
33045         Add m4/libunistring-base.m4.
33046         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33047         (Makefile.am): Build uniconv.h from uniconv.in.h.
33048         * modules/unictype/base (Files): Use unictype.in.h instead of
33049         unictype.h. Add m4/libunistring-base.m4.
33050         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33051         (Makefile.am): Build unictype.h from unictype.in.h.
33052         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
33053         Add m4/libunistring-base.m4.
33054         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33055         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
33056         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
33057         Add m4/libunistring-base.m4.
33058         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33059         (Makefile.am): Build uniname.h from uniname.in.h.
33060         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
33061         Add m4/libunistring-base.m4.
33062         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33063         (Makefile.am): Build uninorm.h from uninorm.in.h.
33064         * modules/unistdio/base (Files): Use unistdio.in.h instead of
33065         unistdio.h. Add m4/libunistring-base.m4.
33066         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33067         (Makefile.am): Build unistdio.h from unistdio.in.h.
33068         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
33069         Add m4/libunistring-base.m4.
33070         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33071         (Makefile.am): Build unistr.h from unistr.in.h.
33072         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
33073         Add m4/libunistring-base.m4.
33074         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33075         (Makefile.am): Build unitypes.h from unitypes.in.h.
33076         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
33077         Add m4/libunistring-base.m4.
33078         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33079         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
33080         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
33081         uniwidth.h. Add m4/libunistring-base.m4.
33082         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33083         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
33084         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
33085         instead of augmenting lib_SOURCES.
33086         * modules/unicase/empty-suffix-context: Likewise.
33087         * modules/unicase/locale-language: Likewise.
33088         * modules/unicase/tolower: Likewise.
33089         * modules/unicase/totitle: Likewise.
33090         * modules/unicase/toupper: Likewise.
33091         * modules/unicase/u8-casecmp: Likewise.
33092         * modules/unicase/u8-casecoll: Likewise.
33093         * modules/unicase/u8-casefold: Likewise.
33094         * modules/unicase/u8-casexfrm: Likewise.
33095         * modules/unicase/u8-ct-casefold: Likewise.
33096         * modules/unicase/u8-ct-tolower: Likewise.
33097         * modules/unicase/u8-ct-totitle: Likewise.
33098         * modules/unicase/u8-ct-toupper: Likewise.
33099         * modules/unicase/u8-is-cased: Likewise.
33100         * modules/unicase/u8-is-casefolded: Likewise.
33101         * modules/unicase/u8-is-lowercase: Likewise.
33102         * modules/unicase/u8-is-titlecase: Likewise.
33103         * modules/unicase/u8-is-uppercase: Likewise.
33104         * modules/unicase/u8-prefix-context: Likewise.
33105         * modules/unicase/u8-suffix-context: Likewise.
33106         * modules/unicase/u8-tolower: Likewise.
33107         * modules/unicase/u8-totitle: Likewise.
33108         * modules/unicase/u8-toupper: Likewise.
33109         * modules/unicase/u16-casecmp: Likewise.
33110         * modules/unicase/u16-casecoll: Likewise.
33111         * modules/unicase/u16-casefold: Likewise.
33112         * modules/unicase/u16-casexfrm: Likewise.
33113         * modules/unicase/u16-ct-casefold: Likewise.
33114         * modules/unicase/u16-ct-tolower: Likewise.
33115         * modules/unicase/u16-ct-totitle: Likewise.
33116         * modules/unicase/u16-ct-toupper: Likewise.
33117         * modules/unicase/u16-is-cased: Likewise.
33118         * modules/unicase/u16-is-casefolded: Likewise.
33119         * modules/unicase/u16-is-lowercase: Likewise.
33120         * modules/unicase/u16-is-titlecase: Likewise.
33121         * modules/unicase/u16-is-uppercase: Likewise.
33122         * modules/unicase/u16-prefix-context: Likewise.
33123         * modules/unicase/u16-suffix-context: Likewise.
33124         * modules/unicase/u16-tolower: Likewise.
33125         * modules/unicase/u16-totitle: Likewise.
33126         * modules/unicase/u16-toupper: Likewise.
33127         * modules/unicase/u32-casecmp: Likewise.
33128         * modules/unicase/u32-casecoll: Likewise.
33129         * modules/unicase/u32-casefold: Likewise.
33130         * modules/unicase/u32-casexfrm: Likewise.
33131         * modules/unicase/u32-ct-casefold: Likewise.
33132         * modules/unicase/u32-ct-tolower: Likewise.
33133         * modules/unicase/u32-ct-totitle: Likewise.
33134         * modules/unicase/u32-ct-toupper: Likewise.
33135         * modules/unicase/u32-is-cased: Likewise.
33136         * modules/unicase/u32-is-casefolded: Likewise.
33137         * modules/unicase/u32-is-lowercase: Likewise.
33138         * modules/unicase/u32-is-titlecase: Likewise.
33139         * modules/unicase/u32-is-uppercase: Likewise.
33140         * modules/unicase/u32-prefix-context: Likewise.
33141         * modules/unicase/u32-suffix-context: Likewise.
33142         * modules/unicase/u32-tolower: Likewise.
33143         * modules/unicase/u32-totitle: Likewise.
33144         * modules/unicase/u32-toupper: Likewise.
33145         * modules/unicase/ulc-casecmp: Likewise.
33146         * modules/unicase/ulc-casecoll: Likewise.
33147         * modules/unicase/ulc-casexfrm: Likewise.
33148         * modules/uniconv/u8-conv-from-enc: Likewise.
33149         * modules/uniconv/u8-conv-to-enc: Likewise.
33150         * modules/uniconv/u8-strconv-from-enc: Likewise.
33151         * modules/uniconv/u8-strconv-from-locale: Likewise.
33152         * modules/uniconv/u8-strconv-to-enc: Likewise.
33153         * modules/uniconv/u8-strconv-to-locale: Likewise.
33154         * modules/uniconv/u16-conv-from-enc: Likewise.
33155         * modules/uniconv/u16-conv-to-enc: Likewise.
33156         * modules/uniconv/u16-strconv-from-enc: Likewise.
33157         * modules/uniconv/u16-strconv-from-locale: Likewise.
33158         * modules/uniconv/u16-strconv-to-enc: Likewise.
33159         * modules/uniconv/u16-strconv-to-locale: Likewise.
33160         * modules/uniconv/u32-conv-from-enc: Likewise.
33161         * modules/uniconv/u32-conv-to-enc: Likewise.
33162         * modules/uniconv/u32-strconv-from-enc: Likewise.
33163         * modules/uniconv/u32-strconv-from-locale: Likewise.
33164         * modules/uniconv/u32-strconv-to-enc: Likewise.
33165         * modules/uniconv/u32-strconv-to-locale: Likewise.
33166         * modules/unictype/bidicategory-byname: Likewise.
33167         * modules/unictype/bidicategory-name: Likewise.
33168         * modules/unictype/bidicategory-of: Likewise.
33169         * modules/unictype/bidicategory-test: Likewise.
33170         * modules/unictype/block-list: Likewise.
33171         * modules/unictype/block-test: Likewise.
33172         * modules/unictype/category-C: Likewise.
33173         * modules/unictype/category-Cc: Likewise.
33174         * modules/unictype/category-Cf: Likewise.
33175         * modules/unictype/category-Cn: Likewise.
33176         * modules/unictype/category-Co: Likewise.
33177         * modules/unictype/category-Cs: Likewise.
33178         * modules/unictype/category-L: Likewise.
33179         * modules/unictype/category-Ll: Likewise.
33180         * modules/unictype/category-Lm: Likewise.
33181         * modules/unictype/category-Lo: Likewise.
33182         * modules/unictype/category-Lt: Likewise.
33183         * modules/unictype/category-Lu: Likewise.
33184         * modules/unictype/category-M: Likewise.
33185         * modules/unictype/category-Mc: Likewise.
33186         * modules/unictype/category-Me: Likewise.
33187         * modules/unictype/category-Mn: Likewise.
33188         * modules/unictype/category-N: Likewise.
33189         * modules/unictype/category-Nd: Likewise.
33190         * modules/unictype/category-Nl: Likewise.
33191         * modules/unictype/category-No: Likewise.
33192         * modules/unictype/category-P: Likewise.
33193         * modules/unictype/category-Pc: Likewise.
33194         * modules/unictype/category-Pd: Likewise.
33195         * modules/unictype/category-Pe: Likewise.
33196         * modules/unictype/category-Pf: Likewise.
33197         * modules/unictype/category-Pi: Likewise.
33198         * modules/unictype/category-Po: Likewise.
33199         * modules/unictype/category-Ps: Likewise.
33200         * modules/unictype/category-S: Likewise.
33201         * modules/unictype/category-Sc: Likewise.
33202         * modules/unictype/category-Sk: Likewise.
33203         * modules/unictype/category-Sm: Likewise.
33204         * modules/unictype/category-So: Likewise.
33205         * modules/unictype/category-Z: Likewise.
33206         * modules/unictype/category-Zl: Likewise.
33207         * modules/unictype/category-Zp: Likewise.
33208         * modules/unictype/category-Zs: Likewise.
33209         * modules/unictype/category-and: Likewise.
33210         * modules/unictype/category-and-not: Likewise.
33211         * modules/unictype/category-byname: Likewise.
33212         * modules/unictype/category-name: Likewise.
33213         * modules/unictype/category-none: Likewise.
33214         * modules/unictype/category-of: Likewise.
33215         * modules/unictype/category-or: Likewise.
33216         * modules/unictype/category-test: Likewise.
33217         * modules/unictype/combining-class: Likewise.
33218         * modules/unictype/ctype-alnum: Likewise.
33219         * modules/unictype/ctype-alpha: Likewise.
33220         * modules/unictype/ctype-blank: Likewise.
33221         * modules/unictype/ctype-cntrl: Likewise.
33222         * modules/unictype/ctype-digit: Likewise.
33223         * modules/unictype/ctype-graph: Likewise.
33224         * modules/unictype/ctype-lower: Likewise.
33225         * modules/unictype/ctype-print: Likewise.
33226         * modules/unictype/ctype-punct: Likewise.
33227         * modules/unictype/ctype-space: Likewise.
33228         * modules/unictype/ctype-upper: Likewise.
33229         * modules/unictype/ctype-xdigit: Likewise.
33230         * modules/unictype/decimal-digit: Likewise.
33231         * modules/unictype/digit: Likewise.
33232         * modules/unictype/mirror: Likewise.
33233         * modules/unictype/numeric: Likewise.
33234         * modules/unictype/property-alphabetic: Likewise.
33235         * modules/unictype/property-ascii-hex-digit: Likewise.
33236         * modules/unictype/property-bidi-arabic-digit: Likewise.
33237         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
33238         * modules/unictype/property-bidi-block-separator: Likewise.
33239         * modules/unictype/property-bidi-boundary-neutral: Likewise.
33240         * modules/unictype/property-bidi-common-separator: Likewise.
33241         * modules/unictype/property-bidi-control: Likewise.
33242         * modules/unictype/property-bidi-embedding-or-override: Likewise.
33243         * modules/unictype/property-bidi-eur-num-separator: Likewise.
33244         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
33245         * modules/unictype/property-bidi-european-digit: Likewise.
33246         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
33247         * modules/unictype/property-bidi-left-to-right: Likewise.
33248         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
33249         * modules/unictype/property-bidi-other-neutral: Likewise.
33250         * modules/unictype/property-bidi-pdf: Likewise.
33251         * modules/unictype/property-bidi-segment-separator: Likewise.
33252         * modules/unictype/property-bidi-whitespace: Likewise.
33253         * modules/unictype/property-byname: Likewise.
33254         * modules/unictype/property-combining: Likewise.
33255         * modules/unictype/property-composite: Likewise.
33256         * modules/unictype/property-currency-symbol: Likewise.
33257         * modules/unictype/property-dash: Likewise.
33258         * modules/unictype/property-decimal-digit: Likewise.
33259         * modules/unictype/property-default-ignorable-code-point: Likewise.
33260         * modules/unictype/property-deprecated: Likewise.
33261         * modules/unictype/property-diacritic: Likewise.
33262         * modules/unictype/property-extender: Likewise.
33263         * modules/unictype/property-format-control: Likewise.
33264         * modules/unictype/property-grapheme-base: Likewise.
33265         * modules/unictype/property-grapheme-extend: Likewise.
33266         * modules/unictype/property-grapheme-link: Likewise.
33267         * modules/unictype/property-hex-digit: Likewise.
33268         * modules/unictype/property-hyphen: Likewise.
33269         * modules/unictype/property-id-continue: Likewise.
33270         * modules/unictype/property-id-start: Likewise.
33271         * modules/unictype/property-ideographic: Likewise.
33272         * modules/unictype/property-ids-binary-operator: Likewise.
33273         * modules/unictype/property-ids-trinary-operator: Likewise.
33274         * modules/unictype/property-ignorable-control: Likewise.
33275         * modules/unictype/property-iso-control: Likewise.
33276         * modules/unictype/property-join-control: Likewise.
33277         * modules/unictype/property-left-of-pair: Likewise.
33278         * modules/unictype/property-line-separator: Likewise.
33279         * modules/unictype/property-logical-order-exception: Likewise.
33280         * modules/unictype/property-lowercase: Likewise.
33281         * modules/unictype/property-math: Likewise.
33282         * modules/unictype/property-non-break: Likewise.
33283         * modules/unictype/property-not-a-character: Likewise.
33284         * modules/unictype/property-numeric: Likewise.
33285         * modules/unictype/property-other-alphabetic: Likewise.
33286         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
33287         * modules/unictype/property-other-grapheme-extend: Likewise.
33288         * modules/unictype/property-other-id-continue: Likewise.
33289         * modules/unictype/property-other-id-start: Likewise.
33290         * modules/unictype/property-other-lowercase: Likewise.
33291         * modules/unictype/property-other-math: Likewise.
33292         * modules/unictype/property-other-uppercase: Likewise.
33293         * modules/unictype/property-paired-punctuation: Likewise.
33294         * modules/unictype/property-paragraph-separator: Likewise.
33295         * modules/unictype/property-pattern-syntax: Likewise.
33296         * modules/unictype/property-pattern-white-space: Likewise.
33297         * modules/unictype/property-private-use: Likewise.
33298         * modules/unictype/property-punctuation: Likewise.
33299         * modules/unictype/property-quotation-mark: Likewise.
33300         * modules/unictype/property-radical: Likewise.
33301         * modules/unictype/property-sentence-terminal: Likewise.
33302         * modules/unictype/property-soft-dotted: Likewise.
33303         * modules/unictype/property-space: Likewise.
33304         * modules/unictype/property-terminal-punctuation: Likewise.
33305         * modules/unictype/property-test: Likewise.
33306         * modules/unictype/property-titlecase: Likewise.
33307         * modules/unictype/property-unassigned-code-value: Likewise.
33308         * modules/unictype/property-unified-ideograph: Likewise.
33309         * modules/unictype/property-uppercase: Likewise.
33310         * modules/unictype/property-variation-selector: Likewise.
33311         * modules/unictype/property-white-space: Likewise.
33312         * modules/unictype/property-xid-continue: Likewise.
33313         * modules/unictype/property-xid-start: Likewise.
33314         * modules/unictype/property-zero-width: Likewise.
33315         * modules/unictype/scripts: Likewise.
33316         * modules/unictype/syntax-c-ident: Likewise.
33317         * modules/unictype/syntax-c-whitespace: Likewise.
33318         * modules/unictype/syntax-java-ident: Likewise.
33319         * modules/unictype/syntax-java-whitespace: Likewise.
33320         * modules/unilbrk/u8-possible-linebreaks: Likewise.
33321         * modules/unilbrk/u8-width-linebreaks: Likewise.
33322         * modules/unilbrk/u16-possible-linebreaks: Likewise.
33323         * modules/unilbrk/u16-width-linebreaks: Likewise.
33324         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33325         * modules/unilbrk/u32-width-linebreaks: Likewise.
33326         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33327         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33328         * modules/uniname/uniname: Likewise.
33329         * modules/uninorm/canonical-decomposition: Likewise.
33330         * modules/uninorm/composition: Likewise.
33331         * modules/uninorm/decomposing-form: Likewise.
33332         * modules/uninorm/decomposition: Likewise.
33333         * modules/uninorm/filter: Likewise.
33334         * modules/uninorm/nfc: Likewise.
33335         * modules/uninorm/nfd: Likewise.
33336         * modules/uninorm/nfkc: Likewise.
33337         * modules/uninorm/nfkd: Likewise.
33338         * modules/uninorm/u8-normalize: Likewise.
33339         * modules/uninorm/u8-normcmp: Likewise.
33340         * modules/uninorm/u8-normcoll: Likewise.
33341         * modules/uninorm/u8-normxfrm: Likewise.
33342         * modules/uninorm/u16-normalize: Likewise.
33343         * modules/uninorm/u16-normcmp: Likewise.
33344         * modules/uninorm/u16-normcoll: Likewise.
33345         * modules/uninorm/u16-normxfrm: Likewise.
33346         * modules/uninorm/u32-normalize: Likewise.
33347         * modules/uninorm/u32-normcmp: Likewise.
33348         * modules/uninorm/u32-normcoll: Likewise.
33349         * modules/uninorm/u32-normxfrm: Likewise.
33350         * modules/unistdio/u8-asnprintf: Likewise.
33351         * modules/unistdio/u8-asprintf: Likewise.
33352         * modules/unistdio/u8-snprintf: Likewise.
33353         * modules/unistdio/u8-sprintf: Likewise.
33354         * modules/unistdio/u8-u8-asnprintf: Likewise.
33355         * modules/unistdio/u8-u8-asprintf: Likewise.
33356         * modules/unistdio/u8-u8-snprintf: Likewise.
33357         * modules/unistdio/u8-u8-sprintf: Likewise.
33358         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33359         * modules/unistdio/u8-u8-vasprintf: Likewise.
33360         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33361         * modules/unistdio/u8-u8-vsprintf: Likewise.
33362         * modules/unistdio/u8-vasnprintf: Likewise.
33363         * modules/unistdio/u8-vasprintf: Likewise.
33364         * modules/unistdio/u8-vsnprintf: Likewise.
33365         * modules/unistdio/u8-vsprintf: Likewise.
33366         * modules/unistdio/u16-asnprintf: Likewise.
33367         * modules/unistdio/u16-asprintf: Likewise.
33368         * modules/unistdio/u16-snprintf: Likewise.
33369         * modules/unistdio/u16-sprintf: Likewise.
33370         * modules/unistdio/u16-u16-asnprintf: Likewise.
33371         * modules/unistdio/u16-u16-asprintf: Likewise.
33372         * modules/unistdio/u16-u16-snprintf: Likewise.
33373         * modules/unistdio/u16-u16-sprintf: Likewise.
33374         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33375         * modules/unistdio/u16-u16-vasprintf: Likewise.
33376         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33377         * modules/unistdio/u16-u16-vsprintf: Likewise.
33378         * modules/unistdio/u16-vasnprintf: Likewise.
33379         * modules/unistdio/u16-vasprintf: Likewise.
33380         * modules/unistdio/u16-vsnprintf: Likewise.
33381         * modules/unistdio/u16-vsprintf: Likewise.
33382         * modules/unistdio/u32-asnprintf: Likewise.
33383         * modules/unistdio/u32-asprintf: Likewise.
33384         * modules/unistdio/u32-snprintf: Likewise.
33385         * modules/unistdio/u32-sprintf: Likewise.
33386         * modules/unistdio/u32-u32-asnprintf: Likewise.
33387         * modules/unistdio/u32-u32-asprintf: Likewise.
33388         * modules/unistdio/u32-u32-snprintf: Likewise.
33389         * modules/unistdio/u32-u32-sprintf: Likewise.
33390         * modules/unistdio/u32-u32-vasnprintf: Likewise.
33391         * modules/unistdio/u32-u32-vasprintf: Likewise.
33392         * modules/unistdio/u32-u32-vsnprintf: Likewise.
33393         * modules/unistdio/u32-u32-vsprintf: Likewise.
33394         * modules/unistdio/u32-vasnprintf: Likewise.
33395         * modules/unistdio/u32-vasprintf: Likewise.
33396         * modules/unistdio/u32-vsnprintf: Likewise.
33397         * modules/unistdio/u32-vsprintf: Likewise.
33398         * modules/unistdio/ulc-asnprintf: Likewise.
33399         * modules/unistdio/ulc-asprintf: Likewise.
33400         * modules/unistdio/ulc-fprintf: Likewise.
33401         * modules/unistdio/ulc-snprintf: Likewise.
33402         * modules/unistdio/ulc-sprintf: Likewise.
33403         * modules/unistdio/ulc-vasnprintf: Likewise.
33404         * modules/unistdio/ulc-vasprintf: Likewise.
33405         * modules/unistdio/ulc-vfprintf: Likewise.
33406         * modules/unistdio/ulc-vsnprintf: Likewise.
33407         * modules/unistdio/ulc-vsprintf: Likewise.
33408         * modules/unistr/u8-check: Likewise.
33409         * modules/unistr/u8-chr: Likewise.
33410         * modules/unistr/u8-cmp: Likewise.
33411         * modules/unistr/u8-cmp2: Likewise.
33412         * modules/unistr/u8-cpy: Likewise.
33413         * modules/unistr/u8-cpy-alloc: Likewise.
33414         * modules/unistr/u8-endswith: Likewise.
33415         * modules/unistr/u8-mblen: Likewise.
33416         * modules/unistr/u8-mbsnlen: Likewise.
33417         * modules/unistr/u8-mbtouc: Likewise.
33418         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33419         * modules/unistr/u8-mbtoucr: Likewise.
33420         * modules/unistr/u8-move: Likewise.
33421         * modules/unistr/u8-next: Likewise.
33422         * modules/unistr/u8-prev: Likewise.
33423         * modules/unistr/u8-set: Likewise.
33424         * modules/unistr/u8-startswith: Likewise.
33425         * modules/unistr/u8-stpcpy: Likewise.
33426         * modules/unistr/u8-stpncpy: Likewise.
33427         * modules/unistr/u8-strcat: Likewise.
33428         * modules/unistr/u8-strchr: Likewise.
33429         * modules/unistr/u8-strcmp: Likewise.
33430         * modules/unistr/u8-strcoll: Likewise.
33431         * modules/unistr/u8-strcpy: Likewise.
33432         * modules/unistr/u8-strcspn: Likewise.
33433         * modules/unistr/u8-strdup: Likewise.
33434         * modules/unistr/u8-strlen: Likewise.
33435         * modules/unistr/u8-strmblen: Likewise.
33436         * modules/unistr/u8-strmbtouc: Likewise.
33437         * modules/unistr/u8-strncat: Likewise.
33438         * modules/unistr/u8-strncmp: Likewise.
33439         * modules/unistr/u8-strncpy: Likewise.
33440         * modules/unistr/u8-strnlen: Likewise.
33441         * modules/unistr/u8-strpbrk: Likewise.
33442         * modules/unistr/u8-strrchr: Likewise.
33443         * modules/unistr/u8-strspn: Likewise.
33444         * modules/unistr/u8-strstr: Likewise.
33445         * modules/unistr/u8-strtok: Likewise.
33446         * modules/unistr/u8-to-u16: Likewise.
33447         * modules/unistr/u8-to-u32: Likewise.
33448         * modules/unistr/u8-uctomb: Likewise.
33449         * modules/unistr/u16-check: Likewise.
33450         * modules/unistr/u16-chr: Likewise.
33451         * modules/unistr/u16-cmp: Likewise.
33452         * modules/unistr/u16-cmp2: Likewise.
33453         * modules/unistr/u16-cpy: Likewise.
33454         * modules/unistr/u16-cpy-alloc: Likewise.
33455         * modules/unistr/u16-endswith: Likewise.
33456         * modules/unistr/u16-mblen: Likewise.
33457         * modules/unistr/u16-mbsnlen: Likewise.
33458         * modules/unistr/u16-mbtouc: Likewise.
33459         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33460         * modules/unistr/u16-mbtoucr: Likewise.
33461         * modules/unistr/u16-move: Likewise.
33462         * modules/unistr/u16-next: Likewise.
33463         * modules/unistr/u16-prev: Likewise.
33464         * modules/unistr/u16-set: Likewise.
33465         * modules/unistr/u16-startswith: Likewise.
33466         * modules/unistr/u16-stpcpy: Likewise.
33467         * modules/unistr/u16-stpncpy: Likewise.
33468         * modules/unistr/u16-strcat: Likewise.
33469         * modules/unistr/u16-strchr: Likewise.
33470         * modules/unistr/u16-strcmp: Likewise.
33471         * modules/unistr/u16-strcoll: Likewise.
33472         * modules/unistr/u16-strcpy: Likewise.
33473         * modules/unistr/u16-strcspn: Likewise.
33474         * modules/unistr/u16-strdup: Likewise.
33475         * modules/unistr/u16-strlen: Likewise.
33476         * modules/unistr/u16-strmblen: Likewise.
33477         * modules/unistr/u16-strmbtouc: Likewise.
33478         * modules/unistr/u16-strncat: Likewise.
33479         * modules/unistr/u16-strncmp: Likewise.
33480         * modules/unistr/u16-strncpy: Likewise.
33481         * modules/unistr/u16-strnlen: Likewise.
33482         * modules/unistr/u16-strpbrk: Likewise.
33483         * modules/unistr/u16-strrchr: Likewise.
33484         * modules/unistr/u16-strspn: Likewise.
33485         * modules/unistr/u16-strstr: Likewise.
33486         * modules/unistr/u16-strtok: Likewise.
33487         * modules/unistr/u16-to-u32: Likewise.
33488         * modules/unistr/u16-to-u8: Likewise.
33489         * modules/unistr/u16-uctomb: Likewise.
33490         * modules/unistr/u32-check: Likewise.
33491         * modules/unistr/u32-chr: Likewise.
33492         * modules/unistr/u32-cmp: Likewise.
33493         * modules/unistr/u32-cmp2: Likewise.
33494         * modules/unistr/u32-cpy: Likewise.
33495         * modules/unistr/u32-cpy-alloc: Likewise.
33496         * modules/unistr/u32-endswith: Likewise.
33497         * modules/unistr/u32-mblen: Likewise.
33498         * modules/unistr/u32-mbsnlen: Likewise.
33499         * modules/unistr/u32-mbtouc: Likewise.
33500         * modules/unistr/u32-mbtouc-unsafe: Likewise.
33501         * modules/unistr/u32-mbtoucr: Likewise.
33502         * modules/unistr/u32-move: Likewise.
33503         * modules/unistr/u32-next: Likewise.
33504         * modules/unistr/u32-prev: Likewise.
33505         * modules/unistr/u32-set: Likewise.
33506         * modules/unistr/u32-startswith: Likewise.
33507         * modules/unistr/u32-stpcpy: Likewise.
33508         * modules/unistr/u32-stpncpy: Likewise.
33509         * modules/unistr/u32-strcat: Likewise.
33510         * modules/unistr/u32-strchr: Likewise.
33511         * modules/unistr/u32-strcmp: Likewise.
33512         * modules/unistr/u32-strcoll: Likewise.
33513         * modules/unistr/u32-strcpy: Likewise.
33514         * modules/unistr/u32-strcspn: Likewise.
33515         * modules/unistr/u32-strdup: Likewise.
33516         * modules/unistr/u32-strlen: Likewise.
33517         * modules/unistr/u32-strmblen: Likewise.
33518         * modules/unistr/u32-strmbtouc: Likewise.
33519         * modules/unistr/u32-strncat: Likewise.
33520         * modules/unistr/u32-strncmp: Likewise.
33521         * modules/unistr/u32-strncpy: Likewise.
33522         * modules/unistr/u32-strnlen: Likewise.
33523         * modules/unistr/u32-strpbrk: Likewise.
33524         * modules/unistr/u32-strrchr: Likewise.
33525         * modules/unistr/u32-strspn: Likewise.
33526         * modules/unistr/u32-strstr: Likewise.
33527         * modules/unistr/u32-strtok: Likewise.
33528         * modules/unistr/u32-to-u16: Likewise.
33529         * modules/unistr/u32-to-u8: Likewise.
33530         * modules/unistr/u32-uctomb: Likewise.
33531         * modules/uniwbrk/u8-wordbreaks: Likewise.
33532         * modules/uniwbrk/u16-wordbreaks: Likewise.
33533         * modules/uniwbrk/u32-wordbreaks: Likewise.
33534         * modules/uniwbrk/ulc-wordbreaks: Likewise.
33535         * modules/uniwbrk/wordbreak-property: Likewise.
33536         * modules/uniwidth/u8-strwidth: Likewise.
33537         * modules/uniwidth/u8-width: Likewise.
33538         * modules/uniwidth/u16-strwidth: Likewise.
33539         * modules/uniwidth/u16-width: Likewise.
33540         * modules/uniwidth/u32-strwidth: Likewise.
33541         * modules/uniwidth/u32-width: Likewise.
33542         * modules/uniwidth/width: Likewise.
33543         * modules/unicase/cased-tests (Makefile.am): Link all test programs
33544         with $(LIBUNISTRING).
33545         * modules/unicase/ignorable-tests: Likewise.
33546         * modules/unicase/locale-language-tests: Likewise.
33547         * modules/unicase/tolower-tests: Likewise.
33548         * modules/unicase/totitle-tests: Likewise.
33549         * modules/unicase/toupper-tests: Likewise.
33550         * modules/unicase/u8-casecmp-tests: Likewise.
33551         * modules/unicase/u8-casecoll-tests: Likewise.
33552         * modules/unicase/u8-casefold-tests: Likewise.
33553         * modules/unicase/u8-is-cased-tests: Likewise.
33554         * modules/unicase/u8-is-casefolded-tests: Likewise.
33555         * modules/unicase/u8-is-lowercase-tests: Likewise.
33556         * modules/unicase/u8-is-titlecase-tests: Likewise.
33557         * modules/unicase/u8-is-uppercase-tests: Likewise.
33558         * modules/unicase/u8-tolower-tests: Likewise.
33559         * modules/unicase/u8-totitle-tests: Likewise.
33560         * modules/unicase/u8-toupper-tests: Likewise.
33561         * modules/unicase/u16-casecmp-tests: Likewise.
33562         * modules/unicase/u16-casecoll-tests: Likewise.
33563         * modules/unicase/u16-casefold-tests: Likewise.
33564         * modules/unicase/u16-is-cased-tests: Likewise.
33565         * modules/unicase/u16-is-casefolded-tests: Likewise.
33566         * modules/unicase/u16-is-lowercase-tests: Likewise.
33567         * modules/unicase/u16-is-titlecase-tests: Likewise.
33568         * modules/unicase/u16-is-uppercase-tests: Likewise.
33569         * modules/unicase/u16-tolower-tests: Likewise.
33570         * modules/unicase/u16-totitle-tests: Likewise.
33571         * modules/unicase/u16-toupper-tests: Likewise.
33572         * modules/unicase/u32-casecmp-tests: Likewise.
33573         * modules/unicase/u32-casecoll-tests: Likewise.
33574         * modules/unicase/u32-casefold-tests: Likewise.
33575         * modules/unicase/u32-is-cased-tests: Likewise.
33576         * modules/unicase/u32-is-casefolded-tests: Likewise.
33577         * modules/unicase/u32-is-lowercase-tests: Likewise.
33578         * modules/unicase/u32-is-titlecase-tests: Likewise.
33579         * modules/unicase/u32-is-uppercase-tests: Likewise.
33580         * modules/unicase/u32-tolower-tests: Likewise.
33581         * modules/unicase/u32-totitle-tests: Likewise.
33582         * modules/unicase/u32-toupper-tests: Likewise.
33583         * modules/unicase/ulc-casecmp-tests: Likewise.
33584         * modules/unicase/ulc-casecoll-tests: Likewise.
33585         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
33586         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
33587         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
33588         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
33589         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
33590         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
33591         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
33592         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
33593         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
33594         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
33595         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
33596         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
33597         * modules/unictype/bidicategory-byname-tests: Likewise.
33598         * modules/unictype/bidicategory-name-tests: Likewise.
33599         * modules/unictype/bidicategory-of-tests: Likewise.
33600         * modules/unictype/bidicategory-test-tests: Likewise.
33601         * modules/unictype/block-list-tests: Likewise.
33602         * modules/unictype/block-of-tests: Likewise.
33603         * modules/unictype/block-test-tests: Likewise.
33604         * modules/unictype/category-C-tests: Likewise.
33605         * modules/unictype/category-Cc-tests: Likewise.
33606         * modules/unictype/category-Cf-tests: Likewise.
33607         * modules/unictype/category-Cn-tests: Likewise.
33608         * modules/unictype/category-Co-tests: Likewise.
33609         * modules/unictype/category-Cs-tests: Likewise.
33610         * modules/unictype/category-L-tests: Likewise.
33611         * modules/unictype/category-Ll-tests: Likewise.
33612         * modules/unictype/category-Lm-tests: Likewise.
33613         * modules/unictype/category-Lo-tests: Likewise.
33614         * modules/unictype/category-Lt-tests: Likewise.
33615         * modules/unictype/category-Lu-tests: Likewise.
33616         * modules/unictype/category-M-tests: Likewise.
33617         * modules/unictype/category-Mc-tests: Likewise.
33618         * modules/unictype/category-Me-tests: Likewise.
33619         * modules/unictype/category-Mn-tests: Likewise.
33620         * modules/unictype/category-N-tests: Likewise.
33621         * modules/unictype/category-Nd-tests: Likewise.
33622         * modules/unictype/category-Nl-tests: Likewise.
33623         * modules/unictype/category-No-tests: Likewise.
33624         * modules/unictype/category-P-tests: Likewise.
33625         * modules/unictype/category-Pc-tests: Likewise.
33626         * modules/unictype/category-Pd-tests: Likewise.
33627         * modules/unictype/category-Pe-tests: Likewise.
33628         * modules/unictype/category-Pf-tests: Likewise.
33629         * modules/unictype/category-Pi-tests: Likewise.
33630         * modules/unictype/category-Po-tests: Likewise.
33631         * modules/unictype/category-Ps-tests: Likewise.
33632         * modules/unictype/category-S-tests: Likewise.
33633         * modules/unictype/category-Sc-tests: Likewise.
33634         * modules/unictype/category-Sk-tests: Likewise.
33635         * modules/unictype/category-Sm-tests: Likewise.
33636         * modules/unictype/category-So-tests: Likewise.
33637         * modules/unictype/category-Z-tests: Likewise.
33638         * modules/unictype/category-Zl-tests: Likewise.
33639         * modules/unictype/category-Zp-tests: Likewise.
33640         * modules/unictype/category-Zs-tests: Likewise.
33641         * modules/unictype/category-and-not-tests: Likewise.
33642         * modules/unictype/category-and-tests: Likewise.
33643         * modules/unictype/category-byname-tests: Likewise.
33644         * modules/unictype/category-name-tests: Likewise.
33645         * modules/unictype/category-none-tests: Likewise.
33646         * modules/unictype/category-of-tests: Likewise.
33647         * modules/unictype/category-or-tests: Likewise.
33648         * modules/unictype/category-test-withtable-tests: Likewise.
33649         * modules/unictype/combining-class-tests: Likewise.
33650         * modules/unictype/ctype-alnum-tests: Likewise.
33651         * modules/unictype/ctype-alpha-tests: Likewise.
33652         * modules/unictype/ctype-blank-tests: Likewise.
33653         * modules/unictype/ctype-cntrl-tests: Likewise.
33654         * modules/unictype/ctype-digit-tests: Likewise.
33655         * modules/unictype/ctype-graph-tests: Likewise.
33656         * modules/unictype/ctype-lower-tests: Likewise.
33657         * modules/unictype/ctype-print-tests: Likewise.
33658         * modules/unictype/ctype-punct-tests: Likewise.
33659         * modules/unictype/ctype-space-tests: Likewise.
33660         * modules/unictype/ctype-upper-tests: Likewise.
33661         * modules/unictype/ctype-xdigit-tests: Likewise.
33662         * modules/unictype/decimal-digit-tests: Likewise.
33663         * modules/unictype/digit-tests: Likewise.
33664         * modules/unictype/mirror-tests: Likewise.
33665         * modules/unictype/numeric-tests: Likewise.
33666         * modules/unictype/property-alphabetic-tests: Likewise.
33667         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
33668         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
33669         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
33670         * modules/unictype/property-bidi-block-separator-tests: Likewise.
33671         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
33672         * modules/unictype/property-bidi-common-separator-tests: Likewise.
33673         * modules/unictype/property-bidi-control-tests: Likewise.
33674         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
33675         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
33676         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
33677         * modules/unictype/property-bidi-european-digit-tests: Likewise.
33678         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
33679         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
33680         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
33681         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
33682         * modules/unictype/property-bidi-pdf-tests: Likewise.
33683         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
33684         * modules/unictype/property-bidi-whitespace-tests: Likewise.
33685         * modules/unictype/property-byname-tests: Likewise.
33686         * modules/unictype/property-combining-tests: Likewise.
33687         * modules/unictype/property-composite-tests: Likewise.
33688         * modules/unictype/property-currency-symbol-tests: Likewise.
33689         * modules/unictype/property-dash-tests: Likewise.
33690         * modules/unictype/property-decimal-digit-tests: Likewise.
33691         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
33692         * modules/unictype/property-deprecated-tests: Likewise.
33693         * modules/unictype/property-diacritic-tests: Likewise.
33694         * modules/unictype/property-extender-tests: Likewise.
33695         * modules/unictype/property-format-control-tests: Likewise.
33696         * modules/unictype/property-grapheme-base-tests: Likewise.
33697         * modules/unictype/property-grapheme-extend-tests: Likewise.
33698         * modules/unictype/property-grapheme-link-tests: Likewise.
33699         * modules/unictype/property-hex-digit-tests: Likewise.
33700         * modules/unictype/property-hyphen-tests: Likewise.
33701         * modules/unictype/property-id-continue-tests: Likewise.
33702         * modules/unictype/property-id-start-tests: Likewise.
33703         * modules/unictype/property-ideographic-tests: Likewise.
33704         * modules/unictype/property-ids-binary-operator-tests: Likewise.
33705         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
33706         * modules/unictype/property-ignorable-control-tests: Likewise.
33707         * modules/unictype/property-iso-control-tests: Likewise.
33708         * modules/unictype/property-join-control-tests: Likewise.
33709         * modules/unictype/property-left-of-pair-tests: Likewise.
33710         * modules/unictype/property-line-separator-tests: Likewise.
33711         * modules/unictype/property-logical-order-exception-tests: Likewise.
33712         * modules/unictype/property-lowercase-tests: Likewise.
33713         * modules/unictype/property-math-tests: Likewise.
33714         * modules/unictype/property-non-break-tests: Likewise.
33715         * modules/unictype/property-not-a-character-tests: Likewise.
33716         * modules/unictype/property-numeric-tests: Likewise.
33717         * modules/unictype/property-other-alphabetic-tests: Likewise.
33718         * modules/unictype/property-other-default-ignorable-code-point-tests:
33719         Likewise.
33720         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
33721         * modules/unictype/property-other-id-continue-tests: Likewise.
33722         * modules/unictype/property-other-id-start-tests: Likewise.
33723         * modules/unictype/property-other-lowercase-tests: Likewise.
33724         * modules/unictype/property-other-math-tests: Likewise.
33725         * modules/unictype/property-other-uppercase-tests: Likewise.
33726         * modules/unictype/property-paired-punctuation-tests: Likewise.
33727         * modules/unictype/property-paragraph-separator-tests: Likewise.
33728         * modules/unictype/property-pattern-syntax-tests: Likewise.
33729         * modules/unictype/property-pattern-white-space-tests: Likewise.
33730         * modules/unictype/property-private-use-tests: Likewise.
33731         * modules/unictype/property-punctuation-tests: Likewise.
33732         * modules/unictype/property-quotation-mark-tests: Likewise.
33733         * modules/unictype/property-radical-tests: Likewise.
33734         * modules/unictype/property-sentence-terminal-tests: Likewise.
33735         * modules/unictype/property-soft-dotted-tests: Likewise.
33736         * modules/unictype/property-space-tests: Likewise.
33737         * modules/unictype/property-terminal-punctuation-tests: Likewise.
33738         * modules/unictype/property-test-tests: Likewise.
33739         * modules/unictype/property-titlecase-tests: Likewise.
33740         * modules/unictype/property-unassigned-code-value-tests: Likewise.
33741         * modules/unictype/property-unified-ideograph-tests: Likewise.
33742         * modules/unictype/property-uppercase-tests: Likewise.
33743         * modules/unictype/property-variation-selector-tests: Likewise.
33744         * modules/unictype/property-white-space-tests: Likewise.
33745         * modules/unictype/property-xid-continue-tests: Likewise.
33746         * modules/unictype/property-xid-start-tests: Likewise.
33747         * modules/unictype/property-zero-width-tests: Likewise.
33748         * modules/unictype/scripts-tests: Likewise.
33749         * modules/unictype/syntax-c-ident-tests: Likewise.
33750         * modules/unictype/syntax-c-whitespace-tests: Likewise.
33751         * modules/unictype/syntax-java-ident-tests: Likewise.
33752         * modules/unictype/syntax-java-whitespace-tests: Likewise.
33753         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
33754         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
33755         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
33756         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
33757         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
33758         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
33759         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
33760         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
33761         * modules/uniname/uniname-tests: Likewise.
33762         * modules/uninorm/canonical-decomposition-tests: Likewise.
33763         * modules/uninorm/compat-decomposition-tests: Likewise.
33764         * modules/uninorm/composition-tests: Likewise.
33765         * modules/uninorm/decomposing-form-tests: Likewise.
33766         * modules/uninorm/decomposition-tests: Likewise.
33767         * modules/uninorm/filter-tests: Likewise.
33768         * modules/uninorm/nfc-tests: Likewise.
33769         * modules/uninorm/nfd-tests: Likewise.
33770         * modules/uninorm/nfkc-tests: Likewise.
33771         * modules/uninorm/nfkd-tests: Likewise.
33772         * modules/uninorm/u8-normcmp-tests: Likewise.
33773         * modules/uninorm/u8-normcoll-tests: Likewise.
33774         * modules/uninorm/u16-normcmp-tests: Likewise.
33775         * modules/uninorm/u16-normcoll-tests: Likewise.
33776         * modules/uninorm/u32-normcmp-tests: Likewise.
33777         * modules/uninorm/u32-normcoll-tests: Likewise.
33778         * modules/unistdio/u8-asnprintf-tests: Likewise.
33779         * modules/unistdio/u8-vasnprintf-tests: Likewise.
33780         * modules/unistdio/u8-vasprintf-tests: Likewise.
33781         * modules/unistdio/u8-vsnprintf-tests: Likewise.
33782         * modules/unistdio/u8-vsprintf-tests: Likewise.
33783         * modules/unistdio/u16-asnprintf-tests: Likewise.
33784         * modules/unistdio/u16-vasnprintf-tests: Likewise.
33785         * modules/unistdio/u16-vasprintf-tests: Likewise.
33786         * modules/unistdio/u16-vsnprintf-tests: Likewise.
33787         * modules/unistdio/u16-vsprintf-tests: Likewise.
33788         * modules/unistdio/u32-asnprintf-tests: Likewise.
33789         * modules/unistdio/u32-vasnprintf-tests: Likewise.
33790         * modules/unistdio/u32-vasprintf-tests: Likewise.
33791         * modules/unistdio/u32-vsnprintf-tests: Likewise.
33792         * modules/unistdio/u32-vsprintf-tests: Likewise.
33793         * modules/unistdio/ulc-asnprintf-tests: Likewise.
33794         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
33795         * modules/unistdio/ulc-vasprintf-tests: Likewise.
33796         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
33797         * modules/unistdio/ulc-vsprintf-tests: Likewise.
33798         * modules/unistr/u8-check-tests: Likewise.
33799         * modules/unistr/u8-chr-tests: Likewise.
33800         * modules/unistr/u8-cmp-tests: Likewise.
33801         * modules/unistr/u8-cmp2-tests: Likewise.
33802         * modules/unistr/u8-cpy-alloc-tests: Likewise.
33803         * modules/unistr/u8-cpy-tests: Likewise.
33804         * modules/unistr/u8-mblen-tests: Likewise.
33805         * modules/unistr/u8-mbsnlen-tests: Likewise.
33806         * modules/unistr/u8-mbtouc-tests: Likewise.
33807         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
33808         * modules/unistr/u8-mbtoucr-tests: Likewise.
33809         * modules/unistr/u8-move-tests: Likewise.
33810         * modules/unistr/u8-next-tests: Likewise.
33811         * modules/unistr/u8-prev-tests: Likewise.
33812         * modules/unistr/u8-set-tests: Likewise.
33813         * modules/unistr/u8-stpcpy-tests: Likewise.
33814         * modules/unistr/u8-stpncpy-tests: Likewise.
33815         * modules/unistr/u8-strcat-tests: Likewise.
33816         * modules/unistr/u8-strcmp-tests: Likewise.
33817         * modules/unistr/u8-strcoll-tests: Likewise.
33818         * modules/unistr/u8-strcpy-tests: Likewise.
33819         * modules/unistr/u8-strdup-tests: Likewise.
33820         * modules/unistr/u8-strlen-tests: Likewise.
33821         * modules/unistr/u8-strmblen-tests: Likewise.
33822         * modules/unistr/u8-strmbtouc-tests: Likewise.
33823         * modules/unistr/u8-strncat-tests: Likewise.
33824         * modules/unistr/u8-strncmp-tests: Likewise.
33825         * modules/unistr/u8-strncpy-tests: Likewise.
33826         * modules/unistr/u8-strnlen-tests: Likewise.
33827         * modules/unistr/u8-to-u16-tests: Likewise.
33828         * modules/unistr/u8-to-u32-tests: Likewise.
33829         * modules/unistr/u8-uctomb-tests: Likewise.
33830         * modules/unistr/u16-check-tests: Likewise.
33831         * modules/unistr/u16-chr-tests: Likewise.
33832         * modules/unistr/u16-cmp-tests: Likewise.
33833         * modules/unistr/u16-cmp2-tests: Likewise.
33834         * modules/unistr/u16-cpy-alloc-tests: Likewise.
33835         * modules/unistr/u16-cpy-tests: Likewise.
33836         * modules/unistr/u16-mblen-tests: Likewise.
33837         * modules/unistr/u16-mbsnlen-tests: Likewise.
33838         * modules/unistr/u16-mbtouc-tests: Likewise.
33839         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
33840         * modules/unistr/u16-mbtoucr-tests: Likewise.
33841         * modules/unistr/u16-move-tests: Likewise.
33842         * modules/unistr/u16-next-tests: Likewise.
33843         * modules/unistr/u16-prev-tests: Likewise.
33844         * modules/unistr/u16-set-tests: Likewise.
33845         * modules/unistr/u16-stpcpy-tests: Likewise.
33846         * modules/unistr/u16-stpncpy-tests: Likewise.
33847         * modules/unistr/u16-strcat-tests: Likewise.
33848         * modules/unistr/u16-strcmp-tests: Likewise.
33849         * modules/unistr/u16-strcoll-tests: Likewise.
33850         * modules/unistr/u16-strcpy-tests: Likewise.
33851         * modules/unistr/u16-strdup-tests: Likewise.
33852         * modules/unistr/u16-strlen-tests: Likewise.
33853         * modules/unistr/u16-strmblen-tests: Likewise.
33854         * modules/unistr/u16-strmbtouc-tests: Likewise.
33855         * modules/unistr/u16-strncat-tests: Likewise.
33856         * modules/unistr/u16-strncmp-tests: Likewise.
33857         * modules/unistr/u16-strncpy-tests: Likewise.
33858         * modules/unistr/u16-strnlen-tests: Likewise.
33859         * modules/unistr/u16-to-u32-tests: Likewise.
33860         * modules/unistr/u16-to-u8-tests: Likewise.
33861         * modules/unistr/u16-uctomb-tests: Likewise.
33862         * modules/unistr/u32-check-tests: Likewise.
33863         * modules/unistr/u32-chr-tests: Likewise.
33864         * modules/unistr/u32-cmp-tests: Likewise.
33865         * modules/unistr/u32-cmp2-tests: Likewise.
33866         * modules/unistr/u32-cpy-alloc-tests: Likewise.
33867         * modules/unistr/u32-cpy-tests: Likewise.
33868         * modules/unistr/u32-mblen-tests: Likewise.
33869         * modules/unistr/u32-mbsnlen-tests: Likewise.
33870         * modules/unistr/u32-mbtouc-tests: Likewise.
33871         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
33872         * modules/unistr/u32-mbtoucr-tests: Likewise.
33873         * modules/unistr/u32-move-tests: Likewise.
33874         * modules/unistr/u32-next-tests: Likewise.
33875         * modules/unistr/u32-prev-tests: Likewise.
33876         * modules/unistr/u32-set-tests: Likewise.
33877         * modules/unistr/u32-stpcpy-tests: Likewise.
33878         * modules/unistr/u32-stpncpy-tests: Likewise.
33879         * modules/unistr/u32-strcat-tests: Likewise.
33880         * modules/unistr/u32-strcmp-tests: Likewise.
33881         * modules/unistr/u32-strcoll-tests: Likewise.
33882         * modules/unistr/u32-strcpy-tests: Likewise.
33883         * modules/unistr/u32-strdup-tests: Likewise.
33884         * modules/unistr/u32-strlen-tests: Likewise.
33885         * modules/unistr/u32-strmblen-tests: Likewise.
33886         * modules/unistr/u32-strmbtouc-tests: Likewise.
33887         * modules/unistr/u32-strncat-tests: Likewise.
33888         * modules/unistr/u32-strncmp-tests: Likewise.
33889         * modules/unistr/u32-strncpy-tests: Likewise.
33890         * modules/unistr/u32-strnlen-tests: Likewise.
33891         * modules/unistr/u32-to-u16-tests: Likewise.
33892         * modules/unistr/u32-to-u8-tests: Likewise.
33893         * modules/unistr/u32-uctomb-tests: Likewise.
33894         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
33895         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
33896         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
33897         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
33898         * modules/uniwidth/u8-strwidth-tests: Likewise.
33899         * modules/uniwidth/u8-width-tests: Likewise.
33900         * modules/uniwidth/u16-strwidth-tests: Likewise.
33901         * modules/uniwidth/u16-width-tests: Likewise.
33902         * modules/uniwidth/u32-strwidth-tests: Likewise.
33903         * modules/uniwidth/u32-width-tests: Likewise.
33904         * modules/uniwidth/width-tests: Likewise.
33905
33906 2010-05-18  Richard Jones  <rjones@redhat.com>
33907
33908         doc: users.txt: list hivex
33909         * users.txt: Add hivex.
33910
33911 2010-05-18  Richard Jones  <rjones@redhat.com>
33912
33913         doc: users.txt: list febootstrap
33914         * users.txt: Add febootstrap.
33915
33916 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
33917
33918         bootstrap: fix an error when gnulib is not used as a git submodule
33919         * build-aux/bootstrap (gnulib_path): If its length is zero then
33920         assign "gnulib" to it.
33921         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
33922
33923 2010-05-16  Bruno Haible  <bruno@clisp.org>
33924
33925         Avoid autoconf warnings about AM_ICONV.
33926         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
33927         2.64.
33928
33929 2010-05-16  Bruno Haible  <bruno@clisp.org>
33930
33931         absolute-header: Make the macro usable in more situations.
33932         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
33933         from gl_ABSOLUTE_HEADER.
33934         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
33935
33936 2010-05-16  James Youngman  <jay@gnu.org>
33937
33938         doc: update users.txt
33939         * users.txt: Add CSSC.
33940
33941 2010-05-16  Jim Meyering  <meyering@redhat.com>
33942
33943         init.sh: fix an error in the previous change; add more comments
33944         * tests/init.sh: Compare exit code in loop against 9, not 2.
33945         Patch by Bruno Haible.
33946         Make the two tests more similar by adding an empty "then" clause.
33947         Add comments.
33948
33949         init.sh: avoid unnecessary shell re-exec
33950         * tests/init.sh: Improve the re-exec-required check to first test the
33951         current shell.  If it passes the test, do not search for a shell that
33952         does pass, and do not re-exec.  This test is particularly contorted to
33953         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
33954         of $(...) evokes a syntax error and causes immediate shell exit with
33955         status 2.  Bruno Haible reported that the re-exec made it impossible
33956         to single-step through any init.sh-using script.
33957
33958 2010-05-16  Bruno Haible  <bruno@clisp.org>
33959
33960         Fix collision between gnulib's and libintl's printf replacements.
33961         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
33962         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
33963         (printf): When using GNU C, map the __printf__ function to rpl_printf
33964         via __asm__. When not using GNU C, define rpl_printf instead of
33965         __printf__.
33966         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
33967         commit.
33968         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
33969         commit.
33970         * m4/asm-underscore.m4: New file.
33971         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
33972         * modules/stdio (Files): Add m4/asm-underscore.m4.
33973         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
33974         Reported by Ben Pfaff.
33975
33976 2010-05-16  Bruno Haible  <bruno@clisp.org>
33977
33978         verify: Avoid skipping the test on openSUSE 11.0.
33979         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
33980
33981 2010-05-13  Bruno Haible  <bruno@clisp.org>
33982
33983         Avoid useless warnings from G++.
33984         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
33985         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
33986         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33987
33988 2010-05-11  Jim Meyering  <meyering@redhat.com>
33989
33990         maint.mk: tweak preceding change
33991         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
33992         regexps tighter by anchoring at EOL, and make the new group "shy"
33993         for slightly decreased overhead.
33994
33995 2010-05-11  Eric Blake  <eblake@redhat.com>
33996
33997         maint.mk: gnulib doesn't guarantee NSIG
33998         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
33999
34000 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34001
34002         test-pwrite.c: Remove unused variable declaration.
34003         * tests/test-pwrite.c (main): Remove read_buf declaration.
34004
34005         Remove useless test-pwrite.sh file.
34006         * tests/test-pwrite.sh: Delete file.
34007         * modules/pwrite-tests: Remove references.
34008         Reported by Bruno Haible.
34009
34010 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34011
34012         init.sh: fix a typo
34013         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
34014
34015 2010-05-10  Jim Meyering  <meyering@redhat.com>
34016
34017         maint.mk: avoid using a temporary file in the always-defined-macros check
34018         * top/maint.mk (.re-defmac): Remove rule.
34019         (gl_trap_): Remove definition.
34020         (sc_prohibit_always-defined_macros): Rewrite not to create and
34021         depend on a temporary file.  Instead, depend on GNU grep's ability
34022         to read a list of regular expressions from stdin when given "-f -".
34023
34024 2010-05-09  Bruno Haible  <bruno@clisp.org>
34025
34026         Update to GNU gettext 0.18, part 1.
34027         * m4/gettext.m4: Update to GNU gettext 0.18.
34028         * m4/intl.m4: Likewise.
34029         * m4/po.m4: Likewise.
34030         * modules/gettext (Files): Add m4/fcntl-o.m4.
34031         (configure.ac): Require gettext infrastructure from version 0.18.
34032
34033 2010-05-09  Jim Meyering  <meyering@redhat.com>
34034
34035         init.sh: enable MALLOC_PERTURB_
34036         * tests/init.sh: Enable glibc's malloc-perturbing option.
34037
34038         maint.mk: improve sc_cross_check_PATH_usage_in_tests
34039         With my recent change in init.sh from the two-line form:
34040             -#   : ${srcdir=.}
34041             -#   . "$srcdir/init.sh"; path_prepend_ .
34042             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
34043         I noticed that using the one-line form would cause this test
34044         to fail with a false-positive, or to stop working altogether,
34045         depending on whether help-version changed or all the tests did.
34046         * top/maint.mk (_hv_regex): Remove this definition.
34047         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
34048         (_hv_regex_strong): Use a stronger regex to check for conformance.
34049         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
34050         Give a separate diagnostic for lack of conforming use.
34051
34052         maint.mk: prohibit definition of symbols defined by gnulib
34053         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
34054         definition of symbols defined by gnulib.
34055
34056 2010-05-09  Bruno Haible  <bruno@clisp.org>
34057
34058         acl: Avoid test failure on Cygwin-hosted mingw.
34059         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
34060
34061 2010-05-09  Bruno Haible  <bruno@clisp.org>
34062
34063         error: Use system's fcntl function.
34064         * lib/error.c (fcntl): Undefine.
34065
34066 2010-05-09  Jim Meyering  <meyering@redhat.com>
34067
34068         verify: adjust formatting to be more consistent
34069         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
34070         argument-list '('s, and after one comma.
34071
34072 2010-05-09  Bruno Haible  <bruno@clisp.org>
34073
34074         error: More reliable output on mingw.
34075         * lib/error.c: Include <windows.h>.
34076         (is_open): New function.
34077         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
34078         defined.
34079
34080 2010-05-09  Bruno Haible  <bruno@clisp.org>
34081
34082         vasnprintf: Fix syntax errors in libintl build on mingw.
34083         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
34084         pad_ourselves and prec_ourselves after use.
34085
34086 2010-05-08  Bruno Haible  <bruno@clisp.org>
34087
34088         * lib/config.charset: Update comments for Cygwin 1.7.
34089         * lib/localcharset.c: Likewise.
34090
34091 2010-05-07  Jim Meyering  <meyering@redhat.com>
34092
34093         init.sh: improve comments
34094         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
34095         . "${srcdir=.}/init.sh"; path_prepend_ .
34096         Add a note about path_prepend_ and the alternative of using
34097         TESTS_ENVIRONMENT.
34098
34099 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34100
34101         exclude: Unescape hashed patterns in wildcard mode.
34102         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
34103         to the hash list.
34104         * tests/test-exclude8.sh: New test case.
34105         * modules/exclude-tests: Add new test.
34106
34107 2010-05-05  Eric Blake  <eblake@redhat.com>
34108
34109         verify: automate tests
34110         * modules/verify-tests: New module.
34111         * tests/test-verify.sh: New file.
34112         * tests/test-verify.c: Guard each negative test with a unique id.
34113         Also avoid warning about unused left hand of comma expressions.
34114
34115 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34116
34117         Further improvements to verify.h, suggested by Eric Blake.
34118         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
34119         the GL_* versions, to avoid collision with OpenGL.
34120         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
34121         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
34122         than testing merely whether it's defined.
34123
34124         Modify verify.h to pacify gcc -Wredundant_decls.
34125         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
34126         These use the prefix "GL_" since they're likely to be useful elsewhere.
34127         We may need to break them out into a different .h file.
34128         (__COUNTER__): Define to 0 if the compiler doesn't support it.
34129         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
34130         of verify_function__.
34131
34132 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34133
34134         Tests for module pwrite.
34135         * modules/pwrite-tests: New file.
34136         * tests/test-pwrite.sh: New file.
34137         * tests/test-pwrite.c: New file.
34138
34139         New module pwrite.
34140         * lib/unistd.in.h (pwrite): New declaration.
34141         * lib/pwrite.c: New file, from glibc with modifications.
34142         * m4/pwrite.m4: New file.
34143         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
34144         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
34145         REPLACE_PWRITE.
34146         * modules/pwrite: New file.
34147         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
34148         REPLACE_PWRITE.
34149         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
34150         * doc/posix-functions/pwrite.texi: Mention the new module.
34151
34152 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34153
34154         pread: Update documentation.
34155         * doc/posix-functions/pread.texi: Mention the 'pread' module.
34156
34157 2010-05-04  Eric Blake  <eblake@redhat.com>
34158
34159         docs: update cygwin progress
34160         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
34161         this bug.
34162         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
34163         Added in cygwin 1.7.2.
34164         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
34165         Likewise.
34166         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
34167         Likewise.
34168         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34169         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34170         * doc/glibc-functions/accept4.texi (accept4): Likewise.
34171         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
34172         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
34173         Mention nproc module.
34174         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
34175         bug in cygwin 1.7.5 addition.
34176         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
34177         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
34178         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
34179         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
34180         1.7.5.
34181         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
34182         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
34183         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
34184         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
34185         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
34186         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
34187         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
34188         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
34189         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
34190         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
34191         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
34192         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
34193         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
34194         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
34195         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
34196         Likewise.
34197         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
34198         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
34199         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
34200         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
34201         Likewise.
34202         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
34203         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
34204         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
34205         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
34206         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
34207         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
34208         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
34209         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
34210         Likewise.
34211         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
34212         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
34213         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
34214         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
34215         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
34216         Likewise.
34217         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
34218         Likewise.
34219         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
34220         Likewise.
34221         * doc/glibc-functions/xdrrec_endofrecord.texi
34222         (xdrrec_endofrecord): Likewise.
34223         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
34224         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
34225         Likewise.
34226         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
34227         Likewise.
34228
34229 2010-05-04  Jim Meyering  <meyering@redhat.com>
34230
34231         gendocs.sh: make its "-s FILE" option more useful
34232         * build-aux/gendocs.sh: When honoring the -s FILE option, update
34233         $PACKAGE to reflect the probably-different basename of "FILE".
34234
34235 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34236
34237         bootstrap: don't ignore download_po_files failure
34238         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
34239         failure.
34240
34241 2010-05-03  Jim Meyering  <meyering@redhat.com>
34242
34243         maint.mk: allow to pass options to gendocs.sh
34244         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
34245         (gendocs_options_): New overridable variable.
34246
34247         gnu-web-doc-update: don't ignore configure or build failure
34248         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
34249
34250         announce-gen: backslash-escape '@'s in --help output
34251         * build-aux/announce-gen: Fix syntax errors.
34252
34253         maint.mk, announce-gen: allow project-specific announcement mail headers
34254         * top/maint.mk (translation_project_): Define default.
34255         (announcement_Cc_, announcement_mail_headers_): Likewise.
34256         (announcement): Invoke announce-gen with new --mail-headers option.
34257         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
34258
34259         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
34260         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
34261         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
34262         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
34263         line in the "err2" output file when running "make check" in verbose
34264         mode (i.e., with set -x enabled).
34265
34266 2010-05-03  Bruno Haible  <bruno@clisp.org>
34267
34268         wctob: Fix for weird platforms.
34269         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
34270         argument value.
34271
34272 2010-05-03  Jim Meyering  <meyering@redhat.com>
34273
34274         maint.mk: prohibit unwarranted use of <strings.h>
34275         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
34276         strings.h in a file that does not also use strcasecmp, strncasecmp,
34277         ffs or ffsll.
34278
34279         maint.mk: remove obsolete comments
34280         * top/maint.mk: Remove stale, commented-out rules.
34281
34282 2010-05-02  Bruno Haible  <bruno@clisp.org>
34283
34284         wcwidth: Declare also when it's aliased.
34285         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
34286         macro.
34287
34288 2010-05-02  Bruno Haible  <bruno@clisp.org>
34289
34290         Fix regression from 2010-04-25.
34291         * gnulib-tool (func_modules_transitive_closure): Check the status of
34292         all modules, not only of the tests that are of the form foo-tests where
34293         foo is a module.
34294
34295 2010-05-02  Bruno Haible  <bruno@clisp.org>
34296
34297         wctob: Work around nasty Cygwin 1.7.2 bug.
34298         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
34299         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
34300
34301 2010-05-01  Bruno Haible  <bruno@clisp.org>
34302
34303         fpurge: Sharper test.
34304         * tests/test-fpurge.c (main): Add one more ftell check.
34305         * modules/fpurge-tests (Depends-on): Add ftell.
34306         Suggested by Eric Blake.
34307
34308 2010-05-01  Bruno Haible  <bruno@clisp.org>
34309
34310         ftello: Another test.
34311         * tests/test-ftello3.c: New file.
34312         * modules/ftello-tests (Files): Add it.
34313         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34314         MOSTLYCLEANFILES.
34315
34316         ftell: Another test.
34317         * tests/test-ftell3.c: New file.
34318         * modules/ftell-tests (Files): Add it.
34319         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34320         MOSTLYCLEANFILES.
34321
34322 2010-05-01  Bruno Haible  <bruno@clisp.org>
34323
34324         ftell, ftello: Work around Solaris bug.
34325         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34326         * lib/ftello.c: Include stdio-impl.h.
34327         (ftello): On Solaris, when _IOWRT is set, compute the result without
34328         looking at _IOREAD.
34329         * modules/ftello (Files): Add lib/stdio-impl.h.
34330         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34331         * doc/posix-functions/ftello.texi: Likewise.
34332         Reported by Eric Blake.
34333
34334 2010-05-01  Bruno Haible  <bruno@clisp.org>
34335
34336         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34337         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34338         the _IOWRT flag is also set.
34339
34340 2010-05-01  Bruno Haible  <bruno@clisp.org>
34341
34342         Fix doc about a HP-UX stdio bug.
34343         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34344         * doc/posix-functions/ftello.texi: Likewise.
34345
34346 2010-05-01  Bruno Haible  <bruno@clisp.org>
34347
34348         lseek test: Fix failure on Solaris.
34349         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34350         output.
34351
34352 2010-04-30  Jim Meyering  <meyering@redhat.com>
34353
34354         bootstrap: don't ignore failure to generate po*/Makevars
34355         * build-aux/bootstrap (with_gettext): Don't ignore failure
34356         to create po/Makevars or runtime-po/Makevars.
34357
34358 2010-04-29  Eric Blake  <eblake@redhat.com>
34359
34360         headers: relax license to LGPLv2+
34361         * modules/fcntl-h (License): Relax license.
34362         * modules/getopt-posix (License): Likewise.
34363         * modules/locale (License): Likewise.
34364         * modules/math (License): Likewise.
34365         * modules/pty (License): Likewise.
34366         * modules/sched (License): Likewise.
34367         * modules/search (License): Likewise.
34368         * modules/spawn (License): Likewise.
34369         * modules/stdarg (License): Likewise.
34370         * modules/sysexits (License): Likewise.
34371
34372 2010-04-29  Jim Meyering  <meyering@redhat.com>
34373
34374         inttypes: relax license to LGPLv2+
34375         * modules/inttypes (License): Relax license.
34376
34377 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34378
34379         * top/maint.mk (indent): Run twice to produce idempotent results.
34380
34381 2010-04-28  Bruno Haible  <bruno@clisp.org>
34382
34383         getdate: Generate getdate.c in the source directory.
34384         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34385         MOSTLYCLEANFILES.
34386         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
34387
34388 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
34389
34390         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
34391         is not declared as a const *; avoid warnings in that case.
34392
34393 2010-04-28  Eric Blake  <eblake@redhat.com>
34394
34395         canonicalize-lgpl: avoid compiler warning
34396         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34397         declaration' / 'extraneous semicolon' warning with some compilers.
34398         Reported by Andreas Gruenbacher.
34399
34400 2010-04-28  Jim Meyering  <meyering@redhat.com>
34401
34402         init.sh: ensure a more reliable exit status when exiting via trap
34403         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34404         Inspired by patches from Dmitry V. Levin.
34405         Also trap on signal 3 (SIGQUIT).
34406
34407 2010-04-27  Bruno Haible  <bruno@clisp.org>
34408
34409         Update doc about utimes().
34410         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34411         'utimens' module.
34412         Reported by Andreas Gruenbacher <agruen@suse.de>.
34413
34414 2010-04-27  Eric Blake  <eblake@redhat.com>
34415
34416         full-read, full-write: relax license
34417         * modules/full-read (License): Drop to LGPLv2+.
34418         * modules/full-write (License): Likewise.
34419         * modules/safe-read (License): Likewise.
34420         * modules/safe-write (License): Likewise.
34421
34422         pthread: mention library for linking
34423         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34424
34425 2010-04-27  Jim Meyering  <meyering@redhat.com>
34426
34427         maint.mk: fix a bug introduced in last change
34428         * top/maint.mk (gl_assured_headers_): Now that all names are on
34429         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34430         is not anchored to end of word, it should be adequate.
34431
34432         maint.mk: avoid side-effect in latest syntax-check
34433         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34434         to run commands via $(shell...), and hence to incur cost only when
34435         the new rule is actually run.
34436
34437         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34438         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34439         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34440         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34441         (gl_assured_headers_, az_, AZ_): Define.
34442         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34443
34444 2010-04-26  Jim Meyering  <jim@meyering.net>
34445             Bruno Haible  <bruno@clisp.org>
34446
34447         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34448         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34449         Prompted by an exchange with Gilles Espinasse.
34450
34451 2010-04-26  Jim Meyering  <meyering@redhat.com>
34452
34453         git-version-gen: aesthetic tweak
34454         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34455         so that the command remains on a single line.
34456
34457 2010-04-26  Eric Blake  <eblake@redhat.com>
34458
34459         git-version-gen: allow use on EBCDIC hosts
34460         * build-aux/git-version-gen (dirty): Use literal rather than tying
34461         ourselves to ascii.
34462         Reported by Steve Goetze.
34463
34464 2010-04-25  Bruno Haible  <bruno@clisp.org>
34465
34466         netdb: Add support for GNULIB_POSIXCHECK.
34467         * lib/netdb.in.h: Include warn-on-use.h.
34468         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34469         functions are used when GNULIB_POSIXCHECK is defined and the
34470         getaddrinfo module is not in use.
34471         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34472         freeaddrinfo, gai_strerror, getnameinfo are declared.
34473         * modules/netdb (Depends-on): Add warn-on-use.
34474         (Makefile.am): Include warn-on-use.h in netdb.h.
34475
34476 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
34477
34478         build: avoid "make check" failure without .git/ directory
34479         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
34480         there is no .git/ directory.
34481
34482 2010-04-25  Bruno Haible  <bruno@clisp.org>
34483
34484         ptsname: Fix misuse of ttyname_r.
34485         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
34486         of errno.
34487
34488 2010-04-25  Bruno Haible  <bruno@clisp.org>
34489
34490         ttyname_r: Make it work on Solaris 10.
34491         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
34492         if the system function has the POSIX declaration. Test whether the
34493         function fails if the buffer is less than 128 bytes large.
34494         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
34495         system's ttyname_r function. Provide a reasonably large buffer.
34496         * modules/ttyname_r (Depends-on): Add extensions.
34497         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
34498
34499 2010-04-25  Bruno Haible  <bruno@clisp.org>
34500
34501         Use the 'extensions' module for some more functions on Solaris.
34502         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
34503         module.
34504         * doc/posix-functions/ctime_r.texi: Likewise.
34505         * doc/posix-functions/getgrgid_r.texi: Likewise.
34506         * doc/posix-functions/getgrnam_r.texi: Likewise.
34507         * doc/posix-functions/getpwnam_r.texi: Likewise.
34508         * doc/posix-functions/getpwuid_r.texi: Likewise.
34509         * doc/posix-functions/readdir_r.texi: Likewise.
34510         * doc/posix-functions/sigwait.texi: Likewise.
34511         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
34512         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
34513
34514 2010-04-25  Bruno Haible  <bruno@clisp.org>
34515
34516         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
34517         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
34518         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
34519         * lib/ttyname_r.c: Include <limits.h>.
34520         (ttyname_r): Define using the system's ttyname_r function, if it exists
34521         and not on Solaris.
34522         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
34523         set.
34524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
34525         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
34526         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
34527         Reported by Simon Josefsson.
34528
34529 2010-04-25  Bruno Haible  <bruno@clisp.org>
34530
34531         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
34532         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
34533         * doc/posix-functions/ctime_r.texi: Likewise.
34534         * doc/posix-functions/getgrgid_r.texi: Likewise.
34535         * doc/posix-functions/getgrnam_r.texi: Likewise.
34536         * doc/posix-functions/getlogin_r.texi: Likewise.
34537         * doc/posix-functions/getpwnam_r.texi: Likewise.
34538         * doc/posix-functions/getpwuid_r.texi: Likewise.
34539         * doc/posix-functions/readdir_r.texi: Likewise.
34540         * doc/posix-functions/sigwait.texi: Likewise.
34541         * doc/posix-functions/ttyname_r.texi: Likewise.
34542         Reported by Simon Josefsson.
34543
34544 2010-04-25  Bruno Haible  <bruno@clisp.org>
34545
34546         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
34547         * gnulib-tool (func_usage): Document that --with-*-tests options apply
34548         also to --create-testdir.
34549         (func_acceptable): Don't consider the status of *-tests modules here.
34550         (func_modules_transitive_closure): Consider it here, before including a
34551         test module.
34552         (func_import, func_create_testdir): Set inc_all_direct_tests,
34553         inc_all_indirect_tests.
34554         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
34555         --create-testdir and --create-megatestdir.
34556
34557 2010-04-25  Bruno Haible  <bruno@clisp.org>
34558
34559         gnulib-tool: Add --without-*-tests options.
34560         * gnulib-tool (func_usage): Document the --without-*-tests options.
34561         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
34562         excl_unportable_tests): New variables.
34563         Fail if they are specified with --import or --update.
34564         (func_acceptable): Respect the excl_*_tests variables.
34565         (func_import): Set the excl_*_tests variables to empty.
34566
34567 2010-04-25  Simon Josefsson  <simon@josefsson.org>
34568             Bruno Haible  <bruno@clisp.org>
34569
34570         Work around a MacOS X 10.4 bug with openpty.
34571         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
34572         * tests/test-openpty.c (main): Close the master side explicitly.
34573
34574 2010-04-25  Bruno Haible  <bruno@clisp.org>
34575
34576         strnlen: Fix a C++ test error on MacOS X and Solaris.
34577         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
34578         the function is not declared.
34579         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
34580         Simon Josefsson.
34581
34582 2010-04-24  Bruno Haible  <bruno@clisp.org>
34583
34584         Avoid a gcc warning.
34585         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
34586         of correct type for %08lx directive.
34587         Reported by Eric Blake.
34588
34589 2010-04-24  Bruno Haible  <bruno@clisp.org>
34590
34591         vasnprintf: Correct errno value in case of out-of-memory.
34592         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
34593         or sprintf. Use the errno value from SNPRINTF or sprintf.
34594         Reported by Ian Beckwith <ianb@erislabs.net>.
34595
34596 2010-04-24  Bruno Haible  <bruno@clisp.org>
34597
34598         ansi-c++-opt: Find correct compiler when cross-compiling.
34599         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
34600         AC_CHECK_PROGS.
34601         Reported by Simon Josefsson.
34602
34603 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
34604
34605         vc-list-files: Add support for subversion
34606         * build-aux/vc-list-files: Use "svn list" to generate the list of
34607         files controlled by subversion.
34608
34609 2010-04-23  Jim Meyering  <meyering@redhat.com>
34610
34611         vc-list-files tests: convert to use init.sh
34612         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
34613         path_prepend_.
34614         Use Exit, not exit.
34615         Use skip_ rather than open coding it.
34616         Remove trap set-up and compare definitions.
34617         * tests/test-vc-list-files-git.sh: Likewise.
34618         * modules/vc-list-files-tests (Files): Add tests/init.sh.
34619
34620 2010-04-22  Simon Josefsson  <simon@josefsson.org>
34621
34622         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
34623         backup files.
34624
34625 2010-04-21  Simon Josefsson  <simon@josefsson.org>
34626
34627         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
34628
34629 2010-04-20  Eric Blake  <eblake@redhat.com>
34630
34631         tests: be robust to ignored SIGPIPE
34632         * tests/test-select-in.sh: Consume all output.
34633         * tests/test-lseek.sh: Check correct exit status, while avoiding
34634         EPIPE.
34635
34636 2010-04-20  Simon Josefsson  <simon@josefsson.org>
34637             Bruno Haible  <bruno@clisp.org>
34638
34639         visibility: Don't use -fvisibility if it leads to a warning.
34640         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
34641         yes, don't pretend that visibility works if it leads to a warning.
34642         Reported by Mike Gran <spk121@yahoo.com>.
34643
34644 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
34645
34646         * build-aux/bootstrap: Use "git -h" for testing for supported options
34647         instead of "git --help".  The short-form option only shows a summary,
34648         and doesn't layout the full man page.  Grep for the full option name
34649         in the summary, too.
34650
34651 2010-04-19  Bruno Haible  <bruno@clisp.org>
34652
34653         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
34654         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
34655         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
34656         mention of RELOCATABLE_STRIP.
34657         Reported by Sylvain Beucler <beuc@beuc.net>.
34658
34659 2010-04-19  Bruno Haible  <bruno@clisp.org>
34660
34661         * lib/diffseq.h: Fix typo in comment.
34662         Reported by Eric Blake.
34663
34664 2010-04-19  Bruno Haible  <bruno@clisp.org>
34665
34666         ioctl: Move autoconf macro to a .m4 file.
34667         * m4/ioctl.m4: New file, extracted from modules/ioctl.
34668         * modules/ioctl (Files): Add it.
34669         (configure.ac): Simply invoke gl_FUNC_IOCTL.
34670         Reported by Ian Beckwith <ianb@erislabs.net>.
34671
34672 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
34673             Bruno Haible  <bruno@clisp.org>
34674
34675         diffseq: Accommodate use-case with abstract arrays.
34676         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
34677         is not defined.
34678         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
34679         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
34680
34681 2010-04-18  Bruno Haible  <bruno@clisp.org>
34682
34683         * doc/posix-headers/stdbool.texi: More precise wording.
34684
34685 2010-04-17  Jim Meyering  <meyering@redhat.com>
34686
34687         maint.mk: use gnu-style indentation in an embedded perl script
34688         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
34689         Rename variable: s/two/last_two_bytes/
34690
34691 2010-04-16  Eric Blake  <eblake@redhat.com>
34692
34693         test-stdbool: skip test that fails with Solaris CC
34694         * tests/test-stdbool.c (f): Skip test that causes compilation
34695         error under buggy C++ compiler.
34696         * lib/stdbool.in.h: Document the limitation.
34697         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
34698
34699         setenv: allow compilation with C++
34700         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
34701         register keyword.
34702
34703         stdint: allow test to pass with C++
34704         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
34705
34706         getopt: allow compilation with C++
34707         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
34708         struct.
34709         * lib/getopt.c (_getopt_internal_r): Use correct type.
34710         Reported by Dagobert Michelson, via Joel E. Denny.
34711
34712 2010-04-16  Bruno Haible  <bruno@clisp.org>
34713
34714         Override netdb.h always.
34715         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
34716         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
34717         Reported by Ludovic Courtès <ludo@gnu.org>.
34718
34719 2010-04-15  Bruno Haible  <bruno@clisp.org>
34720
34721         openpty: Fix mistake from 2010-03-21.
34722         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
34723         Reported by Simon Josefsson.
34724
34725 2010-04-15  Eric Blake  <eblake@redhat.com>
34726
34727         test-forkpty: fix expected signature
34728         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
34729         Reported by Simon Josefsson.
34730
34731 2010-04-15  Jim Meyering  <meyering@redhat.com>
34732
34733         maint.mk: texinfo_suffix_re_: correct the default regexp
34734         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
34735
34736         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
34737         make it configurable via texinfo_suffix_re_.
34738
34739 2010-04-14  Eric Blake  <eblake@redhat.com>
34740
34741         strtok_r: relax license to LGPLv2+
34742         * modules/strtok_r (License): Relax license.
34743         Reported by Matthias Bolte.
34744
34745 2010-04-14  Simon Josefsson  <simon@josefsson.org>
34746
34747         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
34748         version 1.4.4 by default instead of requiring the libgcrypt
34749         version used during build.  This makes it possible to use the
34750         application with older but still binary compatible libgcrypt
34751         versions.
34752
34753 2010-04-13  Eric Blake  <eblake@redhat.com>
34754
34755         getopt-gnu: match recent glibc fixes and posix ruling
34756         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
34757         '+' handling, when requesting extensions.
34758         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
34759         'W;' handling.
34760         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
34761         * doc/posix-functions/getopt.texi (getopt): Document this.
34762         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34763         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34764         Likewise.
34765
34766         getopt: merge bug fixes from glibc
34767         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
34768         diagnostics.  Honor '+:' correctly.  Reject ';'.
34769
34770         getopt-posix: detect MacOS bug
34771         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
34772         optind when missing a required argument.
34773         * doc/posix-functions/getopt.texi (getopt): Document the bug.
34774         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34775         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34776         Likewise.
34777
34778         getopt-posix: avoid spurious failure on Solaris
34779         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
34780         an indicator that setting optind=1 is sufficient for reset.
34781
34782         getopt-posix: avoid spurious failure on FreeBSD
34783         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
34784         in POSIX mode, since the m4 test uses it.
34785
34786         gnulib-tool: silence warning on BSD sh
34787         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
34788
34789 2010-04-13  Jim Meyering  <meyering@redhat.com>
34790
34791         doc: users.txt: GNU patch now uses gnulib
34792         * users.txt: Add patch.
34793
34794 2010-04-12  Jim Meyering  <meyering@redhat.com>
34795
34796         maint.mk: generate more concise timing data for syntax-check rules
34797         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
34798         " done" from each line that reports a syntax-check test duration.
34799
34800 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
34801
34802         git-version-gen: use "git update-index..." rather than "git status"
34803         * build-aux/git-version-gen: Use git update-index --refresh, not
34804         "git status".  With some versions of git, "git status" would fail
34805         to update the index and result in an unwarranted "-dirty" suffix.
34806
34807 2010-04-11  Jim Meyering  <meyering@redhat.com>
34808
34809         openat: correct formatting (no semantic change)
34810         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
34811         Suggested by Bruno Haible.
34812
34813 2010-04-11  Bruno Haible  <bruno@clisp.org>
34814
34815         Stricter declaration checking in testdirs.
34816         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34817         If for_tests is true, augment AM_CPPFLAGS to define
34818         GNULIB_STRICT_CHECKING.
34819         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
34820         GNULIB_STRICT_CHECKING is defined, verify that the function is
34821         declared.
34822
34823 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
34824             Bruno Haible  <bruno@clisp.org>
34825
34826         libunistring: Improve configure output.
34827         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
34828         Don't say "consider installing GNU libunistring" when checking again
34829         with libiconv.
34830
34831 2010-04-11  Bruno Haible  <bruno@clisp.org>
34832
34833         libunistring: Correct value of $LTLIBUNISTRING.
34834         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
34835         correct the value of $LTLIBUNISTRING.
34836
34837 2010-04-11  Bruno Haible  <bruno@clisp.org>
34838
34839         havelib: Add static libraries to LIBS in the right order.
34840         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
34841         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
34842
34843 2010-04-11  Bruno Haible  <bruno@clisp.org>
34844
34845         libunistring: Detect libunistring also when it depends on libiconv.
34846         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
34847         the second AC_LIB_HAVE_LINKFLAGS invocation.
34848
34849 2010-04-11  James Youngman  <jay@gnu.org>
34850
34851         close-stream: declare local scalars to be "const"
34852         * lib/close-stream.c (close_stream): Make boolean variables const
34853         to document the fact that we set but do not change them.
34854
34855 2010-04-11  Bruno Haible  <bruno@clisp.org>
34856
34857         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
34858
34859 2010-04-11  Jim Meyering  <meyering@redhat.com>
34860
34861         maint.mk: don't include dist-check.mk
34862         * top/maint.mk: Remove bogus include directive.
34863
34864         maint.mk: improve empty-line-at-EOF check
34865         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
34866         solution, rather than tail+Perl-based one.  The latter would read
34867         a few kilobytes from the end of each file, and did not handle empty
34868         files properly.
34869
34870         maint.mk: print the elapsed time for each syntax-check rule
34871         * top/maint.mk (sc_m_rules_): Save start time in a file.
34872         (sc_z_rules_): New rules: remove temp file and print elapsed time.
34873         (local-check): Interpose the .z rules
34874
34875 2010-04-11  Jim Meyering  <meyering@redhat.com>
34876
34877         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
34878         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
34879         empty file with one that ends in an empty line.
34880
34881 2010-04-10  Bruno Haible  <bruno@clisp.org>
34882
34883         mkdir: Make it work on mingw64.
34884         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
34885         * lib/mkdir.c: Update comment.
34886         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
34887
34888 2010-04-10  Bruno Haible  <bruno@clisp.org>
34889
34890         Don't override improved macro from newer autoconf.
34891         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
34892         autoconf >= 2.62.
34893         Reported by Joel E. Denny <jdenny@clemson.edu>.
34894
34895 2010-04-10  Jim Meyering  <meyering@redhat.com>
34896
34897         maint.mk: new syntax-check rule: prohibit empty lines at end of file
34898         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
34899
34900         maint.mk: correct a diagnostic
34901         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
34902         in diagnostic; now use $prohibit.
34903
34904 2010-04-10  Bruno Haible  <address@hidden>
34905
34906         fchownat: Fix a C++ test error on Solaris 8.
34907         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
34908         the function does not exist.
34909
34910 2010-04-10  Bruno Haible  <bruno@clisp.org>
34911
34912         vasnprintf: Add more tests.
34913         * tests/test-vasnprintf-posix.c: Include <errno.h>.
34914         (test_function): Test converting an invalid wide string.
34915
34916         vasnprintf: Correct handling of unconvertible wide string arguments.
34917         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
34918         VASNPRINTF.
34919         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
34920         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
34921         smaller than the expected maximum need for the directive. Set errno to
34922         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
34923         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
34924         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
34925         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
34926         * modules/vasnprintf (Files): Add m4/printf.m4.
34927         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34928
34929 2010-04-10  Bruno Haible  <bruno@clisp.org>
34930
34931         vasnprintf: Fix crash in %ls directive.
34932         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
34933         string is passed as argument to %ls, with no precision and no width.
34934         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34935
34936 2010-04-10  Bruno Haible  <bruno@clisp.org>
34937
34938         vasnprintf: Fix multiple test failures on mingw.
34939         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
34940         _snprintf, or snwprintf, not _snwprintf.
34941
34942 2010-04-10  Bruno Haible  <bruno@clisp.org>
34943
34944         write: Fix a C++ test error on mingw.
34945         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
34946
34947 2010-04-10  Bruno Haible  <bruno@clisp.org>
34948
34949         vasnprintf test: Reduce code duplication.
34950         * tests/test-vasnprintf.c (test_function): New function, extracted from
34951         test_vasnprintf.
34952         (test_vasnprintf, test_asnprintf): Invoke it.
34953
34954 2010-04-10  Bruno Haible  <bruno@clisp.org>
34955
34956         strnlen: Fix warning in C++ mode on MacOS X.
34957         * lib/string.in.h (strnlen): Use the modern idiom.
34958         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
34959         defining strnlen as a macro already in <config.h>.
34960         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34961         REPLACE_STRNLEN.
34962         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
34963         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34964
34965 2010-04-08  James Youngman  <jay@gnu.org>
34966
34967         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
34968         the example.
34969
34970 2010-04-09  Jim Meyering  <meyering@redhat.com>
34971
34972         maint.mk: print better diagnostic when there is no $(_hv_file)
34973         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
34974         announce that when $(_hv_file) (aka help-version) does not exist.
34975
34976         init.sh: run tr in the "C" locale to avoid multibyte interpretation
34977         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
34978         not try to interpret its random input bytes.  Jarno Rajahalme reported
34979         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
34980         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
34981         (mktempd_): Likewise, just in case.
34982
34983         ftruncate: add two years to projected module removal date: 2012
34984         * m4/ftruncate.m4: Adjust comments.
34985
34986         ftruncate: mark module as obsolete; even MinGW provides it, now
34987         * modules/ftruncate (Status): Obsolete.
34988         (Notice): Say that.
34989         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
34990         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
34991
34992 2010-04-08  Bruno Haible  <bruno@clisp.org>
34993
34994         Fix side effects from tests-related modules.
34995         * modules/dprintf-posix (Comment): New section.
34996         * modules/fprintf-posix (Comment): Likewise.
34997         * modules/obstack-printf-posix (Comment): Likewise.
34998         * modules/printf-posix (Comment): Likewise.
34999         * modules/snprintf-posix (Comment): Likewise.
35000         * modules/sprintf-posix (Comment): Likewise.
35001         * modules/vasnprintf-posix (Comment): Likewise.
35002         * modules/vasprintf-posix (Comment): Likewise.
35003         * modules/vdprintf-posix (Comment): Likewise.
35004         * modules/vfprintf-posix (Comment): Likewise.
35005         * modules/vprintf-posix (Comment): Likewise.
35006         * modules/vsnprintf-posix (Comment): Likewise.
35007         * modules/vsprintf-posix (Comment): Likewise.
35008         * modules/xprintf-posix (Comment): Likewise.
35009         * modules/xvasprintf-posix (Comment): Likewise.
35010         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
35011         * modules/floorf-tests (Depends-on): Likewise.
35012         * modules/round-tests (Depends-on): Likewise.
35013         * modules/roundf-tests (Depends-on): Likewise.
35014         * modules/trunc-tests (Depends-on): Likewise.
35015         * modules/truncf-tests (Depends-on): Likewise.
35016         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
35017         'fprintf-posix' module is not present.
35018         * tests/test-floorf2.c (check): Likewise.
35019         * tests/test-trunc2.c (check): Likewise.
35020         * tests/test-truncf2.c (check): Likewise.
35021         * tests/test-round2.c (equal): Likewise.
35022         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35023
35024 2010-04-07  Karl Berry  <karl@gnu.org>
35025
35026         * config/srclist.txt,
35027         * config/srclistvars.sh,
35028         * config/srclist-update: doc fixes.
35029
35030 2010-04-07  Jim Meyering  <meyering@redhat.com>
35031
35032         maint.mk: add a PATH crosschecking syntax-check rule
35033         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
35034         Useful if you use a test like the one in help-version (coreutils,
35035         diffutils, grep, gzip) that ensures $(VERSION) matches what is
35036         printed by prog --version.
35037
35038 2010-04-06  Bruno Haible  <bruno@clisp.org>
35039
35040         Fix link error on mingw.
35041         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
35042         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
35043
35044 2010-04-06  Bruno Haible  <bruno@clisp.org>
35045
35046         Assume rmdir exists.
35047         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
35048
35049 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
35050
35051         doc: update users.txt
35052         * users.txt: Add gcal.
35053
35054 2010-04-06  Jim Meyering  <meyering@redhat.com>
35055
35056         init.sh: simply unset TMPDIR rather than risking env -i
35057         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
35058         although it probably works fine on all Unix-based systems, some
35059         systems (Cygwin?) cannot tolerate a totally cleared environment.
35060         Suggestion from Eric Blake.
35061
35062 2010-04-06  Jim Meyering  <meyering@redhat.com>
35063
35064         init.sh: portability fix: use env's POSIX-specified -i option not -u
35065         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
35066         than unportable env -u.  Solaris 5.11's env lacks support for -u.
35067
35068 2010-04-05  Bruno Haible  <bruno@clisp.org>
35069
35070         btowc: Work around Cygwin 1.7.2 bug.
35071         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
35072         does not map NUL to 0.
35073         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
35074
35075 2010-04-05  Bruno Haible  <bruno@clisp.org>
35076
35077         Make the multithread modules work on Cygwin 1.7.2.
35078         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
35079         imported symbols can be declared weak, so that it returns "no" on
35080         Cygwin 1.7.2.
35081
35082 2010-04-05  Bruno Haible  <bruno@clisp.org>
35083
35084         Use the module 'strncat'.
35085         * modules/unistr/u8-strncat (Depends-on): Add strncat.
35086
35087         Tests for module 'strncat'.
35088         * modules/strncat-tests: New file.
35089         * tests/test-strncat.c: New file.
35090
35091         New module 'strncat'.
35092         * lib/string.in.h (strncat): New declaration.
35093         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
35094         * m4/strncat.m4: New file, based on m4/memchr.m4.
35095         * modules/strncat: New file.
35096         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
35097         is declared.
35098         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
35099         REPLACE_STRNCAT.
35100         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
35101         REPLACE_STRNCAT.
35102         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
35103         module.
35104         * tests/test-string-c++.cc: Check signature of strncat.
35105
35106 2010-04-05  Jim Meyering  <meyering@redhat.com>
35107
35108         xstrtoumax-tests: convert to use init.sh
35109         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
35110         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35111         Use Exit, not exit.
35112         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35113
35114         xstrtoimax-tests: convert to use init.sh
35115         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
35116         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35117         Use Exit, not exit.
35118         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35119
35120 2010-04-05  Bruno Haible  <bruno@clisp.org>
35121
35122         sys_socket: Avoid #define replacements in C++ mode.
35123         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
35124         warning to the function if possible, rather than #defining the symbol
35125         to a dysfunctional alias.
35126
35127 2010-04-05  Bruno Haible  <bruno@clisp.org>
35128
35129         fseeko: Fix C++ test error on mingw.
35130         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
35131         gl_FUNC_FSEEKO.
35132         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
35133         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
35134         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
35135         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
35136
35137 2010-04-05  Bruno Haible  <bruno@clisp.org>
35138
35139         duplocale: Improve test output.
35140         * tests/test-duplocale.c (main): Print reason for skipped test.
35141
35142 2010-04-05  Bruno Haible  <bruno@clisp.org>
35143
35144         Assume rmdir exists.
35145         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
35146         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
35147
35148 2010-04-05  Bruno Haible  <bruno@clisp.org>
35149
35150         Fix link error on Solaris 8 with cc.
35151         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
35152
35153 2010-04-05  Bruno Haible  <bruno@clisp.org>
35154
35155         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35156         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
35157
35158 2010-04-05  Bruno Haible  <bruno@clisp.org>
35159
35160         vasprintf: Update documentation.
35161         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
35162
35163 2010-04-05  Bruno Haible  <bruno@clisp.org>
35164
35165         ptsname: Improve test.
35166         * tests/test-ptsname.c (main): Also try the various master names of BSD
35167         systems.
35168
35169 2010-04-05  Bruno Haible  <bruno@clisp.org>
35170
35171         memchr: Avoid a possible C++ test error.
35172         * lib/string.in.h (memchr): Provide declaration if function is missing.
35173         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
35174         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
35175         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
35176         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
35177
35178 2010-04-05  Bruno Haible  <bruno@clisp.org>
35179
35180         strtok_r: Improve idiom.
35181         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
35182         AC_LIBOBJ is used.
35183
35184 2010-04-05  Bruno Haible  <bruno@clisp.org>
35185
35186         strdup: Improve idiom.
35187         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
35188         AC_LIBOBJ is used.
35189         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
35190         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
35191         when AC_LIBOBJ is used.
35192
35193 2010-04-05  Bruno Haible  <bruno@clisp.org>
35194
35195         mbsinit, mbrtowc, wcrtomb: Improve idioms.
35196         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
35197         don't set REPLACE_MBSINIT to 1.
35198         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
35199         don't set REPLACE_MBRTOWC to 1.
35200         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
35201         exist, don't set REPLACE_MBSRTOWCS to 1.
35202         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
35203         exist, don't set REPLACE_MBSNRTOWCS to 1.
35204         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
35205         don't set REPLACE_WCRTOMB to 1.
35206         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
35207         exist, don't set REPLACE_WCSRTOMBS to 1.
35208         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
35209         exist, don't set REPLACE_WCSNRTOMBS to 1.
35210
35211 2010-04-05  Bruno Haible  <bruno@clisp.org>
35212
35213         ldexpl: Improve idiom.
35214         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
35215         make sure to set HAVE_DECL_LDEXPL to 0.
35216
35217 2010-04-05  Jim Meyering  <meyering@redhat.com>
35218
35219         xstrtol-tests: convert to use init.sh
35220         * modules/xstrtol-tests (Files): Add tests/init.sh.
35221         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35222         Use Exit, not exit.
35223         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35224
35225         atexit-tests: convert to use init.sh
35226         * modules/atexit-tests (Files): Add tests/init.sh.
35227         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35228         Use Exit, not exit.
35229         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35230
35231         init.sh: fix typo
35232         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
35233
35234         init.sh: make it easier for a test script to write to the tty, ...
35235         when using automake's parallel-tests mode.
35236         * tests/init.sh (stderr_fileno_): Define overridable variable.
35237         (warn_): New function, to use it.
35238         (fail_, skip_, framework_failure_): Use warn_.
35239
35240 2010-04-04  Bruno Haible  <bruno@clisp.org>
35241
35242         btowc: Avoid warning.
35243         * lib/btowc.c: Include <stdlib.h>.
35244         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
35245
35246 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35247             Bruno Haible  <bruno@clisp.org>
35248
35249         wchar: Port to NetBSD 1.5.
35250         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
35251         * lib/wctype.in.h (WEOF): Likewise.
35252
35253 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35254             Bruno Haible  <bruno@clisp.org>
35255
35256         Port extended stdio to NetBSD 1.5.
35257         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
35258         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
35259         older.
35260
35261 2010-04-04  Bruno Haible  <bruno@clisp.org>
35262
35263         string: Remove unused substitution.
35264         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35265         HAVE_DECL_STRERROR.
35266         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
35267
35268 2010-04-04  Bruno Haible  <bruno@clisp.org>
35269
35270         strtod: Avoid a possible C++ test error.
35271         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
35272         set REPLACE_STRTOD.
35273
35274 2010-04-04  Bruno Haible  <bruno@clisp.org>
35275
35276         strerror: Update documentation.
35277         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
35278
35279 2010-04-04  Bruno Haible  <bruno@clisp.org>
35280
35281         stdio: Fix some C++ test errors on Solaris 8 with GCC.
35282         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
35283         _GL_CXXALIAS_SYS_CAST.
35284
35285 2010-04-04  Bruno Haible  <bruno@clisp.org>
35286
35287         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35288         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
35289         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
35290         REPLACE_FREXPL to 1.
35291         * doc/posix-functions/frexpl.texi: Update documentation.
35292
35293 2010-04-04  Bruno Haible  <bruno@clisp.org>
35294
35295         math: Fix some C++ test errors on Solaris 8 and Cygwin.
35296         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
35297
35298 2010-04-04  Bruno Haible  <bruno@clisp.org>
35299
35300         Implement nanosleep for native Windows.
35301         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
35302
35303 2010-04-04  Bruno Haible  <bruno@clisp.org>
35304
35305         math: Fix some C++ test errors on Solaris 8.
35306         * lib/math.in.h (truncf, trunc): Use simpler idiom.
35307
35308 2010-04-04  Bruno Haible  <bruno@clisp.org>
35309
35310         math: Fix some C++ test errors on Cygwin.
35311         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
35312         truncl): Provide declaration if the system does not have it.
35313         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
35314         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
35315         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
35316         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
35317         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
35318         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
35319         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
35320         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
35321         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
35322         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
35323         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35324         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35325         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35326         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35327         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35328         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35330         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35331         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35332         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35333         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35334         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35335
35336 2010-04-04  Bruno Haible  <bruno@clisp.org>
35337
35338         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35339         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35340         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35341         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35342         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35343         * m4/isinf.m4 (gl_ISINF): Likewise.
35344         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35345
35346 2010-04-04  Bruno Haible  <bruno@clisp.org>
35347
35348         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35349         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35350
35351 2010-04-04  Bruno Haible  <bruno@clisp.org>
35352
35353         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35354         * modules/tmpfile (configure.ac): Update.
35355
35356         tmpfile: Fix C++ test error on mingw.
35357         * lib/stdio.in.h (tmpfile): New declaration.
35358         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35359         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35360         * modules/tmpfile (Depends-on): Add stdio.
35361         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35362         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35363         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35364         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35365         REPLACE_TMPFILE.
35366         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35367
35368 2010-04-04  Bruno Haible  <bruno@clisp.org>
35369
35370         ioctl: Fix C++ test error on mingw.
35371         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35372         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35373         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35374
35375 2010-04-03  Bruno Haible  <bruno@clisp.org>
35376
35377         wcwidth: Fix C++ test error on mingw.
35378         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35380         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35381
35382 2010-04-03  Bruno Haible  <bruno@clisp.org>
35383
35384         nanosleep: Fix C++ test error on mingw.
35385         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35386         * lib/time.in.h (nanosleep): Use modern idiom.
35387         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
35388         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
35389         REPLACE_NANOSLEEP to 1.
35390         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
35391         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
35392
35393 2010-04-03  Bruno Haible  <bruno@clisp.org>
35394
35395         strptime: Fix C++ test error on mingw.
35396         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35397         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35398         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35399         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35400         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35401         not REPLACE_STRPTIME.
35402         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35403         REPLACE_STRPTIME.
35404
35405 2010-04-03  Bruno Haible  <bruno@clisp.org>
35406
35407         timegm: Fix C++ test error on mingw.
35408         * lib/time.in.h (timegm): Use modern idiom.
35409         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35410         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35411         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35412         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35413
35414 2010-04-03  Bruno Haible  <bruno@clisp.org>
35415
35416         timegm: Assume declaration if function exists.
35417         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35418         if it exists. Don't clobber ac_cv_func_timegm.
35419
35420 2010-04-03  Bruno Haible  <bruno@clisp.org>
35421
35422         time_r: Fix C++ test error on mingw.
35423         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35424         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35425         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35426         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35427         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35428
35429 2010-04-03  Bruno Haible  <bruno@clisp.org>
35430
35431         time_r: Minor updates.
35432         * modules/time_r (Description): Mention the provided functions.
35433         * lib/time_r.c: Don't include <string.h>.
35434         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35435         * doc/posix-functions/localtime_r.texi: Likewise.
35436
35437 2010-04-03  Bruno Haible  <bruno@clisp.org>
35438
35439         time: Fix regression introduced on 2010-03-08.
35440         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35441         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35442
35443 2010-04-03  Jim Meyering  <meyering@redhat.com>
35444
35445         maint.mk: don't silently disable project-specific syntax-check rules
35446         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35447         that they need to convert their project-specific syntax-check rules
35448         to use the new _sc_search_regexp.
35449
35450 2010-04-03  Bruno Haible  <bruno@clisp.org>
35451
35452         fchdir: Fix regression introduced on 2010-03-08.
35453         * lib/unistd.in.h (fchdir): Fix declaration.
35454         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35456         REPLACE_FCHDIR.
35457         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35458         REPLACE_FCHDIR.
35459
35460 2010-04-03  Bruno Haible  <bruno@clisp.org>
35461
35462         getpagesize: Fix C++ test error on mingw.
35463         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35464         system does not declare the function.
35465         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35466         declared.
35467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35468         HAVE_DECL_GETPAGESIZE.
35469         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35470
35471 2010-04-03  Bruno Haible  <bruno@clisp.org>
35472
35473         stdio: Make C++ tests work on mingw.
35474         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35475         does not declare the function.
35476
35477 2010-04-03  Bruno Haible  <bruno@clisp.org>
35478
35479         ftello: Fix C++ test error on mingw.
35480         * lib/stdio.in.h (ftello): Use modern idiom.
35481         * lib/ftello.c (ftello): Renamed from rpl_ftello.
35482         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
35483         is missing and that it needs to be replaced.
35484         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
35485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
35486         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
35487
35488 2010-04-03  Bruno Haible  <bruno@clisp.org>
35489
35490         fseeko: Fix C++ test error on mingw.
35491         * lib/stdio.in.h (fseeko): Use modern idiom.
35492         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
35493         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
35494         is missing and that it needs to be replaced.
35495         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
35496         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
35497         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
35498
35499 2010-04-03  Bruno Haible  <bruno@clisp.org>
35500
35501         mkstemp: Fix C++ test error on mingw.
35502         * lib/stdlib.in.h (mkstemp): Use modern idiom.
35503         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
35504         function is missing and that it needs to be replaced.
35505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
35506         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
35507
35508 2010-04-03  Bruno Haible  <bruno@clisp.org>
35509
35510         stpncpy: Fix C++ test error on mingw.
35511         * lib/string.in.h (stpncpy): Use modern idiom.
35512         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
35513         function is missing and that it needs to be replaced.
35514         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35515         REPLACE_STPNCPY.
35516         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
35517
35518 2010-04-03  Bruno Haible  <bruno@clisp.org>
35519
35520         sys_stat: Fix C++ test error on mingw.
35521         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
35522         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
35523
35524 2010-04-03  Bruno Haible  <bruno@clisp.org>
35525
35526         pty: Update doc.
35527         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
35528
35529 2010-04-03  Bruno Haible  <bruno@clisp.org>
35530
35531         unistd: Fix C++ test error on mingw.
35532         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
35533
35534 2010-04-03  Bruno Haible  <bruno@clisp.org>
35535
35536         Update doc regarding mingw.
35537         * doc/glibc-functions/openpty.texi: Update regarding mingw.
35538         * doc/glibc-functions/login_tty.texi: Likewise.
35539         * doc/glibc-functions/forkpty.texi: Likewise.
35540
35541 2010-04-03  Bruno Haible  <bruno@clisp.org>
35542
35543         stdlib: Avoid compilation failure of c-strtold on mingw.
35544         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
35545
35546 2010-04-03  Bruno Haible  <bruno@clisp.org>
35547
35548         locale: Make C++ tests work on Cygwin and mingw.
35549         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
35550         cannot provide the function.
35551         Reported by Simon Josefsson.
35552
35553 2010-04-03  Bruno Haible  <bruno@clisp.org>
35554
35555         localename: Port to MacOS X 10.6.
35556         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
35557         memory layout of the locales in MacOS X 10.6 as well.
35558         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
35559
35560 2010-04-02  Bruno Haible  <bruno@clisp.org>
35561
35562         gnulib-tool: Ensure that long-running tests are executed last.
35563         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
35564         running tests after the one for the other tests.
35565
35566 2010-04-02  Bruno Haible  <bruno@clisp.org>
35567
35568         gnulib-tool: Ensure the tests in the main directory are executed first.
35569         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
35570         start with the current directory.
35571
35572 2010-04-02  Bruno Haible  <bruno@clisp.org>
35573
35574         Tests for module 'havelib', moved here from GNU gettext.
35575         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
35576         modifications.
35577         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
35578         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
35579         with modifications.
35580         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
35581         modifications.
35582         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
35583         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
35584         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
35585         with modifications.
35586         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
35587         with modifications.
35588         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
35589         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
35590         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
35591         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
35592         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
35593         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
35594         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
35595         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
35596         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
35597         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
35598         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
35599         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
35600         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
35601         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
35602         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
35603         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
35604         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
35605         with modifications.
35606         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
35607         with modifications.
35608         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
35609         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
35610         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
35611         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
35612         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
35613         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
35614         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
35615         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
35616         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
35617         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
35618         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
35619         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
35620         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
35621         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
35622         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
35623         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
35624         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
35625         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
35626         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
35627         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
35628         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
35629         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
35630         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
35631         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
35632         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
35633         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
35634         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
35635         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
35636         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
35637         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
35638         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
35639         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
35640         * tests/havelib/rpathx/rpathx.c: New file, from
35641         gettext/autoconf-lib-link.
35642         * tests/havelib/rpathx/Makefile.am: New file, from
35643         gettext/autoconf-lib-link.
35644         * tests/havelib/rpathx/configure.ac: New file, from
35645         gettext/autoconf-lib-link with modifications.
35646         * tests/havelib/rpathy/rpathy.c: New file, from
35647         gettext/autoconf-lib-link.
35648         * tests/havelib/rpathy/Makefile.am: New file, from
35649         gettext/autoconf-lib-link.
35650         * tests/havelib/rpathy/configure.ac: New file, from
35651         gettext/autoconf-lib-link with modifications.
35652         * tests/havelib/rpathz/rpathz.c: New file, from
35653         gettext/autoconf-lib-link.
35654         * tests/havelib/rpathz/Makefile.am: New file, from
35655         gettext/autoconf-lib-link.
35656         * tests/havelib/rpathz/configure.ac: New file, from
35657         gettext/autoconf-lib-link with modifications.
35658         * tests/havelib/rpathlx/usex.c: New file, from
35659         gettext/autoconf-lib-link.
35660         * tests/havelib/rpathlx/Makefile.am: New file, from
35661         gettext/autoconf-lib-link.
35662         * tests/havelib/rpathlx/configure.ac: New file, from
35663         gettext/autoconf-lib-link with modifications.
35664         * tests/havelib/rpathly/usey.c: New file, from
35665         gettext/autoconf-lib-link.
35666         * tests/havelib/rpathly/Makefile.am: New file, from
35667         gettext/autoconf-lib-link.
35668         * tests/havelib/rpathly/configure.ac: New file, from
35669         gettext/autoconf-lib-link with modifications.
35670         * tests/havelib/rpathlz/usez.c: New file, from
35671         gettext/autoconf-lib-link.
35672         * tests/havelib/rpathlz/Makefile.am: New file, from
35673         gettext/autoconf-lib-link.
35674         * tests/havelib/rpathlz/configure.ac: New file, from
35675         gettext/autoconf-lib-link with modifications.
35676         * tests/havelib/rpathlyx/usey.c: New file, from
35677         gettext/autoconf-lib-link.
35678         * tests/havelib/rpathlyx/Makefile.am: New file, from
35679         gettext/autoconf-lib-link.
35680         * tests/havelib/rpathlyx/configure.ac: New file, from
35681         gettext/autoconf-lib-link with modifications.
35682         * tests/havelib/rpathlzyx/usez.c: New file, from
35683         gettext/autoconf-lib-link.
35684         * tests/havelib/rpathlzyx/Makefile.am: New file, from
35685         gettext/autoconf-lib-link.
35686         * tests/havelib/rpathlzyx/configure.ac: New file, from
35687         gettext/autoconf-lib-link with modifications.
35688         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
35689         with modifications.
35690
35691 2010-04-02  Bruno Haible  <bruno@clisp.org>
35692
35693         gnulib-tool: Create distributed built sources also for the tests.
35694         * gnulib-tool (func_create_testdir): Also generate distributed built
35695         sources in the tests directory.
35696
35697 2010-04-02  Bruno Haible  <bruno@clisp.org>
35698
35699         gnulib-tool: Obey user's environment variables.
35700         * gnulib-tool (func_create_testdir): When creating built sources,
35701         respect the environment variables for autoconf, automake, etc. given by
35702         the user.
35703
35704 2010-04-02  Bruno Haible  <bruno@clisp.org>
35705
35706         gnulib-tool: Provide the value of --m4-base to modules.
35707         * gnulib-tool (func_import, func_create_testdir): Emit a definition
35708         of gl_m4_base.
35709
35710 2010-04-02  Eric Blake  <eblake@redhat.com>
35711
35712         maint.mk: fix some fallout
35713         * NEWS: Document the incompatible change, and its effect on cfg.mk.
35714         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
35715
35716 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35717
35718         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
35719         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
35720         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
35721         (sc_cast_of_x_alloc_return_value): Likewise.
35722         (sc_cast_of_alloca_return_value): Likewise.
35723         (sc_space_tab): Likewise.
35724         (sc_prohibit_atoi_atof): Likewise.
35725         (sc_prohibit_magic_number_exit): Likewise.
35726         (sc_error_exit_success): Likewise.
35727         (sc_file_system): Likewise.
35728         (sc_prohibit_have_config_h): Likewise.
35729         (sc_require_config_h): Likewise.
35730         (sc_prohibit_HAVE_MBRTOWC): Likewise.
35731         (sc_obsolete_symbols): Likewise.
35732         (sc_changelog): Likewise.
35733         (sc_program_name): Likewise.
35734         (sc_the_the): Likewise.
35735         (sc_trailing_blank): Likewise.
35736         (sc_two_space_separator_in_usage): Likewise.
35737         (sc_useless_cpp_parens): Likewise.
35738         (sc_GPL_version): Likewise.
35739         (sc_GFDL_version): Likewise.
35740         (sc_texinfo_acronym): Likewise.
35741         (sc_prohibit_cvs_keyword): Likewise.
35742         (sc_prohibit_stat_st_blocks): Likewise.
35743         (sc_prohibit_S_IS_definition): Likewise.
35744         (sc_redundant_const): Likewise.
35745         (sc_makefile_TAB_only_indentation): Likewise.
35746         (sc_m4_quote_check): Likewise.
35747         (sc_makefile_path_separator_check): Likewise.
35748         (sc_copyright_check): Likewise.
35749         (sc_Wundef_boolean): Likewise.
35750         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
35751
35752         maint.mk: match 0 or more whitespace-before-function-call '('
35753         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
35754         that have zero or two-and-more spaces between the function name
35755         and the open parenthesis.
35756         (sc_error_message_warn_fatal): Likewise.
35757         (sc_error_message_uppercase): Likewise.
35758         (sc_error_message_period): Likewise.
35759
35760 2010-03-31  Eric Blake  <eblake@redhat.com>
35761
35762         maint.mk: check for [ as well as test
35763         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
35764         Based on a libvirt report by Matthias Bolte.
35765
35766         gnumakefile: don't squelch _version output
35767         * top/GNUmakefile (_version): Create one-shot dependency rather
35768         than using $(shell) when version must be regenerated.
35769         (_autoreconf): Run verbosely, by default.
35770
35771         sys_time: avoid compiler warnings
35772         * lib/sys_time.in.h (includes): Ensure gcc pragma is
35773         unconditional, fixing regression from 2010-03-29.
35774         Reported by Simon Josefsson.
35775
35776 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35777
35778         maint.mk: s/_header_without_use/_sc_header_without_use/
35779         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
35780         (sc_prohibit_assert_without_use): Use the new name.
35781         (sc_prohibit_close_stream_without_use): Likewise.
35782         (sc_prohibit_getopt_without_use): Likewise.
35783         (sc_prohibit_quotearg_without_use): Likewise.
35784         (sc_prohibit_quote_without_use): Likewise.
35785         (sc_prohibit_long_options_without_use): Likewise.
35786         (sc_prohibit_inttostr_without_use): Likewise.
35787         (sc_prohibit_ignore_value_without_use): Likewise.
35788         (sc_prohibit_error_without_use): Likewise.
35789         (sc_prohibit_xalloc_without_use): Likewise.
35790         (sc_prohibit_hash_without_use): Likewise.
35791         (sc_prohibit_hash_pjw_without_use): Likewise.
35792         (sc_prohibit_safe_read_without_use): Likewise.
35793         (sc_prohibit_argmatch_without_use): Likewise.
35794         (sc_prohibit_canonicalize_without_use): Likewise.
35795         (sc_prohibit_root_dev_ino_without_use): Likewise.
35796         (sc_prohibit_openat_without_use): Likewise.
35797         (sc_prohibit_c_ctype_without_use): Likewise.
35798         (sc_prohibit_signal_without_use): Likewise.
35799         (sc_prohibit_intprops_without_use): Likewise.
35800
35801 2010-03-30  Eric Blake  <eblake@redhat.com>
35802
35803         maint: improve module indicators
35804         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
35805         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
35806         columns, and avoid extra macro expansion.
35807
35808         fdopendir: work around FreeBSD bug
35809         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35810         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
35811         * modules/dirent (Makefile.am): Substitute it.
35812         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
35813         declaration.
35814         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
35815         fix.
35816         Reported by Christian Weisgerber <naddy@mips.inka.de>.
35817
35818 2010-03-29  Bruno Haible  <bruno@clisp.org>
35819
35820         Emit #pragma system_header after the inclusion guard, not before.
35821         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
35822         guard that spans the entire file, not before. This enables an
35823         optimization in GCC's preprocessor.
35824         * lib/ctype.in.h: Likewise.
35825         * lib/dirent.in.h: Likewise.
35826         * lib/errno.in.h: Likewise.
35827         * lib/float.in.h: Likewise.
35828         * lib/getopt.in.h: Likewise.
35829         * lib/iconv.in.h: Likewise.
35830         * lib/langinfo.in.h: Likewise.
35831         * lib/locale.in.h: Likewise.
35832         * lib/math.in.h: Likewise.
35833         * lib/netdb.in.h: Likewise.
35834         * lib/netinet_in.in.h: Likewise.
35835         * lib/pty.in.h: Likewise.
35836         * lib/sched.in.h: Likewise.
35837         * lib/se-selinux.in.h: Likewise.
35838         * lib/search.in.h: Likewise.
35839         * lib/spawn.in.h: Likewise.
35840         * lib/stdarg.in.h: Likewise.
35841         * lib/stdint.in.h: Likewise.
35842         * lib/string.in.h: Likewise.
35843         * lib/strings.in.h: Likewise.
35844         * lib/sys_file.in.h: Likewise.
35845         * lib/sys_ioctl.in.h: Likewise.
35846         * lib/sys_time.in.h: Likewise.
35847         * lib/sys_times.in.h: Likewise.
35848         * lib/sys_utsname.in.h: Likewise.
35849         * lib/sys_wait.in.h: Likewise.
35850         * lib/sysexits.in.h: Likewise.
35851         * lib/wctype.in.h: Likewise.
35852
35853 2010-03-28  James Youngman  <jay@gnu.org>
35854
35855         save-cwd: don't leak a file descriptor when the caller execs.
35856         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
35857         saved file descriptor.
35858         * modules/save-cwd (Depends-on): Depend on cloexec.
35859
35860 2010-03-29  Bruno Haible  <bruno@clisp.org>
35861
35862         Remove vestiges of fts-lgpl module.
35863         * lib/fts_.h: Assume GNULIB_FTS is 1.
35864         * lib/fts.c: Likewise.
35865         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35866
35867 2010-03-28  Bruno Haible  <bruno@clisp.org>
35868
35869         Fix definition of tests witness macro.
35870         * gnulib-tool (func_import): Fix definition of witness macro.
35871
35872 2010-03-28  Bruno Haible  <bruno@clisp.org>
35873
35874         Fix ioctl's protoype on glibc systems.
35875         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
35876         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
35877         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
35878         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
35879         signature. If not, arrange to replace the ioctl function.
35880         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35881         REPLACE_IOCTL.
35882         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
35883         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
35884         Reported by Ludovic Courtès <ludo@gnu.org>.
35885
35886 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
35887
35888         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
35889         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
35890         made it so grep -r --include=GLOB* ... did not work.
35891
35892 2010-03-26  Jim Meyering  <meyering@redhat.com>
35893             Eric Blake  <eblake@redhat.com>
35894
35895         maint.mk: prohibit use of test's -o and -a operators
35896         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
35897
35898 2010-03-28  Bruno Haible  <bruno@clisp.org>
35899
35900         Remove unused GNULIB_XYZ macro definitions.
35901         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
35902         invocation.
35903
35904 2010-03-28  Bruno Haible  <bruno@clisp.org>
35905
35906         Mark privileged tests modules.
35907         * modules/idpriv-drop-tests (Status): New section.
35908         * modules/idpriv-droptemp-tests (Status): New section.
35909
35910 2010-03-28  Bruno Haible  <bruno@clisp.org>
35911
35912         Split C++ tests into separate tests modules.
35913         * modules/dirent-c++-tests: New file, extracted from
35914         modules/dirent-tests.
35915         * modules/dirent-tests: Depend on it.
35916         * modules/fcntl-h-c++-tests: New file, extracted from
35917         modules/fcntl-h-tests.
35918         * modules/fcntl-h-tests: Depend on it.
35919         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
35920         * modules/glob-tests: Depend on it.
35921         * modules/iconv-h-c++-tests: New file, extracted from
35922         modules/iconv-h-tests.
35923         * modules/iconv-h-tests: Depend on it.
35924         * modules/langinfo-c++-tests: New file, extracted from
35925         modules/langinfo-tests.
35926         * modules/langinfo-tests: Depend on it.
35927         * modules/locale-c++-tests: New file, extracted from
35928         modules/locale-tests.
35929         * modules/locale-tests: Depend on it.
35930         * modules/math-c++-tests: New file, extracted from modules/math-tests.
35931         * modules/math-tests: Depend on it.
35932         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
35933         * modules/pty-tests: Depend on it.
35934         * modules/search-c++-tests: New file, extracted from
35935         modules/search-tests.
35936         * modules/search-tests: Depend on it.
35937         * modules/signal-c++-tests: New file, extracted from
35938         modules/signal-tests.
35939         * modules/signal-tests: Depend on it.
35940         * modules/spawn-c++-tests: New file, extracted from
35941         modules/spawn-tests.
35942         * modules/spawn-tests: Depend on it.
35943         * modules/stdio-c++-tests: New file, extracted from
35944         modules/stdio-tests.
35945         * modules/stdio-tests: Depend on it.
35946         * modules/stdlib-c++-tests: New file, extracted from
35947         modules/stdlib-tests.
35948         * modules/stdlib-tests: Depend on it.
35949         * modules/string-c++-tests: New file, extracted from
35950         modules/string-tests.
35951         * modules/string-tests: Depend on it.
35952         * modules/sys_ioctl-c++-tests: New file, extracted from
35953         modules/sys_ioctl-tests.
35954         * modules/sys_ioctl-tests: Depend on it.
35955         * modules/sys_select-c++-tests: New file, extracted from
35956         modules/sys_select-tests.
35957         * modules/sys_select-tests: Depend on it.
35958         * modules/sys_socket-c++-tests: New file, extracted from
35959         modules/sys_socket-tests.
35960         * modules/sys_socket-tests: Depend on it.
35961         * modules/sys_stat-c++-tests: New file, extracted from
35962         modules/sys_stat-tests.
35963         * modules/sys_stat-tests: Depend on it.
35964         * modules/sys_time-c++-tests: New file, extracted from
35965         modules/sys_time-tests.
35966         * modules/sys_time-tests: Depend on it.
35967         * modules/time-c++-tests: New file, extracted from modules/time-tests.
35968         * modules/time-tests: Depend on it.
35969         * modules/unistd-c++-tests: New file, extracted from
35970         modules/unistd-tests.
35971         * modules/unistd-tests: Depend on it.
35972         * modules/wchar-c++-tests: New file, extracted from
35973         modules/wchar-tests.
35974         * modules/wchar-tests: Depend on it.
35975         * modules/wctype-c++-tests: New file, extracted from
35976         modules/wctype-tests.
35977         * modules/wctype-tests: Depend on it.
35978         Reported by Simon Josefsson.
35979
35980 2010-03-28  Bruno Haible  <bruno@clisp.org>
35981
35982         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
35983         * gnulib-tool (func_exists_module): New function, extracted from
35984         func_verify_module.
35985         (func_verify_module): Use it.
35986         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
35987         'foo' only if 'foo' exists.
35988         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
35989         module.
35990
35991 2010-03-28  Bruno Haible  <bruno@clisp.org>
35992
35993         gnulib-tool: Add support for special categories of tests.
35994         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
35995         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
35996         (func_usage): Document them.
35997         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
35998         inc_unportable_tests, inc_all_tests): New variables.
35999         (func_acceptable): Consider these variables.
36000         (func_modules_transitive_closure): Make it work when the 'Status' field
36001         consists of multiple words.
36002         (func_import): Store and restore the values of inc_cxx_tests,
36003         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
36004         inc_all_tests in gnulib-comp.m4.
36005         (func_create_testdir): Set inc_all_tests to true.
36006         * doc/gnulib.texi (Extra tests modules): New section.
36007         Suggested by Jim Meyering.
36008
36009 2010-03-28  Bruno Haible  <bruno@clisp.org>
36010
36011         ansi-c++-opt: Allow turning off the C++ build by default.
36012         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
36013         gl_CXX_CHOICE_DEFAULT_NO is defined.
36014         Requested by Eric Blake.
36015
36016 2010-03-28  Bruno Haible  <bruno@clisp.org>
36017
36018         unistd: Avoid #define replacements in C++ mode.
36019         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
36020         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
36021         setsockopt, shutdown, select): In C++, attach a warning to the function
36022         if possible, rather than #defining the symbol to a dysfunctional alias.
36023         Reported by John W. Eaton <jwe@gnu.org>.
36024
36025 2010-03-28  Bruno Haible  <bruno@clisp.org>
36026
36027         Fix link errors on mingw.
36028         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
36029         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
36030         $(LIBSOCKET).
36031         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
36032         $(LIBSOCKET).
36033
36034 2010-03-28  Bruno Haible  <bruno@clisp.org>
36035             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36036
36037         lib-ignore: Determine different options for different compilers.
36038         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
36039         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
36040         Add comments.
36041         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
36042         * NEWS: Mention the change.
36043
36044 2010-03-27  Bruno Haible  <bruno@clisp.org>
36045
36046         Remove unused GNULIB_XYZ macro definitions.
36047         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36048         * modules/fseek (configure.ac): Likewise.
36049         * modules/ioctl (configure.ac): Likewise.
36050         * modules/open (configure.ac): Likewise.
36051         * modules/stdlib-safer (configure.ac): Likewise.
36052
36053 2010-03-27  Bruno Haible  <bruno@clisp.org>
36054
36055         Add a remark about certain modules.
36056         * modules/malloc (Comment): New section.
36057         * modules/realloc (Comment): Likewise.
36058         * modules/sigpipe (Comment): Likewise.
36059
36060 2010-03-27  Bruno Haible  <bruno@clisp.org>
36061
36062         Resolve conflict between the two kinds of module indicators.
36063         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
36064         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
36065         * modules/canonicalize (configure.ac): Invoke
36066         gl_MODULE_INDICATOR_FOR_TESTS.
36067         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
36068         GNULIB_XYZ.
36069         * tests/test-dirent-c++.cc: Likewise.
36070         * tests/test-dirent-safer.c: Likewise.
36071         * tests/test-dup2.c: Likewise.
36072         * tests/test-fchdir.c: Likewise.
36073         * tests/test-fcntl-h-c++.cc: Likewise.
36074         * tests/test-getopt.c: Likewise.
36075         * tests/test-getopt.h: Likewise.
36076         * tests/test-langinfo-c++.cc: Likewise.
36077         * tests/test-locale-c++.cc: Likewise.
36078         * tests/test-math-c++.cc: Likewise.
36079         * tests/test-pty-c++.cc: Likewise.
36080         * tests/test-search-c++.cc: Likewise.
36081         * tests/test-signal-c++.cc: Likewise.
36082         * tests/test-spawn-c++.cc: Likewise.
36083         * tests/test-stdio-c++.cc: Likewise.
36084         * tests/test-stdlib-c++.cc: Likewise.
36085         * tests/test-string-c++.cc: Likewise.
36086         * tests/test-sys_ioctl-c++.cc: Likewise.
36087         * tests/test-sys_select-c++.cc: Likewise.
36088         * tests/test-sys_socket-c++.cc: Likewise.
36089         * tests/test-sys_stat-c++.cc: Likewise.
36090         * tests/test-sys_time-c++.cc: Likewise.
36091         * tests/test-time-c++.cc: Likewise.
36092         * tests/test-unistd-c++.cc: Likewise.
36093         * tests/test-wchar-c++.cc: Likewise.
36094         * tests/uninorm/test-u8-nfc.c: Likewise.
36095         * tests/uninorm/test-u8-nfd.c: Likewise.
36096         * tests/uninorm/test-u8-nfkc.c: Likewise.
36097         * tests/uninorm/test-u8-nfkd.c: Likewise.
36098         * tests/uninorm/test-u16-nfc.c: Likewise.
36099         * tests/uninorm/test-u16-nfd.c: Likewise.
36100         * tests/uninorm/test-u16-nfkc.c: Likewise.
36101         * tests/uninorm/test-u16-nfkd.c: Likewise.
36102         * tests/uninorm/test-u32-nfc.c: Likewise.
36103         * tests/uninorm/test-u32-nfc-big.c: Likewise.
36104         * tests/uninorm/test-u32-nfd.c: Likewise.
36105         * tests/uninorm/test-u32-nfd-big.c: Likewise.
36106         * tests/uninorm/test-u32-nfkc.c: Likewise.
36107         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
36108         * tests/uninorm/test-u32-nfkd.c: Likewise.
36109         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
36110         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36111
36112 2010-03-27  Bruno Haible  <bruno@clisp.org>
36113
36114         Distinguish two kinds of module indicators.
36115         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
36116         gl_MODULE_INDICATOR.
36117         (gl_MODULE_INDICATOR): New macro.
36118         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36119         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
36120         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36121         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36122         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36123         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36124         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36125         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36126         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36127         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36128         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36129         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36130         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36131         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36132         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36133         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36134         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36135         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36136         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36137         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36138         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36139         * modules/cloexec (configure.ac): Likewise.
36140         * modules/getopt-gnu (configure.ac): Likewise.
36141         * modules/uninorm/u8-normalize (configure.ac): Likewise.
36142         * modules/uninorm/u16-normalize (configure.ac): Likewise.
36143         * modules/uninorm/u32-normalize (configure.ac): Likewise.
36144         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
36145
36146 2010-03-27  Bruno Haible  <bruno@clisp.org>
36147
36148         New module description field 'Comment'.
36149         * gnulib-tool: New option --extract-comment.
36150         (func_usage): Document it.
36151         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
36152         (func_get_comment): New function.
36153         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
36154
36155 2010-03-27  Bruno Haible  <bruno@clisp.org>
36156
36157         Addendum to 2010-02-07 commit.
36158         * gnulib-tool (func_usage): Document --extract-applicability option.
36159
36160 2010-03-27  Bruno Haible  <bruno@clisp.org>
36161
36162         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
36163         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
36164         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
36165         rather than link errors.
36166
36167 2010-03-27  Bruno Haible  <bruno@clisp.org>
36168
36169         Avoid side effects from tests-related modules on the compilation of lib.
36170         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
36171         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
36172         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
36173         parameter. Emit into AM_CPPFLAGS a definition of the designated C
36174         macro.
36175         (func_import): Define a witness macro. Assign it a value that depends
36176         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
36177         tests-related modules.
36178         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
36179         Reported by Jim Meyering.
36180
36181 2010-03-27  Bruno Haible  <bruno@clisp.org>
36182
36183         Factorize common .m4 code.
36184         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
36185         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
36186         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
36187         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
36188         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36189         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
36190         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
36191         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36192         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36193         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36194         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
36195         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36196         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36197         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36198         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36199         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
36200         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36201         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36202         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36203         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
36204         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
36205         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36206         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36207         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36208         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36209         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36210         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
36211         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
36212         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
36213         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36214         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36215         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36216
36217 2010-03-27  Bruno Haible  <bruno@clisp.org>
36218
36219         Fix a compilation error on Cygwin with g++ >= 4.3.
36220         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
36221         if it is undefined or if we alias it to chmod.
36222         (lstat): Don't warn about the use of this function if it is undefined
36223         or if we alias it to stat.
36224         Reported by Simon Josefsson.
36225
36226 2010-03-27  Bruno Haible  <bruno@clisp.org>
36227
36228         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
36229         * modules/getlogin (configure.ac): Update.
36230
36231         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
36232         * modules/getlogin_r (configure.ac): Update.
36233
36234         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
36235         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
36236         * modules/inet_ntop (configure.ac): Update.
36237
36238         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
36239         * modules/inet_pton (configure.ac): Update.
36240
36241         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
36242         * modules/mbslen (configure.ac): Update.
36243
36244         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
36245         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
36246         * modules/forkpty (configure.ac): Update.
36247         * modules/openpty (configure.ac): Update.
36248
36249 2010-03-26  Simon Josefsson  <simon@josefsson.org>
36250
36251         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
36252         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
36253
36254 2010-03-25  Eric Blake  <eblake@redhat.com>
36255
36256         maint: use pragma consistently across replacement headers
36257         * lib/ctype.in.h (system_header): Hoist for consistent placement.
36258         * lib/dirent.in.h (system_header): Likewise.
36259         * lib/errno.in.h (system_header): Likewise.
36260         * lib/float.in.h (system_header): Likewise.
36261         * lib/getopt.in.h (system_header): Likewise.
36262         * lib/iconv.in.h (system_header): Likewise.
36263         * lib/inttypes.in.h (system_header): Likewise.
36264         * lib/langinfo.in.h (system_header): Likewise.
36265         * lib/locale.in.h (system_header): Likewise.
36266         * lib/math.in.h (system_header): Likewise.
36267         * lib/netdb.in.h (system_header): Likewise.
36268         * lib/netinet_in.in.h (system_header): Likewise.
36269         * lib/pty.in.h (system_header): Likewise.
36270         * lib/sched.in.h (system_header): Likewise.
36271         * lib/se-selinux.in.h (system_header): Likewise.
36272         * lib/search.in.h (system_header): Likewise.
36273         * lib/spawn.in.h (system_header): Likewise.
36274         * lib/stdarg.in.h (system_header): Likewise.
36275         * lib/stdint.in.h (system_header): Likewise.
36276         * lib/string.in.h (system_header): Likewise.
36277         * lib/strings.in.h (system_header): Likewise.
36278         * lib/sys_file.in.h (system_header): Likewise.
36279         * lib/sys_ioctl.in.h (system_header): Likewise.
36280         * lib/sys_socket.in.h (system_header): Likewise.
36281         * lib/sys_times.in.h (system_header): Likewise.
36282         * lib/sys_utsname.in.h (system_header): Likewise.
36283         * lib/sys_wait.in.h (system_header): Likewise.
36284         * lib/sysexits.in.h (system_header): Likewise.
36285         * lib/unistd.in.h (system_header): Likewise.
36286         * lib/wctype.in.h (system_header): Likewise.
36287
36288         arpa/inet: fix mingw compilation warning
36289         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
36290         Reported by Matthew Bolte.
36291
36292 2010-03-25  Bruno Haible  <bruno@clisp.org>
36293
36294         Avoid collision between gnulib wrapper and libintl wrapper.
36295         * lib/printf.c (printf): Don't define if a printf wrapper is already
36296         defined in intl/printf.c.
36297         Reported by Michel Boaventura <michel@michelboaventura.com>.
36298
36299 2010-03-25  Bruno Haible  <bruno@clisp.org>
36300
36301         Use ANSI C.
36302         * lib/readutmp.h (getutent): Provide ANSI C prototype.
36303
36304 2010-03-25  Bruno Haible  <bruno@clisp.org>
36305
36306         Minor formatting changes.
36307         * lib/acosl.c: Insert space before function argument list.
36308         * lib/argz.c: Likewise.
36309         * lib/asinl.c: Likewise.
36310         * lib/expl.c: Likewise.
36311         * lib/gen-uni-tables.c: Likewise.
36312         * lib/gettext.h: Likewise.
36313         * lib/glthread/lock.h: Likewise.
36314         * lib/tanl.c: Likewise.
36315         * lib/uniname/uniname.c: Likewise.
36316         * tests/test-idpriv-drop.c: Likewise.
36317         * tests/test-idpriv-droptemp.c: Likewise.
36318         * tests/test-lock.c: Likewise.
36319         * tests/test-tls.c: Likewise.
36320         * lib/argp-help.c: Insert space before function-like macro argument
36321         list.
36322         * lib/memcmp.c: Likewise.
36323         * tests/test-base64.c: Likewise.
36324         * lib/localename.c: Insert space before sizeof's argument list.
36325         * lib/safe-alloc.h: Likewise.
36326         * lib/file-set.h: Insert space before macro argument list.
36327         * tests/test-argp.c: Likewise.
36328         * lib/argp-namefrob.h: Insert space before function parameter list.
36329         * lib/getaddrinfo.c: Likewise.
36330         * lib/netdb.in.h: Likewise.
36331         * lib/parse-duration.h: Likewise.
36332         * lib/parse-duration.c: Likewise.
36333         * lib/poll.c: Likewise.
36334         * lib/select.c: Likewise.
36335         * lib/trim.h: Likewise.
36336         * tests/test-usleep.c: Likewise.
36337         * lib/ldexpl.c: Insert space before function parameter list and before
36338         function argument list.
36339         * lib/logl.c: Likewise.
36340         * lib/sqrtl.c: Likewise.
36341         * lib/trim.c: Likewise.
36342         * lib/cosl.c: Use GNU style indentation. Insert space before function
36343         argument list.
36344         * lib/sinl.c: Likewise.
36345         * lib/tsearch.c: Insert space after 'for'.
36346         Reported by Jim Meyering.
36347
36348 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36349
36350         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36351         config header before grepping, as it's not present before
36352         autoreconf/configure are run.  Reported by Simon Josefsson.
36353
36354 2010-03-23  Bruno Haible  <bruno@clisp.org>
36355
36356         pt_chown: Make it work with automake < 1.11.
36357         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36358         Reported by Simon Josefsson.
36359
36360 2010-03-23  Bruno Haible  <bruno@clisp.org>
36361
36362         pt_chown: Don't depend on GPLed modules.
36363         * lib/pt_chown.c: Don't include idpriv.h.
36364         (main): Don't drop privileges.
36365         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36366         Reported by Simon Josefsson.
36367
36368 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36369
36370         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36371         suggestions from karl@freefriends.org (Karl Berry).
36372
36373 2010-03-22  Eric Blake  <eblake@redhat.com>
36374
36375         gethostname: further tweaks
36376         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36377         are overriding gethostname.
36378         Suggested by Bruno Haible.
36379
36380 2010-03-21  Bruno Haible  <bruno@clisp.org>
36381
36382         Fix comments.
36383         * lib/forkpty.c (rpl_forkpty): Fix comment.
36384         * lib/openpty.c (rpl_openpty): Likewise.
36385         Reported by Eric Blake.
36386
36387 2010-03-22  Eric Blake  <eblake@redhat.com>
36388
36389         gethostname: fix build on mingw
36390         * lib/unistd.in.h (includes): Work around fact that mingw
36391         <winsock2.h> re-includes <unistd.h>, by avoiding any
36392         redeclarations if we are being included by <winsock2.h>.
36393         Reported by Matthias Bolte.
36394
36395 2010-03-21  Bruno Haible  <bruno@clisp.org>
36396
36397         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36398         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36399         modifications.
36400         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36401         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36402         provide the replacement.
36403         * modules/forkpty (Depends-on): Add openpty, login_tty.
36404         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36405         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36406         * doc/glibc-functions/forkpty.texi: More supported platforms.
36407         * config/srclist.txt: Add forkpty.c (commented).
36408
36409 2010-03-21  Bruno Haible  <bruno@clisp.org>
36410
36411         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36412         (Makefile.am): Verify that PTY_LIB is defined.
36413
36414         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36415
36416 2010-03-21  Bruno Haible  <bruno@clisp.org>
36417
36418         Tests for module 'login_tty'.
36419         * modules/login_tty-tests: New file.
36420         * tests/test-login_tty.c: New file.
36421
36422         New module 'login_tty'.
36423         * lib/login_tty.c: New file.
36424         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36425         * modules/login_tty: New file.
36426         * doc/glibc-functions/login_tty.texi: Mention the new module.
36427
36428 2010-03-21  Bruno Haible  <bruno@clisp.org>
36429
36430         login_tty: Documentation.
36431         * doc/glibc-functions/login_tty.texi: New file.
36432         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36433
36434 2010-03-21  Bruno Haible  <bruno@clisp.org>
36435
36436         pty: Consistent macro naming.
36437         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36438         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36439         * modules/pty (configure.ac): Update.
36440
36441 2010-03-21  Bruno Haible  <bruno@clisp.org>
36442
36443         Tests for openpty: Make stricter.
36444         * tests/test-openpty.c (main): Add test of canonical processing and
36445         erase.
36446         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36447
36448         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36449         * lib/openpty.c (openpty): New replacement function.
36450         * lib/pty.in.h: Include <termios.h>.
36451         (openpty): Update declaration. Add comments.
36452         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36453         is not declared, arrange to provide the replacement. Check for _getpty
36454         and posix_openpt.
36455         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36456         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36457         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36458         * modules/pty-tests (test_pty_c___LDADD): New variable.
36459         * doc/glibc-functions/openpty.texi: More supported platforms.
36460
36461 2010-03-21  Bruno Haible  <bruno@clisp.org>
36462
36463         setenv: Tweaks.
36464         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36465         the test program.
36466         * doc/posix-functions/setenv.texi: Update platforms list.
36467
36468 2010-03-21  Bruno Haible  <bruno@clisp.org>
36469
36470         New module 'unlockpt'.
36471         * lib/unlockpt.c: New file, from glibc with modifications.
36472         * m4/unlockpt.m4: New file.
36473         * modules/unlockpt: New file.
36474         * lib/stdlib.in.h (unlockpt): New declaration.
36475         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36476         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
36477         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
36478         HAVE_UNLOCKPT.
36479         * doc/posix-functions/unlockpt.texi: Mention the new module.
36480         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36481         * config/srclist.txt: Add unlockpt.c (commented).
36482
36483 2010-03-21  Jim Meyering  <meyering@redhat.com>
36484
36485         maint.mk: prohibit inclusion of "intprops.h" without use
36486         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
36487
36488 2010-03-21  Bruno Haible  <bruno@clisp.org>
36489
36490         New module 'grantpt'.
36491         * lib/grantpt.c: New file, from glibc with modifications.
36492         * m4/grantpt.m4: New file.
36493         * modules/grantpt: New file.
36494         * lib/stdlib.in.h (grantpt): New declaration.
36495         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
36496         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
36497         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
36498         HAVE_GRANTPT.
36499         * doc/posix-functions/grantpt.texi: Mention the new module.
36500         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
36501         * config/srclist.txt: Add grantpt.c (commented).
36502
36503 2010-03-21  Bruno Haible  <bruno@clisp.org>
36504
36505         New module 'pt_chown'.
36506         * lib/pt_chown.c: New file, from glibc with modifications.
36507         * lib/pty-private.h: New file, from glibc with modifications.
36508         * modules/pt_chown: New file.
36509         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
36510
36511 2010-03-21  Bruno Haible  <bruno@clisp.org>
36512
36513         Tests for module 'ptsname'.
36514         * modules/ptsname-tests: New file.
36515         * tests/test-ptsname.c: New file.
36516
36517         New module 'ptsname'.
36518         * lib/ptsname.c: New file, from glibc with modifications.
36519         * m4/ptsname.m4: New file.
36520         * modules/ptsname: New file.
36521         * lib/stdlib.in.h (ptsname): New declaration.
36522         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
36523         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
36524         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
36525         HAVE_PTSNAME.
36526         * doc/posix-functions/ptsname.texi: Mention the new module.
36527         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
36528         * config/srclist.txt: Add ptsname.c (commented).
36529
36530 2010-03-21  Bruno Haible  <bruno@clisp.org>
36531
36532         Tests for module 'ttyname_r'.
36533         * modules/ttyname_r-tests: New file.
36534         * tests/test-ttyname_r.c: New file.
36535
36536         New module 'ttyname_r'.
36537         * lib/ttyname_r.c: New file.
36538         * m4/ttyname_r.m4: New file.
36539         * modules/ttyname_r: New file.
36540         * lib/unistd.in.h (ttyname_r): New declaration.
36541         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
36542         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
36543         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
36544         HAVE_TTYNAME_R.
36545         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
36546         * doc/posix-functions/ttyname_r.texi: Mention the new module.
36547
36548 2010-03-20  Bruno Haible  <bruno@clisp.org>
36549
36550         signal: Undefine macro definitions in C++ mode.
36551         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
36552         sigfillset): Undefine macro definitions from the system header in C++
36553         mode.
36554         Reported by John W. Eaton <jwe@gnu.org>.
36555
36556 2010-03-20  Bruno Haible  <bruno@clisp.org>
36557
36558         Ensure no #include statements inside extern "C" { ... }.
36559         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
36560         contain #include statements.
36561         * lib/time.in.h: Likewise.
36562
36563 2010-03-20  Bruno Haible  <bruno@clisp.org>
36564
36565         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
36566         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
36567         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
36568         Reported by John W. Eaton <jwe@gnu.org>.
36569
36570 2010-03-20  Bruno Haible  <bruno@clisp.org>
36571
36572         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
36573         Reported by Jim Meyering.
36574
36575 2010-03-20  Bruno Haible  <bruno@clisp.org>
36576
36577         pipe: Set errno upon failure.
36578         * lib/pipe.h: Specify that when -1 is returned, errno is set.
36579         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
36580         errno value in error message.
36581
36582 2010-03-20  Bruno Haible  <bruno@clisp.org>
36583             Jim Meyering  <meyering@redhat.com>
36584
36585         lchown: Avoid "unused variable" warning.
36586         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
36587
36588 2010-03-20  Bruno Haible  <bruno@clisp.org>
36589
36590         Work around unlink() bug on MacOS X 10.5.6.
36591         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
36592         attempting to unlink a parent directory.
36593         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
36594         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
36595         activate for the replacement function.
36596         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
36597
36598 2010-03-20  Bruno Haible  <bruno@clisp.org>
36599
36600         Fix link errors on Solaris 8.
36601         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
36602         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
36603
36604 2010-03-19  Jim Meyering  <meyering@redhat.com>
36605
36606         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
36607         The _LIBC implementation of build_range_exp correctly honors the
36608         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
36609         However, the non-_LIBC implementation would ignore that syntax-bit
36610         flag and return REG_ERANGE unconditionally.
36611         This change makes it honor that flag.
36612         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
36613         Make two pointer parameters "const".
36614         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
36615         (parse_bracket_exp): Update caller.
36616
36617         regex.m4: correct the reversed range endpoint ([b-a]) test
36618         * m4/regex.m4: When requiring that [b-a] evoke failure,
36619         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
36620         test pass once again for x86-based systems.
36621
36622 2010-03-19  Bruno Haible  <bruno@clisp.org>
36623
36624         scandir: Fix link error on Solaris 8.
36625         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
36626         macros.
36627
36628 2010-03-19  Bruno Haible  <bruno@clisp.org>
36629
36630         getusershell: Fix documentation.
36631         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
36632         module.
36633         * doc/glibc-functions/setusershell.texi: Likewise.
36634
36635         getusershell: Provide declaration, missing on Solaris 9.
36636         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
36637         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
36638         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
36639         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
36640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36641         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
36642         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
36643         HAVE_GETUSERSHELL.
36644         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
36645
36646 2010-03-19  Bruno Haible  <bruno@clisp.org>
36647
36648         wctype: Provide iswblank function.
36649         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
36650         exists and is fine.
36651         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
36652         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
36653         * tests/test-wctype.c (main): Re-enable the iswblank tests.
36654         * doc/posix-functions/iswblank.texi: Update.
36655
36656 2010-03-19  Bruno Haible  <bruno@clisp.org>
36657
36658         Tests of module 'pty' in C++ mode.
36659         * modules/pty-tests: New file.
36660         * tests/test-pty-c++.cc: New file.
36661         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36662
36663 2010-03-19  Eric Blake  <eblake@redhat.com>
36664
36665         logb: fix documentation
36666         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
36667         1.5 declaration bug.
36668
36669         forkpty, openpty: prefer glibc's const-safe prototype
36670         * lib/forkpty.c (rpl_forkpty): New file.
36671         * lib/openpty.c (rpl_openpty): Likewise.
36672         * modules/forkpty (Files): Distribute it.
36673         * modules/openpty (Files): Likewise.
36674         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
36675         check...
36676         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
36677         replacement for for non-const BSD signature.
36678         * modules/pty (Makefile.am): Substitute witnesses.
36679         * lib/pty.in.h (forkpty, openpty): Declare replacements.
36680         * tests/test-forkpty.c: Update signature check.
36681         * tests/test-openpty.c: Likewise.
36682         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
36683         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36684
36685         forkpty, openpty: split functions into new modules
36686         * modules/pty (Makefile.am): Substitute new witnesses.
36687         (Libraries): Move library detection...
36688         * modules/forkpty: ...into new module.
36689         * modules/openpty: Another new module.
36690         * modules/pty-tests: Rename and split...
36691         * modules/forkpty-tests: ...to this...
36692         * modules/openpty-tests: ...and this.
36693         * tests/test-pty.c: Rename and split...
36694         * tests/test-forkpty.c: ...to this...
36695         * tests/test-openpty.c: ...and this.
36696         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
36697         (gl_PTY): Split library searching...
36698         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
36699         (gl_FORKPTY, gl_OPENPTY): New macros.
36700         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
36701         * NEWS: Mention the split.
36702         * MODULES.html.sh (Misc): Document the modules.
36703         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
36704         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36705
36706         pty: improve replacement header
36707         * lib/pty.in.h: New file.
36708         * modules/pty (Files): Ship it.
36709         (Makefile.am): Always build replacement.
36710         * m4/pty.m4: Rename...
36711         * m4/pty_h.m4: ...to this.
36712         (gl_PTY): Modernize setting of witness macros; update check of
36713         forkpty to take proper advantage of cache.
36714         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
36715
36716         getopt: avoid compiler warning
36717         * lib/getopt.c (attribute_hidden): Remove unused macro.
36718
36719 2010-03-18  Bruno Haible  <bruno@clisp.org>
36720
36721         Fix link errors on Solaris 8.
36722         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
36723         * modules/search-tests (test_search_c___LDADD): Likewise.
36724         * modules/signal-tests (test_signal_c___LDADD): Likewise.
36725         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
36726         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
36727         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
36728         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
36729         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
36730         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
36731
36732 2010-03-18  Bruno Haible  <bruno@clisp.org>
36733
36734         Fix bug introduced on 2010-03-14.
36735         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
36736         (gl_SPAWN_H): Require it.
36737         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
36738         Reported by Simon Josefsson.
36739
36740 2010-03-18  Bruno Haible  <bruno@clisp.org>
36741
36742         Fix typo introduced on 2009-12-31.
36743         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
36744         posix_spawn_file_actions_adddup2.
36745
36746 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
36747         and Eric Blake  <eblake@redhat.com>
36748
36749         test-vc-list-files-git: make more robust
36750         * tests/test-vc-list-files-git.sh: Unset problematic environment
36751         variables.  Chain commands together.
36752
36753 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
36754
36755         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
36756         `AC_CHECK_DECL' invocation.
36757
36758 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
36759
36760         * lib/inttostr.c (inttostr): Make sure the invocation of verify
36761         appears before executable statements. Suggested by Petr Sumbera
36762         <Petr.Sumbera@Sun.COM>.
36763
36764 2010-03-14  Bruno Haible  <bruno@clisp.org>
36765
36766         * tests/test-flock.c (test_exclusive): Comment out a test that causes
36767         portability problems. Instead use a simpler test.
36768         (main): Check that invalid arguments are rejected only on Linux.
36769
36770 2010-03-14  Bruno Haible  <bruno@clisp.org>
36771
36772         Fix bug introduced on 2009-12-31.
36773         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36774         gl_PREREQ_SYS_H_WINSOCK2 always.
36775         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
36776         SYS_SOCKET_H variable.
36777         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
36778         Update comments.
36779         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
36780         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36781         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36782         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36783         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
36784
36785 2010-03-14  Bruno Haible  <bruno@clisp.org>
36786
36787         Fix values returned by sinl, cosl.
36788         * lib/trigl.h: Add specification comments.
36789         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
36790         that combines the values from the precomputed table with the values of
36791         the Chebyshev polynomials.
36792
36793 2010-03-14  Bruno Haible  <bruno@clisp.org>
36794
36795         Fix compilation error when modules 'posix_spawn[p]' are not used.
36796         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
36797         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
36798
36799 2010-03-14  Bruno Haible  <bruno@clisp.org>
36800
36801         Fix compilation error on mingw when module 'time_r' is not used.
36802         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
36803         is 1.
36804         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
36805         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36806         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
36807         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
36808
36809 2010-03-14  Bruno Haible  <bruno@clisp.org>
36810
36811         Fix compilation error with Sun C.
36812         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
36813         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
36814         instead of GCC specific ULONG_LONG_MAX.
36815         * lib/xstrtoll.c: Likewise.
36816         * lib/xstrtoull.c: Likewise.
36817
36818 2010-03-13  Bruno Haible  <bruno@clisp.org>
36819
36820         Allow the user to disable C++ code and tests.
36821         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
36822         (gl_PROG_ANSI_CXX): Require it.
36823
36824 2010-03-13  Bruno Haible  <bruno@clisp.org>
36825
36826         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
36827         cases.
36828
36829 2010-03-13  Bruno Haible  <bruno@clisp.org>
36830
36831         Test that gnulib does not break the standard C++ headers.
36832         * tests/test-locale-c++2.cc: New file.
36833         * modules/locale-tests (Files): Add it.
36834         (Makefile.am): Compile it for test-locale-c++.
36835         * tests/test-math-c++2.cc: New file.
36836         * modules/math-tests (Files): Add it.
36837         (Makefile.am): Compile it for test-math-c++.
36838         * tests/test-signal-c++2.cc: New file.
36839         * modules/signal-tests (Files): Add it.
36840         (Makefile.am): Compile it for test-signal-c++.
36841         * tests/test-stdio-c++2.cc: New file.
36842         * modules/stdio-tests (Files): Add it.
36843         (Makefile.am): Compile it for test-stdio-c++.
36844         * tests/test-stdlib-c++2.cc: New file.
36845         * modules/stdlib-tests (Files): Add it.
36846         (Makefile.am): Compile it for test-stdlib-c++.
36847         * tests/test-string-c++2.cc: New file.
36848         * modules/string-tests (Files): Add it.
36849         (Makefile.am): Compile it for test-string-c++.
36850         * tests/test-time-c++2.cc: New file.
36851         * modules/time-tests (Files): Add it.
36852         (Makefile.am): Compile it for test-time-c++.
36853         Reported by John W. Eaton <jwe@gnu.org>.
36854
36855 2010-03-13  Bruno Haible  <bruno@clisp.org>
36856
36857         * gnulib-tool (func_usage): Clarify which options are available for
36858         --create-testdir and --create-megatestdir.
36859
36860 2010-03-13  Bruno Haible  <bruno@clisp.org>
36861
36862         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
36863         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
36864         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
36865         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
36866         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
36867         when appropriate.
36868         Reported by Jim Meyering.
36869
36870 2010-03-12  Simon Josefsson  <simon@josefsson.org>
36871
36872         * gnulib-tool (func_import): Explain origin of code.
36873
36874 2010-03-12  Bruno Haible  <bruno@clisp.org>
36875
36876         Fix problem with automake's definition of CXXLINK.
36877         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
36878         Reported by Simon Josefsson and Ludovic Courtès.
36879
36880 2010-03-12  Bruno Haible  <bruno@clisp.org>
36881
36882         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
36883         stable releases.
36884
36885 2010-03-11  Bruno Haible  <bruno@clisp.org>
36886
36887         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
36888         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
36889         whether the system provides one variant or multiple variants of the
36890         function.
36891         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
36892         C++ compilers.
36893         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
36894         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
36895         Reported by Jim Meyering.
36896
36897 2010-03-09  Simon Josefsson  <simon@josefsson.org>
36898
36899         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
36900
36901 2010-03-08  Bruno Haible  <bruno@clisp.org>
36902
36903         gnulib-tool: Add support for --libtool in --create-testdir.
36904         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
36905         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
36906
36907 2010-03-08  Eric Blake  <eblake@redhat.com>
36908
36909         gnulib-tool.texi: mention possibility of git submodule
36910         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
36911         submodules.
36912         * doc/.gitignore: Ignore another generated file.
36913
36914 2010-03-08  Karl Berry  <karl@gnu.org>
36915
36916         * doc/gnulib-tool.texi (VCS Issues): Mention third option
36917         of committing gnulib files while skipping others.
36918
36919 2010-03-07  Bruno Haible  <bruno@clisp.org>
36920
36921         Tests of module 'wctype' in C++ mode.
36922         * tests/test-wctype-c++.cc: New file.
36923         * modules/wctype-tests (Files): Add it and tests/signature.h.
36924         (Depends-on): Add ansi-c++-opt.
36925         (Makefile.am): Arrange to compile and run test-wctype-c++.
36926
36927         Tests of module 'wchar' in C++ mode.
36928         * tests/test-wchar-c++.cc: New file.
36929         * modules/wchar-tests (Files): Add it and tests/signature.h.
36930         (Depends-on): Add ansi-c++-opt.
36931         (Makefile.am): Arrange to compile and run test-wchar-c++.
36932         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
36933         gl_MODULE_INDICATOR.
36934
36935         Tests of module 'unistd' in C++ mode.
36936         * tests/test-unistd-c++.cc: New file.
36937         * modules/unistd-tests (Files): Add it and tests/signature.h.
36938         (Depends-on): Add ansi-c++-opt.
36939         (Makefile.am): Arrange to compile and run test-unistd-c++.
36940         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
36941         gl_MODULE_INDICATOR.
36942
36943         Tests of module 'time' in C++ mode.
36944         * tests/test-time-c++.cc: New file.
36945         * modules/time-tests (Files): Add it and tests/signature.h.
36946         (Depends-on): Add ansi-c++-opt.
36947         (Makefile.am): Arrange to compile and run test-time-c++.
36948         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36949
36950         Tests of module 'sys_time' in C++ mode.
36951         * tests/test-sys_time-c++.cc: New file.
36952         * modules/sys_time-tests (Files): Add it and tests/signature.h.
36953         (Depends-on): Add ansi-c++-opt.
36954         (Makefile.am): Arrange to compile and run test-sys_time-c++.
36955         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
36956         gl_MODULE_INDICATOR.
36957
36958         Tests of module 'sys_stat' in C++ mode.
36959         * tests/test-sys_stat-c++.cc: New file.
36960         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
36961         (Depends-on): Add ansi-c++-opt.
36962         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
36963         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
36964         gl_MODULE_INDICATOR.
36965
36966         Tests of module 'sys_socket' in C++ mode.
36967         * tests/test-sys_socket-c++.cc: New file.
36968         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
36969         (Depends-on): Add ansi-c++-opt.
36970         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
36971         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
36972         gl_MODULE_INDICATOR.
36973
36974         Tests of module 'sys_select' in C++ mode.
36975         * tests/test-sys_select-c++.cc: New file.
36976         * modules/sys_select-tests (Files): Add it and tests/signature.h.
36977         (Depends-on): Add ansi-c++-opt.
36978         (Makefile.am): Arrange to compile and run test-sys_select-c++.
36979         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
36980         gl_MODULE_INDICATOR.
36981
36982         Tests of module 'sys_ioctl' in C++ mode.
36983         * tests/test-sys_ioctl-c++.cc: New file.
36984         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
36985         (Depends-on): Add ansi-c++-opt.
36986         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
36987         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
36988         gl_MODULE_INDICATOR.
36989
36990         Tests of module 'string' in C++ mode.
36991         * tests/test-string-c++.cc: New file.
36992         * modules/string-tests (Files): Add it and tests/signature.h.
36993         (Depends-on): Add ansi-c++-opt.
36994         (Makefile.am): Arrange to compile and run test-string-c++.
36995         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
36996         gl_MODULE_INDICATOR.
36997
36998         Tests of module 'stdlib' in C++ mode.
36999         * tests/test-stdlib-c++.cc: New file.
37000         * modules/stdlib-tests (Files): Add it and tests/signature.h.
37001         (Depends-on): Add ansi-c++-opt.
37002         (Makefile.am): Arrange to compile and run test-stdlib-c++.
37003         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
37004         gl_MODULE_INDICATOR.
37005
37006         Tests of module 'stdio' in C++ mode.
37007         * tests/test-stdio-c++.cc: New file.
37008         * modules/stdio-tests (Files): Add it and tests/signature.h.
37009         (Depends-on): Add ansi-c++-opt.
37010         (Makefile.am): Arrange to compile and run test-stdio-c++.
37011         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
37012         gl_MODULE_INDICATOR.
37013
37014         Tests of module 'spawn' in C++ mode.
37015         * tests/test-spawn-c++.cc: New file.
37016         * modules/spawn-tests (Files): Add it and tests/signature.h.
37017         (Depends-on): Add ansi-c++-opt.
37018         (Makefile.am): Arrange to compile and run test-spawn-c++.
37019         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
37020         gl_MODULE_INDICATOR.
37021
37022         Tests of module 'signal' in C++ mode.
37023         * tests/test-signal-c++.cc: New file.
37024         * modules/signal-tests (Files): Add it and tests/signature.h.
37025         (Depends-on): Add ansi-c++-opt.
37026         (Makefile.am): Arrange to compile and run test-signal-c++.
37027         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
37028         gl_MODULE_INDICATOR.
37029
37030         Tests of module 'search' in C++ mode.
37031         * tests/test-search-c++.cc: New file.
37032         * modules/search-tests (Files): Add it and tests/signature.h.
37033         (Depends-on): Add ansi-c++-opt.
37034         (Makefile.am): Arrange to compile and run test-search-c++.
37035         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
37036         gl_MODULE_INDICATOR.
37037
37038         Tests of module 'math' in C++ mode.
37039         * tests/test-math-c++.cc: New file.
37040         * modules/math-tests (Files): Add it and tests/signature.h.
37041         (Depends-on): Add ansi-c++-opt.
37042         (Makefile.am): Arrange to compile and run test-math-c++.
37043         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37044
37045         Tests of module 'locale' in C++ mode.
37046         * tests/test-locale-c++.cc: New file.
37047         * modules/locale-tests (Files): Add it and tests/signature.h.
37048         (Depends-on): Add ansi-c++-opt.
37049         (Makefile.am): Arrange to compile and run test-locale-c++.
37050         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
37051         gl_MODULE_INDICATOR.
37052
37053         Tests of module 'langinfo' in C++ mode.
37054         * tests/test-langinfo-c++.cc: New file.
37055         * modules/langinfo-tests (Files): Add it and tests/signature.h.
37056         (Depends-on): Add ansi-c++-opt.
37057         (Makefile.am): Arrange to compile and run test-langinfo-c++.
37058         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
37059         gl_MODULE_INDICATOR.
37060
37061         Tests of module 'iconv-h' in C++ mode.
37062         * tests/test-iconv-h-c++.cc: New file.
37063         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
37064         (Depends-on): Add ansi-c++-opt.
37065         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
37066
37067         Tests of module 'glob' in C++ mode.
37068         * tests/test-glob-c++.cc: New file.
37069         * modules/glob-tests (Files): Add it.
37070         (Depends-on): Add ansi-c++-opt.
37071         (Makefile.am): Arrange to compile and run test-glob-c++.
37072
37073         Tests of module 'fcntl-h' in C++ mode.
37074         * tests/test-fcntl-h-c++.cc: New file.
37075         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
37076         (Depends-on): Add ansi-c++-opt.
37077         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
37078         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
37079         gl_MODULE_INDICATOR.
37080
37081         Tests of module 'dirent' in C++ mode.
37082         * tests/test-dirent-c++.cc: New file.
37083         * modules/dirent-tests (Files): Add it and tests/signature.h.
37084         (Depends-on): Add ansi-c++-opt.
37085         (Makefile.am): Arrange to compile and run test-dirent-c++.
37086         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
37087         gl_MODULE_INDICATOR.
37088
37089         New module 'ansi-c++-opt'.
37090         * modules/ansi-c++-opt: New file.
37091         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
37092
37093         Document C++ namespace mode.
37094         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
37095
37096         wctype: Avoid #define replacements in C++ mode.
37097         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
37098         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
37099         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
37100         In C++, define a namespaced alias symbol.
37101         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
37102         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
37103         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
37104         rule.
37105
37106         wchar: Avoid #define replacements in C++ mode.
37107         * lib/wchar.in.h: Include c++defs.h.
37108         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
37109         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
37110         symbol.
37111         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
37112         * modules/wchar (Depends-on): Add c++defs.
37113         (Makefile.am): Update wchar.h rule.
37114
37115         unistd: Avoid #define replacements in C++ mode.
37116         * lib/unistd.in.h: Include c++defs.h.
37117         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
37118         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
37119         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
37120         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
37121         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
37122         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
37123         symbol.
37124         (environ): Update.
37125         * modules/unistd (Depends-on): Add c++defs.
37126         (Makefile.am): Update unistd.h rule.
37127
37128         time: Avoid #define replacements in C++ mode.
37129         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
37130         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
37131         define a namespaced alias symbol.
37132         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
37133         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
37134         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
37135         * modules/time (Depends-on): Add c++defs, warn-on-use.
37136         (Makefile.am): Update time.h rule.
37137         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37138         * modules/nanosleep (configure.ac): Likewise.
37139         * modules/strptime (configure.ac): Likewise.
37140         * modules/timegm (configure.ac): Likewise.
37141
37142         sys_time: Avoid #define replacements in C++ mode.
37143         * lib/sys_time.in.h: Include c++defs.h.
37144         (gettimeofday): In C++, define a namespaced alias symbol.
37145         * modules/sys_time (Depends-on): Add c++defs.
37146         (Makefile.am): Update sys/time.h rule.
37147
37148         sys_stat: Avoid #define replacements in C++ mode.
37149         * lib/sys_stat.in.h: Include c++defs.h.
37150         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
37151         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
37152         namespaced alias symbol.
37153         In C++, define a namespaced alias symbol.
37154         * modules/sys_stat (Depends-on): Add c++defs.
37155         (Makefile.am): Update sys/stat.h rule.
37156
37157         sys_socket: Avoid #define replacements in C++ mode.
37158         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
37159         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
37160         definitions also when the system has a <sys/socket.h>.
37161         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37162         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
37163         In C++, define a namespaced alias symbol.
37164         * modules/sys_socket (Depends-on): Add c++defs.
37165         (Makefile.am): Update sys/socket.h rule.
37166
37167         sys_select: Avoid #define replacements in C++ mode.
37168         * lib/sys_select.in.h: Include c++defs.h. Enable the function
37169         definitions also when the system has a <sys/select.h>.
37170         (select): In C++, define a namespaced alias symbol.
37171         * modules/sys_select (Depends-on): Add c++defs.
37172         (Makefile.am): Update sys/select.h rule.
37173
37174         sys_ioctl: Avoid #define replacements in C++ mode.
37175         * lib/sys_ioctl.in.h: Include c++defs.h.
37176         (ioctl): In C++, define a namespaced alias symbol.
37177         * modules/sys_ioctl (Depends-on): Add c++defs.
37178         (Makefile.am): Update sys/ioctl.h rule.
37179
37180         string: Avoid #define replacements in C++ mode.
37181         * lib/string.in.h: Include c++defs.h.
37182         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
37183         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37184         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37185         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
37186         strsignal, strverscmp): In C++, define a namespaced alias symbol.
37187         * modules/string (Depends-on): Add c++defs.
37188         (Makefile.am): Update string.h rule.
37189
37190         stdlib: Avoid #define replacements in C++ mode.
37191         * lib/stdlib.in.h: Include c++defs.h.
37192         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
37193         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
37194         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
37195         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
37196         symbol.
37197         * modules/stdlib (Depends-on): Add c++defs.
37198         (Makefile.am): Update stdlib.h rule.
37199
37200         stdio: Avoid #define replacements in C++ mode.
37201         * lib/stdio.in.h: Include c++defs.h.
37202         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
37203         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
37204         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
37205         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
37206         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
37207         namespaced alias symbol.
37208         * modules/stdio (Depends-on): Add c++defs.
37209         (Makefile.am): Update stdio.h rule.
37210
37211         spawn: Avoid #define replacements in C++ mode.
37212         * lib/spawn.in.h: Include c++defs.h.
37213         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37214         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37215         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37216         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37217         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37218         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37219         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37220         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37221         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37222         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37223         In C++, define a namespaced alias symbol.
37224         * modules/spawn (Depends-on): Add c++defs.
37225         (Makefile.am): Update spawn.h rule.
37226
37227         signal: Avoid #define replacements in C++ mode.
37228         * lib/signal.in.h: Include c++defs.h.
37229         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37230         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
37231         namespaced alias symbol.
37232         * modules/signal (Depends-on): Add c++defs.
37233         (Makefile.am): Update signal.h rule.
37234
37235         search: Avoid #define replacements in C++ mode.
37236         * lib/search.in.h: Include c++defs.h.
37237         (_gl_search_compar_fn, _gl_search_action_fn): New types.
37238         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
37239         symbol.
37240         * modules/search (Depends-on): Add c++defs.
37241         (Makefile.am): Update search.h rule.
37242
37243         math: Avoid #define replacements in C++ mode.
37244         * lib/math.in.h: Include c++defs.h.
37245         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
37246         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
37247         trunc, truncl): In C++, define a namespaced alias symbol.
37248         * modules/math (Depends-on): Add c++defs.
37249         (Makefile.am): Update math.h rule.
37250
37251         locale: Avoid #define replacements in C++ mode.
37252         * lib/locale.in.h: Include c++defs.h.
37253         (duplocale): In C++, define a namespaced alias symbol.
37254         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
37255         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
37256         * modules/locale (Depends-on): Add c++defs.
37257         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
37258
37259         langinfo: Avoid #define replacements in C++ mode.
37260         * lib/langinfo.in.h: Include c++defs.h.
37261         (nl_langinfo): In C++, define a namespaced alias symbol.
37262         * modules/langinfo (Depends-on): Add c++defs.
37263         (Makefile.am): Update langinfo.h rule.
37264
37265         iconv-h: Avoid #define replacements in C++ mode.
37266         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
37267         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
37268         symbol.
37269         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37270         whenever iconv is present.
37271         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
37272         (Makefile.am): Update iconv.h rule.
37273
37274         glob: Avoid #define replacements in C++ mode.
37275         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
37276         (_gl_glob_errfunc_fn): New type.
37277         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
37278         symbol.
37279         * modules/glob (Depends-on): Add c++defs, warn-on-use.
37280         (Makefile.am): Update glob.h rule.
37281
37282         fcntl-h: Avoid #define replacements in C++ mode.
37283         * lib/fcntl.in.h: Include c++defs.h.
37284         (fcntl, open, openat): In C++, define a namespaced alias symbol.
37285         * modules/fcntl-h (Depends-on): Add c++defs.
37286         (Makefile.am): Update fcntl.h rule.
37287
37288         dirent: Avoid #define replacements in C++ mode.
37289         * lib/dirent.in.h: Include c++defs.h.
37290         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
37291         namespaced alias symbol.
37292         (dirfd): Update declaration.
37293         * modules/dirent (Depends-on): Add c++defs.
37294         (Makefile.am): Update dirent.h rule.
37295
37296         ctype: Make it usable in C++ code.
37297         * lib/ctype.in.h: Include c++defs.h.
37298         (isblank): Declare as extern "C".
37299         * modules/ctype (Depends-on): Add c++defs.
37300         (Makefile.am): Update ctype.h rule.
37301
37302         New module 'c++defs'.
37303         * modules/c++defs: New file.
37304         * build-aux/c++defs.h: New file.
37305         Reported by John W. Eaton <jwe@gnu.org>.
37306
37307 2010-03-07  Bruno Haible  <bruno@clisp.org>
37308
37309         logb: Provide missing declaration for Cygwin.
37310         * lib/math.in.h (logb): New declaration.
37311         * m4/logb.m4: New file.
37312         * modules/logb (Files): Add m4/logb.m4.
37313         (Depends-on): Add math.
37314         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
37315         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
37316         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
37317         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
37318         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
37319
37320 2010-03-07  Bruno Haible  <bruno@clisp.org>
37321
37322         Fix test-cond link error.
37323         * tests/test-cond.c: Include <stdio.h>.
37324
37325 2010-03-07  Bruno Haible  <bruno@clisp.org>
37326
37327         Fix test-dirent-safer link error.
37328         * modules/dirent-safer-tests (Makefile.am): Define
37329         test_dirent_safer_LDADD.
37330
37331 2010-03-07  Bruno Haible  <bruno@clisp.org>
37332
37333         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37334         among default module list.
37335
37336 2010-03-07  Bruno Haible  <bruno@clisp.org>
37337
37338         Fix link error on platforms with GNU libiconv.
37339         * modules/unistr/u8-strcoll-tests (Makefile): Define
37340         test_u8_strcoll_LDADD.
37341         * modules/unistr/u16-strcoll-tests (Makefile): Define
37342         test_u16_strcoll_LDADD.
37343         * modules/unistr/u32-strcoll-tests (Makefile): Define
37344         test_u32_strcoll_LDADD.
37345
37346 2010-03-07  Bruno Haible  <bruno@clisp.org>
37347
37348         Use POSIX declarations for socket functions.
37349         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37350         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37351         rpl_sendto): Change declaration to match POSIX.
37352         * lib/connect.c (rpl_connect): Likewise.
37353         * lib/accept.c (rpl_accept): Likewise.
37354         * lib/bind.c (rpl_bind): Likewise.
37355         * lib/getpeername.c (rpl_getpeername): Likewise.
37356         * lib/getsockname.c (rpl_getsockname): Likewise.
37357         * lib/recv.c (rpl_recv): Likewise.
37358         * lib/send.c (rpl_send): Likewise.
37359         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37360         * lib/sendto.c (rpl_sendto): Likewise.
37361
37362 2010-03-06  Bruno Haible  <bruno@clisp.org>
37363
37364         Clarify access, euidaccess, faccessat.
37365         * doc/posix-functions/faccessat.texi: Mention security problem under
37366         "Other problems", not "Portability problems".
37367         * doc/posix-functions/access.texi: Likewise. Mention a related security
37368         problem.
37369         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37370         * lib/euidaccess.c: Add comments about platforms.
37371         * lib/unistd.in.h (access, euidaccess): Add warnings.
37372
37373 2010-03-07  Bruno Haible  <bruno@clisp.org>
37374
37375         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37376         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37377         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37378         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37379         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37380         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37381         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37382         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37383         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37384         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37385         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37386         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
37387         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
37388         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
37389         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
37390         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
37391         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
37392         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
37393         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37394         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37395         Likewise.
37396         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37397         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37398         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37399         Likewise.
37400         * tests/test-spawn.c (main): Make it work when
37401         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37402
37403 2010-03-07  Bruno Haible  <bruno@clisp.org>
37404
37405         Fix incorrect Makefile.am generation in German locale.
37406         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37407         Execute sed command with character range in C locale.
37408
37409 2010-03-06  Bruno Haible  <bruno@clisp.org>
37410
37411         Tests for module 'iconv-h'.
37412         * modules/iconv-h-tests: New file.
37413         * tests/test-iconv-h.c: New file.
37414
37415         New module 'iconv-h'.
37416         * modules/iconv-h: New file.
37417         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37418         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37419         (configure.ac): Remove gl_ICONV_H.
37420         (Makefile.am): Remove rule for iconv.h.
37421
37422 2010-03-06  Bruno Haible  <bruno@clisp.org>
37423
37424         More consistent naming of *.m4 files.
37425         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37426         * modules/wctype (Files): Update.
37427
37428         More consistent naming of *.m4 files.
37429         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37430         * modules/wchar (Files): Update.
37431
37432 2010-03-06  Jim Meyering  <meyering@redhat.com>
37433
37434         euidaccess: relax license to LGPLv2+
37435         * modules/euidaccess (License): Relax to LGPLv2+.
37436
37437 2010-03-06  Bruno Haible  <bruno@clisp.org>
37438
37439         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37440         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37441         (Makefile.am): Augment lib_SOURCES instead.
37442
37443 2010-03-04  Jim Meyering  <meyering@redhat.com>
37444
37445         utime: remove obsolete module
37446         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37447         unnecessary for years, and has been marked as obsolete for 10 months.
37448         * modules/utime: Remove file.
37449         * lib/utime.c: Remove file.
37450         * m4/utime.m4: Remove file.
37451         * m4/utimes-null.m4: Remove file.
37452         * doc/posix-functions/utime.texi (utime): Remove reference to
37453         the module.  Move the sole "fixed by gnulib" item into the
37454         "problems not fixed by Gnulib" list.
37455         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37456
37457 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37458
37459         * modules/exit (License): Relax license to LGPLv2+.
37460         (Status): Mark as obsolete.
37461         * NEWS: Mention deprecated 'exit' module.
37462         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37463         of now obsolete 'exit'.
37464
37465 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37466
37467         fts-lgpl: remove unused module
37468         * modules/fts-lgpl: Remove.
37469         * MODULES.html.sh (func_all_modules): Adjust.
37470         * check-module (find_included_lib_files): Adjust.
37471         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37472
37473 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37474
37475         copy-acl: enhance Solaris ACL error handling
37476         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
37477         * lib/set-mode-acl.c (qset_acl): Likewise.
37478
37479 2010-03-02  Bruno Haible  <bruno@clisp.org>
37480
37481         spawn: Don't override the system defined values on FreeBSD 8.
37482         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
37483         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
37484         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
37485         if HAVE_POSIX_SPAWN is 1.
37486         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
37487
37488 2010-03-01  Bruno Haible  <bruno@clisp.org>
37489
37490         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
37491         regarding Automake.
37492
37493 2010-02-25  Bruno Haible  <bruno@clisp.org>
37494
37495         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
37496         * gnulib-tool: Define 'echo' as a function only before the ksh alias
37497         setting, not afterwards.
37498         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
37499
37500 2010-02-24  Eric Blake  <eblake@redhat.com>
37501
37502         bootstrap, git-version-gen: use timestamp
37503         * build-aux/git-version-gen (scriptversion): Force UTC.
37504         * build-aux/bootstrap (scriptversion): New variable.
37505
37506         bootstrap: allow older git
37507         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
37508         older than 1.6.4.  Requested by the libvirt project.
37509
37510 2010-02-23  Eric Blake  <eblake@redhat.com>
37511
37512         warn-on-use: work with old autoconf
37513         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
37514         AS_VAR semantics of autoconf 2.60.
37515         Reported by Bruno Haible.
37516
37517         bootstrap: improve some comments
37518         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
37519         clarification comments.
37520
37521         gettimeofday: provide correct function
37522         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
37523         when replacement is declared, otherwise provide gettimeofday.
37524         Reported by Michael Goffioul.
37525
37526 2010-02-23  Jim Meyering  <meyering@redhat.com>
37527
37528         lib-ignore: relax license to "unlimited", not LGPLv2+
37529         * modules/lib-ignore (License): Relax to "unlimited".
37530
37531 2010-02-23  Jim Meyering  <meyering@redhat.com>
37532
37533         lib-ignore: relax license to LGPLv2+
37534         * modules/lib-ignore (License): Relax to LGPLv2+.
37535
37536 2010-02-22  Eric Blake  <eblake@redhat.com>
37537
37538         lseek: avoid bash 3.2 broken pipe bug
37539         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
37540         warning from bash 3.2.
37541         Reported by Ben Pfaff, with analysis from Bruno Haible.
37542
37543         bootstrap: support non-FSF copyright holder
37544         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
37545         bootstrap.conf override of COPYRIGHT_HOLDER.
37546         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
37547
37548         bootstrap: interoperate with gettext 0.14.1
37549         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
37550
37551         bootstrap: allow for alternate submodule location
37552         * build-aux/bootstrap (gnulib_path): New variable; use instead of
37553         hardcoding submodule location.
37554         (gnulib_mk): Allow direct use of Makefile.am.
37555
37556         bootstrap: use GNULIB_SRCDIR to reduce disk usage
37557         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
37558         rather than reconfiguring where the submodule points.
37559
37560         gettimeofday: restore support for platforms that lack function
37561         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
37562         replacement if function is missing.
37563         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
37564         * modules/sys_time (Makefile.am): Substitute it.
37565         * lib/sys_time.in.h (gettimeofday): Check it.
37566         Reported by Michael Goffioul.
37567
37568 2010-02-21  Bruno Haible  <bruno@clisp.org>
37569
37570         * lib/stdio.in.h (obstack_printf): Fix typo.
37571
37572 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
37573
37574         vc-list-files: use bzr ls's -R option
37575         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
37576         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
37577
37578 2010-02-21  Jim Meyering  <meyering@redhat.com>
37579
37580         init.sh: fix EXEEXT shims to work also for names like test-prog
37581         * tests/init.sh: Re-exec a better shell, when needed.
37582         If the current shell lacks support for posix $(...), an init.sh-using
37583         test will now try to find a shell that supports that.  If EXEEXT is
37584         nonempty, we also require support for hyphen-in-alias-name and shell
37585         substitutions like ${var#glob}.  Failure to find such a shell results
37586         in a skipped test.
37587
37588 2010-02-21  Bruno Haible  <bruno@clisp.org>
37589
37590         Really work around around "broken pipe" error message from bash 3.2.
37591         * gnulib-tool (func_reset_sigpipe): Remove function.
37592         (echo): In bash 3.2, define to a function that uses printf.
37593         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
37594
37595 2010-02-20  Bruno Haible  <bruno@clisp.org>
37596
37597         Restore support for automake 1.9.6 with autoconf 2.61.
37598         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
37599         Reported by James Youngman <jay@gnu.org>.
37600
37601 2010-02-20  Bruno Haible  <bruno@clisp.org>
37602
37603         Improve *printf warning condition.
37604         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
37605         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
37606         and the function is overridden due to SIGPIPE emulation.
37607
37608 2010-02-20  Bruno Haible  <bruno@clisp.org>
37609
37610         * lib/stdio.in.h: Tweak comments.
37611
37612 2010-02-19  Bruno Haible  <bruno@clisp.org>
37613
37614         Make it easier to find modules. New gnulib-tool option '--find'.
37615         * gnulib-tool: New option --find.
37616         (func_usage): Document it.
37617         (func_sanitize_modulelist): New function, extracted from
37618         func_all_modules.
37619         (func_all_modules): Invoke it.
37620         * doc/gnulib-tool.texi (Which modules?): New node.
37621
37622 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
37623
37624         * lib/sys_select.in.h: Provide select replacement even if
37625         sys/select.h exists on a system, for Interix.
37626
37627 2010-02-18  Jim Meyering  <meyering@redhat.com>
37628
37629         init.sh: don't use $(...) just yet
37630         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
37631         to accommodate e.g., Solaris' /bin/sh.
37632
37633 2010-02-17  Bruno Haible  <bruno@clisp.org>
37634
37635         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
37636         Reported by Ludovic Courtès <ludo@gnu.org>.
37637
37638 2010-02-16  Simon Josefsson  <simon@josefsson.org>
37639
37640         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
37641         linking with -lintl.
37642
37643 2010-02-17  Simon Josefsson  <simon@josefsson.org>
37644
37645         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
37646         if not provided by the system's netdb.h.  Reported by
37647         ludo@gnu.org (Ludovic Courtès).
37648
37649 2010-02-15  Jim Meyering  <meyering@redhat.com>
37650
37651         init.sh: improve portability and efficiency
37652         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
37653         "dummy" in a for loop.
37654         Use '!', not '^' to select the complement of a character set used
37655         in a "case" statement.
37656         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
37657         Suggestions from Eric Blake.
37658
37659         init.sh: automatically accommodate programs with the .exe suffix
37660         Automatically arrange for an invocation of "prog" to execute the
37661         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
37662         may use the simpler "prog", yet still work when built on a system
37663         that requires specifying the added suffix.
37664         Do this by constructing a function named "prog" that invokes
37665         "prog.exe" for each .exe file in selected directories.
37666         * tests/init.sh (find_exe_basenames_): New function.
37667         (create_exe_shim_functions_): New function.
37668         (path_prepend_): Use it.
37669
37670         maint.mk: mark syntax-check sc_*.m rules as .PHONY
37671         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
37672         "make -t syntax-check" doesn't create a ton of sc_*.m files.
37673
37674 2010-02-14  Jim Meyering  <meyering@redhat.com>
37675
37676         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
37677         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
37678         (sc_prohibit_hash_pjw_without_use): New rule.
37679
37680         maint.mk: allow the default upload destination dir to be overridden
37681         * top/maint.mk (upload_dest_dir_): Define with a default that
37682         preserves the status quo.
37683         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
37684         Reported by Peter Simons.
37685
37686         maint.mk: prohibit inclusion of "hash.h" without_use
37687         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
37688
37689 2010-02-10  Jim Meyering  <meyering@redhat.com>
37690
37691         maint.mk: prohibit inclusion of "ignore-value.h" without_use
37692         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
37693
37694 2010-02-09  Eric Blake  <ebb9@byu.net>
37695         and Bruno Haible  <bruno@clisp.org>
37696
37697         obstack-printf-posix: ensure declaration
37698         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
37699         extracted from gl_FUNC_OBSTACK_PRINTF.
37700         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
37701         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37702         Likewise.
37703         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
37704         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
37705         0.
37706
37707 2010-02-08  Bruno Haible  <bruno@clisp.org>
37708
37709         gnulib-tool: Fix typo in 2010-02-07 commit.
37710         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
37711         Reported by Eric Blake.
37712
37713 2010-02-07  Bruno Haible  <bruno@clisp.org>
37714
37715         gnulib-tool: Fix up caching patches.
37716         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
37717         option --no-cache. Use associative arrays when supported by the shell.
37718         (sed_comments): New variable.
37719         (modcache): Renamed from do_cache.
37720         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
37721         abbreviate unnecessarily.
37722         (have_associative): New variable.
37723         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
37724         way also for ksh and zsh.
37725         (func_init_sed_convert_to_cache_statements): New function, extracted
37726         from func_cache_lookup_module. Add support for associative arrays.
37727         Don't set the c_MODULE_cached variable here. Ignore all lines before
37728         the first field header. Remove only the final newline, not all trailing
37729         newlines. Support empty fields correctly. Limit the use of 'eval' to
37730         assignments.
37731         (func_get_description, func_get_status, func_get_notice,
37732         func_get_applicability, func_get_filelist, func_get_dependencies,
37733         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
37734         func_get_automake_snippet, func_get_include_directive,
37735         func_get_link_directive, func_get_license, func_get_maintainer):
37736         Update documentation. List the unoptimized code first. Add support for
37737         associative arrays. Limit the use of 'eval' to assignments.
37738         (func_get_applicability): Undo stylistic pessimisations.
37739         (func_get_automake_snippet, func_get_include_directive): Reduce code
37740         duplication.
37741         (func_modules_transitive_closure, func_modules_add_dummy,
37742         func_modules_notice, func_modules_to_filelist, func_add_file,
37743         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
37744         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
37745         func_create_testdir, func_create_megatestdir): Update documentation.
37746
37747 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37748
37749         * gnulib-tool (func_cache_lookup_module): Store the module name
37750         belonging to the cache variable; error out if two different
37751         module names map to the same cache variable name.
37752
37753 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37754
37755         gnulib-tool: Make caching optional.
37756         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
37757         Update matching short versions of --no-changelog.
37758         (func_usage): Update.
37759         (sed_extract_cache_prog): Renamed from ...
37760         (sed_extract_prog): ... this; revert to old extraction script.
37761         (func_get_description, func_get_status)
37762         (func_get_notice, func_get_applicability, func_get_filelist)
37763         (func_get_dependencies, func_get_autoconf_early_snippet)
37764         (func_get_autoconf_snippet, func_get_automake_snippet)
37765         (func_get_include_directive, func_get_link_directive)
37766         (func_get_license, func_get_maintainer): If $do_cache is false,
37767         use old, non-caching extraction scripts.
37768         Suggestion by Bruno Haible.
37769
37770 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37771
37772         gnulib-tool: cache module metainformation.
37773         * gnulib-tool (sed_extract_prog): Match newline before each
37774         header, and rewrite header to a shell variable suffix.
37775         (func_cache_var, func_cache_lookup_module): New functions,
37776         to turn a module name into a cache variable prefix, and to
37777         look up and cache module metainformation.
37778         (func_get_description, func_get_status)
37779         (func_get_notice, func_get_applicability, func_get_filelist)
37780         (func_get_dependencies, func_get_autoconf_early_snippet)
37781         (func_get_autoconf_snippet, func_get_automake_snippet)
37782         (func_get_include_directive, func_get_link_directive)
37783         (func_get_license, func_get_maintainer): Use
37784         func_cache_lookup_module.
37785
37786 2010-02-07  Bruno Haible  <bruno@clisp.org>
37787
37788         fnctl: Fix missing dependency.
37789         * modules/fcntl (Depends-on): Add getdtablesize.
37790         Reported by John W. Eaton <jwe@gnu.org>.
37791
37792 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37793
37794         Argp: fix recognition of short alias options.
37795
37796         * lib/argp-parse.c (convert_options): Fix improper use of
37797         `|' between character values.
37798         * tests/test-argp.c (group1_option): New alias option
37799         --read (-r).
37800         (group1_parser): Special handling for 'r'.
37801         (test15): New test case.
37802         (test_fun): Add test15.
37803         * tests/test-argp-2.sh: Update expected --help and --usage
37804         outputs.
37805
37806 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37807
37808         * tests/test-argp.c: Fix indentation.
37809
37810 2010-02-04  Eric Blake  <ebb9@byu.net>
37811
37812         gettimeofday: expose type of second argument
37813         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
37814         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
37815         * tests/test-gettimeofday.c: Use it to silence warning.
37816         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
37817         the issue.
37818
37819 2010-02-03  Jim Meyering  <meyering@redhat.com>
37820
37821         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
37822         * lib/regcomp.c (TYPE_SIGNED): Define.
37823         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
37824
37825         regcomp.c: avoid a new -Wshadow warning
37826         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
37827
37828 2010-02-01  Jim Meyering  <meyering@redhat.com>
37829
37830         removing useless parentheses in cpp #define directives
37831         For motivation, see commit c0221df4, "define STREQ(a,b)
37832         consistently, removing useless parentheses"
37833         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
37834         * lib/mountlist.c (MNT_IGNORE): Likewise.
37835         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
37836
37837 2010-02-01  Eric Blake  <ebb9@byu.net>
37838
37839         sys_time: use link-warning
37840         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
37841         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
37842         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
37843         * modules/sys_time (Depends-on): Add warn-on-use.
37844         (Makefile.am): Always build replacement.
37845         (configure.ac): Update substitutions.
37846         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
37847         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
37848         bother with SYS_TIME_H.
37849         * modules/gettimeofday (configure.ac): Declare indicator.
37850         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
37851         in use.
37852
37853         closein-tests: silence compiler warning
37854         * tests/test-closein.c (main): Ignore fread result.
37855         * modules/closein-tests (Depends-on): Add ignore-value.
37856
37857         tests: silence warning about system return
37858         * tests/test-areadlink-with-size.c (main): Ignore system result.
37859         * tests/test-areadlink.c (main): Likewise.
37860         * tests/test-areadlinkat-with-size.c (main): Likewise.
37861         * tests/test-areadlinkat.c (main): Likewise.
37862         * tests/test-canonicalize-lgpl.c (main): Likewise.
37863         * tests/test-canonicalize.c (main): Likewise.
37864         * tests/test-chown.c (main): Likewise.
37865         * tests/test-fchownat.c (main): Likewise.
37866         * tests/test-fdutimensat.c (main): Likewise.
37867         * tests/test-fstatat.c (main): Likewise.
37868         * tests/test-futimens.c (main): Likewise.
37869         * tests/test-lchown.c (main): Likewise.
37870         * tests/test-link.c (main): Likewise.
37871         * tests/test-linkat.c (main): Likewise.
37872         * tests/test-lstat.c (main): Likewise.
37873         * tests/test-mkdir.c (main): Likewise.
37874         * tests/test-mkdirat.c (main): Likewise.
37875         * tests/test-mkfifo.c (main): Likewise.
37876         * tests/test-mkfifoat.c (main): Likewise.
37877         * tests/test-mknod.c (main): Likewise.
37878         * tests/test-readlink.c (main): Likewise.
37879         * tests/test-remove.c (main): Likewise.
37880         * tests/test-rename.c (main): Likewise.
37881         * tests/test-renameat.c (main): Likewise.
37882         * tests/test-rmdir.c (main): Likewise.
37883         * tests/test-symlink.c (main): Likewise.
37884         * tests/test-symlinkat.c (main): Likewise.
37885         * tests/test-unlink.c (main): Likewise.
37886         * tests/test-unlinkat.c (main): Likewise.
37887         * tests/test-utimens.c (main): Likewise.
37888         * tests/test-utimensat.c (main): Likewise.
37889         * modules/areadlink-tests (Depends-on): Add ignore-value.
37890         * modules/areadlink-with-size-tests (Depends-on): Likewise.
37891         * modules/areadlinkat-tests (Depends-on): Likewise.
37892         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
37893         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37894         * modules/canonicalize-tests (Depends-on): Likewise.
37895         * modules/chown-tests (Depends-on): Likewise.
37896         * modules/fdutimensat-tests (Depends-on): Likewise.
37897         * modules/futimens-tests (Depends-on): Likewise.
37898         * modules/lchown-tests (Depends-on): Likewise.
37899         * modules/link-tests (Depends-on): Likewise.
37900         * modules/linkat-tests (Depends-on): Likewise.
37901         * modules/lstat-tests (Depends-on): Likewise.
37902         * modules/mkdir-tests (Depends-on): Likewise.
37903         * modules/mkfifo-tests (Depends-on): Likewise.
37904         * modules/mkfifoat-tests (Depends-on): Likewise.
37905         * modules/mknod-tests (Depends-on): Likewise.
37906         * modules/openat-tests (Depends-on): Likewise.
37907         * modules/readlink-tests (Depends-on): Likewise.
37908         * modules/remove-tests (Depends-on): Likewise.
37909         * modules/rename-tests (Depends-on): Likewise.
37910         * modules/renameat-tests (Depends-on): Likewise.
37911         * modules/rmdir-tests (Depends-on): Likewise.
37912         * modules/symlink-tests (Depends-on): Likewise.
37913         * modules/symlinkat-tests (Depends-on): Likewise.
37914         * modules/unlink-tests (Depends-on): Likewise.
37915         * modules/utimens-tests (Depends-on): Likewise.
37916         * modules/utimensat-tests (Depends-on): Likewise.
37917
37918 2010-01-31  Bruno Haible  <bruno@clisp.org>
37919
37920         Perform the same test for many <math.h> functions.
37921         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
37922         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
37923         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
37924         of gl_MATHFUNC.
37925         * modules/acos (configure.ac): Likewise.
37926         * modules/asin (configure.ac): Likewise.
37927         * modules/atan (configure.ac): Likewise.
37928         * modules/atan2 (configure.ac): Likewise.
37929         * modules/cbrt (configure.ac): Likewise.
37930         * modules/copysign (configure.ac): Likewise.
37931         * modules/cos (configure.ac): Likewise.
37932         * modules/cosh (configure.ac): Likewise.
37933         * modules/erf (configure.ac): Likewise.
37934         * modules/erfc (configure.ac): Likewise.
37935         * modules/exp (configure.ac): Likewise.
37936         * modules/fmod (configure.ac): Likewise.
37937         * modules/hypot (configure.ac): Likewise.
37938         * modules/j0 (configure.ac): Likewise.
37939         * modules/j1 (configure.ac): Likewise.
37940         * modules/jn (configure.ac): Likewise.
37941         * modules/lgamma (configure.ac): Likewise.
37942         * modules/log (configure.ac): Likewise.
37943         * modules/log10 (configure.ac): Likewise.
37944         * modules/log1p (configure.ac): Likewise.
37945         * modules/pow (configure.ac): Likewise.
37946         * modules/remainder (configure.ac): Likewise.
37947         * modules/sin (configure.ac): Likewise.
37948         * modules/sinh (configure.ac): Likewise.
37949         * modules/tan (configure.ac): Likewise.
37950         * modules/tanh (configure.ac): Likewise.
37951         * modules/y0 (configure.ac): Likewise.
37952         * modules/y1 (configure.ac): Likewise.
37953         * modules/yn (configure.ac): Likewise.
37954         Suggested by Paolo Bonzini.
37955
37956 2010-01-31  Bruno Haible  <bruno@clisp.org>
37957
37958         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
37959
37960 2010-01-31  Bruno Haible  <bruno@clisp.org>
37961
37962         Work around getdelim() bug on FreeBSD 8.0.
37963         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
37964         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
37965         not work.
37966         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
37967         is 1.
37968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
37969         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
37970         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
37971         a non-zero size.
37972         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
37973
37974 2010-01-31  Bruno Haible  <bruno@clisp.org>
37975
37976         Work around getline() bug on FreeBSD 8.0.
37977         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
37978         and a non-zero size.
37979         * tests/test-getline.c (main): Likewise.
37980         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
37981         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
37982
37983 2010-01-28  Eric Blake  <ebb9@byu.net>
37984
37985         regex: fix build failure
37986         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
37987         platforms.
37988
37989 2010-01-28  Jim Meyering  <meyering@redhat.com>
37990
37991         regex: do not ignore memory allocation failure
37992         * lib/regex_internal.c (create_cd_newstate): Detect
37993         re_node_set_init_copy failure.   Extracted from glibc commit
37994         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37995
37996         regex: sync more white-space changes from libc
37997         * lib/regex_internal.c: White-space only changes.
37998         * lib/regexec.c: Likewise.
37999
38000         regex: add many uses of __attribute_warn_unused_result__
38001         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
38002         * lib/regexec.c: Likewise.
38003         Extracted from a messy glibc commit.
38004
38005         regcomp.c: spelling and merge-artifact from glibc
38006         * lib/regcomp.c: Merge remainder of glibc's
38007         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38008
38009         regcomp.c: sync white-space changes from glibc
38010         * lib/regcomp.c: Merge to accommodate white space
38011         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38012
38013         regcomp.c: do not ignore internal return values
38014         * lib/regcomp.c: Do not ignore internal return values.
38015         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
38016         but without its white-space changes and spelling fixes.
38017
38018         regex_internal.h: define __attribute_warn_unused_result__
38019         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
38020
38021         maint: add a syntax-check rule to check for vulnerable Makefile.in
38022         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
38023
38024 2010-01-27  Jim Meyering  <meyering@redhat.com>
38025
38026         ncftpput-ftp: clean up spaces
38027         * build-aux/ncftpput-ftp: Make Copyright line consistent.
38028         Remove trailing blanks.
38029
38030 2010-01-27  Simon Josefsson  <simon@josefsson.org>
38031
38032         * build-aux/git-version-gen: Fix copyright statement.
38033         * build-aux/gnupload: Likewise.
38034         * tests/test-arcfour.c: Likewise.
38035         * tests/test-arctwo.c: Likewise.
38036         * tests/test-count-one-bits.c: Likewise.
38037         * tests/test-crc.c: Likewise.
38038         * tests/test-des.c: Likewise.
38039         * tests/test-gc-arcfour.c: Likewise.
38040         * tests/test-gc-arctwo.c: Likewise.
38041         * tests/test-gc-des.c: Likewise.
38042         * tests/test-gc-hmac-md5.c: Likewise.
38043         * tests/test-gc-hmac-sha1.c: Likewise.
38044         * tests/test-gc-md2.c: Likewise.
38045         * tests/test-gc-md4.c: Likewise.
38046         * tests/test-gc-md5.c: Likewise.
38047         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38048         * tests/test-gc-rijndael.c: Likewise.
38049         * tests/test-gc-sha1.c: Likewise.
38050         * tests/test-gc.c: Likewise.
38051         * tests/test-gethostname.c: Likewise.
38052         * tests/test-gettimeofday.c: Likewise.
38053         * tests/test-hash.c: Likewise.
38054         * tests/test-hmac-md5.c: Likewise.
38055         * tests/test-hmac-sha1.c: Likewise.
38056         * tests/test-md2.c: Likewise.
38057         * tests/test-md4.c: Likewise.
38058         * tests/test-md5.c: Likewise.
38059         * tests/test-memchr.c: Likewise.
38060         * tests/test-memchr2.c: Likewise.
38061         * tests/test-memcmp.c: Likewise.
38062         * tests/test-memmem.c: Likewise.
38063         * tests/test-memrchr.c: Likewise.
38064         * tests/test-rawmemchr.c: Likewise.
38065         * tests/test-read-file.c: Likewise.
38066         * tests/test-rijndael.c: Likewise.
38067         * tests/test-sockets.c: Likewise.
38068         * tests/test-strchrnul.c: Likewise.
38069         * tests/test-strstr.c: Likewise.
38070         * tests/test-strtod.c: Likewise.
38071         * build-aux/ncftpput-ftp: Likewise.
38072
38073 2010-01-26  Eric Blake  <ebb9@byu.net>
38074
38075         ignore-value: update recommended header name
38076         * modules/ignore-value (Include): Only use <> for headers that
38077         exist in glibc.
38078
38079 2010-01-26  Jim Meyering  <meyering@redhat.com>
38080
38081         test-userspec.c: avoid compiler warnings
38082         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
38083         and "initialization discards qualifiers..." warnings.
38084         Put the first "uid" in its own scope, and make char* members "const".
38085
38086 2010-01-25  Bruno Haible  <bruno@clisp.org>
38087
38088         gnulib-tool: Make warning diagnostics consistent.
38089         * gnulib-tool (func_warning): New function.
38090         Use it everywhere where gnulib-tool produces output to stderr and it is
38091         not a fatal error.
38092
38093 2010-01-25  Bruno Haible  <bruno@clisp.org>
38094
38095         Fix test dependencies.
38096         * modules/xstrtol-tests (Depends-on): Add inttypes.
38097         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
38098
38099 2010-01-25 Pádraig Brady <P@draigBrady.com>
38100
38101         syntax-check: detect incorrect boolean macro values in config.h
38102         * modules/maintainer-makefile (configure.ac): Parameterize the location
38103         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
38104         The logic is from Eric Blake and the location indicated by Jim Meyering.
38105         Note the more natural CONFIG_HEADER name is prohibited by automake
38106         for backwards compatibility reasons.
38107         * top/maint.mk (sc_Wundef_boolean): New rule.
38108
38109 2010-01-25  Jim Meyering  <meyering@redhat.com>
38110
38111         bootstrap: detect MacOS 10.6's shasum, too
38112         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
38113         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
38114
38115 2010-01-23  Jim Meyering  <meyering@redhat.com>
38116
38117         xstrtoll: new module
38118         * modules/xstrtoll: New file.
38119         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
38120         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
38121         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
38122         ./configure fails if you use this module and lack "long long".
38123         * modules/xstrtoll-tests: New module.
38124         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
38125         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
38126         new init.sh-based test framework.
38127
38128 2010-01-24  Bruno Haible  <bruno@clisp.org>
38129
38130         Tests for module 'yn'.
38131         * modules/yn-tests: New file.
38132         * tests/test-yn.c: New file.
38133
38134         Tests for module 'y1'.
38135         * modules/y1-tests: New file.
38136         * tests/test-y1.c: New file.
38137
38138         Tests for module 'y0'.
38139         * modules/y0-tests: New file.
38140         * tests/test-y0.c: New file.
38141
38142         Tests for module 'tanh'.
38143         * modules/tanh-tests: New file.
38144         * tests/test-tanh.c: New file.
38145
38146         Tests for module 'tan'.
38147         * modules/tan-tests: New file.
38148         * tests/test-tan.c: New file.
38149
38150         Tests for module 'sqrt'.
38151         * modules/sqrt-tests: New file.
38152         * tests/test-sqrt.c: New file.
38153
38154         Tests for module 'sinh'.
38155         * modules/sinh-tests: New file.
38156         * tests/test-sinh.c: New file.
38157
38158         Tests for module 'sin'.
38159         * modules/sin-tests: New file.
38160         * tests/test-sin.c: New file.
38161
38162         Tests for module 'rint'.
38163         * modules/rint-tests: New file.
38164         * tests/test-rint.c: New file.
38165
38166         Tests for module 'remainder'.
38167         * modules/remainder-tests: New file.
38168         * tests/test-remainder.c: New file.
38169
38170         Tests for module 'pow'.
38171         * modules/pow-tests: New file.
38172         * tests/test-pow.c: New file.
38173
38174         Tests for module 'nextafter'.
38175         * modules/nextafter-tests: New file.
38176         * tests/test-nextafter.c: New file.
38177
38178         Tests for module 'modf'.
38179         * modules/modf-tests: New file.
38180         * tests/test-modf.c: New file.
38181
38182         Tests for module 'logb'.
38183         * modules/logb-tests: New file.
38184         * tests/test-logb.c: New file.
38185
38186         Tests for module 'log1p'.
38187         * modules/log1p-tests: New file.
38188         * tests/test-log1p.c: New file.
38189
38190         Tests for module 'log10'.
38191         * modules/log10-tests: New file.
38192         * tests/test-log10.c: New file.
38193
38194         Tests for module 'log'.
38195         * modules/log-tests: New file.
38196         * tests/test-log.c: New file.
38197
38198         Tests for module 'lgamma'.
38199         * modules/lgamma-tests: New file.
38200         * tests/test-lgamma.c: New file.
38201
38202         Tests for module 'ldexp'.
38203         * modules/ldexp-tests: New file.
38204         * tests/test-ldexp.c: New file.
38205
38206         Tests for module 'jn'.
38207         * modules/jn-tests: New file.
38208         * tests/test-jn.c: New file.
38209
38210         Tests for module 'j1'.
38211         * modules/j1-tests: New file.
38212         * tests/test-j1.c: New file.
38213
38214         Tests for module 'j0'.
38215         * modules/j0-tests: New file.
38216         * tests/test-j0.c: New file.
38217
38218         Tests for module 'hypot'.
38219         * modules/hypot-tests: New file.
38220         * tests/test-hypot.c: New file.
38221
38222         Tests for module 'fmod'.
38223         * modules/fmod-tests: New file.
38224         * tests/test-fmod.c: New file.
38225
38226         Tests for module 'fabs'.
38227         * modules/fabs-tests: New file.
38228         * tests/test-fabs.c: New file.
38229
38230         Tests for module 'exp'.
38231         * modules/exp-tests: New file.
38232         * tests/test-exp.c: New file.
38233
38234         Tests for module 'erfc'.
38235         * modules/erfc-tests: New file.
38236         * tests/test-erfc.c: New file.
38237
38238         Tests for module 'erf'.
38239         * modules/erf-tests: New file.
38240         * tests/test-erf.c: New file.
38241
38242         Tests for module 'cosh'.
38243         * modules/cosh-tests: New file.
38244         * tests/test-cosh.c: New file.
38245
38246         Tests for module 'cos'.
38247         * modules/cos-tests: New file.
38248         * tests/test-cos.c: New file.
38249
38250         Tests for module 'copysign'.
38251         * modules/copysign-tests: New file.
38252         * tests/test-copysign.c: New file.
38253
38254         Tests for module 'cbrt'.
38255         * modules/cbrt-tests: New file.
38256         * tests/test-cbrt.c: New file.
38257
38258         Tests for module 'atan2'.
38259         * modules/atan2-tests: New file.
38260         * tests/test-atan2.c: New file.
38261
38262         Tests for module 'atan'.
38263         * modules/atan-tests: New file.
38264         * tests/test-atan.c: New file.
38265
38266         Tests for module 'asin'.
38267         * modules/asin-tests: New file.
38268         * tests/test-asin.c: New file.
38269
38270         Tests for module 'acos'.
38271         * modules/acos-tests: New file.
38272         * tests/test-acos.c: New file.
38273
38274 2010-01-24  Bruno Haible  <bruno@clisp.org>
38275
38276         Fix tests for common <math.h> functions.
38277         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
38278         code snippet that references the function pointer, rather than merely
38279         calling the function. Substitute the FUNC_LIBM variable.
38280         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
38281         * modules/acos (configure.ac): Likewise.
38282         * modules/asin (configure.ac): Likewise.
38283         * modules/atan (configure.ac): Likewise.
38284         * modules/atan2 (configure.ac): Likewise.
38285         * modules/cbrt (configure.ac): Likewise.
38286         * modules/copysign (configure.ac): Likewise.
38287         * modules/cos (configure.ac): Likewise.
38288         * modules/cosh (configure.ac): Likewise.
38289         * modules/erf (configure.ac): Likewise.
38290         * modules/erfc (configure.ac): Likewise.
38291         * modules/exp (configure.ac): Likewise.
38292         * modules/fabs (configure.ac): Likewise.
38293         * modules/fmod (configure.ac): Likewise.
38294         * modules/hypot (configure.ac): Likewise.
38295         * modules/j0 (configure.ac): Likewise.
38296         * modules/j1 (configure.ac): Likewise.
38297         * modules/jn (configure.ac): Likewise.
38298         * modules/ldexp (configure.ac): Likewise.
38299         * modules/lgamma (configure.ac): Likewise.
38300         * modules/log (configure.ac): Likewise.
38301         * modules/log10 (configure.ac): Likewise.
38302         * modules/log1p (configure.ac): Likewise.
38303         * modules/logb (configure.ac): Likewise.
38304         * modules/modf (configure.ac): Likewise.
38305         * modules/nextafter (configure.ac): Likewise.
38306         * modules/pow (configure.ac): Likewise.
38307         * modules/remainder (configure.ac): Likewise.
38308         * modules/rint (configure.ac): Likewise.
38309         * modules/sin (configure.ac): Likewise.
38310         * modules/sinh (configure.ac): Likewise.
38311         * modules/tan (configure.ac): Likewise.
38312         * modules/tanh (configure.ac): Likewise.
38313         * modules/y0 (configure.ac): Likewise.
38314         * modules/y1 (configure.ac): Likewise.
38315         * modules/yn (configure.ac): Likewise.
38316
38317 2010-01-24  Bruno Haible  <bruno@clisp.org>
38318
38319         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
38320         * tests/test-acosl.c (x): New variable.
38321         (main): Store argument in x and fetch it from x.
38322         * tests/test-asinl.c (x): New variable.
38323         (main): Store argument in x and fetch it from x.
38324         * tests/test-atanl.c (x): New variable.
38325         (main): Store argument in x and fetch it from x.
38326         * tests/test-cosl.c (x): New variable.
38327         (main): Store argument in x and fetch it from x.
38328         * tests/test-expl.c (x): New variable.
38329         (main): Store argument in x and fetch it from x.
38330         * tests/test-logl.c (x): New variable.
38331         (main): Store argument in x and fetch it from x.
38332         * tests/test-sinl.c (x): New variable.
38333         (main): Store argument in x and fetch it from x.
38334         * tests/test-sqrtl.c (x): New variable.
38335         (main): Store argument in x and fetch it from x.
38336         * tests/test-tanl.c (x): New variable.
38337         (main): Store argument in x and fetch it from x.
38338
38339 2010-01-24  Bruno Haible  <bruno@clisp.org>
38340
38341         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38342         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38343         assignments to the initial TESTS_ENVIRONMENT.
38344         * doc/gnulib.texi (Unit test modules): Document it.
38345         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38346         TESTS_ENVIRONMENT.
38347         * modules/btowc-tests (Makefile.am): Likewise.
38348         * modules/c-stack-tests (Makefile.am): Likewise.
38349         * modules/c-strcase-tests (Makefile.am): Likewise.
38350         * modules/copy-file-tests (Makefile.am): Likewise.
38351         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38352         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38353         * modules/mbrtowc-tests (Makefile.am): Likewise.
38354         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38355         * modules/mbscasestr-tests (Makefile.am): Likewise.
38356         * modules/mbschr-tests (Makefile.am): Likewise.
38357         * modules/mbscspn-tests (Makefile.am): Likewise.
38358         * modules/mbsinit-tests (Makefile.am): Likewise.
38359         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38360         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38361         * modules/mbspbrk-tests (Makefile.am): Likewise.
38362         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38363         * modules/mbsrchr-tests (Makefile.am): Likewise.
38364         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38365         * modules/mbsspn-tests (Makefile.am): Likewise.
38366         * modules/mbsstr-tests (Makefile.am): Likewise.
38367         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38368         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38369         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38370         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38371         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38372         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38373         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38374         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38375         * modules/wcrtomb-tests (Makefile.am): Likewise.
38376         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38377         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38378         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38379         assignments from TESTS_ENVIRONMENT.
38380         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38381         augmentation.
38382         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38383         * modules/atexit-tests (Makefile.am): Likewise.
38384         * modules/binary-io-tests (Makefile.am): Likewise.
38385         * modules/closein-tests (Makefile.am): Likewise.
38386         * modules/dprintf-posix-tests (Makefile.am): Likewise.
38387         * modules/exclude-tests (Makefile.am): Likewise.
38388         * modules/fflush-tests (Makefile.am): Likewise.
38389         * modules/fpending-tests (Makefile.am): Likewise.
38390         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38391         * modules/freadahead-tests (Makefile.am): Likewise.
38392         * modules/freadptr-tests (Makefile.am): Likewise.
38393         * modules/freadseek-tests (Makefile.am): Likewise.
38394         * modules/fseek-tests (Makefile.am): Likewise.
38395         * modules/fseeko-tests (Makefile.am): Likewise.
38396         * modules/ftell-tests (Makefile.am): Likewise.
38397         * modules/ftello-tests (Makefile.am): Likewise.
38398         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38399         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38400         * modules/lseek-tests (Makefile.am): Likewise.
38401         * modules/parse-duration-tests (Makefile.am): Likewise.
38402         * modules/perror-tests (Makefile.am): Likewise.
38403         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38404         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38405         * modules/pipe-tests (Makefile.am): Likewise.
38406         * modules/pread-tests (Makefile.am): Likewise.
38407         * modules/printf-posix-tests (Makefile.am): Likewise.
38408         * modules/select-tests (Makefile.am): Likewise.
38409         * modules/sigpipe-tests (Makefile.am): Likewise.
38410         * modules/tsearch-tests (Makefile.am): Likewise.
38411         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38412         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38413         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38414         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38415         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38416         * modules/version-etc-tests (Makefile.am): Likewise.
38417         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38418         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38419         * modules/xalloc-die-tests (Makefile.am): Likewise.
38420         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38421         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38422         * modules/xstrtol-tests (Makefile.am): Likewise.
38423         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38424         * modules/yesno-tests (Makefile.am): Likewise.
38425         Suggested by Jim Meyering.
38426
38427 2010-01-24  Bruno Haible  <bruno@clisp.org>
38428
38429         More documentation.
38430         * doc/gnulib.texi (Writing modules): New chapter.
38431         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38432         the new chapter.
38433
38434 2010-01-24  Jim Meyering  <meyering@redhat.com>
38435
38436         maint.mk: do not prepend "./" after filtering
38437         * top/maint.mk (_prepend_srcdir_prefix): New variable
38438         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38439         "./" when $(srcdir) is ".".
38440
38441         define STREQ(a,b) consistently, removing useless parentheses
38442         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38443         since the only risk is that "a" or "b" contains an unparenthesized
38444         comma, but if either did that, STREQ would have 3 or more arguments.
38445         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38446         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38447         * lib/hash-triple.c (STREQ): Likewise.
38448         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38449         * lib/getugroups.c (STREQ): Likewise.
38450
38451 2010-01-23  Jim Meyering  <meyering@redhat.com>
38452
38453         maint.mk: fix syntax-check in a non-srcdir build directory
38454         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38455         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38456
38457 2010-01-22  Jim Meyering  <meyering@redhat.com>
38458
38459         userspec: add unit tests
38460         * tests/test-userspec.c: New file.
38461         * modules/userspec-tests: Likewise.
38462
38463 2010-01-21  Jim Meyering  <meyering@redhat.com>
38464
38465         maint.mk: handle source file names containing "." robustly
38466         * top/maint.mk (_dot_escaped_srcdir): Define.
38467         (VC_LIST): Use it in LHS of sed substitution.
38468
38469 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38470
38471         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38472         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38473         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38474         from a non-srcdir build.
38475
38476 2010-01-20  Eric Blake  <ebb9@byu.net>
38477
38478         warn-on-use: use instead of link-warning
38479         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
38480         * modules/unistd (Depends-on, Makefile.am): Likewise.
38481         * modules/arpa_inet (Depends-on): Replace link-warning with
38482         warn-on-use.
38483         (Makefile.am): Update rules accordingly.
38484         * modules/ctype (Depends-on, Makefile.am): Likewise.
38485         * modules/dirent (Depends-on, Makefile.am): Likewise.
38486         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
38487         * modules/inttypes (Depends-on, Makefile.am): Likewise.
38488         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38489         * modules/locale (Depends-on, Makefile.am): Likewise.
38490         * modules/math (Depends-on, Makefile.am): Likewise.
38491         * modules/search (Depends-on, Makefile.am): Likewise.
38492         * modules/signal (Depends-on, Makefile.am): Likewise.
38493         * modules/spawn (Depends-on, Makefile.am): Likewise.
38494         * modules/stdlib (Depends-on, Makefile.am): Likewise.
38495         * modules/string (Depends-on, Makefile.am): Likewise.
38496         * modules/strings (Depends-on, Makefile.am): Likewise.
38497         * modules/sys_file (Depends-on, Makefile.am): Likewise.
38498         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
38499         * modules/sys_select (Depends-on, Makefile.am): Likewise.
38500         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
38501         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
38502         * modules/sys_times (Depends-on, Makefile.am): Likewise.
38503         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38504         * modules/wchar (Depends-on, Makefile.am): Likewise.
38505         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
38506         should be poisoned.
38507         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
38508         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
38509         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
38510         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38511         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38512         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38513         * m4/math_h.m4 (gl_MATH_H): Likewise.
38514         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38515         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38516         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38517         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38518         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38519         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38520         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
38521         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
38522         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
38523         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38524         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38525         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38526         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38527         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38528         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38529         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38530         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
38531         GL_LINK_WARNING.
38532         * lib/ctype.in.h: Likewise.
38533         * lib/dirent.in.h: Likewise.
38534         * lib/fcntl.in.h: Likewise.
38535         * lib/inttypes.in.h: Likewise.
38536         * lib/langinfo.in.h: Likewise.
38537         * lib/locale.in.h: Likewise.
38538         * lib/math.in.h: Likewise.
38539         * lib/search.in.h: Likewise.
38540         * lib/signal.in.h: Likewise.
38541         * lib/spawn.in.h: Likewise.
38542         * lib/stdio.in.h: Likewise.
38543         * lib/stdlib.in.h: Likewise.
38544         * lib/string.in.h: Likewise.
38545         * lib/strings.in.h: Likewise.
38546         * lib/sys_file.in.h: Likewise.
38547         * lib/sys_ioctl.in.h: Likewise.
38548         * lib/sys_select.in.h: Likewise.
38549         * lib/sys_socket.in.h: Likewise.
38550         * lib/sys_stat.in.h: Likewise.
38551         * lib/sys_times.in.h: Likewise.
38552         * lib/sys_utsname.in.h: Likewise.
38553         * lib/unistd.in.h: Likewise.
38554         * lib/wchar.in.h: Likewise.
38555
38556 2010-01-20  Bruno Haible  <bruno@clisp.org>
38557
38558         Avoid duplicate -lm.
38559         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
38560         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
38561         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
38562         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
38563         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
38564         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
38565         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
38566         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
38567         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
38568         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
38569         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
38570         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
38571         Reported by Paolo Bonzini.
38572
38573 2010-01-19  Bruno Haible  <bruno@clisp.org>
38574
38575         langinfo, nl_langinfo: Relicense under LGPLv2+.
38576         * modules/langinfo (License): Change to LGPLv2+.
38577         * modules/nl_langinfo (License): Likewise.
38578         Patch by David Lutterkort <lutter@redhat.com>.
38579
38580 2010-01-19  Bruno Haible  <bruno@clisp.org>
38581
38582         Avoid compilation error with cc on OSF/1 5.1.
38583         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
38584         statement, not before.
38585         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38586
38587 2010-01-18  Bruno Haible  <bruno@clisp.org>
38588
38589         Avoid a link error due to the __printf__ symbol.
38590         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
38591         and 2.6.x.
38592         (__format__, __printf__): Remove definitions.
38593         * lib/argp-fmtstream.h: Likewise.
38594         * lib/argp.h: Likewise.
38595         * lib/error.h: Likewise.
38596         * lib/vasnprintf.h: Likewise.
38597         * lib/xprintf.h: Likewise.
38598         * lib/xvasprintf.h: Likewise.
38599         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38600
38601 2010-01-18  Bruno Haible  <bruno@clisp.org>
38602
38603         Tests for module 'tanl'.
38604         * modules/tanl-tests: New file.
38605         * tests/test-tanl.c: New file.
38606
38607         Tests for module 'sqrtl'.
38608         * modules/sqrtl-tests: New file.
38609         * tests/test-sqrtl.c: New file.
38610
38611         Tests for module 'sinl'.
38612         * modules/sinl-tests: New file.
38613         * tests/test-sinl.c: New file.
38614
38615         Tests for module 'logl'.
38616         * modules/logl-tests: New file.
38617         * tests/test-logl.c: New file.
38618
38619         Tests for module 'expl'.
38620         * modules/expl-tests: New file.
38621         * tests/test-expl.c: New file.
38622
38623         Tests for module 'cosl'.
38624         * modules/cosl-tests: New file.
38625         * tests/test-cosl.c: New file.
38626
38627         Tests for module 'atanl'.
38628         * modules/atanl-tests: New file.
38629         * tests/test-atanl.c: New file.
38630
38631         Tests for module 'asinl'.
38632         * modules/asinl-tests: New file.
38633         * tests/test-asinl.c: New file.
38634
38635         Tests for module 'acosl'.
38636         * modules/acosl-tests: New file.
38637         * tests/test-acosl.c: New file.
38638
38639         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38640         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
38641         tanl): Use the standard gnulib idiom.
38642         * lib/cosl.c: Don't include trigl.c and sincosl.c.
38643         * lib/sinl.c: Likewise.
38644         * lib/tanl.c: Don't include trigl.c.
38645         (kernel_tanl): Make static.
38646         * lib/sincosl.c: Include trigl.h first.
38647         * lib/trigl.c: Likewise.
38648         * m4/acosl.m4: New file.
38649         * m4/asinl.m4: New file.
38650         * m4/atanl.m4: New file.
38651         * m4/cosl.m4: New file.
38652         * m4/expl.m4: New file.
38653         * m4/logl.m4: New file.
38654         * m4/sinl.m4: New file.
38655         * m4/sqrtl.m4: New file.
38656         * m4/tanl.m4: New file.
38657         * m4/mathl.m4: Remove file.
38658         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
38659         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38660         Don't initialize GNULIB_MATHL.
38661         * modules/acosl: New file.
38662         * modules/asinl: New file.
38663         * modules/atanl: New file.
38664         * modules/cosl: New file.
38665         * modules/expl: New file.
38666         * modules/logl: New file.
38667         * modules/sinl: New file.
38668         * modules/sqrtl: New file.
38669         * modules/tanl: New file.
38670         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
38671         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
38672         substitute GNULIB_MATHL.
38673         * modules/mathl: Rewritten.
38674         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
38675         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
38676         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
38677         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
38678         * doc/posix-functions/expl.texi: Mention the 'expl' module.
38679         * doc/posix-functions/logl.texi: Mention the 'logl' module.
38680         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
38681         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
38682         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
38683
38684 2010-01-18  Bruno Haible  <bruno@clisp.org>
38685
38686         sqrt: Make gl_FUNC_SQRT requirable.
38687         * m4/sqrt.m4: New file.
38688         * modules/sqrt (Files): Add it.
38689         (configure.ac): Invoke gl_FUNC_SQRT.
38690
38691 2010-01-18  Bruno Haible  <bruno@clisp.org>
38692
38693         New modules for common <math.h> functions.
38694         * m4/mathfunc.m4: New file.
38695         * modules/acos: New file.
38696         * modules/asin: New file.
38697         * modules/atan: New file.
38698         * modules/atan2: New file.
38699         * modules/cbrt: New file.
38700         * modules/copysign: New file.
38701         * modules/cos: New file.
38702         * modules/cosh: New file.
38703         * modules/erf: New file.
38704         * modules/erfc: New file.
38705         * modules/exp: New file.
38706         * modules/fabs: New file.
38707         * modules/fmod: New file.
38708         * modules/hypot: New file.
38709         * modules/j0: New file.
38710         * modules/j1: New file.
38711         * modules/jn: New file.
38712         * modules/ldexp: New file.
38713         * modules/lgamma: New file.
38714         * modules/log: New file.
38715         * modules/log10: New file.
38716         * modules/log1p: New file.
38717         * modules/logb: New file.
38718         * modules/modf: New file.
38719         * modules/nextafter: New file.
38720         * modules/pow: New file.
38721         * modules/remainder: New file.
38722         * modules/rint: New file.
38723         * modules/sin: New file.
38724         * modules/sinh: New file.
38725         * modules/sqrt: New file.
38726         * modules/tan: New file.
38727         * modules/tanh: New file.
38728         * modules/y0: New file.
38729         * modules/y1: New file.
38730         * modules/yn: New file.
38731         * doc/posix-functions/acos.texi: Mention the 'acos' module.
38732         * doc/posix-functions/asin.texi: Mention the 'asin' module.
38733         * doc/posix-functions/atan.texi: Mention the 'atan' module.
38734         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
38735         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
38736         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
38737         * doc/posix-functions/cos.texi: Mention the 'cos' module.
38738         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
38739         * doc/posix-functions/erf.texi: Mention the 'erf' module.
38740         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
38741         * doc/posix-functions/exp.texi: Mention the 'exp' module.
38742         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
38743         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
38744         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
38745         * doc/posix-functions/j0.texi: Mention the 'j0' module.
38746         * doc/posix-functions/j1.texi: Mention the 'j1' module.
38747         * doc/posix-functions/jn.texi: Mention the 'jn' module.
38748         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
38749         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
38750         * doc/posix-functions/log.texi: Mention the 'log' module.
38751         * doc/posix-functions/log10.texi: Mention the 'log10' module.
38752         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
38753         * doc/posix-functions/logb.texi: Mention the 'logb' module.
38754         * doc/posix-functions/modf.texi: Mention the 'modf' module.
38755         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
38756         * doc/posix-functions/pow.texi: Mention the 'pow' module.
38757         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
38758         * doc/posix-functions/rint.texi: Mention the 'rint' module.
38759         * doc/posix-functions/sin.texi: Mention the 'sin' module.
38760         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
38761         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
38762         * doc/posix-functions/tan.texi: Mention the 'tan' module.
38763         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
38764         * doc/posix-functions/y0.texi: Mention the 'y0' module.
38765         * doc/posix-functions/y1.texi: Mention the 'y1' module.
38766         * doc/posix-functions/yn.texi: Mention the 'yn' module.
38767
38768 2010-01-18  Jim Meyering  <meyering@redhat.com>
38769
38770         ignore-value: relax license to LGPLv2+
38771         * modules/ignore-value (License): Relax to LGPLv2+.
38772
38773         getdate: don't leak when TZ contains two or more '"'s
38774         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
38775         double quote in TZ after the first one.
38776
38777         readtokens: do not leak internal token_lengths buffer
38778         * lib/readtokens.c (readtokens): Free the local, lengths,
38779         when the supplied "token_lengths" parameter is NULL.
38780
38781 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38782
38783         Fix a couple of missing LIBTHREAD link failures on AIX.
38784         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
38785         $(LIBTHREAD).
38786         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
38787
38788         Link test-poll against INET_PTON_LIB.
38789         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
38790         for inet_pton on Solaris 10.
38791
38792 2010-01-17  Bruno Haible  <bruno@clisp.org>
38793
38794         unistdio/*-sprintf: Fix typo in module description.
38795         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
38796         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
38797         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
38798         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
38799         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
38800         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
38801         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
38802         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38803
38804 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38805
38806         gnulib-tool: fix filelist for AIX, HP-UX ksh.
38807         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
38808         variables in shell case patterns, for AIX and HP-UX ksh.
38809
38810         Split large sed scripts, for HP-UX sed.
38811         * modules/stdio: Split sed scripts around 50 sed commands,
38812         to avoid HP-UX limit of 99 commands, in the near future.
38813         * modules/string: Likewise.
38814         * modules/unistd: Likewise.
38815
38816         gnulib-tool: avoid writing in the current directory.
38817         * gnulib-tool (func_emit_lib_Makefile_am)
38818         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
38819         not in the current directory, so concurrent gnulib-tool
38820         instances do not interfere.
38821
38822 2010-01-16  Jim Meyering  <meyering@redhat.com>
38823
38824         doc: update users.txt
38825         * users.txt: Add grep.
38826         (diffutils, gzip): Update URLs.
38827
38828 2010-01-12  Bruno Haible  <bruno@clisp.org>
38829
38830         posix_spawn: Avoid test failure on Cygwin.
38831         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
38832         characters.
38833         Reported by Simon Josefsson.
38834
38835 2010-01-12  Bruno Haible  <bruno@clisp.org>
38836
38837         * tests/test-cond.c (main): When skipping the test, show the reason.
38838
38839 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38840
38841         * lib/striconv.c (str_cd_iconv): Avoid if before free.
38842
38843 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38844
38845         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
38846         VC_LIST_ALWAYS_EXCLUDE_REGEX.
38847
38848 2010-01-12  Eric Blake  <ebb9@byu.net>
38849
38850         build: guarantee AS_VAR_IF
38851         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
38852         (gl_AS_VAR_IF): Move...
38853         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
38854         Reported by Simon Josefsson.
38855
38856 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38857
38858         * lib/stdio.in.h: Fix typo.
38859
38860 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38861
38862         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
38863         libgpg-error.
38864
38865 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38866
38867         * tests/test-xalloc-die.sh: Use $EXEEXT.
38868
38869 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38870             Bruno Haible  <bruno@clisp.org>
38871
38872         getlogin, getlogin_r: Avoid test failure.
38873         * tests/test-getlogin.c: Include <stdio.h>.
38874         (main): Skip the test when the function fails because stdin is not a
38875         tty.
38876         * tests/test-getlogin_r.c: Include <stdio.h>.
38877         (main): Skip the test when the function fails because stdin is not a
38878         tty.
38879
38880 2010-01-11  Eric Blake  <ebb9@byu.net>
38881
38882         tests: avoid more large file warnings
38883         * tests/test-fflush.c: Avoid warning about ftell use.
38884         * tests/test-fseek.c: Avoid warning about fseek use.
38885
38886 2010-01-10  Bruno Haible  <bruno@clisp.org>
38887
38888         nproc: Work better on Linux when /proc and /sys are not mounted.
38889         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
38890         as lower bound when, on glibc/Linux systems,
38891         sysconf (_SC_NPROCESSORS_CONF) returns 1.
38892         Suggested by Pádraig Brady <P@draigbrady.com>.
38893         Reported by Dmitry V. Levin <ldv@altlinux.org>.
38894
38895         nproc: Refactor.
38896         * lib/nproc.c (num_processors_via_affinity_mask): New function,
38897         extracted from num_processors.
38898         (num_processors): Call it.
38899
38900 2010-01-11  Jim Meyering  <meyering@redhat.com>
38901
38902         utimecmp: avoid new warning from upcoming gcc-4.5.0
38903         * lib/utimecmp.c (BILLION): Define using #define rather than an
38904         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
38905
38906 2010-01-11  Eric Blake  <ebb9@byu.net>
38907
38908         math: add portability warnings for classification macros
38909         * modules/math (Depends-on): Add warn-on-use.
38910         (Makefile.am): Provide new substitutions.
38911         * m4/math_h.m4 (gl_MATH_H): Require inline.
38912         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
38913         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
38914         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
38915         implement warnings.
38916
38917         unistd: warn on use of environ without module
38918         * modules/unistd (Depends-on): Add warn-on-use.
38919         (Makefile.am): Provide new substitutions.
38920         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
38921         * lib/unistd.in.h (environ): Wrap with a warning helper function.
38922
38923         stdio: warn on suspicious uses
38924         * modules/stdio (Depends-on): Add warn-on-use.
38925         (Makefile.am): Provide new substitutions.
38926         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
38927         fseeko.
38928         * lib/stdio.in.h (gets): Always warn on use.
38929         (fseek, ftell): Adjust when warnings are issued, and honor
38930         _GL_NO_LARGE_FILES as a way to silence the warning.
38931         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
38932         any warning about large file offsets.
38933         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
38934         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
38935         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
38936         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
38937         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
38938         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
38939         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
38940         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
38941
38942         warn-on-use: new module
38943         * modules/warn-on-use: New file.
38944         * build-aux/warn-on-use.h: Likewise.
38945         * m4/warn-on-use.m4: Likewise.
38946         * MODULES.html.sh (Support for building): Mention it.
38947
38948 2010-01-10  Bruno Haible  <bruno@clisp.org>
38949
38950         Tests for module 'unistr/u32-strdup'.
38951         * modules/unistr/u32-strdup-tests: New file.
38952         * tests/unistr/test-u32-strdup.c: New file.
38953
38954         Tests for module 'unistr/u16-strdup'.
38955         * modules/unistr/u16-strdup-tests: New file.
38956         * tests/unistr/test-u16-strdup.c: New file.
38957
38958         Tests for module 'unistr/u8-strdup'.
38959         * modules/unistr/u8-strdup-tests: New file.
38960         * tests/unistr/test-u8-strdup.c: New file.
38961         * tests/unistr/test-strdup.h: New file.
38962
38963         Tests for module 'unistr/u32-strncmp'.
38964         * modules/unistr/u32-strncmp-tests: New file.
38965         * tests/unistr/test-u32-strncmp.c: New file.
38966
38967         Tests for module 'unistr/u16-strncmp'.
38968         * modules/unistr/u16-strncmp-tests: New file.
38969         * tests/unistr/test-u16-strncmp.c: New file.
38970
38971         Tests for module 'unistr/u8-strncmp'.
38972         * modules/unistr/u8-strncmp-tests: New file.
38973         * tests/unistr/test-u8-strncmp.c: New file.
38974         * tests/unistr/test-strncmp.h: New file.
38975
38976         Tests for module 'unistr/u32-strcoll'.
38977         * modules/unistr/u32-strcoll-tests: New file.
38978         * tests/unistr/test-u32-strcoll.c: New file.
38979
38980         Tests for module 'unistr/u16-strcoll'.
38981         * modules/unistr/u16-strcoll-tests: New file.
38982         * tests/unistr/test-u16-strcoll.c: New file.
38983
38984         Tests for module 'unistr/u8-strcoll'.
38985         * modules/unistr/u8-strcoll-tests: New file.
38986         * tests/unistr/test-u8-strcoll.c: New file.
38987
38988         Tests for module 'unistr/u32-strcmp'.
38989         * modules/unistr/u32-strcmp-tests: New file.
38990         * tests/unistr/test-u32-strcmp.c: New file.
38991         * tests/unistr/test-u32-strcmp.h: New file.
38992
38993         Tests for module 'unistr/u16-strcmp'.
38994         * modules/unistr/u16-strcmp-tests: New file.
38995         * tests/unistr/test-u16-strcmp.c: New file.
38996         * tests/unistr/test-u16-strcmp.h: New file.
38997
38998         Tests for module 'unistr/u8-strcmp'.
38999         * modules/unistr/u8-strcmp-tests: New file.
39000         * tests/unistr/test-u8-strcmp.c: New file.
39001         * tests/unistr/test-u8-strcmp.h: New file.
39002         * tests/unistr/test-strcmp.h: New file.
39003
39004         Tests for module 'unistr/u32-strncat'.
39005         * modules/unistr/u32-strncat-tests: New file.
39006         * tests/unistr/test-u32-strncat.c: New file.
39007
39008         Tests for module 'unistr/u16-strncat'.
39009         * modules/unistr/u16-strncat-tests: New file.
39010         * tests/unistr/test-u16-strncat.c: New file.
39011
39012         Tests for module 'unistr/u8-strncat'.
39013         * modules/unistr/u8-strncat-tests: New file.
39014         * tests/unistr/test-u8-strncat.c: New file.
39015         * tests/unistr/test-strncat.h: New file.
39016
39017         Tests for module 'unistr/u32-strcat'.
39018         * modules/unistr/u32-strcat-tests: New file.
39019         * tests/unistr/test-u32-strcat.c: New file.
39020
39021         Tests for module 'unistr/u16-strcat'.
39022         * modules/unistr/u16-strcat-tests: New file.
39023         * tests/unistr/test-u16-strcat.c: New file.
39024
39025         Tests for module 'unistr/u8-strcat'.
39026         * modules/unistr/u8-strcat-tests: New file.
39027         * tests/unistr/test-u8-strcat.c: New file.
39028         * tests/unistr/test-strcat.h: New file.
39029
39030         Tests for module 'unistr/u32-stpncpy'.
39031         * modules/unistr/u32-stpncpy-tests: New file.
39032         * tests/unistr/test-u32-stpncpy.c: New file.
39033
39034         Tests for module 'unistr/u16-stpncpy'.
39035         * modules/unistr/u16-stpncpy-tests: New file.
39036         * tests/unistr/test-u16-stpncpy.c: New file.
39037
39038         Tests for module 'unistr/u8-stpncpy'.
39039         * modules/unistr/u8-stpncpy-tests: New file.
39040         * tests/unistr/test-u8-stpncpy.c: New file.
39041         * tests/unistr/test-stpncpy.h: New file.
39042
39043         Tests for module 'unistr/u32-strncpy'.
39044         * modules/unistr/u32-strncpy-tests: New file.
39045         * tests/unistr/test-u32-strncpy.c: New file.
39046
39047         Tests for module 'unistr/u16-strncpy'.
39048         * modules/unistr/u16-strncpy-tests: New file.
39049         * tests/unistr/test-u16-strncpy.c: New file.
39050
39051         Tests for module 'unistr/u8-strncpy'.
39052         * modules/unistr/u8-strncpy-tests: New file.
39053         * tests/unistr/test-u8-strncpy.c: New file.
39054         * tests/unistr/test-strncpy.h: New file.
39055
39056         Tests for module 'unistr/u32-stpcpy'.
39057         * modules/unistr/u32-stpcpy-tests: New file.
39058         * tests/unistr/test-u32-stpcpy.c: New file.
39059
39060         Tests for module 'unistr/u16-stpcpy'.
39061         * modules/unistr/u16-stpcpy-tests: New file.
39062         * tests/unistr/test-u16-stpcpy.c: New file.
39063
39064         Tests for module 'unistr/u8-stpcpy'.
39065         * modules/unistr/u8-stpcpy-tests: New file.
39066         * tests/unistr/test-u8-stpcpy.c: New file.
39067         * tests/unistr/test-stpcpy.h: New file.
39068
39069         Tests for module 'unistr/u32-strcpy'.
39070         * modules/unistr/u32-strcpy-tests: New file.
39071         * tests/unistr/test-u32-strcpy.c: New file.
39072
39073         Tests for module 'unistr/u16-strcpy'.
39074         * modules/unistr/u16-strcpy-tests: New file.
39075         * tests/unistr/test-u16-strcpy.c: New file.
39076
39077         Tests for module 'unistr/u8-strcpy'.
39078         * modules/unistr/u8-strcpy-tests: New file.
39079         * tests/unistr/test-u8-strcpy.c: New file.
39080         * tests/unistr/test-strcpy.h: New file.
39081
39082         Tests for module 'unistr/u32-strnlen'.
39083         * modules/unistr/u32-strnlen-tests: New file.
39084         * tests/unistr/test-u32-strnlen.c: New file.
39085
39086         Tests for module 'unistr/u16-strnlen'.
39087         * modules/unistr/u16-strnlen-tests: New file.
39088         * tests/unistr/test-u16-strnlen.c: New file.
39089
39090         Tests for module 'unistr/u8-strnlen'.
39091         * modules/unistr/u8-strnlen-tests: New file.
39092         * tests/unistr/test-u8-strnlen.c: New file.
39093         * tests/unistr/test-strnlen.h: New file.
39094
39095         Tests for module 'unistr/u32-strlen'.
39096         * modules/unistr/u32-strlen-tests: New file.
39097         * tests/unistr/test-u32-strlen.c: New file.
39098
39099         Tests for module 'unistr/u16-strlen'.
39100         * modules/unistr/u16-strlen-tests: New file.
39101         * tests/unistr/test-u16-strlen.c: New file.
39102
39103         Tests for module 'unistr/u8-strlen'.
39104         * modules/unistr/u8-strlen-tests: New file.
39105         * tests/unistr/test-u8-strlen.c: New file.
39106
39107         Tests for module 'unistr/u32-prev'.
39108         * modules/unistr/u32-prev-tests: New file.
39109         * tests/unistr/test-u32-prev.c: New file.
39110
39111         Tests for module 'unistr/u16-prev'.
39112         * modules/unistr/u16-prev-tests: New file.
39113         * tests/unistr/test-u16-prev.c: New file.
39114
39115         Tests for module 'unistr/u8-prev'.
39116         * modules/unistr/u8-prev-tests: New file.
39117         * tests/unistr/test-u8-prev.c: New file.
39118
39119         Tests for module 'unistr/u32-next'.
39120         * modules/unistr/u32-next-tests: New file.
39121         * tests/unistr/test-u32-next.c: New file.
39122
39123         Tests for module 'unistr/u16-next'.
39124         * modules/unistr/u16-next-tests: New file.
39125         * tests/unistr/test-u16-next.c: New file.
39126
39127         Tests for module 'unistr/u8-next'.
39128         * modules/unistr/u8-next-tests: New file.
39129         * tests/unistr/test-u8-next.c: New file.
39130
39131         Tests for module 'unistr/u32-strmbtouc'.
39132         * modules/unistr/u32-strmbtouc-tests: New file.
39133         * tests/unistr/test-u32-strmbtouc.c: New file.
39134
39135         Tests for module 'unistr/u16-strmbtouc'.
39136         * modules/unistr/u16-strmbtouc-tests: New file.
39137         * tests/unistr/test-u16-strmbtouc.c: New file.
39138
39139         Tests for module 'unistr/u8-strmbtouc'.
39140         * modules/unistr/u8-strmbtouc-tests: New file.
39141         * tests/unistr/test-u8-strmbtouc.c: New file.
39142
39143         Tests for module 'unistr/u32-strmblen'.
39144         * modules/unistr/u32-strmblen-tests: New file.
39145         * tests/unistr/test-u32-strmblen.c: New file.
39146
39147         Tests for module 'unistr/u16-strmblen'.
39148         * modules/unistr/u16-strmblen-tests: New file.
39149         * tests/unistr/test-u16-strmblen.c: New file.
39150
39151         Tests for module 'unistr/u8-strmblen'.
39152         * modules/unistr/u8-strmblen-tests: New file.
39153         * tests/unistr/test-u8-strmblen.c: New file.
39154
39155         Tests for module 'unistr/u32-cpy-alloc'.
39156         * modules/unistr/u32-cpy-alloc-tests: New file.
39157         * tests/unistr/test-u32-cpy-alloc.c: New file.
39158
39159         Tests for module 'unistr/u16-cpy-alloc'.
39160         * modules/unistr/u16-cpy-alloc-tests: New file.
39161         * tests/unistr/test-u16-cpy-alloc.c: New file.
39162
39163         Tests for module 'unistr/u8-cpy-alloc'.
39164         * modules/unistr/u8-cpy-alloc-tests: New file.
39165         * tests/unistr/test-u8-cpy-alloc.c: New file.
39166         * tests/unistr/test-cpy-alloc.h: New file.
39167
39168         Tests for module 'unistr/u32-mbsnlen'.
39169         * modules/unistr/u32-mbsnlen-tests: New file.
39170         * tests/unistr/test-u32-mbsnlen.c: New file.
39171
39172         Tests for module 'unistr/u16-mbsnlen'.
39173         * modules/unistr/u16-mbsnlen-tests: New file.
39174         * tests/unistr/test-u16-mbsnlen.c: New file.
39175
39176         Tests for module 'unistr/u8-mbsnlen'.
39177         * modules/unistr/u8-mbsnlen-tests: New file.
39178         * tests/unistr/test-u8-mbsnlen.c: New file.
39179
39180         Tests for module 'unistr/u32-chr'.
39181         * modules/unistr/u32-chr-tests: New file.
39182         * tests/unistr/test-u32-chr.c: New file.
39183
39184         Tests for module 'unistr/u16-chr'.
39185         * modules/unistr/u16-chr-tests: New file.
39186         * tests/unistr/test-u16-chr.c: New file.
39187
39188         Tests for module 'unistr/u8-chr'.
39189         * modules/unistr/u8-chr-tests: New file.
39190         * tests/unistr/test-u8-chr.c: New file.
39191         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
39192
39193         Tests for module 'unistr/u32-cmp2'.
39194         * modules/unistr/u32-cmp2-tests: New file.
39195         * tests/unistr/test-u32-cmp2.c: New file.
39196
39197         Tests for module 'unistr/u16-cmp2'.
39198         * modules/unistr/u16-cmp2-tests: New file.
39199         * tests/unistr/test-u16-cmp2.c: New file.
39200
39201         Tests for module 'unistr/u8-cmp2'.
39202         * modules/unistr/u8-cmp2-tests: New file.
39203         * tests/unistr/test-u8-cmp2.c: New file.
39204         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
39205
39206         Tests for module 'unistr/u32-cmp'.
39207         * modules/unistr/u32-cmp-tests: New file.
39208         * tests/unistr/test-u32-cmp.c: New file.
39209
39210         Tests for module 'unistr/u16-cmp'.
39211         * modules/unistr/u16-cmp-tests: New file.
39212         * tests/unistr/test-u16-cmp.c: New file.
39213
39214         Tests for module 'unistr/u8-cmp'.
39215         * modules/unistr/u8-cmp-tests: New file.
39216         * tests/unistr/test-u8-cmp.c: New file.
39217         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
39218
39219         Tests for module 'unistr/u32-set'.
39220         * modules/unistr/u32-set-tests: New file.
39221         * tests/unistr/test-u32-set.c: New file.
39222
39223         Tests for module 'unistr/u16-set'.
39224         * modules/unistr/u16-set-tests: New file.
39225         * tests/unistr/test-u16-set.c: New file.
39226
39227         Tests for module 'unistr/u8-set'.
39228         * modules/unistr/u8-set-tests: New file.
39229         * tests/unistr/test-u8-set.c: New file.
39230         * tests/unistr/test-set.h: New file.
39231
39232         Tests for module 'unistr/u32-move'.
39233         * modules/unistr/u32-move-tests: New file.
39234         * tests/unistr/test-u32-move.c: New file.
39235
39236         Tests for module 'unistr/u16-move'.
39237         * modules/unistr/u16-move-tests: New file.
39238         * tests/unistr/test-u16-move.c: New file.
39239
39240         Tests for module 'unistr/u8-move'.
39241         * modules/unistr/u8-move-tests: New file.
39242         * tests/unistr/test-u8-move.c: New file.
39243         * tests/unistr/test-move.h: New file.
39244
39245         Tests for module 'unistr/u32-cpy'.
39246         * modules/unistr/u32-cpy-tests: New file.
39247         * tests/unistr/test-u32-cpy.c: New file.
39248
39249         Tests for module 'unistr/u16-cpy'.
39250         * modules/unistr/u16-cpy-tests: New file.
39251         * tests/unistr/test-u16-cpy.c: New file.
39252
39253         Tests for module 'unistr/u8-cpy'.
39254         * modules/unistr/u8-cpy-tests: New file.
39255         * tests/unistr/test-u8-cpy.c: New file.
39256         * tests/unistr/test-cpy.h: New file.
39257
39258 2010-01-09  Bruno Haible  <bruno@clisp.org>
39259
39260         Tests for module 'unistr/u32-uctomb'.
39261         * modules/unistr/u32-uctomb-tests: New file.
39262         * tests/unistr/test-u32-uctomb.c: New file.
39263
39264         Tests for module 'unistr/u16-uctomb'.
39265         * modules/unistr/u16-uctomb-tests: New file.
39266         * tests/unistr/test-u16-uctomb.c: New file.
39267
39268         Tests for module 'unistr/u8-uctomb'.
39269         * modules/unistr/u8-uctomb-tests: New file.
39270         * tests/unistr/test-u8-uctomb.c: New file.
39271
39272         Tests for module 'unistr/u32-mbtoucr'.
39273         * modules/unistr/u32-mbtoucr-tests: New file.
39274         * tests/unistr/test-u32-mbtoucr.c: New file.
39275
39276         Tests for module 'unistr/u16-mbtoucr'.
39277         * modules/unistr/u16-mbtoucr-tests: New file.
39278         * tests/unistr/test-u16-mbtoucr.c: New file.
39279
39280         Tests for module 'unistr/u8-mbtoucr'.
39281         * modules/unistr/u8-mbtoucr-tests: New file.
39282         * tests/unistr/test-u8-mbtoucr.c: New file.
39283
39284         Tests for module 'unistr/u32-mbtouc'.
39285         * modules/unistr/u32-mbtouc-tests: New file.
39286         * tests/unistr/test-u32-mbtouc.c: New file.
39287
39288         Tests for module 'unistr/u16-mbtouc'.
39289         * modules/unistr/u16-mbtouc-tests: New file.
39290         * tests/unistr/test-u16-mbtouc.c: New file.
39291
39292         Tests for module 'unistr/u8-mbtouc'.
39293         * modules/unistr/u8-mbtouc-tests: New file.
39294         * tests/unistr/test-u8-mbtouc.c: New file.
39295
39296         Tests for module 'unistr/u32-mbtouc-unsafe'.
39297         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
39298         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
39299         * tests/unistr/test-u32-mbtouc.h: New file.
39300
39301         Tests for module 'unistr/u16-mbtouc-unsafe'.
39302         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
39303         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
39304         * tests/unistr/test-u16-mbtouc.h: New file.
39305
39306         Tests for module 'unistr/u8-mbtouc-unsafe'.
39307         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
39308         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
39309         * tests/unistr/test-u8-mbtouc.h: New file.
39310
39311         Tests for module 'unistr/u32-mblen'.
39312         * modules/unistr/u32-mblen-tests: New file.
39313         * tests/unistr/test-u32-mblen.c: New file.
39314
39315         Tests for module 'unistr/u16-mblen'.
39316         * modules/unistr/u16-mblen-tests: New file.
39317         * tests/unistr/test-u16-mblen.c: New file.
39318
39319         Tests for module 'unistr/u8-mblen'.
39320         * modules/unistr/u8-mblen-tests: New file.
39321         * tests/unistr/test-u8-mblen.c: New file.
39322
39323         Tests for module 'unistr/u32-to-u16'.
39324         * modules/unistr/u32-to-u16-tests: New file.
39325         * tests/unistr/test-u32-to-u16.c: New file.
39326
39327         Tests for module 'unistr/u32-to-u8'.
39328         * modules/unistr/u32-to-u8-tests: New file.
39329         * tests/unistr/test-u32-to-u8.c: New file.
39330
39331         Tests for module 'unistr/u16-to-u32'.
39332         * modules/unistr/u16-to-u32-tests: New file.
39333         * tests/unistr/test-u16-to-u32.c: New file.
39334
39335         Tests for module 'unistr/u16-to-u8'.
39336         * modules/unistr/u16-to-u8-tests: New file.
39337         * tests/unistr/test-u16-to-u8.c: New file.
39338
39339         Tests for module 'unistr/u8-to-u32'.
39340         * modules/unistr/u8-to-u32-tests: New file.
39341         * tests/unistr/test-u8-to-u32.c: New file.
39342
39343         Tests for module 'unistr/u8-to-u16'.
39344         * modules/unistr/u8-to-u16-tests: New file.
39345         * tests/unistr/test-u8-to-u16.c: New file.
39346
39347         Tests for module 'unistr/u32-check'.
39348         * modules/unistr/u32-check-tests: New file.
39349         * tests/unistr/test-u32-check.c: New file.
39350
39351         Tests for module 'unistr/u16-check'.
39352         * modules/unistr/u16-check-tests: New file.
39353         * tests/unistr/test-u16-check.c: New file.
39354
39355         Tests for module 'unistr/u8-check'.
39356         * modules/unistr/u8-check-tests: New file.
39357         * tests/unistr/test-u8-check.c: New file.
39358
39359         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39360         (category_equals): New function.
39361         (main): Add more tests.
39362         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39363
39364         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39365
39366 2010-01-10  Bruno Haible  <bruno@clisp.org>
39367
39368         unistr/u*-strcoll: Try harder to distinguish different strings.
39369         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39370         compare s1 and s2 to see if they are different.
39371
39372 2010-01-10  Bruno Haible  <bruno@clisp.org>
39373
39374         unistr/u*-stpncpy: Fix the return value.
39375         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39376         description of the return value consistent with stpncpy in glibc.
39377         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39378         written non-NUL unit.
39379
39380 2010-01-10  Bruno Haible  <bruno@clisp.org>
39381
39382         unistr/u*-next: Add missing dependencies.
39383         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39384         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39385         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39386
39387 2010-01-10  Bruno Haible  <bruno@clisp.org>
39388
39389         unistr/u8-mbsnlen: Fix return value for incomplete character.
39390         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
39391         u8_mblen.
39392         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
39393         Remove unistr/u8-mblen.
39394         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39395         u16_mblen.
39396         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39397         Remove unistr/u16-mblen.
39398
39399 2010-01-10  Bruno Haible  <bruno@clisp.org>
39400
39401         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39402         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39403         Reported by Brian Gough <bjg@gnu.org> and
39404         Chris Clayton <chris2553@googlemail.com> via
39405         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39406
39407 2010-01-09  Bruno Haible  <bruno@clisp.org>
39408
39409         unistr/u16-to-u32: Reject invalid input.
39410         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39411         u16_mbtouc.
39412         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39413         Remove unistr/u16-mbtouc.
39414
39415         unistr/u16-to-u8: Reject invalid input.
39416         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39417         u16_mbtouc.
39418         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39419         Remove unistr/u16-mbtouc.
39420
39421         unistr/u8-to-u32: Reject invalid input.
39422         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39423         u8_mbtouc.
39424         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39425         Remove unistr/u8-mbtouc.
39426
39427         unistr/u8-to-u16: Reject invalid input.
39428         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39429         u8_mbtouc.
39430         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39431         Remove unistr/u8-mbtouc.
39432
39433 2010-01-09  Bruno Haible  <bruno@clisp.org>
39434
39435         Tests for module 'getlogin'.
39436         * modules/getlogin-tests: New file.
39437         * tests/test-getlogin.c: New file.
39438
39439         New module 'getlogin'.
39440         * lib/unistd.in.h (getlogin): New declaration.
39441         * lib/getlogin.c: New file.
39442         * m4/getlogin.m4: New file.
39443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39444         HAVE_GETLOGIN.
39445         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39446         HAVE_GETLOGIN.
39447         * modules/getlogin: New file.
39448         * doc/posix-functions/getlogin.texi: Mention the new module.
39449         Reported by John W. Eaton <jwe@gnu.org>.
39450
39451 2010-01-09  Bruno Haible  <bruno@clisp.org>
39452
39453         getlogin_r: Support for native Windows.
39454         * lib/getlogin_r.c: Include <windows.h>
39455         (getlogin_r): Implement for native Windows.
39456         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39457         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39458         via John W. Eaton <jwe@gnu.org>.
39459
39460 2010-01-09  Bruno Haible  <bruno@clisp.org>
39461
39462         getlogin_r: Small fixes.
39463         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39464         succeeds.
39465         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39466         before testing whether getlogin_r is declared. No need to set
39467         HAVE_DECL_GETLOGIN_R to 1.
39468         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39469
39470 2010-01-09  Bruno Haible  <bruno@clisp.org>
39471
39472         * lib/unistd.in.h (getlogin_r): Add comment.
39473
39474 2010-01-09  Bruno Haible  <bruno@clisp.org>
39475
39476         Tests for module 'getlogin_r'.
39477         * modules/getlogin_r-tests: New file.
39478         * tests/test-getlogin_r.c: New file.
39479
39480 2010-01-09  Jim Meyering  <meyering@redhat.com>
39481
39482         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
39483         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
39484         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
39485
39486 2010-01-08  Simon Josefsson  <simon@josefsson.org>
39487
39488         * lib/dup2.c (rpl_dup2): Improve comment.
39489
39490 2010-01-08  Eric Blake  <ebb9@byu.net>
39491
39492         maint.mk: allow packages to add makefile @@ exceptions
39493         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
39494         (sc_makefile_check): Rename...
39495         (sc_makefile_at_at_check): ...to this, and use hook.
39496
39497         dup2: work around mingw bug
39498         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
39499         Reported by Simon Josefsson.
39500
39501 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
39502
39503         glob: Fix C++ compilation.
39504         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
39505         C++.
39506
39507 2010-01-07  Bruno Haible  <bruno@clisp.org>
39508
39509         Fix indentation of wctype.in.h, broken since 2007-01-06.
39510         * lib/wctype.in.h: Fix indentation of preprocessor directives.
39511
39512 2010-01-07  Bruno Haible  <bruno@clisp.org>
39513
39514         mbslen: Avoid collision with system function.
39515         * lib/string.in.h [MirBSD]: Include <wchar.h>.
39516         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
39517         * m4/mbslen.m4: New file.
39518         * modules/mbslen (Files): Add it.
39519         (configure.ac): Invoke gl_MBSLEN.
39520         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
39521         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
39522         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
39523         via Ian Beckwith <ianb@erislabs.net>.
39524
39525 2010-01-07  Bruno Haible  <bruno@clisp.org>
39526
39527         dirent: Document the last fix.
39528         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
39529
39530 2010-01-07  Bruno Haible  <bruno@clisp.org>
39531
39532         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
39533         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
39534         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
39535         va_list are defined.
39536         * doc/posix-headers/stdio.texi: Document the bug of missing types.
39537         Reported by Eric Blake.
39538
39539 2010-01-07  Bruno Haible  <bruno@clisp.org>
39540
39541         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
39542         * modules/xlist (Depends-on): Add 'list',
39543         * modules/xoset (Depends-on): Add 'oset'.
39544         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39545
39546 2010-01-07  Bruno Haible  <bruno@clisp.org>
39547
39548         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
39549         * doc/posix-functions/strncasecmp.texi: Likewise.
39550
39551 2010-01-07  Bruno Haible  <bruno@clisp.org>
39552
39553         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
39554
39555 2010-01-07  John W. Eaton  <jwe@octave.org>
39556
39557         wctype: allow C++ use
39558         * lib/wctype.in.h: Add extern "C" block for C++.
39559
39560 2010-01-06  Eric Blake  <ebb9@byu.net>
39561
39562         maint.mk: detect incorrect GFDL usage
39563         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
39564
39565 2010-01-06  Jim Meyering  <meyering@redhat.com>
39566         and Eric Blake  <ebb9@byu.net>
39567
39568         maint.mk: ignore multi-line copyright in NEWS
39569         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
39570
39571 2010-01-06  Eric Blake  <ebb9@byu.net>
39572
39573         select: add missing dependency
39574         * modules/select-tests (Depends-on): Move sockets dependency...
39575         * modules/select (Depends-on): ...here.
39576         Reported by Ian Beckwith.
39577
39578         doc: regenerate INSTALL
39579         * doc/INSTALL: Reflect recent autoconf update.
39580         * doc/INSTALL.ISO: Likewise.
39581         * doc/INSTALL.UTF-8: Likewise.
39582
39583         pread: fix compilation on glibc
39584         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
39585         Reported by Ralf Wildenhues.
39586
39587         dirent: fix test failure
39588         * lib/dirent.in.h (includes): Guarantee ino_t.
39589         Reported by Ralf Wildenhues.
39590
39591 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
39592
39593         linkat, renameat: avoid bad free
39594         * lib/at-func2.c (at_func2): Fix typo.
39595         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
39596
39597 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39598
39599         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
39600         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
39601         to avoid failure of symlink test later.
39602
39603 2010-01-06  Eric Blake  <ebb9@byu.net>
39604
39605         stdio, unistd: guarantee ssize_t
39606         * lib/unistd.in.h (includes): Ensure that types required by POSIX
39607         2008 are exposed when needed.
39608         * lib/stdio.in.h (includes): Likewise.
39609         Reported by Ralf Wildenhues.
39610
39611 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
39612
39613         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
39614         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
39615         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
39616
39617 2010-01-06  Jim Meyering  <meyering@redhat.com>
39618
39619         readtokens: this module *does* require xalloc.h
39620         It uses only functions that were omitted by the old syntax-check rule.
39621         * lib/readtokens.c: Include "xalloc.h" once again.
39622         * modules/readtokens (Depends-on): Add xalloc.
39623         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
39624
39625 2010-01-05  Eric Blake  <ebb9@byu.net>
39626
39627         maint: support 'make announcement' from a VPATH build
39628         * top/maint.mk (announcement): Look for correct NEWS file.
39629
39630 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
39631
39632         utimens (fdutimens): ignore a negative FD, per contract
39633         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
39634         when we have a valid file descriptor.  Otherwise, using a brand
39635         new glibc (with just-patched futimens that now fails with EBADF)
39636         would cause this function to fail with ENOSYS.
39637         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
39638         See also http://bugzilla.redhat.com/552320.
39639
39640 2010-01-05  Eric Blake  <ebb9@byu.net>
39641
39642         strcase: document what it provides
39643         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
39644         gnulib module.
39645         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
39646         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
39647
39648 2010-01-05  Jim Meyering  <meyering@redhat.com>
39649
39650         maint: remove useless inclusions of "xalloc.h"
39651         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
39652         * lib/readtokens.c: Likewise.
39653         * lib/same.c: Likewise.
39654         * modules/getloadavg (Depends-on): Remove xalloc.
39655         * modules/readtokens: Likewise.
39656         * modules/same: Likewise.
39657
39658         maint.mk: include 4 more function names in alloca.h-checking regexp
39659         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
39660         regexp.  Before, we would give a false-positive (saying alloca.h
39661         is included unnecessarily) when the only uses involved omitted symbols.
39662
39663         xalloc.h: use consistent formatting
39664         * lib/xalloc.h: Move declarations to start in the first column.
39665
39666 2010-01-05  Eric Blake  <ebb9@byu.net>
39667
39668         mkdir: avoid xalloc
39669         * lib/mkdir.c (includes): Drop unused header.
39670         Reported by John W. Eaton.
39671
39672 2010-01-04  Jim Meyering  <meyering@redhat.com>
39673
39674         nl_langinfo: avoid configure-time syntax error
39675         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
39676         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
39677         the empty string.  Don't let that provoke a shell syntax error.
39678
39679         regcomp, regexec, fnmatch: avoid array bounds read error
39680         * lib/regcomp.c (build_equiv_class): From glibc:
39681         Use only the low 24 bits of a findidx return value as an index
39682         into the weights array.  Patch by Ulrich Drepper:
39683         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
39684         * lib/regexec.c (check_node_accept_bytes): Likewise.
39685         * lib/fnmatch_loop.c (FCT): Likewise.
39686
39687         regcomp: skip collseq lookup when there are no rules
39688         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
39689         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
39690
39691         regcomp: recognize ill-formed { } expressions
39692         * lib/regcomp.c (parse_dup_op): From glibc:
39693         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
39694
39695         regcomp: fix typo in comment
39696         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
39697         s/satisfy/satisfies/.
39698
39699         regcomp: sync from glibc: remove dead store
39700         * lib/regcomp.c (duplicate_node_closure): Remove useless
39701         search_duplicated_node call and dead store.
39702
39703         regcomp: sync from glibc; always use nl_langinfo
39704         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
39705         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
39706         * modules/regex (Depends-on): Add nl_langinfo.
39707
39708 2010-01-04  Eric Blake  <ebb9@byu.net>
39709
39710         fdopendir: fix configure test
39711         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
39712
39713 2010-01-01  Bruno Haible  <bruno@clisp.org>
39714
39715         wchar: Remove unused configure check.
39716         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
39717
39718 2010-01-01  Eric Blake  <ebb9@byu.net>
39719
39720         headers: make check of system header explicit
39721         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
39722         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
39723         ourselves.
39724         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39725         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39726         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39727         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
39728         internals.
39729         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
39730         missing.
39731         Suggested by Bruno Haible.
39732
39733 2010-01-01  Jim Meyering  <meyering@redhat.com>
39734
39735         ChangeLog: tweak to eliminate unnecessary copyright line
39736         * ChangeLog: Remove a copyright line that was mistakenly updated
39737         by today's update-copyright run.  Reported by Eric Blake.
39738
39739         test-update-copyright: don't let envvar setting cause test failure
39740         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39741
39742 2010-01-01  Bruno Haible  <bruno@clisp.org>
39743
39744         localename: Avoid gcc warning.
39745         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
39746         function if it is not used.
39747
39748 2010-01-01  Jim Meyering  <meyering@redhat.com>
39749
39750         update nearly all FSF copyright year lists to include 2010
39751         Use the same procedure as for 2009, outlined in
39752         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
39753
39754         version-etc: set COPYRIGHT_YEAR to 2010
39755         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
39756
39757 2009-12-31  Eric Blake  <ebb9@byu.net>
39758
39759         doc: correct availability of cygwin 1.5.x getopt
39760         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
39761         variables.
39762         * doc/posix-functions/opterr.texi (opterr): Likewise.
39763         * doc/posix-functions/optind.texi (optind): Likewise.
39764         * doc/posix-functions/optopt.texi (optopt): Likewise.
39765         * doc/posix-functions/tzname.texi (tzname): Likewise.
39766
39767         openat: update maintainer
39768         * modules/openat (Maintainer): Add myself.
39769
39770         utimens: avoid shadowing warning
39771         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
39772         buffers into one, to avoid shadowing, as well as avoiding a
39773         redundant stat.
39774         Reported by Jim Meyering.
39775
39776         test-dup2: avoid compiler warning
39777         * tests/test-dup2.c (is_inheritable): Only define if used.
39778
39779 2010-01-01  Bruno Haible  <bruno@clisp.org>
39780
39781         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
39782         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
39783         defined, use wctomb instead of wcrtomb.
39784
39785 2010-01-01  Bruno Haible  <bruno@clisp.org>
39786
39787         iconv: Reject native Solaris iconv.
39788         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
39789         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
39790
39791 2009-12-31  Bruno Haible  <bruno@clisp.org>
39792
39793         * tests/test-signal.c (main): Remove test of 'SIG'.
39794
39795 2009-12-31  Bruno Haible  <bruno@clisp.org>
39796
39797         spawn: Fix incomplete fix.
39798         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39799         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39800         warnings for GNULIB_POSIXCHECK again.
39801         Reported by Eric Blake.
39802
39803 2009-12-31  Bruno Haible  <bruno@clisp.org>
39804
39805         Avoid namespace pollution on glibc systems.
39806         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
39807         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
39808         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
39809         glibc systems.
39810
39811 2009-12-31  Bruno Haible  <bruno@clisp.org>
39812
39813         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
39814         (gl_REPLACE_WCHAR_H): Turn into a no-op.
39815         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
39816         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
39817         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
39818         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
39819         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
39820
39821 2009-12-31  Bruno Haible  <bruno@clisp.org>
39822
39823         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
39824         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
39825         afterwards.
39826
39827 2009-12-31  Bruno Haible  <bruno@clisp.org>
39828
39829         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
39830         SYS_UTSNAME_H.
39831
39832 2009-12-31  Bruno Haible  <bruno@clisp.org>
39833
39834         spawn: Fix misapplied patch.
39835         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39836         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39837         warnings for GNULIB_POSIXCHECK.
39838
39839 2009-12-31  Bruno Haible  <bruno@clisp.org>
39840
39841         times: Update after sys_times changed.
39842         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
39843         * modules/times (Files): Add it.
39844         (configure.ac): Invoke gl_FUNC_TIMES.
39845
39846 2009-12-31  Bruno Haible  <bruno@clisp.org>
39847
39848         Use AC_C_INLINE where necessary.
39849         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
39850         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39851         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
39852         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39853         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39854         * m4/mbiter.m4 (gl_MBITER): Likewise.
39855         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39856         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39857         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
39858         * modules/u64 (configure.ac): Likewise.
39859
39860 2009-12-31  Bruno Haible  <bruno@clisp.org>
39861
39862         Use AC_C_INLINE instead of module 'inline' where possible.
39863         * modules/inline (Description): Clarify purpose.
39864         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
39865         * modules/count-one-bits (Depends-on): Remove inline.
39866         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
39867         * modules/openat (Depends-on): Remove inline.
39868         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
39869         instead of depending on module 'inline'.
39870         * modules/filevercmp (Depends-on, configure.ac): Likewise.
39871         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
39872         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
39873         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
39874         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
39875         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
39876         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
39877         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
39878         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
39879         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
39880         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
39881         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
39882         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
39883         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
39884         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
39885         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
39886         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
39887         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
39888         Likewise.
39889         * modules/unictype/property-ascii-hex-digit (Depends-on,
39890         configure.ac): Likewise.
39891         * modules/unictype/property-bidi-arabic-digit (Depends-on,
39892         configure.ac): Likewise.
39893         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
39894         configure.ac): Likewise.
39895         * modules/unictype/property-bidi-block-separator (Depends-on,
39896         configure.ac): Likewise.
39897         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
39898         configure.ac): Likewise.
39899         * modules/unictype/property-bidi-common-separator (Depends-on,
39900         configure.ac): Likewise.
39901         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
39902         Likewise.
39903         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
39904         configure.ac): Likewise.
39905         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
39906         configure.ac): Likewise.
39907         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
39908         configure.ac): Likewise.
39909         * modules/unictype/property-bidi-european-digit (Depends-on,
39910         configure.ac): Likewise.
39911         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
39912         configure.ac): Likewise.
39913         * modules/unictype/property-bidi-left-to-right (Depends-on,
39914         configure.ac): Likewise.
39915         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
39916         configure.ac): Likewise.
39917         * modules/unictype/property-bidi-other-neutral (Depends-on,
39918         configure.ac): Likewise.
39919         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
39920         Likewise.
39921         * modules/unictype/property-bidi-segment-separator (Depends-on,
39922         configure.ac): Likewise.
39923         * modules/unictype/property-bidi-whitespace (Depends-on,
39924         configure.ac): Likewise.
39925         * modules/unictype/property-combining (Depends-on, configure.ac):
39926         Likewise.
39927         * modules/unictype/property-composite (Depends-on, configure.ac):
39928         Likewise.
39929         * modules/unictype/property-currency-symbol (Depends-on,
39930         configure.ac): Likewise.
39931         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
39932         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
39933         Likewise.
39934         * modules/unictype/property-default-ignorable-code-point (Depends-on,
39935         configure.ac): Likewise.
39936         * modules/unictype/property-deprecated (Depends-on, configure.ac):
39937         Likewise.
39938         * modules/unictype/property-diacritic (Depends-on, configure.ac):
39939         Likewise.
39940         * modules/unictype/property-extender (Depends-on, configure.ac):
39941         Likewise.
39942         * modules/unictype/property-format-control (Depends-on, configure.ac):
39943         Likewise.
39944         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
39945         Likewise.
39946         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
39947         Likewise.
39948         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
39949         Likewise.
39950         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
39951         Likewise.
39952         * modules/unictype/property-hyphen (Depends-on, configure.ac):
39953         Likewise.
39954         * modules/unictype/property-id-continue (Depends-on, configure.ac):
39955         Likewise.
39956         * modules/unictype/property-id-start (Depends-on, configure.ac):
39957         Likewise.
39958         * modules/unictype/property-ideographic (Depends-on, configure.ac):
39959         Likewise.
39960         * modules/unictype/property-ids-binary-operator (Depends-on,
39961         configure.ac): Likewise.
39962         * modules/unictype/property-ids-trinary-operator (Depends-on,
39963         configure.ac): Likewise.
39964         * modules/unictype/property-ignorable-control (Depends-on,
39965         configure.ac): Likewise.
39966         * modules/unictype/property-iso-control (Depends-on, configure.ac):
39967         Likewise.
39968         * modules/unictype/property-join-control (Depends-on, configure.ac):
39969         Likewise.
39970         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
39971         Likewise.
39972         * modules/unictype/property-line-separator (Depends-on, configure.ac):
39973         Likewise.
39974         * modules/unictype/property-logical-order-exception (Depends-on,
39975         configure.ac): Likewise.
39976         * modules/unictype/property-lowercase (Depends-on, configure.ac):
39977         Likewise.
39978         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
39979         * modules/unictype/property-non-break (Depends-on, configure.ac):
39980         Likewise.
39981         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
39982         Likewise.
39983         * modules/unictype/property-numeric (Depends-on, configure.ac):
39984         Likewise.
39985         * modules/unictype/property-other-alphabetic (Depends-on,
39986         configure.ac): Likewise.
39987         * modules/unictype/property-other-default-ignorable-code-point
39988         (Depends-on, configure.ac): Likewise.
39989         * modules/unictype/property-other-grapheme-extend (Depends-on,
39990         configure.ac): Likewise.
39991         * modules/unictype/property-other-id-continue (Depends-on,
39992         configure.ac): Likewise.
39993         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
39994         Likewise.
39995         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
39996         Likewise.
39997         * modules/unictype/property-other-math (Depends-on, configure.ac):
39998         Likewise.
39999         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
40000         Likewise.
40001         * modules/unictype/property-paired-punctuation (Depends-on,
40002         configure.ac): Likewise.
40003         * modules/unictype/property-paragraph-separator (Depends-on,
40004         configure.ac): Likewise.
40005         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
40006         Likewise.
40007         * modules/unictype/property-pattern-white-space (Depends-on,
40008         configure.ac): Likewise.
40009         * modules/unictype/property-private-use (Depends-on, configure.ac):
40010         Likewise.
40011         * modules/unictype/property-punctuation (Depends-on, configure.ac):
40012         Likewise.
40013         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
40014         Likewise.
40015         * modules/unictype/property-radical (Depends-on, configure.ac):
40016         Likewise.
40017         * modules/unictype/property-sentence-terminal (Depends-on,
40018         configure.ac): Likewise.
40019         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
40020         Likewise.
40021         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
40022         * modules/unictype/property-terminal-punctuation (Depends-on,
40023         configure.ac): Likewise.
40024         * modules/unictype/property-titlecase (Depends-on, configure.ac):
40025         Likewise.
40026         * modules/unictype/property-unassigned-code-value (Depends-on,
40027         configure.ac): Likewise.
40028         * modules/unictype/property-unified-ideograph (Depends-on,
40029         configure.ac): Likewise.
40030         * modules/unictype/property-uppercase (Depends-on, configure.ac):
40031         Likewise.
40032         * modules/unictype/property-variation-selector (Depends-on,
40033         configure.ac): Likewise.
40034         * modules/unictype/property-white-space (Depends-on, configure.ac):
40035         Likewise.
40036         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
40037         Likewise.
40038         * modules/unictype/property-xid-start (Depends-on, configure.ac):
40039         Likewise.
40040         * modules/unictype/property-zero-width (Depends-on, configure.ac):
40041         Likewise.
40042         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
40043         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
40044         Likewise.
40045
40046 2009-12-31  Bruno Haible  <bruno@clisp.org>
40047
40048         Remove unnecessary AC_C_INLINE invocation.
40049         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
40050         since 2009-08-21.
40051
40052 2009-12-31  Jim Meyering  <meyering@redhat.com>
40053
40054         maint.mk: don't require explicit gpg_key_ID in cfg.mk
40055         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
40056         With this change, we can all remove the gpg_key_ID = ... definition
40057         from our respective cfg.mk files.
40058
40059         maint.mk: create announcement template in ~/, not in /tmp
40060         * top/maint.mk (emit_upload_commands): Adjust.
40061         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
40062         Remove temporary file, .ci-msg.
40063
40064 2009-12-31  Eric Blake  <ebb9@byu.net>
40065
40066         link-warning: always build headers with link warnings
40067         * modules/arpa_inet (Makefile.am): Always build replacement
40068         header.
40069         * modules/ctype (Makefile.am): Likewise.
40070         * modules/dirent (Makefile.am): Likewise.
40071         * modules/inttypes (Makefile.am): Likewise.
40072         * modules/langinfo (Makefile.am): Likewise.
40073         * modules/locale (Makefile.am): Likewise.
40074         * modules/spawn (Makefile.am): Likewise.
40075         * modules/sys_file (Makefile.am): Likewise.
40076         * modules/sys_ioctl (Makefile.am): Likewise.
40077         * modules/sys_select (Makefile.am): Likewise.
40078         * modules/sys_socket (Makefile.am): Likewise.
40079         * modules/sys_times (Makefile.am): Likewise.
40080         * modules/sys_utsname (Makefile.am): Likewise.
40081         * modules/sys_wait (Makefile.am): Likewise.
40082         * modules/wchar (Makefile.am): Likewise.
40083         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
40084         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
40085         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
40086         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
40087         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
40088         Likewise.
40089         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40090         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
40091         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
40092         Likewise.
40093         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
40094         Likewise.
40095         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40096         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
40097         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
40098         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40099         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40100         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40101         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40102         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
40103         (gl_WCHAR_H_DEFAULTS): Likewise.
40104
40105 2009-12-31  Eric Blake  <ebb9@byu.net>
40106
40107         signal, spawn: use link warnings
40108         * lib/signal.in.h (sigset_t): Make unconditional.
40109         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
40110         (sigpending, sigprocmask, sigaction): Add link warnings.
40111         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
40112         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
40113         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
40114         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
40115         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
40116         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
40117         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
40118         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
40119         (posix_spawn_file_actions_destroy)
40120         (posix_spawn_file_actions_addopen)
40121         (posix_spawn_file_actions_addclose)
40122         (posix_spawn_file_actions_adddup2): Likewise.
40123         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
40124         * tests/test-signal.c (main): Enhance test.
40125
40126         spawn: improve wrapper support
40127         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
40128         (gl_SPAWN_H_DEFAULTS): New defaults.
40129         * modules/spawn (Makefile.am): Substitute them.
40130         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
40131         Only declare if missing or broken.
40132
40133         sys_times, sys_utsname: use include_next
40134         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
40135         header.
40136         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
40137         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40138         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40139         * modules/sys_times (Depends-on): Add include_next.
40140         (Makefile.am): Substitute additional values.
40141         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
40142         * lib/sys_times.in.h (includes): Include native header, if
40143         available.
40144         * lib/sys_utsname.in.h (includes): Likewise.
40145         * tests/test-sys_times.c (main): Enhance test.
40146
40147         fdutimensat: revert prior patch
40148         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
40149         utimens.h.
40150         Reported by Bruno Haible.
40151
40152 2009-12-30  Eric Blake  <ebb9@byu.net>
40153
40154         sys_wait: drop link-warning dependency
40155         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
40156         link-warning efforts.
40157         * lib/sys_wait.in.h: Likewise.
40158
40159         fdutimensat: remove bogus dependency
40160         * modules/fdutimensat (Depends-on): Drop inline.
40161
40162         unistd: fix typo
40163         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
40164
40165 2009-12-30  Bruno Haible  <bruno@clisp.org>
40166
40167         Fix compilation error with Solaris cc.
40168         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
40169         * lib/unicase/u16-is-invariant.c: Likewise.
40170         * lib/unicase/u32-is-invariant.c: Likewise.
40171         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40172
40173 2009-12-30  Bruno Haible  <bruno@clisp.org>
40174
40175         Fix test crash.
40176         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
40177         locales.
40178         Reported by Simon Josefsson <simon@josefsson.org>.
40179
40180 2009-12-30  Bruno Haible  <bruno@clisp.org>
40181
40182         Fix compilation error on most platforms.
40183         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
40184         Reported by Simon Josefsson <simon@josefsson.org>
40185         and Nelson H. F. Beebe <beebe@math.utah.edu>.
40186
40187 2009-12-30  Eric Blake  <ebb9@byu.net>
40188
40189         futimens, utimensat: work around ntfs-3g bug
40190         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
40191         a ctime bug is present, and expand workaround to cover ntfs-3g.
40192         * lib/utimens.c (fdutimens, lutimens): Likewise.
40193         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
40194         (validate_timespec): Adjust return value.
40195         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
40196         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40197         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
40198
40199 2009-12-29  Eric Blake  <ebb9@byu.net>
40200
40201         link-warning: make usage consistent
40202         * modules/ctype (Depends-on): Add link-warning.
40203         (Makefile.am): Update rules accordingly.
40204         * modules/langinfo (Depends-on, Makefile.am): Likewise.
40205         * modules/locale (Depends-on, Makefile.am): Likewise.
40206         * modules/sys_file (Makefile.am): Likewise.
40207         * modules/getopt-posix (Makefile.am): Delete unused link warning
40208         efforts.
40209         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
40210         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
40211         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
40212         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
40213
40214         stdio: remove unused variables
40215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
40216         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
40217         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40218
40219         tests: test more substitute headers
40220         * modules/ctype-tests: New file.
40221         * modules/dirent-tests: Likewise.
40222         * modules/spawn-tests: Likewise.
40223         * modules/sys_file-tests: Likewise.
40224         * modules/sys_ioctl-tests: Likewise.
40225         * modules/sys_wait-tests: Likewise.
40226         * tests/test-ctype.c: Likewise.
40227         * tests/test-dirent.c: Likewise.
40228         * tests/test-spawn.c: Likewise.
40229         * tests/test-sys_file.c: Likewise.
40230         * tests/test-sys_ioctl.c: Likewise.
40231         * tests/test-sys_wait.c: Likewise.
40232         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
40233         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
40234         whether or not flock is in use.
40235
40236         tests: remove License section from module
40237         * modules/arpa_inet-tests: Remove unneeded section.
40238         * modules/byteswap-tests: Likewise.
40239         * modules/ceilf-tests: Likewise.
40240         * modules/ceill-tests: Likewise.
40241         * modules/crypto/des-tests: Likewise.
40242         * modules/crypto/gc-arcfour-tests: Likewise.
40243         * modules/crypto/gc-arctwo-tests: Likewise.
40244         * modules/crypto/gc-des-tests: Likewise.
40245         * modules/crypto/gc-hmac-md5-tests: Likewise.
40246         * modules/crypto/gc-hmac-sha1-tests: Likewise.
40247         * modules/crypto/gc-md2-tests: Likewise.
40248         * modules/crypto/gc-md4-tests: Likewise.
40249         * modules/crypto/gc-md5-tests: Likewise.
40250         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
40251         * modules/crypto/gc-rijndael-tests: Likewise.
40252         * modules/crypto/gc-sha1-tests: Likewise.
40253         * modules/crypto/gc-tests: Likewise.
40254         * modules/crypto/md2-tests: Likewise.
40255         * modules/crypto/md4-tests: Likewise.
40256         * modules/fcntl-h-tests: Likewise.
40257         * modules/floorf-tests: Likewise.
40258         * modules/floorl-tests: Likewise.
40259         * modules/frexp-nolibm-tests: Likewise.
40260         * modules/frexp-tests: Likewise.
40261         * modules/frexpl-nolibm-tests: Likewise.
40262         * modules/frexpl-tests: Likewise.
40263         * modules/getaddrinfo-tests: Likewise.
40264         * modules/inttypes-tests: Likewise.
40265         * modules/isfinite-tests: Likewise.
40266         * modules/isinf-tests: Likewise.
40267         * modules/ldexpl-tests: Likewise.
40268         * modules/locale-tests: Likewise.
40269         * modules/math-tests: Likewise.
40270         * modules/netdb-tests: Likewise.
40271         * modules/netinet_in-tests: Likewise.
40272         * modules/printf-frexp-tests: Likewise.
40273         * modules/printf-frexpl-tests: Likewise.
40274         * modules/priv-set-tests: Likewise.
40275         * modules/random_r-tests: Likewise.
40276         * modules/round-tests: Likewise.
40277         * modules/roundf-tests: Likewise.
40278         * modules/roundl-tests: Likewise.
40279         * modules/search-tests: Likewise.
40280         * modules/select-tests: Likewise.
40281         * modules/signal-tests: Likewise.
40282         * modules/stdbool-tests: Likewise.
40283         * modules/stddef-tests: Likewise.
40284         * modules/stdint-tests: Likewise.
40285         * modules/stdio-tests: Likewise.
40286         * modules/stdlib-tests: Likewise.
40287         * modules/string-tests: Likewise.
40288         * modules/strings-tests: Likewise.
40289         * modules/sys_select-tests: Likewise.
40290         * modules/sys_socket-tests: Likewise.
40291         * modules/sys_stat-tests: Likewise.
40292         * modules/sys_time-tests: Likewise.
40293         * modules/sys_utsname-tests: Likewise.
40294         * modules/sysexits-tests: Likewise.
40295         * modules/time-tests: Likewise.
40296         * modules/trunc-tests: Likewise.
40297         * modules/truncf-tests: Likewise.
40298         * modules/truncl-tests: Likewise.
40299         * modules/tsearch-tests: Likewise.
40300         * modules/unistd-tests: Likewise.
40301         * modules/wchar-tests: Likewise.
40302         * modules/wctype-tests: Likewise.
40303
40304         tests: fix license on several tests
40305         * tests/test-des.c: Update to GPLv3+.
40306         * tests/test-flock.c: Likewise.
40307         * tests/test-fsync.c: Likewise.
40308         * tests/test-futimens.h: Likewise.
40309         * tests/test-gc-arcfour.c: Likewise.
40310         * tests/test-gc-arctwo.c: Likewise.
40311         * tests/test-gc-des.c: Likewise.
40312         * tests/test-gc-hmac-md5.c: Likewise.
40313         * tests/test-gc-hmac-sha1.c: Likewise.
40314         * tests/test-gc-md2.c: Likewise.
40315         * tests/test-gc-md4.c: Likewise.
40316         * tests/test-gc-md5.c: Likewise.
40317         * tests/test-gc-pbkdf2-sha1.c: Likewise.
40318         * tests/test-gc-rijndael.c: Likewise.
40319         * tests/test-gc-sha1.c: Likewise.
40320         * tests/test-gc.c: Likewise.
40321         * tests/test-getcwd.c: Likewise.
40322         * tests/test-link.c: Likewise.
40323         * tests/test-link.h: Likewise.
40324         * tests/test-lutimens.h: Likewise.
40325         * tests/test-md2.c: Likewise.
40326         * tests/test-md4.c: Likewise.
40327         * tests/test-mkdir.h: Likewise.
40328         * tests/test-rename.c: Likewise.
40329         * tests/test-rename.h: Likewise.
40330         * tests/test-safe-alloc.c: Likewise.
40331         * tests/test-utimens-common.h: Likewise.
40332         * tests/test-utimens.h: Likewise.
40333
40334         maint: sync license texts
40335         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40336         * doc/gpl-3.0.texi: Revert copyright year update.
40337         * doc/lgpl-3.0.texi: Likewise.
40338
40339 2009-12-29  Jim Meyering  <meyering@redhat.com>
40340
40341         update nearly all FSF copyright year lists to include 2009
40342         The files named by the following are exempted:
40343             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40344               test -f "$dst" && { echo "$dst"; continue; }
40345               test -d "$dst" || continue
40346               echo "$dst"/$(basename "$src")
40347             done > exempt
40348             git ls-files tests/unictype >> exempt
40349         In the remaining files, convert to all-interval notation if
40350         - there is already at least one year interval like 2000-2003
40351         - the file is maintained by me
40352         - the file is in lib/uni*/, where that style already prevails
40353         Otherwise, use update-copyright's default.
40354
40355 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40356         and Eric Blake  <ebb9@byu.net>
40357
40358         tests: don't require debug system() to pass
40359         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40360         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40361         * tests/test-unlink.h (test_unlink_func): Likewise.
40362         * tests/test-fstatat.c (main): ...into callers.
40363         * tests/test-lstat.c (main): Likewise.
40364         * tests/test-rmdir.c (main): Likewise.
40365         * tests/test-unlink.c (main): Likewise.
40366         * tests/test-unlinkat.c (main): Likewise.
40367         * tests/test-areadlink-with-size.c (main): Don't require a
40368         debug-only system call to pass, aiding cross-testing to mingw.
40369         * tests/test-areadlink.c (main): Likewise.
40370         * tests/test-areadlinkat-with-size.c (main): Likewise.
40371         * tests/test-areadlinkat.c (main): Likewise.
40372         * tests/test-canonicalize-lgpl.c (main): Likewise.
40373         * tests/test-canonicalize.c (main): Likewise.
40374         * tests/test-chown.c (main): Likewise.
40375         * tests/test-fchownat.c (main): Likewise.
40376         * tests/test-lchown.c (main): Likewise.
40377         * tests/test-fdutimensat.c (main): Likewise.
40378         * tests/test-futimens.c (main): Likewise.
40379         * tests/test-link.c (main): Likewise.
40380         * tests/test-linkat.c (main): Likewise.
40381         * tests/test-mkdir.c (main): Likewise.
40382         * tests/test-mkdirat.c (main): Likewise.
40383         * tests/test-mkfifo.c (main): Likewise.
40384         * tests/test-mkfifoat.c (main): Likewise.
40385         * tests/test-mknod.c (main): Likewise.
40386         * tests/test-readlink.c (main): Likewise.
40387         * tests/test-remove.c (main): Likewise.
40388         * tests/test-rename.c (main): Likewise.
40389         * tests/test-renameat.c (main): Likewise.
40390         * tests/test-symlink.c (main): Likewise.
40391         * tests/test-symlinkat.c (main): Likewise.
40392         * tests/test-utimens.c (main): Likewise.
40393         * tests/test-utimensat.c (main): Likewise.
40394
40395 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40396
40397         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40398         on $(UNUSED_PARAMETER_H) to avoid build failure.
40399
40400 2009-12-28  Jim Meyering  <meyering@redhat.com>
40401
40402         update-copyright: you may specify a max. line length other than 72
40403         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40404
40405         maint: use consistent FSF copyright line syntax
40406         * lib/posixtm.c: Add missing comma in FSF copyright line.
40407         * lib/posixtm.h: Likewise.
40408         * lib/getugroups.c: Add missing ", Inc.".
40409
40410         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40411         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40412         FSF copyright line.  Remove trailing blanks.
40413
40414 2009-12-28  Eric Blake  <ebb9@byu.net>
40415
40416         test-dup2: reduce dependencies
40417         * modules/cloexec (Configure.ac): Set witness.
40418         * modules/dup2-tests (Depends-on): Drop cloexec.
40419         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40420         not present.
40421         Suggested by Bruno Haible.
40422
40423 2009-12-26  Bruno Haible  <bruno@clisp.org>
40424
40425         Remove an unneeded dependency.
40426         * modules/fseterr (Depends-on): Remove dup2.
40427
40428 2009-12-26  Eric Blake  <ebb9@byu.net>
40429
40430         tests: use macros.h in more places
40431         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40432         (ASSERT_STREAM): Provide default of stderr.
40433         * tests/test-dirent-safer.c: Include macros.h, using alternate
40434         stream for assertions.
40435         * tests/test-dup-safer.c: Likewise.
40436         * tests/test-freopen-safer.c: Likewise.
40437         * tests/test-getopt.c: Likewise.
40438         * tests/test-openat-safer.c: Likewise.
40439         * tests/test-pipe.c: Likewise.
40440         * tests/test-popen-safer.c: Likewise.
40441         * modules/dirent-safer-tests (Files): Include macros.h.
40442         * modules/unistd-safer-tests (Files): Likewise.
40443         * modules/freopen-safer-tests (Files): Likewise.
40444         * modules/getopt-posix-tests (Files): Likewise.
40445         * modules/openat-safer-tests (Files): Likewise.
40446         * modules/pipe-tests (Files): Likewise.
40447
40448 2009-12-26  Bruno Haible  <bruno@clisp.org>
40449
40450         javacomp: Portability fix.
40451         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40452         that it also works on Solaris.
40453
40454 2009-12-26  Bruno Haible  <bruno@clisp.org>
40455
40456         localename: Fix storage allocation of gl_locale_name_thread's result.
40457         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40458         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40459         all platforms that have 'uselocale'.
40460         (gl_locale_name_thread_unsafe): New function, extracted from
40461         gl_locale_name_thread.
40462         (gl_locale_name_thread): Call struniq on all platforms that have
40463         'uselocale'.
40464         * tests/test-localename.c (test_locale_name_thread): Check that the
40465         resulting strings are permanently allocated.
40466         * modules/localename-tests (Depends-on): Add strdup.
40467
40468 2009-12-26  Bruno Haible  <bruno@clisp.org>
40469
40470         * tests/test-localename.c (categories): Fill in the strings.
40471
40472 2009-12-26  Jim Meyering  <meyering@redhat.com>
40473
40474         isdir: complete the removal of m4/isdir.m4
40475         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40476
40477         isdir: clean up, since at least grep still uses it
40478         * lib/isdir.c: Include "isdir.h".
40479         (S_ISDIR): Remove now-unneeded definition.
40480         * modules/isdir (Files): Add lib/isdir.h.
40481         * lib/isdir.h: New file, with declaration.
40482         * m4/isdir.m4: Remove file -- unneeded.
40483
40484 2009-12-25  Bruno Haible  <bruno@clisp.org>
40485
40486         selinux-h: Make generated .h files standalone.
40487         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
40488         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
40489         * lib/se-selinux.in.h: Likewise.
40490         * modules/selinux-h (Depends-on): Add unused-parameter.
40491         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
40492         selinux/selinux.h and selinux/context.h.
40493         Suggested by Eric Blake.
40494
40495 2009-12-25  Bruno Haible  <bruno@clisp.org>
40496
40497         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
40498         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
40499         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
40500         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
40501         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
40502
40503 2009-12-24  Bruno Haible  <bruno@clisp.org>
40504
40505         openat: Fix warning.
40506         * lib/openat-proc.c: Include <unistd.h>.
40507
40508 2009-12-24  Bruno Haible  <bruno@clisp.org>
40509
40510         New module 'unused-parameter'.
40511         * build-aux/unused-parameter.h: New file, extracted from earlier
40512         gnulib-common.m4.
40513         * modules/unused-parameter: New file.
40514         * lib/unistr.h: Include unused-parameter.h.
40515         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
40516         _GL_UNUSED.
40517         * modules/unistr/base (Depends-on): Add unused-parameter.
40518
40519 2009-12-24  Bruno Haible  <bruno@clisp.org>
40520
40521         Add missing dependencies to 'extensions' module.
40522         * m4/extensions.m4: Add comment.
40523         * modules/accept4 (Depends-on): Add extensions.
40524         * modules/dup3 (Depends-on): Likewise.
40525         * modules/fcntl (Depends-on): Likewise.
40526         * modules/futimens (Depends-on): Likewise.
40527         * modules/mknod (Depends-on): Likewise.
40528         * modules/pipe2 (Depends-on): Likewise.
40529         * modules/stat-time (Depends-on): Likewise.
40530         * modules/strcasestr-simple (Depends-on): Likewise.
40531         * modules/strsignal (Depends-on): Likewise.
40532         * modules/utimensat (Depends-on): Likewise.
40533         * modules/localcharset (Depends-on): Likewise. Needed because of
40534         gl_FCNTL_O_FLAGS.
40535         * modules/wcrtomb (Depends-on): Likewise. Needed because of
40536         AC_TYPE_MBSTATE_T.
40537         * modules/wcsnrtombs (Depends-on): Likewise.
40538         * modules/wcsrtombs (Depends-on): Likewise.
40539
40540 2009-12-24  Bruno Haible  <bruno@clisp.org>
40541
40542         binary-io: Avoid gcc warning due to SET_BINARY.
40543         * lib/binary-io.h (SET_BINARY): Cast the result to void.
40544         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
40545
40546 2009-12-24  Bruno Haible  <bruno@clisp.org>
40547
40548         Avoid future namespace pollution on glibc systems.
40549         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
40550         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
40551         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
40552         glibc systems.
40553
40554 2009-12-24  Bruno Haible  <bruno@clisp.org>
40555
40556         Refactor common macros used in tests.
40557         * tests/macros.h: New file.
40558         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
40559         and/or <stdlib.h>, if appropriate.
40560         (ASSERT, SIZEOF): Remove macros.
40561         * tests/test-areadlink-with-size.c: Likewise.
40562         * tests/test-areadlinkat.c: Likewise.
40563         * tests/test-areadlinkat-with-size.c: Likewise.
40564         * tests/test-argmatch.c: Likewise.
40565         * tests/test-argv-iter.c: Likewise.
40566         * tests/test-array-mergesort.c: Likewise.
40567         * tests/test-array_list.c: Likewise.
40568         * tests/test-array_oset.c: Likewise.
40569         * tests/test-avltree_list.c: Likewise.
40570         * tests/test-avltree_oset.c: Likewise.
40571         * tests/test-avltreehash_list.c: Likewise.
40572         * tests/test-base64.c: Likewise.
40573         * tests/test-binary-io.c: Likewise.
40574         * tests/test-bitrotate.c: Likewise.
40575         * tests/test-btowc.c: Likewise.
40576         * tests/test-byteswap.c: Likewise.
40577         * tests/test-c-ctype.c: Likewise.
40578         * tests/test-c-stack.c: Likewise.
40579         * tests/test-c-strcasecmp.c: Likewise.
40580         * tests/test-c-strcasestr.c: Likewise.
40581         * tests/test-c-strncasecmp.c: Likewise.
40582         * tests/test-c-strstr.c: Likewise.
40583         * tests/test-canonicalize-lgpl.c: Likewise.
40584         * tests/test-canonicalize.c: Likewise.
40585         * tests/test-carray_list.c: Likewise.
40586         * tests/test-ceilf1.c: Likewise.
40587         * tests/test-ceilf2.c: Likewise.
40588         * tests/test-ceill.c: Likewise.
40589         * tests/test-chown.c: Likewise.
40590         * tests/test-cloexec.c: Likewise.
40591         * tests/test-copy-acl.c: Likewise.
40592         * tests/test-copy-file.c: Likewise.
40593         * tests/test-count-one-bits.c: Likewise.
40594         * tests/test-dprintf-posix.c: Likewise.
40595         * tests/test-dup2.c: Likewise.
40596         * tests/test-dup3.c: Likewise.
40597         * tests/test-duplocale.c: Likewise.
40598         * tests/test-fbufmode.c: Likewise.
40599         * tests/test-fchdir.c: Likewise.
40600         * tests/test-fchownat.c: Likewise.
40601         * tests/test-fcntl-safer.c: Likewise.
40602         * tests/test-fcntl.c: Likewise.
40603         * tests/test-fdopendir.c: Likewise.
40604         * tests/test-fdutimensat.c: Likewise.
40605         * tests/test-fflush2.c: Likewise.
40606         * tests/test-file-has-acl.c: Likewise.
40607         * tests/test-filevercmp.c: Likewise.
40608         * tests/test-flock.c: Likewise.
40609         * tests/test-floorf1.c: Likewise.
40610         * tests/test-floorf2.c: Likewise.
40611         * tests/test-floorl.c: Likewise.
40612         * tests/test-fnmatch.c: Likewise.
40613         * tests/test-fopen.h: Likewise.
40614         * tests/test-fpending.c: Likewise.
40615         * tests/test-fprintf-posix.c: Likewise.
40616         * tests/test-fpurge.c: Likewise.
40617         * tests/test-freadable.c: Likewise.
40618         * tests/test-freadahead.c: Likewise.
40619         * tests/test-freading.c: Likewise.
40620         * tests/test-freadptr.c: Likewise.
40621         * tests/test-freadptr2.c: Likewise.
40622         * tests/test-freadseek.c: Likewise.
40623         * tests/test-freopen.c: Likewise.
40624         * tests/test-frexp.c: Likewise.
40625         * tests/test-frexpl.c: Likewise.
40626         * tests/test-fseek.c: Likewise.
40627         * tests/test-fseeko.c: Likewise.
40628         * tests/test-fstatat.c: Likewise.
40629         * tests/test-fstrcmp.c: Likewise.
40630         * tests/test-fsync.c: Likewise.
40631         * tests/test-ftell.c: Likewise.
40632         * tests/test-ftello.c: Likewise.
40633         * tests/test-func.c: Likewise.
40634         * tests/test-futimens.c: Likewise.
40635         * tests/test-fwritable.c: Likewise.
40636         * tests/test-fwriting.c: Likewise.
40637         * tests/test-getcwd.c: Likewise.
40638         * tests/test-getdate.c: Likewise.
40639         * tests/test-getdelim.c: Likewise.
40640         * tests/test-getdtablesize.c: Likewise.
40641         * tests/test-getgroups.c: Likewise.
40642         * tests/test-getline.c: Likewise.
40643         * tests/test-getndelim2.c: Likewise.
40644         * tests/test-glob.c: Likewise.
40645         * tests/test-hash.c: Likewise.
40646         * tests/test-i-ring.c: Likewise.
40647         * tests/test-iconv-utf.c: Likewise.
40648         * tests/test-iconv.c: Likewise.
40649         * tests/test-idpriv-drop.c: Likewise.
40650         * tests/test-idpriv-droptemp.c: Likewise.
40651         * tests/test-inet_ntop.c: Likewise.
40652         * tests/test-inet_pton.c: Likewise.
40653         * tests/test-isblank.c: Likewise.
40654         * tests/test-isfinite.c: Likewise.
40655         * tests/test-isinf.c: Likewise.
40656         * tests/test-isnan.c: Likewise.
40657         * tests/test-isnand.h: Likewise.
40658         * tests/test-isnanf.h: Likewise.
40659         * tests/test-isnanl.h: Likewise.
40660         * tests/test-lchown.c: Likewise.
40661         * tests/test-ldexpl.c: Likewise.
40662         * tests/test-link.c: Likewise.
40663         * tests/test-linkat.c: Likewise.
40664         * tests/test-linked_list.c: Likewise.
40665         * tests/test-linkedhash_list.c: Likewise.
40666         * tests/test-localename.c: Likewise.
40667         * tests/test-lseek.c: Likewise.
40668         * tests/test-lstat.c: Likewise.
40669         * tests/test-mbmemcasecmp.c: Likewise.
40670         * tests/test-mbmemcasecoll.c: Likewise.
40671         * tests/test-mbrtowc.c: Likewise.
40672         * tests/test-mbscasecmp.c: Likewise.
40673         * tests/test-mbscasestr1.c: Likewise.
40674         * tests/test-mbscasestr2.c: Likewise.
40675         * tests/test-mbscasestr3.c: Likewise.
40676         * tests/test-mbscasestr4.c: Likewise.
40677         * tests/test-mbschr.c: Likewise.
40678         * tests/test-mbscspn.c: Likewise.
40679         * tests/test-mbsinit.c: Likewise.
40680         * tests/test-mbsncasecmp.c: Likewise.
40681         * tests/test-mbsnrtowcs.c: Likewise.
40682         * tests/test-mbspbrk.c: Likewise.
40683         * tests/test-mbspcasecmp.c: Likewise.
40684         * tests/test-mbsrchr.c: Likewise.
40685         * tests/test-mbsrtowcs.c: Likewise.
40686         * tests/test-mbsspn.c: Likewise.
40687         * tests/test-mbsstr1.c: Likewise.
40688         * tests/test-mbsstr2.c: Likewise.
40689         * tests/test-mbsstr3.c: Likewise.
40690         * tests/test-memchr.c: Likewise.
40691         * tests/test-memchr2.c: Likewise.
40692         * tests/test-memcmp.c: Likewise.
40693         * tests/test-memmem.c: Likewise.
40694         * tests/test-memrchr.c: Likewise.
40695         * tests/test-mkdir.c: Likewise.
40696         * tests/test-mkdirat.c: Likewise.
40697         * tests/test-mkfifo.c: Likewise.
40698         * tests/test-mkfifoat.c: Likewise.
40699         * tests/test-mknod.c: Likewise.
40700         * tests/test-nanosleep.c: Likewise.
40701         * tests/test-nl_langinfo.c: Likewise.
40702         * tests/test-obstack-printf.c: Likewise.
40703         * tests/test-open.c: Likewise.
40704         * tests/test-openat.c: Likewise.
40705         * tests/test-pipe-filter-gi1.c: Likewise.
40706         * tests/test-pipe-filter-gi2-main.c: Likewise.
40707         * tests/test-pipe-filter-ii1.c: Likewise.
40708         * tests/test-pipe-filter-ii2-main.c: Likewise.
40709         * tests/test-pipe2.c: Likewise.
40710         * tests/test-popen.h: Likewise.
40711         * tests/test-posixtm.c: Likewise.
40712         * tests/test-pread.c: Likewise.
40713         * tests/test-printf-frexp.c: Likewise.
40714         * tests/test-printf-frexpl.c: Likewise.
40715         * tests/test-printf-posix.c: Likewise.
40716         * tests/test-priv-set.c: Likewise.
40717         * tests/test-quotearg.c: Likewise.
40718         * tests/test-random_r.c: Likewise.
40719         * tests/test-rawmemchr.c: Likewise.
40720         * tests/test-rbtree_list.c: Likewise.
40721         * tests/test-rbtree_oset.c: Likewise.
40722         * tests/test-rbtreehash_list.c: Likewise.
40723         * tests/test-readlink.c: Likewise.
40724         * tests/test-remove.c: Likewise.
40725         * tests/test-rename.c: Likewise.
40726         * tests/test-renameat.c: Likewise.
40727         * tests/test-rmdir.c: Likewise.
40728         * tests/test-round1.c: Likewise.
40729         * tests/test-roundf1.c: Likewise.
40730         * tests/test-roundl.c: Likewise.
40731         * tests/test-safe-alloc.c: Likewise.
40732         * tests/test-sameacls.c: Likewise.
40733         * tests/test-set-mode-acl.c: Likewise.
40734         * tests/test-setenv.c: Likewise.
40735         * tests/test-sigaction.c: Likewise.
40736         * tests/test-signbit.c: Likewise.
40737         * tests/test-sleep.c: Likewise.
40738         * tests/test-snprintf-posix.c: Likewise.
40739         * tests/test-snprintf.c: Likewise.
40740         * tests/test-sprintf-posix.c: Likewise.
40741         * tests/test-stat-time.c: Likewise.
40742         * tests/test-stat.c: Likewise.
40743         * tests/test-strcasestr.c: Likewise.
40744         * tests/test-strchrnul.c: Likewise.
40745         * tests/test-strerror.c: Likewise.
40746         * tests/test-striconv.c: Likewise.
40747         * tests/test-striconveh.c: Likewise.
40748         * tests/test-striconveha.c: Likewise.
40749         * tests/test-strsignal.c: Likewise.
40750         * tests/test-strstr.c: Likewise.
40751         * tests/test-strtod.c: Likewise.
40752         * tests/test-strverscmp.c: Likewise.
40753         * tests/test-symlink.c: Likewise.
40754         * tests/test-symlinkat.c: Likewise.
40755         * tests/test-trunc1.c: Likewise.
40756         * tests/test-trunc2.c: Likewise.
40757         * tests/test-truncf1.c: Likewise.
40758         * tests/test-truncf2.c: Likewise.
40759         * tests/test-truncl.c: Likewise.
40760         * tests/test-uname.c: Likewise.
40761         * tests/test-unlink.c: Likewise.
40762         * tests/test-unlinkat.c: Likewise.
40763         * tests/test-unsetenv.c: Likewise.
40764         * tests/test-usleep.c: Likewise.
40765         * tests/test-utimens.c: Likewise.
40766         * tests/test-utimensat.c: Likewise.
40767         * tests/test-vasnprintf-posix.c: Likewise.
40768         * tests/test-vasnprintf-posix2.c: Likewise.
40769         * tests/test-vasnprintf.c: Likewise.
40770         * tests/test-vasprintf-posix.c: Likewise.
40771         * tests/test-vasprintf.c: Likewise.
40772         * tests/test-vdprintf-posix.c: Likewise.
40773         * tests/test-vfprintf-posix.c: Likewise.
40774         * tests/test-vprintf-posix.c: Likewise.
40775         * tests/test-vsnprintf-posix.c: Likewise.
40776         * tests/test-vsnprintf.c: Likewise.
40777         * tests/test-vsprintf-posix.c: Likewise.
40778         * tests/test-wcrtomb.c: Likewise.
40779         * tests/test-wcsnrtombs.c: Likewise.
40780         * tests/test-wcsrtombs.c: Likewise.
40781         * tests/test-wctype.c: Likewise.
40782         * tests/test-wcwidth.c: Likewise.
40783         * tests/test-xfprintf-posix.c: Likewise.
40784         * tests/test-xmemdup0.c: Likewise.
40785         * tests/test-xprintf-posix.c: Likewise.
40786         * tests/test-xvasprintf.c: Likewise.
40787         * tests/unicase/test-locale-language.c: Likewise.
40788         * tests/unicase/test-mapping-part1.h: Likewise.
40789         * tests/unicase/test-predicate-part1.h: Likewise.
40790         * tests/unicase/test-u8-casecmp.c: Likewise.
40791         * tests/unicase/test-u8-casecoll.c: Likewise.
40792         * tests/unicase/test-u8-casefold.c: Likewise.
40793         * tests/unicase/test-u8-is-cased.c: Likewise.
40794         * tests/unicase/test-u8-is-casefolded.c: Likewise.
40795         * tests/unicase/test-u8-is-lowercase.c: Likewise.
40796         * tests/unicase/test-u8-is-titlecase.c: Likewise.
40797         * tests/unicase/test-u8-is-uppercase.c: Likewise.
40798         * tests/unicase/test-u8-tolower.c: Likewise.
40799         * tests/unicase/test-u8-totitle.c: Likewise.
40800         * tests/unicase/test-u8-toupper.c: Likewise.
40801         * tests/unicase/test-u16-casecmp.c: Likewise.
40802         * tests/unicase/test-u16-casecoll.c: Likewise.
40803         * tests/unicase/test-u16-casefold.c: Likewise.
40804         * tests/unicase/test-u16-is-cased.c: Likewise.
40805         * tests/unicase/test-u16-is-casefolded.c: Likewise.
40806         * tests/unicase/test-u16-is-lowercase.c: Likewise.
40807         * tests/unicase/test-u16-is-titlecase.c: Likewise.
40808         * tests/unicase/test-u16-is-uppercase.c: Likewise.
40809         * tests/unicase/test-u16-tolower.c: Likewise.
40810         * tests/unicase/test-u16-totitle.c: Likewise.
40811         * tests/unicase/test-u16-toupper.c: Likewise.
40812         * tests/unicase/test-u32-casecmp.c: Likewise.
40813         * tests/unicase/test-u32-casecoll.c: Likewise.
40814         * tests/unicase/test-u32-casefold.c: Likewise.
40815         * tests/unicase/test-u32-is-cased.c: Likewise.
40816         * tests/unicase/test-u32-is-casefolded.c: Likewise.
40817         * tests/unicase/test-u32-is-lowercase.c: Likewise.
40818         * tests/unicase/test-u32-is-titlecase.c: Likewise.
40819         * tests/unicase/test-u32-is-uppercase.c: Likewise.
40820         * tests/unicase/test-u32-tolower.c: Likewise.
40821         * tests/unicase/test-u32-totitle.c: Likewise.
40822         * tests/unicase/test-u32-toupper.c: Likewise.
40823         * tests/unicase/test-ulc-casecmp.c: Likewise.
40824         * tests/unicase/test-ulc-casecoll.c: Likewise.
40825         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40826         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40827         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40828         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40829         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40830         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40831         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40832         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40833         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40834         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40835         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40836         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40837         * tests/unictype/test-bidi_byname.c: Likewise.
40838         * tests/unictype/test-bidi_name.c: Likewise.
40839         * tests/unictype/test-bidi_of.c: Likewise.
40840         * tests/unictype/test-bidi_test.c: Likewise.
40841         * tests/unictype/test-block_list.c: Likewise.
40842         * tests/unictype/test-block_of.c: Likewise.
40843         * tests/unictype/test-block_test.c: Likewise.
40844         * tests/unictype/test-categ_and.c: Likewise.
40845         * tests/unictype/test-categ_and_not.c: Likewise.
40846         * tests/unictype/test-categ_byname.c: Likewise.
40847         * tests/unictype/test-categ_name.c: Likewise.
40848         * tests/unictype/test-categ_none.c: Likewise.
40849         * tests/unictype/test-categ_of.c: Likewise.
40850         * tests/unictype/test-categ_or.c: Likewise.
40851         * tests/unictype/test-categ_test_withtable.c: Likewise.
40852         * tests/unictype/test-combining.c: Likewise.
40853         * tests/unictype/test-decdigit.c: Likewise.
40854         * tests/unictype/test-digit.c: Likewise.
40855         * tests/unictype/test-mirror.c: Likewise.
40856         * tests/unictype/test-numeric.c: Likewise.
40857         * tests/unictype/test-pr_byname.c: Likewise.
40858         * tests/unictype/test-pr_test.c: Likewise.
40859         * tests/unictype/test-predicate-part1.h: Likewise.
40860         * tests/unictype/test-scripts.c: Likewise.
40861         * tests/unictype/test-sy_c_ident.c: Likewise.
40862         * tests/unictype/test-sy_java_ident.c: Likewise.
40863         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
40864         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
40865         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
40866         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
40867         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
40868         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
40869         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
40870         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
40871         * tests/uninorm/test-canonical-decomposition.c: Likewise.
40872         * tests/uninorm/test-compat-decomposition.c: Likewise.
40873         * tests/uninorm/test-composition.c: Likewise.
40874         * tests/uninorm/test-decomposing-form.c: Likewise.
40875         * tests/uninorm/test-decomposition.c: Likewise.
40876         * tests/uninorm/test-u8-nfc.c: Likewise.
40877         * tests/uninorm/test-u8-nfd.c: Likewise.
40878         * tests/uninorm/test-u8-nfkc.c: Likewise.
40879         * tests/uninorm/test-u8-nfkd.c: Likewise.
40880         * tests/uninorm/test-u8-normcmp.c: Likewise.
40881         * tests/uninorm/test-u8-normcoll.c: Likewise.
40882         * tests/uninorm/test-u16-nfc.c: Likewise.
40883         * tests/uninorm/test-u16-nfd.c: Likewise.
40884         * tests/uninorm/test-u16-nfkc.c: Likewise.
40885         * tests/uninorm/test-u16-nfkd.c: Likewise.
40886         * tests/uninorm/test-u16-normcmp.c: Likewise.
40887         * tests/uninorm/test-u16-normcoll.c: Likewise.
40888         * tests/uninorm/test-u32-nfc.c: Likewise.
40889         * tests/uninorm/test-u32-nfd.c: Likewise.
40890         * tests/uninorm/test-u32-nfkc.c: Likewise.
40891         * tests/uninorm/test-u32-nfkd.c: Likewise.
40892         * tests/uninorm/test-u32-normalize-big.c: Likewise.
40893         * tests/uninorm/test-u32-normcmp.c: Likewise.
40894         * tests/uninorm/test-u32-normcoll.c: Likewise.
40895         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
40896         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40897         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40898         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40899         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40900         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40901         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40902         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40903         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40904         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40905         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40906         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40907         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40908         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40909         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40910         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40911         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40912         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40913         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40914         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40915         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40916         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40917         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40918         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40919         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40920         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40921         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40922         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40923         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40924         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
40925         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
40926         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
40927         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
40928         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40929         * tests/uniwidth/test-u8-width.c: Likewise.
40930         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40931         * tests/uniwidth/test-u16-width.c: Likewise.
40932         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40933         * tests/uniwidth/test-u32-width.c: Likewise.
40934         * tests/uniwidth/test-uc_width.c: Likewise.
40935         * tests/uniwidth/test-uc_width2.c: Likewise.
40936         * modules/acl-tests (Files): Add tests/macros.h.
40937         * modules/areadlink-tests (Files): Likewise.
40938         * modules/areadlink-with-size-tests (Files): Likewise.
40939         * modules/areadlinkat-tests (Files): Likewise.
40940         * modules/areadlinkat-with-size-tests (Files): Likewise.
40941         * modules/argmatch-tests (Files): Likewise.
40942         * modules/argv-iter-tests (Files): Likewise.
40943         * modules/array-list-tests (Files): Likewise.
40944         * modules/array-mergesort-tests (Files): Likewise.
40945         * modules/array-oset-tests (Files): Likewise.
40946         * modules/avltree-list-tests (Files): Likewise.
40947         * modules/avltree-oset-tests (Files): Likewise.
40948         * modules/avltreehash-list-tests (Files): Likewise.
40949         * modules/base64-tests (Files): Likewise.
40950         * modules/binary-io-tests (Files): Likewise.
40951         * modules/bitrotate-tests (Files): Likewise.
40952         * modules/btowc-tests (Files): Likewise.
40953         * modules/byteswap-tests (Files): Likewise.
40954         * modules/c-ctype-tests (Files): Likewise.
40955         * modules/c-stack-tests (Files): Likewise.
40956         * modules/c-strcase-tests (Files): Likewise.
40957         * modules/c-strcasestr-tests (Files): Likewise.
40958         * modules/c-strstr-tests (Files): Likewise.
40959         * modules/canonicalize-lgpl-tests (Files): Likewise.
40960         * modules/canonicalize-tests (Files): Likewise.
40961         * modules/carray-list-tests (Files): Likewise.
40962         * modules/ceilf-tests (Files): Likewise.
40963         * modules/ceill-tests (Files): Likewise.
40964         * modules/chown-tests (Files): Likewise.
40965         * modules/cloexec-tests (Files): Likewise.
40966         * modules/copy-file-tests (Files): Likewise.
40967         * modules/count-one-bits-tests (Files): Likewise.
40968         * modules/dprintf-posix-tests (Files): Likewise.
40969         * modules/dup2-tests (Files): Likewise.
40970         * modules/dup3-tests (Files): Likewise.
40971         * modules/duplocale-tests (Files): Likewise.
40972         * modules/fbufmode-tests (Files): Likewise.
40973         * modules/fchdir-tests (Files): Likewise.
40974         * modules/fcntl-safer-tests (Files): Likewise.
40975         * modules/fcntl-tests (Files): Likewise.
40976         * modules/fdopendir-tests (Files): Likewise.
40977         * modules/fdutimensat-tests (Files): Likewise.
40978         * modules/fflush-tests (Files): Likewise.
40979         * modules/filevercmp-tests (Files): Likewise.
40980         * modules/flock-tests (Files): Likewise.
40981         * modules/floorf-tests (Files): Likewise.
40982         * modules/floorl-tests (Files): Likewise.
40983         * modules/fnmatch-tests (Files): Likewise.
40984         * modules/fopen-safer-tests (Files): Likewise.
40985         * modules/fopen-tests (Files): Likewise.
40986         * modules/fpending-tests (Files): Likewise.
40987         * modules/fprintf-posix-tests (Files): Likewise.
40988         * modules/fpurge-tests (Files): Likewise.
40989         * modules/freadable-tests (Files): Likewise.
40990         * modules/freadahead-tests (Files): Likewise.
40991         * modules/freading-tests (Files): Likewise.
40992         * modules/freadptr-tests (Files): Likewise.
40993         * modules/freadseek-tests (Files): Likewise.
40994         * modules/freopen-tests (Files): Likewise.
40995         * modules/frexp-nolibm-tests (Files): Likewise.
40996         * modules/frexp-tests (Files): Likewise.
40997         * modules/frexpl-nolibm-tests (Files): Likewise.
40998         * modules/frexpl-tests (Files): Likewise.
40999         * modules/fseek-tests (Files): Likewise.
41000         * modules/fseeko-tests (Files): Likewise.
41001         * modules/fstrcmp-tests (Files): Likewise.
41002         * modules/fsync-tests (Files): Likewise.
41003         * modules/ftell-tests (Files): Likewise.
41004         * modules/ftello-tests (Files): Likewise.
41005         * modules/func-tests (Files): Likewise.
41006         * modules/futimens-tests (Files): Likewise.
41007         * modules/fwritable-tests (Files): Likewise.
41008         * modules/fwriting-tests (Files): Likewise.
41009         * modules/getcwd-tests (Files): Likewise.
41010         * modules/getdate-tests (Files): Likewise.
41011         * modules/getdelim-tests (Files): Likewise.
41012         * modules/getdtablesize-tests (Files): Likewise.
41013         * modules/getgroups-tests (Files): Likewise.
41014         * modules/getline-tests (Files): Likewise.
41015         * modules/getndelim2-tests (Files): Likewise.
41016         * modules/glob-tests (Files): Likewise.
41017         * modules/hash-tests (Files): Likewise.
41018         * modules/i-ring-tests (Files): Likewise.
41019         * modules/iconv-tests (Files): Likewise.
41020         * modules/iconv_open-utf-tests (Files): Likewise.
41021         * modules/idpriv-drop-tests (Files): Likewise.
41022         * modules/idpriv-droptemp-tests (Files): Likewise.
41023         * modules/inet_ntop-tests (Files): Likewise.
41024         * modules/inet_pton-tests (Files): Likewise.
41025         * modules/isblank-tests (Files): Likewise.
41026         * modules/isfinite-tests (Files): Likewise.
41027         * modules/isinf-tests (Files): Likewise.
41028         * modules/isnan-tests (Files): Likewise.
41029         * modules/isnand-nolibm-tests (Files): Likewise.
41030         * modules/isnand-tests (Files): Likewise.
41031         * modules/isnanf-nolibm-tests (Files): Likewise.
41032         * modules/isnanf-tests (Files): Likewise.
41033         * modules/isnanl-nolibm-tests (Files): Likewise.
41034         * modules/isnanl-tests (Files): Likewise.
41035         * modules/lchown-tests (Files): Likewise.
41036         * modules/ldexpl-tests (Files): Likewise.
41037         * modules/link-tests (Files): Likewise.
41038         * modules/linkat-tests (Files): Likewise.
41039         * modules/linked-list-tests (Files): Likewise.
41040         * modules/linkedhash-list-tests (Files): Likewise.
41041         * modules/localename-tests (Files): Likewise.
41042         * modules/lseek-tests (Files): Likewise.
41043         * modules/lstat-tests (Files): Likewise.
41044         * modules/mbmemcasecmp-tests (Files): Likewise.
41045         * modules/mbmemcasecoll-tests (Files): Likewise.
41046         * modules/mbrtowc-tests (Files): Likewise.
41047         * modules/mbscasecmp-tests (Files): Likewise.
41048         * modules/mbscasestr-tests (Files): Likewise.
41049         * modules/mbschr-tests (Files): Likewise.
41050         * modules/mbscspn-tests (Files): Likewise.
41051         * modules/mbsinit-tests (Files): Likewise.
41052         * modules/mbsncasecmp-tests (Files): Likewise.
41053         * modules/mbsnrtowcs-tests (Files): Likewise.
41054         * modules/mbspbrk-tests (Files): Likewise.
41055         * modules/mbspcasecmp-tests (Files): Likewise.
41056         * modules/mbsrchr-tests (Files): Likewise.
41057         * modules/mbsrtowcs-tests (Files): Likewise.
41058         * modules/mbsspn-tests (Files): Likewise.
41059         * modules/mbsstr-tests (Files): Likewise.
41060         * modules/memchr-tests (Files): Likewise.
41061         * modules/memchr2-tests (Files): Likewise.
41062         * modules/memcmp-tests (Files): Likewise.
41063         * modules/memmem-tests (Files): Likewise.
41064         * modules/memrchr-tests (Files): Likewise.
41065         * modules/mkdir-tests (Files): Likewise.
41066         * modules/mkfifo-tests (Files): Likewise.
41067         * modules/mkfifoat-tests (Files): Likewise.
41068         * modules/mknod-tests (Files): Likewise.
41069         * modules/nanosleep-tests (Files): Likewise.
41070         * modules/nl_langinfo-tests (Files): Likewise.
41071         * modules/obstack-printf-tests (Files): Likewise.
41072         * modules/open-tests (Files): Likewise.
41073         * modules/openat-tests (Files): Likewise.
41074         * modules/pipe-filter-gi-tests (Files): Likewise.
41075         * modules/pipe-filter-ii-tests (Files): Likewise.
41076         * modules/pipe2-tests (Files): Likewise.
41077         * modules/popen-safer-tests (Files): Likewise.
41078         * modules/popen-tests (Files): Likewise.
41079         * modules/posixtm-tests (Files): Likewise.
41080         * modules/pread-tests (Files): Likewise.
41081         * modules/printf-frexp-tests (Files): Likewise.
41082         * modules/printf-frexpl-tests (Files): Likewise.
41083         * modules/printf-posix-tests (Files): Likewise.
41084         * modules/priv-set-tests (Files): Likewise.
41085         * modules/quotearg-tests (Files): Likewise.
41086         * modules/random_r-tests (Files): Likewise.
41087         * modules/rawmemchr-tests (Files): Likewise.
41088         * modules/rbtree-list-tests (Files): Likewise.
41089         * modules/rbtree-oset-tests (Files): Likewise.
41090         * modules/rbtreehash-list-tests (Files): Likewise.
41091         * modules/readlink-tests (Files): Likewise.
41092         * modules/remove-tests (Files): Likewise.
41093         * modules/rename-tests (Files): Likewise.
41094         * modules/renameat-tests (Files): Likewise.
41095         * modules/rmdir-tests (Files): Likewise.
41096         * modules/round-tests (Files): Likewise.
41097         * modules/roundf-tests (Files): Likewise.
41098         * modules/roundl-tests (Files): Likewise.
41099         * modules/safe-alloc-tests (Files): Likewise.
41100         * modules/setenv-tests (Files): Likewise.
41101         * modules/sigaction-tests (Files): Likewise.
41102         * modules/signbit-tests (Files): Likewise.
41103         * modules/sleep-tests (Files): Likewise.
41104         * modules/snprintf-posix-tests (Files): Likewise.
41105         * modules/snprintf-tests (Files): Likewise.
41106         * modules/sprintf-posix-tests (Files): Likewise.
41107         * modules/stat-tests (Files): Likewise.
41108         * modules/stat-time-tests (Files): Likewise.
41109         * modules/strcasestr-tests (Files): Likewise.
41110         * modules/strchrnul-tests (Files): Likewise.
41111         * modules/strerror-tests (Files): Likewise.
41112         * modules/striconv-tests (Files): Likewise.
41113         * modules/striconveh-tests (Files): Likewise.
41114         * modules/striconveha-tests (Files): Likewise.
41115         * modules/strsignal-tests (Files): Likewise.
41116         * modules/strstr-tests (Files): Likewise.
41117         * modules/strtod-tests (Files): Likewise.
41118         * modules/strverscmp-tests (Files): Likewise.
41119         * modules/symlink-tests (Files): Likewise.
41120         * modules/symlinkat-tests (Files): Likewise.
41121         * modules/trunc-tests (Files): Likewise.
41122         * modules/truncf-tests (Files): Likewise.
41123         * modules/truncl-tests (Files): Likewise.
41124         * modules/uname-tests (Files): Likewise.
41125         * modules/unicase/cased-tests (Files): Likewise.
41126         * modules/unicase/ignorable-tests (Files): Likewise.
41127         * modules/unicase/locale-language-tests (Files): Likewise.
41128         * modules/unicase/tolower-tests (Files): Likewise.
41129         * modules/unicase/totitle-tests (Files): Likewise.
41130         * modules/unicase/toupper-tests (Files): Likewise.
41131         * modules/unicase/u8-casecmp-tests (Files): Likewise.
41132         * modules/unicase/u8-casecoll-tests (Files): Likewise.
41133         * modules/unicase/u8-casefold-tests (Files): Likewise.
41134         * modules/unicase/u8-is-cased-tests (Files): Likewise.
41135         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
41136         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
41137         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
41138         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
41139         * modules/unicase/u8-tolower-tests (Files): Likewise.
41140         * modules/unicase/u8-totitle-tests (Files): Likewise.
41141         * modules/unicase/u8-toupper-tests (Files): Likewise.
41142         * modules/unicase/u16-casecmp-tests (Files): Likewise.
41143         * modules/unicase/u16-casecoll-tests (Files): Likewise.
41144         * modules/unicase/u16-casefold-tests (Files): Likewise.
41145         * modules/unicase/u16-is-cased-tests (Files): Likewise.
41146         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
41147         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
41148         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
41149         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
41150         * modules/unicase/u16-tolower-tests (Files): Likewise.
41151         * modules/unicase/u16-totitle-tests (Files): Likewise.
41152         * modules/unicase/u16-toupper-tests (Files): Likewise.
41153         * modules/unicase/u32-casecmp-tests (Files): Likewise.
41154         * modules/unicase/u32-casecoll-tests (Files): Likewise.
41155         * modules/unicase/u32-casefold-tests (Files): Likewise.
41156         * modules/unicase/u32-is-cased-tests (Files): Likewise.
41157         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
41158         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
41159         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
41160         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
41161         * modules/unicase/u32-tolower-tests (Files): Likewise.
41162         * modules/unicase/u32-totitle-tests (Files): Likewise.
41163         * modules/unicase/u32-toupper-tests (Files): Likewise.
41164         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
41165         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
41166         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
41167         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
41168         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
41169         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
41170         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
41171         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
41172         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
41173         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
41174         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
41175         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
41176         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
41177         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
41178         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
41179         * modules/unictype/bidicategory-name-tests (Files): Likewise.
41180         * modules/unictype/bidicategory-of-tests (Files): Likewise.
41181         * modules/unictype/bidicategory-test-tests (Files): Likewise.
41182         * modules/unictype/block-list-tests (Files): Likewise.
41183         * modules/unictype/block-of-tests (Files): Likewise.
41184         * modules/unictype/block-test-tests (Files): Likewise.
41185         * modules/unictype/category-C-tests (Files): Likewise.
41186         * modules/unictype/category-Cc-tests (Files): Likewise.
41187         * modules/unictype/category-Cf-tests (Files): Likewise.
41188         * modules/unictype/category-Cn-tests (Files): Likewise.
41189         * modules/unictype/category-Co-tests (Files): Likewise.
41190         * modules/unictype/category-Cs-tests (Files): Likewise.
41191         * modules/unictype/category-L-tests (Files): Likewise.
41192         * modules/unictype/category-Ll-tests (Files): Likewise.
41193         * modules/unictype/category-Lm-tests (Files): Likewise.
41194         * modules/unictype/category-Lo-tests (Files): Likewise.
41195         * modules/unictype/category-Lt-tests (Files): Likewise.
41196         * modules/unictype/category-Lu-tests (Files): Likewise.
41197         * modules/unictype/category-M-tests (Files): Likewise.
41198         * modules/unictype/category-Mc-tests (Files): Likewise.
41199         * modules/unictype/category-Me-tests (Files): Likewise.
41200         * modules/unictype/category-Mn-tests (Files): Likewise.
41201         * modules/unictype/category-N-tests (Files): Likewise.
41202         * modules/unictype/category-Nd-tests (Files): Likewise.
41203         * modules/unictype/category-Nl-tests (Files): Likewise.
41204         * modules/unictype/category-No-tests (Files): Likewise.
41205         * modules/unictype/category-P-tests (Files): Likewise.
41206         * modules/unictype/category-Pc-tests (Files): Likewise.
41207         * modules/unictype/category-Pd-tests (Files): Likewise.
41208         * modules/unictype/category-Pe-tests (Files): Likewise.
41209         * modules/unictype/category-Pf-tests (Files): Likewise.
41210         * modules/unictype/category-Pi-tests (Files): Likewise.
41211         * modules/unictype/category-Po-tests (Files): Likewise.
41212         * modules/unictype/category-Ps-tests (Files): Likewise.
41213         * modules/unictype/category-S-tests (Files): Likewise.
41214         * modules/unictype/category-Sc-tests (Files): Likewise.
41215         * modules/unictype/category-Sk-tests (Files): Likewise.
41216         * modules/unictype/category-Sm-tests (Files): Likewise.
41217         * modules/unictype/category-So-tests (Files): Likewise.
41218         * modules/unictype/category-Z-tests (Files): Likewise.
41219         * modules/unictype/category-Zl-tests (Files): Likewise.
41220         * modules/unictype/category-Zp-tests (Files): Likewise.
41221         * modules/unictype/category-Zs-tests (Files): Likewise.
41222         * modules/unictype/category-and-not-tests (Files): Likewise.
41223         * modules/unictype/category-and-tests (Files): Likewise.
41224         * modules/unictype/category-byname-tests (Files): Likewise.
41225         * modules/unictype/category-name-tests (Files): Likewise.
41226         * modules/unictype/category-none-tests (Files): Likewise.
41227         * modules/unictype/category-of-tests (Files): Likewise.
41228         * modules/unictype/category-or-tests (Files): Likewise.
41229         * modules/unictype/category-test-withtable-tests (Files): Likewise.
41230         * modules/unictype/combining-class-tests (Files): Likewise.
41231         * modules/unictype/ctype-alnum-tests (Files): Likewise.
41232         * modules/unictype/ctype-alpha-tests (Files): Likewise.
41233         * modules/unictype/ctype-blank-tests (Files): Likewise.
41234         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
41235         * modules/unictype/ctype-digit-tests (Files): Likewise.
41236         * modules/unictype/ctype-graph-tests (Files): Likewise.
41237         * modules/unictype/ctype-lower-tests (Files): Likewise.
41238         * modules/unictype/ctype-print-tests (Files): Likewise.
41239         * modules/unictype/ctype-punct-tests (Files): Likewise.
41240         * modules/unictype/ctype-space-tests (Files): Likewise.
41241         * modules/unictype/ctype-upper-tests (Files): Likewise.
41242         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
41243         * modules/unictype/decimal-digit-tests (Files): Likewise.
41244         * modules/unictype/digit-tests (Files): Likewise.
41245         * modules/unictype/mirror-tests (Files): Likewise.
41246         * modules/unictype/numeric-tests (Files): Likewise.
41247         * modules/unictype/property-alphabetic-tests (Files): Likewise.
41248         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
41249         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
41250         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
41251         Likewise.
41252         * modules/unictype/property-bidi-block-separator-tests (Files):
41253         Likewise.
41254         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
41255         Likewise.
41256         * modules/unictype/property-bidi-common-separator-tests (Files):
41257         Likewise.
41258         * modules/unictype/property-bidi-control-tests (Files): Likewise.
41259         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
41260         Likewise.
41261         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
41262         Likewise.
41263         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
41264         Likewise.
41265         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
41266         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
41267         Likewise.
41268         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
41269         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
41270         Likewise.
41271         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
41272         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
41273         * modules/unictype/property-bidi-segment-separator-tests (Files):
41274         Likewise.
41275         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
41276         * modules/unictype/property-byname-tests (Files): Likewise.
41277         * modules/unictype/property-combining-tests (Files): Likewise.
41278         * modules/unictype/property-composite-tests (Files): Likewise.
41279         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
41280         * modules/unictype/property-dash-tests (Files): Likewise.
41281         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
41282         * modules/unictype/property-default-ignorable-code-point-tests (Files):
41283         Likewise.
41284         * modules/unictype/property-deprecated-tests (Files): Likewise.
41285         * modules/unictype/property-diacritic-tests (Files): Likewise.
41286         * modules/unictype/property-extender-tests (Files): Likewise.
41287         * modules/unictype/property-format-control-tests (Files): Likewise.
41288         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
41289         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
41290         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
41291         * modules/unictype/property-hex-digit-tests (Files): Likewise.
41292         * modules/unictype/property-hyphen-tests (Files): Likewise.
41293         * modules/unictype/property-id-continue-tests (Files): Likewise.
41294         * modules/unictype/property-id-start-tests (Files): Likewise.
41295         * modules/unictype/property-ideographic-tests (Files): Likewise.
41296         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
41297         * modules/unictype/property-ids-trinary-operator-tests (Files):
41298         Likewise.
41299         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
41300         * modules/unictype/property-iso-control-tests (Files): Likewise.
41301         * modules/unictype/property-join-control-tests (Files): Likewise.
41302         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
41303         * modules/unictype/property-line-separator-tests (Files): Likewise.
41304         * modules/unictype/property-logical-order-exception-tests (Files):
41305         Likewise.
41306         * modules/unictype/property-lowercase-tests (Files): Likewise.
41307         * modules/unictype/property-math-tests (Files): Likewise.
41308         * modules/unictype/property-non-break-tests (Files): Likewise.
41309         * modules/unictype/property-not-a-character-tests (Files): Likewise.
41310         * modules/unictype/property-numeric-tests (Files): Likewise.
41311         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
41312         * modules/unictype/property-other-default-ignorable-code-point-tests
41313         (Files): Likewise.
41314         * modules/unictype/property-other-grapheme-extend-tests (Files):
41315         Likewise.
41316         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
41317         * modules/unictype/property-other-id-start-tests (Files): Likewise.
41318         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
41319         * modules/unictype/property-other-math-tests (Files): Likewise.
41320         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
41321         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
41322         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
41323         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41324         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41325         * modules/unictype/property-private-use-tests (Files): Likewise.
41326         * modules/unictype/property-punctuation-tests (Files): Likewise.
41327         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41328         * modules/unictype/property-radical-tests (Files): Likewise.
41329         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41330         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41331         * modules/unictype/property-space-tests (Files): Likewise.
41332         * modules/unictype/property-terminal-punctuation-tests (Files):
41333         Likewise.
41334         * modules/unictype/property-test-tests (Files): Likewise.
41335         * modules/unictype/property-titlecase-tests (Files): Likewise.
41336         * modules/unictype/property-unassigned-code-value-tests (Files):
41337         Likewise.
41338         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41339         * modules/unictype/property-uppercase-tests (Files): Likewise.
41340         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41341         * modules/unictype/property-white-space-tests (Files): Likewise.
41342         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41343         * modules/unictype/property-xid-start-tests (Files): Likewise.
41344         * modules/unictype/property-zero-width-tests (Files): Likewise.
41345         * modules/unictype/scripts-tests (Files): Likewise.
41346         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41347         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41348         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41349         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41350         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41351         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41352         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41353         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41354         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41355         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41356         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41357         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41358         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41359         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41360         * modules/uninorm/composition-tests (Files): Likewise.
41361         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41362         * modules/uninorm/decomposition-tests (Files): Likewise.
41363         * modules/uninorm/filter-tests (Files): Likewise.
41364         * modules/uninorm/nfc-tests (Files): Likewise.
41365         * modules/uninorm/nfd-tests (Files): Likewise.
41366         * modules/uninorm/nfkc-tests (Files): Likewise.
41367         * modules/uninorm/nfkd-tests (Files): Likewise.
41368         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41369         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41370         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41371         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41372         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41373         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41374         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41375         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41376         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41377         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41378         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41379         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41380         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41381         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41382         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41383         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41384         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41385         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41386         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
41387         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
41388         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
41389         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
41390         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41391         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
41392         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
41393         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41394         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41395         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41396         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41397         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41398         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41399         * modules/uniwidth/u8-width-tests (Files): Likewise.
41400         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41401         * modules/uniwidth/u16-width-tests (Files): Likewise.
41402         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41403         * modules/uniwidth/u32-width-tests (Files): Likewise.
41404         * modules/uniwidth/width-tests (Files): Likewise.
41405         * modules/unlink-tests (Files): Likewise.
41406         * modules/unsetenv-tests (Files): Likewise.
41407         * modules/usleep-tests (Files): Likewise.
41408         * modules/utimens-tests (Files): Likewise.
41409         * modules/utimensat-tests (Files): Likewise.
41410         * modules/vasnprintf-posix-tests (Files): Likewise.
41411         * modules/vasnprintf-tests (Files): Likewise.
41412         * modules/vasprintf-posix-tests (Files): Likewise.
41413         * modules/vasprintf-tests (Files): Likewise.
41414         * modules/vdprintf-posix-tests (Files): Likewise.
41415         * modules/vfprintf-posix-tests (Files): Likewise.
41416         * modules/vprintf-posix-tests (Files): Likewise.
41417         * modules/vsnprintf-posix-tests (Files): Likewise.
41418         * modules/vsnprintf-tests (Files): Likewise.
41419         * modules/vsprintf-posix-tests (Files): Likewise.
41420         * modules/wcrtomb-tests (Files): Likewise.
41421         * modules/wcsnrtombs-tests (Files): Likewise.
41422         * modules/wcsrtombs-tests (Files): Likewise.
41423         * modules/wctype-tests (Files): Likewise.
41424         * modules/wcwidth-tests (Files): Likewise.
41425         * modules/xmemdup0-tests (Files): Likewise.
41426         * modules/xprintf-posix-tests (Files): Likewise.
41427         * modules/xvasprintf-tests (Files): Likewise.
41428
41429 2009-12-24  Eric Blake  <ebb9@byu.net>
41430
41431         test-nanosleep: fix typo
41432         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41433         patch.
41434         Reported by Bruno Haible.
41435
41436 2009-12-24  Bruno Haible  <bruno@clisp.org>
41437
41438         Reduce namespace pollution on glibc systems.
41439         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41440         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41441         systems.
41442         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41443         <getopt.h> on glibc systems.
41444         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41445         systems.
41446         * lib/fcntl.c: Include <unistd.h> here instead.
41447
41448 2009-12-24  Bruno Haible  <bruno@clisp.org>
41449
41450         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41451
41452 2009-12-24  Eric Blake  <ebb9@byu.net>
41453
41454         tests: add signature checks
41455         * tests/signature.h (SIGNATURE_CHECK): New file.
41456         * modules/atexit-tests (Files): Use it.
41457         * modules/btowc-tests (Files): Likewise.
41458         * modules/canonicalize-lgpl-tests (Files): Likewise.
41459         * modules/ceilf-tests (Files): Likewise.
41460         * modules/ceill-tests (Files): Likewise.
41461         * modules/chown-tests (Files): Likewise.
41462         * modules/dprintf-posix-tests (Files): Likewise.
41463         * modules/dup2-tests (Files): Likewise.
41464         * modules/dup3-tests (Files): Likewise.
41465         * modules/duplocale-tests (Files): Likewise.
41466         * modules/fchdir-tests (Files): Likewise.
41467         * modules/fcntl-tests (Files): Likewise.
41468         * modules/fdopendir-tests (Files): Likewise.
41469         * modules/fflush-tests (Files): Likewise.
41470         * modules/flock-tests (Files): Likewise.
41471         * modules/floorf-tests (Files): Likewise.
41472         * modules/floorl-tests (Files): Likewise.
41473         * modules/fnmatch-tests (Files): Likewise.
41474         * modules/fopen-tests (Files): Likewise.
41475         * modules/fprintf-posix-tests (Files): Likewise.
41476         * modules/freopen-tests (Files): Likewise.
41477         * modules/frexp-nolibm-tests (Files): Likewise.
41478         * modules/frexp-tests (Files): Likewise.
41479         * modules/frexpl-nolibm-tests (Files): Likewise.
41480         * modules/frexpl-tests (Files): Likewise.
41481         * modules/fseek-tests (Files): Likewise.
41482         * modules/fseeko-tests (Files): Likewise.
41483         * modules/fsync-tests (Files): Likewise.
41484         * modules/ftell-tests (Files): Likewise.
41485         * modules/ftello-tests (Files): Likewise.
41486         * modules/futimens-tests (Files): Likewise.
41487         * modules/getaddrinfo-tests (Files): Likewise.
41488         * modules/getcwd-tests (Files): Likewise.
41489         * modules/getdelim-tests (Files): Likewise.
41490         * modules/getdtablesize-tests (Files): Likewise.
41491         * modules/getgroups-tests (Files): Likewise.
41492         * modules/gethostname-tests (Files): Likewise.
41493         * modules/getline-tests (Files): Likewise.
41494         * modules/getopt-posix-tests (Files): Likewise.
41495         * modules/gettimeofday-tests (Files): Likewise.
41496         * modules/glob-tests (Files): Likewise.
41497         * modules/iconv-tests (Files): Likewise.
41498         * modules/inet_ntop-tests (Files): Likewise.
41499         * modules/inet_pton-tests (Files): Likewise.
41500         * modules/isblank-tests (Files): Likewise.
41501         * modules/lchown-tests (Files): Likewise.
41502         * modules/ldexpl-tests (Files): Likewise.
41503         * modules/link-tests (Files): Likewise.
41504         * modules/linkat-tests (Files): Likewise.
41505         * modules/lseek-tests (Files): Likewise.
41506         * modules/lstat-tests (Files): Likewise.
41507         * modules/mbrtowc-tests (Files): Likewise.
41508         * modules/mbsinit-tests (Files): Likewise.
41509         * modules/mbsnrtowcs-tests (Files): Likewise.
41510         * modules/mbsrtowcs-tests (Files): Likewise.
41511         * modules/memchr-tests (Files): Likewise.
41512         * modules/memcmp-tests (Files): Likewise.
41513         * modules/memmem-tests (Files): Likewise.
41514         * modules/memrchr-tests (Files): Likewise.
41515         * modules/mkdir-tests (Files): Likewise.
41516         * modules/mkfifo-tests (Files): Likewise.
41517         * modules/mkfifoat-tests (Files): Likewise.
41518         * modules/mknod-tests (Files): Likewise.
41519         * modules/nanosleep-tests (Files): Likewise.
41520         * modules/nl_langinfo-tests (Files): Likewise.
41521         * modules/obstack-printf-tests (Files): Likewise.
41522         * modules/open-tests (Files): Likewise.
41523         * modules/openat-tests (Files): Likewise.
41524         * modules/perror-tests (Files): Likewise.
41525         * modules/pipe2-tests (Files): Likewise.
41526         * modules/poll-tests (Files): Likewise.
41527         * modules/popen-tests (Files): Likewise.
41528         * modules/posix_spawn-tests (Files): Likewise.
41529         * modules/posix_spawnp-tests (Files): Likewise.
41530         * modules/pread-tests (Files): Likewise.
41531         * modules/printf-posix-tests (Files): Likewise.
41532         * modules/pty-tests (Files): Likewise.
41533         * modules/random_r-tests (Files): Likewise.
41534         * modules/rawmemchr-tests (Files): Likewise.
41535         * modules/readlink-tests (Files): Likewise.
41536         * modules/remove-tests (Files): Likewise.
41537         * modules/rename-tests (Files): Likewise.
41538         * modules/renameat-tests (Files): Likewise.
41539         * modules/rmdir-tests (Files): Likewise.
41540         * modules/round-tests (Files): Likewise.
41541         * modules/roundf-tests (Files): Likewise.
41542         * modules/roundl-tests (Files): Likewise.
41543         * modules/select-tests (Files): Likewise.
41544         * modules/setenv-tests (Files): Likewise.
41545         * modules/sigaction-tests (Files): Likewise.
41546         * modules/sleep-tests (Files): Likewise.
41547         * modules/snprintf-posix-tests (Files): Likewise.
41548         * modules/snprintf-tests (Files): Likewise.
41549         * modules/sprintf-posix-tests (Files): Likewise.
41550         * modules/stat-tests (Files): Likewise.
41551         * modules/strcasestr-tests (Files): Likewise.
41552         * modules/strchrnul-tests (Files): Likewise.
41553         * modules/strerror-tests (Files): Likewise.
41554         * modules/strsignal-tests (Files): Likewise.
41555         * modules/strstr-tests (Files): Likewise.
41556         * modules/strtod-tests (Files): Likewise.
41557         * modules/strverscmp-tests (Files): Likewise.
41558         * modules/symlink-tests (Files): Likewise.
41559         * modules/symlinkat-tests (Files): Likewise.
41560         * modules/times-tests (Files): Likewise.
41561         * modules/trunc-tests (Files): Likewise.
41562         * modules/truncf-tests (Files): Likewise.
41563         * modules/truncl-tests (Files): Likewise.
41564         * modules/tsearch-tests (Files): Likewise.
41565         * modules/uname-tests (Files): Likewise.
41566         * modules/unlink-tests (Files): Likewise.
41567         * modules/unsetenv-tests (Files): Likewise.
41568         * modules/usleep-tests (Files): Likewise.
41569         * modules/utimensat-tests (Files): Likewise.
41570         * modules/vasprintf-tests (Files): Likewise.
41571         * modules/vdprintf-posix-tests (Files): Likewise.
41572         * modules/vfprintf-posix-tests (Files): Likewise.
41573         * modules/vprintf-posix-tests (Files): Likewise.
41574         * modules/vsnprintf-posix-tests (Files): Likewise.
41575         * modules/vsnprintf-tests (Files): Likewise.
41576         * modules/vsprintf-posix-tests (Files): Likewise.
41577         * modules/wcrtomb-tests (Files): Likewise.
41578         * modules/wcsnrtombs-tests (Files): Likewise.
41579         * modules/wcsrtombs-tests (Files): Likewise.
41580         * modules/wcwidth-tests (Files): Likewise.
41581         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
41582         * tests/test-isinf.c (isinf): Likewise.
41583         * tests/test-isnan.c (isnan): Likewise.
41584         * tests/test-signbit.c (signbit): Likewise.
41585         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
41586         declaration, either as macro or with correct signature.
41587         (select): Ensure function under test is declared with correct
41588         signature in correct header.
41589         * tests/test-atexit.c (atexit): Likewise.
41590         * tests/test-btowc.c (btowc): Likewise.
41591         * tests/test-canonicalize-lgpl.c (realpath)
41592         (canonicalize_file_name): Likewise.
41593         * tests/test-ceilf1.c (ceilf): Likewise.
41594         * tests/test-ceill.c (ceill): Likewise.
41595         * tests/test-chown.c (chown): Likewise.
41596         * tests/test-dprintf-posix.c (dprintf): Likewise.
41597         * tests/test-dup2.c (dup2): Likewise.
41598         * tests/test-dup3.c (dup3): Likewise.
41599         * tests/test-duplocale.c (duplocale): Likewise.
41600         * tests/test-fchdir.c (fchdir): Likewise.
41601         * tests/test-fchownat.c (fchownat): Likewise.
41602         * tests/test-fcntl.c (fcntl): Likewise.
41603         * tests/test-fdopendir.c (fdopendir): Likewise.
41604         * tests/test-fflush.c (fflush): Likewise.
41605         * tests/test-flock.c (flock): Likewise.
41606         * tests/test-floorf1.c (floorf): Likewise.
41607         * tests/test-floorl.c (floorl): Likewise.
41608         * tests/test-fnmatch.c (fnmatch): Likewise.
41609         * tests/test-fopen.c (fopen): Likewise.
41610         * tests/test-fprintf-posix.c (fprintf): Likewise.
41611         * tests/test-freopen.c (freopen): Likewise.
41612         * tests/test-frexp.c (frexp): Likewise.
41613         * tests/test-frexpl.c (frexpl): Likewise.
41614         * tests/test-fseek.c (fseek): Likewise.
41615         * tests/test-fseeko.c (fseeko): Likewise.
41616         * tests/test-fstatat.c (fstatat): Likewise.
41617         * tests/test-fsync.c (fsync): Likewise.
41618         * tests/test-ftell.c (ftell): Likewise.
41619         * tests/test-ftello.c (ftello): Likewise.
41620         * tests/test-futimens.c (futimens): Likewise.
41621         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
41622         (gai_strerror): Likewise.
41623         * tests/test-getcwd.c (getcwd): Likewise.
41624         * tests/test-getdelim.c (getdelim): Likewise.
41625         * tests/test-getdtablesize.c (getdtablesize): Likewise.
41626         * tests/test-getgroups.c (getgroups): Likewise.
41627         * tests/test-gethostname.c (gethostname): Likewise.
41628         * tests/test-getline.c (getline): Likewise.
41629         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
41630         Likewise.
41631         * tests/test-gettimeofday.c (gettimeofday): Likewise.
41632         * tests/test-glob.c (glob, globfree): Likewise.
41633         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
41634         * tests/test-inet_ntop.c (inet_ntop): Likewise.
41635         * tests/test-inet_pton.c (inet_pton): Likewise.
41636         * tests/test-isblank.c (isblank): Likewise.
41637         * tests/test-lchown.c (lchown): Likewise.
41638         * tests/test-ldexpl.c (ldexpl): Likewise.
41639         * tests/test-link.c (link): Likewise.
41640         * tests/test-linkat.c (linkat): Likewise.
41641         * tests/test-lseek.c (lseek): Likewise.
41642         * tests/test-lstat.c (lstat): Likewise.
41643         * tests/test-mbrtowc.c (mbrtowc): Likewise.
41644         * tests/test-mbsinit.c (mbsinit): Likewise.
41645         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
41646         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
41647         * tests/test-memchr.c (memchr): Likewise.
41648         * tests/test-memcmp.c (memcmp): Likewise.
41649         * tests/test-memmem.c (memmem): Likewise.
41650         * tests/test-memrchr.c (memrchr): Likewise.
41651         * tests/test-mkdir.c (mkdir): Likewise.
41652         * tests/test-mkdirat.c (mkdirat): Likewise.
41653         * tests/test-mkfifo.c (mkfifo): Likewise.
41654         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
41655         * tests/test-mknod.c (mknod): Likewise.
41656         * tests/test-nanosleep.c (nanosleep): Likewise.
41657         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
41658         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
41659         Likewise.
41660         * tests/test-open.c (open): Likewise.
41661         * tests/test-openat.c (openat): Likewise.
41662         * tests/test-perror.c (perror): Likewise.
41663         * tests/test-pipe2.c (pipe2): Likewise.
41664         * tests/test-poll.c (poll): Likewise.
41665         * tests/test-popen.c (popen, pclose): Likewise.
41666         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
41667         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
41668         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
41669         (posix_spawn_file_actions_destroy)
41670         (posix_spawn_file_actions_addclose)
41671         (posix_spawn_file_actions_addopen)
41672         (posix_spawn_file_actions_adddup2): Likewise.
41673         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
41674         * tests/test-pread.c (pread): Likewise.
41675         * tests/test-printf-posix.c (printf): Likewise.
41676         * tests/test-pty.c (openpty, forkpty): Likewise.
41677         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
41678         (random_r): Likewise.
41679         * tests/test-rawmemchr.c (rawmemchr): Likewise.
41680         * tests/test-readlink.c (readlink): Likewise.
41681         * tests/test-remove.c (remove): Likewise.
41682         * tests/test-rename.c (rename): Likewise.
41683         * tests/test-renameat.c (renameat): Likewise.
41684         * tests/test-rmdir.c (rmdir): Likewise.
41685         * tests/test-round1.c (round): Likewise.
41686         * tests/test-roundf1.c (roundf): Likewise.
41687         * tests/test-roundl.c (roundl): Likewise.
41688         * tests/test-setenv.c (setenv): Likewise.
41689         * tests/test-sigaction.c (sigaction): Likewise.
41690         * tests/test-sleep.c (sleep): Likewise.
41691         * tests/test-snprintf.c (snprintf): Likewise.
41692         * tests/test-sprintf-posix.c (sprintf): Likewise.
41693         * tests/test-stat.c (stat): Likewise.
41694         * tests/test-stpncpy.c (stpncpy): Likewise.
41695         * tests/test-strcasestr.c (strcasestr): Likewise.
41696         * tests/test-strchrnul.c (strchrnul): Likewise.
41697         * tests/test-strerror.c (strerror): Likewise.
41698         * tests/test-strsignal.c (strsignal): Likewise.
41699         * tests/test-strstr.c (strstr): Likewise.
41700         * tests/test-strtod.c (strtod): Likewise.
41701         * tests/test-strverscmp.c (strverscmp): Likewise.
41702         * tests/test-symlink.c (symlink): Likewise.
41703         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
41704         * tests/test-times.c (times): Likewise.
41705         * tests/test-trunc1.c (trunc): Likewise.
41706         * tests/test-truncf1.c (truncf): Likewise.
41707         * tests/test-truncl.c (truncl): Likewise.
41708         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
41709         Likewise.
41710         * tests/test-uname.c (uname): Likewise.
41711         * tests/test-unlink.c (unlink): Likewise.
41712         * tests/test-unlinkat.c (unlinkat): Likewise.
41713         * tests/test-unsetenv.c (unsetenv): Likewise.
41714         * tests/test-usleep.c (usleep): Likewise.
41715         * tests/test-utimensat.c (utimensat): Likewise.
41716         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
41717         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
41718         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
41719         * tests/test-vprintf-posix.c (vprintf): Likewise.
41720         * tests/test-vsnprintf.c (vsnprintf): Likewise.
41721         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
41722         * tests/test-wcrtomb.c (wcrtomb): Likewise.
41723         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
41724         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
41725         * tests/test-wcwidth.c (wcwidth): Likewise.
41726
41727         build: pull in conditional headers during GNULIB_POSIXCHECK
41728         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
41729         definitions from any conditionally-included headers.
41730         * lib/stdlib.in.h (includes): Likewise.
41731         * lib/unistd.in.h (includes): Likewise.
41732
41733 2009-12-24  Bruno Haible  <bruno@clisp.org>
41734
41735         * tests/test-argv-iter.c: Include header file being tested immediately
41736         after config.h.
41737         * tests/test-base64.c: Likewise.
41738         * tests/test-flock.c: Likewise.
41739         * tests/test-fsync.c: Likewise.
41740         * tests/test-getdate.c: Likewise.
41741         * tests/test-getndelim2.c: Likewise.
41742         * tests/test-isfinite.c: Likewise.
41743         * tests/test-isinf.c: Likewise.
41744         * tests/test-strerror.c: Likewise.
41745         * tests/test-strsignal.c: Likewise.
41746
41747 2009-12-23  Eric Blake  <ebb9@byu.net>
41748
41749         unistd: work around cygwin bug
41750         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
41751         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
41752         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41753
41754 2009-12-23  Bruno Haible  <bruno@clisp.org>
41755
41756         localename: More tests.
41757         * tests/test-localename.c (SIZEOF): New macro.
41758         (categories): New variable.
41759         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
41760         test_locale_name_default): Add test w.r.t. thread locale.
41761         (test_locale_name_thread): New function.
41762         (main): Invoke it.
41763
41764         localename: Make aware of thread locale.
41765         * lib/localename.h (gl_locale_name_thread): New declaration.
41766         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
41767         behaviour with respect to thread locale.
41768         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
41769         <langinfo.h>, glthread/lock.h.
41770         (SIZE_BITS): New macro.
41771         (string_hash): New function.
41772         (struct hash_node): New type.
41773         (HASH_TABLE_SIZE): New macro.
41774         (struniq_hash_table, struniq_lock): New variables.
41775         (struniq): New function.
41776         (gl_locale_name_thread): New function.
41777         (gl_locale_name): Invoke it.
41778         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
41779         * modules/localename (Depends-on): Add lock.
41780         Reported by Mike Gran <spk121@yahoo.com>.
41781
41782 2009-12-23  Eric Blake  <ebb9@byu.net>
41783
41784         va-args: new module
41785         * modules/va-args: New file.
41786         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
41787         * MODULES.html.sh (Core language properties): Mention it.
41788
41789         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
41790         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
41791         named alias for __attribute__((__unused__)).
41792         * lib/chown.c: Update client.
41793         * lib/fchmodat.c: Likewise.
41794         * lib/fts.c: Likewise.
41795         * lib/getdate.y: Likewise.
41796         * lib/getgroups.c: Likewise.
41797         * lib/getopt.c: Likewise.
41798         * lib/getugroups.c: Likewise.
41799         * lib/mkdir.c: Likewise.
41800         * lib/mkfifo.c: Likewise.
41801         * lib/mkfifoat.c: Likewise.
41802         * lib/mknod.c: Likewise.
41803         * lib/mknodat.c: Likewise.
41804         * lib/readlink.c: Likewise.
41805         * lib/se-context.in.h: Likewise.
41806         * lib/se-selinux.in.h: Likewise.
41807         * lib/sockets.c: Likewise.
41808         * lib/symlink.c: Likewise.
41809         * lib/symlinkat.c: Likewise.
41810         * lib/unicodeio.c: Likewise.
41811         * lib/unistr.h: Likewise.
41812         * tests/test-areadlink.c: Likewise.
41813         * tests/test-areadlinkat.c: Likewise.
41814         * tests/test-filenamecat.c: Likewise.
41815         * tests/test-fseeko.c: Likewise.
41816         * tests/test-ftello.c: Likewise.
41817         * tests/test-getdate.c: Likewise.
41818         * tests/test-getgroups.c: Likewise.
41819         * tests/test-gethostname.c: Likewise.
41820         * tests/test-quotearg.c: Likewise.
41821         * tests/test-version-etc.c: Likewise.
41822         * tests/test-xalloc-die.c: Likewise.
41823         * tests/test-xfprintf-posix.c: Likewise.
41824         * tests/test-xprintf-posix.c: Likewise.
41825         * tests/test-xvasprintf.c: Likewise.
41826
41827         tests: avoid compiler warnings
41828         * tests/test-fcntl.c (main): Delete unused parameters.
41829         * tests/test-freopen-safer.c (main): Likewise.
41830         * tests/test-xalloc-die.c (main): Mark unused parameters.
41831         * tests/test-fseeko.c (main): Likewise.
41832         * tests/test-ftello.c (main): Likewise.
41833         * tests/test-nanosleep.c (main): Avoid declaration warning.
41834         * tests/test-sleep.c (main): Likewise.
41835         * tests/test-unsetenv.c (main): Silence warning about string
41836         literal.
41837         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
41838
41839 2009-12-23  Bruno Haible  <bruno@clisp.org>
41840
41841         * tests/test-localename.c (test_locale_name): New function, extracted
41842         from main. Also test mixed situations.
41843         (test_locale_name_posix, test_locale_name_environ,
41844         test_locale_name_default): New functions.
41845         (main): Invoke them all.
41846         * modules/localename-tests (configure.ac): Test for newlocale.
41847
41848 2009-12-23  Bruno Haible  <bruno@clisp.org>
41849
41850         unistd: Ensure getcwd gets declared before being overridden.
41851         * lib/unistd.in.h: Conditionally include <io.h>.
41852
41853 2009-12-22  Bruno Haible  <bruno@clisp.org>
41854
41855         wchar: Diagnose broken combination of glibc and gcc versions and flags.
41856         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
41857         (gl_WCHAR_H): Invoke it.
41858         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
41859         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
41860         Reported by Karl Berry <karl@freefriends.org>.
41861
41862 2009-12-22  Eric Blake  <ebb9@byu.net>
41863
41864         math, unistd: avoid redundant includes
41865         * lib/math.in.h (isnan): No need to re-include <math.h>.
41866         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
41867
41868         getsubopt: work around cygwin bug
41869         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
41870         avoid conflicting with system getsubopt.
41871         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
41872         bug.
41873
41874         getopt: synchronize from glibc
41875         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
41876         parameter order.  Adjust all callers.
41877         (_getopt_internal_r, main): Adjust quoting in error messages.
41878         Drop considerations for outdated POSIX 1003.2 error message.
41879         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
41880         callers.
41881         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
41882
41883         test-getopt: test stderr behavior
41884         * modules/getopt-posix-tests (Depends-on): Add dup2.
41885         * tests/test-getopt.c (ASSERT): Avoid stderr.
41886         (main): Move stderr to a temporary file.
41887         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
41888         Instead, add parameter to inform caller if output occurred.
41889         (test_getopt): Adjust all existing tests to expect silence, and
41890         add new tests of leading ":".
41891         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41892         glibc shortcomings with leading "-:" or "+:" in optstring.
41893         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41894         Likewise.
41895         * doc/posix-functions/getopt.texi (getopt): Likewise.
41896
41897         test-getopt: enhance test
41898         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
41899         supports optind=0.
41900         * tests/test-getopt.c (OPTIND_MIN): Move...
41901         * tests/test-getopt.h (OPTIND_MIN): ...here.
41902         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
41903         Require that optind=0 works, since modern BSD supports it in
41904         addition to optreset, and since coreutils expects it.
41905         (test_getopt_long_only): New test.
41906         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41907         glibc shortcomings with 'W;', and enforcement of optind=0.
41908         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41909         Likewise.
41910
41911 2009-12-21  Bruno Haible  <bruno@clisp.org>
41912
41913         localename: Improvements for MacOS X and Cygwin.
41914         * lib/localename.h (gl_locale_name_environ): New declaration.
41915         * lib/localename.c (gl_locale_name_environ): New function, extracted from
41916         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
41917         (gl_locale_name_posix): Invoke it.
41918         (gl_locale_name_default): Add comments. Use Windows native API also on
41919         Cygwin.
41920
41921 2009-12-21  Bruno Haible  <bruno@clisp.org>
41922
41923         Update list of Win32 locale ids.
41924         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
41925         (LANG_SAMI): Renamed from LANG_SAAMI.
41926         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
41927         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
41928         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
41929         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
41930         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
41931         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
41932         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
41933         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
41934         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
41935         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
41936         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
41937         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
41938         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
41939         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
41940         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
41941         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
41942         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
41943         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
41944         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
41945         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
41946         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
41947         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
41948         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
41949         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
41950         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
41951         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
41952         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
41953         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
41954         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
41955         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
41956         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
41957         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
41958         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
41959         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
41960         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
41961         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
41962         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
41963         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
41964         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
41965         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
41966         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
41967         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
41968         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
41969         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
41970         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
41971         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
41972         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
41973         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
41974         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
41975         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
41976         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
41977         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
41978         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
41979         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
41980         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
41981         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
41982         Add more languages and countries for Sami, Sorbian. Add more countries
41983         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
41984         for Pashto. Change country for Syriac, Tswana.
41985
41986 2009-12-21  Eric Blake  <ebb9@byu.net>
41987
41988         test-utimens: avoid spurious failure
41989         * tests/test-chown.h (nap): Factor...
41990         * tests/nap.h: ...into new file.
41991         * tests/test-lchown.h (nap): Avoid duplication.
41992         * tests/test-utimens-common.h (nap): Use shared implementation,
41993         necessary on file systems with 1-second resolution.
41994         * modules/chown-tests (Files): Include new file.
41995         * modules/fdutimensat-tests (Files): Likewise.
41996         * modules/futimens-tests (Files): Likewise.
41997         * modules/lchown-tests (Files): Likewise.
41998         * modules/openat-tests (Files): Likewise.
41999         * modules/utimens-tests (Files): Likewise.
42000         * modules/utimensat-tests (Files): Likewise.
42001
42002 2009-12-19  Eric Blake  <ebb9@byu.net>
42003
42004         futimens, utimensat: work around Linux bug
42005         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
42006         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42007         * lib/utimensat.c (rpl_utimensat): Work around it.
42008         * lib/futimens.c (rpl_futimens): Adjust comment.
42009
42010         utimens: work around Linux ctime bug
42011         * lib/utimens.c (detect_ctime_bug): New helper function.
42012         (update_timespec): Differentiate between workaround needed for
42013         this bug vs. what is needed for systems that lack utimensat.
42014         (fdutimens, lutimens): Work around bug.
42015
42016         utimens: check for ctime update
42017         * tests/test-utimens-common.h (check_ctime): Define.
42018         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
42019         * tests/test-futimens.h (test_futimens): Likewise.
42020         * tests/test-lutimens.h (test_lutimens): Likewise.
42021         * doc/posix-functions/futimens.texi (futimens): Document the bug.
42022         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42023
42024 2009-12-19  Bruno Haible  <bruno@clisp.org>
42025
42026         dprintf-posix: Check against memory leak fixed on 2009-12-15.
42027         * tests/test-dprintf-posix2.sh: New file.
42028         * tests/test-dprintf-posix2.c: New file.
42029         * modules/dprintf-posix-tests (Files): Add them.
42030         (configure.ac): Check for getrlimit and setrlimit.
42031         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42032
42033 2009-12-19  Bruno Haible  <bruno@clisp.org>
42034
42035         fprintf-posix: Check against memory leak fixed on 2009-12-15.
42036         * tests/test-fprintf-posix3.sh: New file.
42037         * tests/test-fprintf-posix3.c: New file.
42038         * modules/fprintf-posix-tests (Files): Add them.
42039         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42040
42041 2009-12-19  Eric Blake  <ebb9@byu.net>
42042
42043         dirfd: fix prototype
42044         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
42045         * lib/dirfd.c (dirfd): Likewise.
42046
42047         canonicalize: reduce memory usage
42048         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
42049         allocation to size.
42050         Reported by Solar Designer <solar@openwall.com>.
42051
42052 2009-12-19  Bruno Haible  <bruno@clisp.org>
42053
42054         New module attribute 'Applicability'.
42055         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
42056         * gnulib-tool: New option --extract-applicability.
42057         (func_usage): Document it.
42058         (sed_extract_prog): Recognize it.
42059         (func_get_applicability): New function.
42060         (func_import): Generalize handling of 'link-warning' module.
42061         * modules/link-warning (Applicability): New section.
42062         * modules/arg-nonnull (Applicability): New section.
42063         Repoted by Simon Josefsson <simon@josefsson.org>.
42064
42065 2009-12-19  Bruno Haible  <bruno@clisp.org>
42066
42067         fflush: tweak
42068         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
42069         * lib/fseeko.c (rpl_fseeko): Likewise.
42070
42071 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
42072
42073         * lib/gl_list.h: Fix typo in comment.
42074
42075 2009-12-16  Eric Blake  <ebb9@byu.net>
42076
42077         fcntl: use to simplify other modules
42078         * modules/cloexec (Depends-on): Add fcntl.
42079         * modules/fchdir (Depends-on): Likewise.
42080         * modules/fd-safer-flag (Depends-on): Likewise.
42081         * modules/unistd-safer (Depends-on): Likewise.
42082         * modules/dup3 (configure.ac): Set module indicator.
42083         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
42084         missing.
42085         * lib/fchdir.c (_gl_register_dup): Fix comment.
42086         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
42087         * lib/dup-safer.c (dup_safer): Likewise.
42088         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
42089         * lib/dup3.c (dup3): Likewise.
42090         * tests/test-fchdir.c (main): Enhance test.
42091         Fixes a dup_cloexec bug reported by Ondřej Vašík.
42092
42093         fcntl: port portions of fcntl to mingw
42094         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
42095         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
42096         replacement for mingw.
42097         * modules/fcntl (Description): Update.
42098         (Depends-on): Add dup2.
42099         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
42100         * modules/fcntl-h (Makefile.am): Substitute it.
42101         * lib/fcntl.in.h (fcntl): Update declaration.
42102         (F_DUPFD, F_GETFD): New macros, when needed.
42103         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42104         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
42105         * tests/test-fcntl.c (check_flags, main): Enhance test for items
42106         we now guarantee.
42107
42108         fcntl: work around cygwin bug in F_DUPFD
42109         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
42110         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
42111         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
42112         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
42113         * doc/posix-functions/fcntl.texi (fcntl): Document it.
42114
42115         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
42116         * modules/fcntl (Files): List new files.
42117         (configure.ac): Run a test.
42118         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
42119         * lib/fcntl.c (rpl_fcntl): Likewise.
42120         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
42121         (gl_FCNTL_H): Always replace fcntl.h.
42122         * modules/fcntl-h (Makefile.am): Substitute witnesses.
42123         * lib/fcntl.in.h (fcntl): Declare replacement.
42124         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
42125         needed, plus a witness.
42126         * doc/posix-functions/fcntl.texi (fcntl): Document this.
42127         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42128         * tests/test-fcntl.c: New file.
42129         * modules/fcntl-tests: Likewise.
42130
42131         binary-io: avoid potential compilation warning
42132         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
42133         directives.
42134
42135         fflush: avoid compilation error on NetBSD
42136         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
42137         between off_t and fpos_t, since the latter is sometimes a struct.
42138         * lib/fseeko.c (rpl_fseeko): Likewise.
42139         Reported by Alexander Nasonov <alnsn@yandex.ru>.
42140
42141 2009-12-15  Eric Blake  <ebb9@byu.net>
42142
42143         fcntl-h, stdio, sys_ioctl: fix declarations
42144         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
42145         function must not take arguments.
42146         * lib/sys_ioctl.in.h (ioctl): Likewise.
42147         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
42148         (open): Add a link warning.
42149
42150 2009-12-15  Jim Meyering  <meyering@redhat.com>
42151
42152         areadlink, areadlink-with-size: relax license to LGPLv2+
42153         * modules/areadlink (License): Relax to LGPLv2+.
42154         * modules/areadlink-with-size (License): Likewise.
42155
42156 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
42157             Bruno Haible  <bruno@clisp.org>
42158
42159         *printf: Fix memory leak.
42160         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
42161         * lib/vfprintf.c (vfprintf): Likewise.
42162         * lib/dprintf.c (dprintf): Likewise.
42163         * lib/vdprintf.c (vdprintf): Likewise.
42164
42165 2009-12-14  Eric Blake  <ebb9@byu.net>
42166
42167         accept4: adjust module dependencies
42168         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
42169
42170         utimens: one more try at avoiding compiler warning
42171         * lib/utimens.c (lutimens): Lower scope of result.
42172
42173 2009-12-13  Bruno Haible  <bruno@clisp.org>
42174
42175         Move the malloc checking from module 'list' to new module 'xlist'.
42176         * modules/xlist: New file.
42177         * lib/gl_xlist.h: New file.
42178         * lib/gl_xlist.c: New file.
42179         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
42180         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
42181         gl_list_add_last, gl_list_add_before, gl_list_add_after,
42182         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
42183         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
42184         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
42185         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
42186         gl_sortedlist_nx_add): New declarations.
42187         (struct gl_list_implementation): Rename and change methods accordingly.
42188         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
42189         (gl_list_nx_create): Renamed from gl_list_create.
42190         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42191         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42192         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42193         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42194         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42195         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42196         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42197         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42198         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
42199         gl_list_create_empty.
42200         (gl_list_nx_create): Renamed from gl_list_create.
42201         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42202         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42203         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42204         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42205         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42206         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42207         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42208         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42209         * lib/gl_array_list.c: Don't include xalloc.h.
42210         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
42211         NULL upon out-of-memory.
42212         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
42213         out-of-memory.
42214         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
42215         Change return type to 'int'.
42216         (gl_array_nx_set_at): Renamed from gl_array_set_at.
42217         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42218         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
42219         upon out-of-memory.
42220         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
42221         upon out-of-memory.
42222         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
42223         upon out-of-memory.
42224         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
42225         upon out-of-memory.
42226         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
42227         out-of-memory.
42228         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
42229         Update.
42230         (gl_array_list_implementation): Update.
42231         * lib/gl_carray_list.c: Don't include xalloc.h.
42232         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
42233         Return NULL upon out-of-memory.
42234         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
42235         out-of-memory.
42236         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
42237         Change return type to 'int'.
42238         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
42239         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42240         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
42241         upon out-of-memory.
42242         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
42243         upon out-of-memory.
42244         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
42245         out-of-memory.
42246         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
42247         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
42248         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
42249         Update.
42250         (gl_carray_list_implementation): Update.
42251         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
42252         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
42253         gl_linked_create_empty. Return NULL upon out-of-memory.
42254         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
42255         out-of-memory.
42256         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
42257         Change return type to 'int'. Return -1 upon out-of-memory.
42258         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
42259         out-of-memory.
42260         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
42261         upon out-of-memory.
42262         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
42263         upon out-of-memory.
42264         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
42265         NULL upon out-of-memory.
42266         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
42267         upon out-of-memory.
42268         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
42269         out-of-memory.
42270         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
42271         Update.
42272         * lib/gl_linked_list.c: Don't include xalloc.h.
42273         (gl_linked_list_implementation): Update.
42274         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
42275         (add_to_bucket): Change return type to 'int'.
42276         (gl_linkedhash_list_implementation): Update.
42277         * lib/gl_anytree_list1.h (free_subtree): New function.
42278         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
42279         gl_tree_create_empty. Return NULL upon out-of-memory.
42280         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
42281         Change return type to 'int'. Return -1 upon out-of-memory.
42282         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
42283         out-of-memory.
42284         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
42285         (gl_tree_remove_node): New function, moved here from
42286         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
42287         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
42288         Update.
42289         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
42290         malloc, not xmalloc. Return NULL upon out-of-memory.
42291         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42292         out-of-memory.
42293         (gl_tree_remove_node_from_tree): New function, extracted from
42294         gl_tree_remove_node.
42295         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42296         upon out-of-memory.
42297         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42298         out-of-memory.
42299         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42300         upon out-of-memory.
42301         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42302         upon out-of-memory.
42303         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42304         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
42305         not xmalloc. Return NULL upon out-of-memory.
42306         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42307         out-of-memory.
42308         (gl_tree_remove_node_from_tree): New function, extracted from
42309         gl_tree_remove_node.
42310         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42311         upon out-of-memory.
42312         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42313         out-of-memory.
42314         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42315         upon out-of-memory.
42316         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42317         upon out-of-memory.
42318         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42319         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
42320         gl_anytree_list1.h before gl_anyavltree_list2.h.
42321         (gl_avltree_list_implementation): Update.
42322         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
42323         gl_anytree_list1.h before gl_anyavltree_list2.h.
42324         (gl_rbtree_list_implementation): Update.
42325         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42326         Change return type to 'int'. Return -1 upon out-of-memory. Use
42327         __builtin_expect.
42328         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42329         (gl_avltreehash_list_implementation): Update.
42330         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42331         (gl_rbtreehash_list_implementation): Update.
42332         * modules/array-list (Depends-on): Remove xalloc.
42333         * modules/carray-list (Depends-on): Likewise.
42334         * modules/linked-list (Depends-on): Likewise.
42335         * modules/linkedhash-list (Depends-on): Likewise.
42336         * modules/avltree-list (Depends-on): Likewise.
42337         * modules/rbtree-list (Depends-on): Likewise.
42338         * modules/avltreehash-list (Depends-on): Likewise.
42339         * modules/rbtreehash-list (Depends-on): Likewise.
42340
42341         * modules/xsublist: New file.
42342         * lib/gl_xsublist.h: New file.
42343         * lib/gl_xsublist.c: New file.
42344         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42345         (gl_sublist_nx_create): New declaration.
42346         * lib/gl_sublist.c: Don't include xalloc.h.
42347         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42348         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42349         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42350         Change return type to 'int'. Return -1 upon out-of-memory.
42351         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42352         upon out-of-memory.
42353         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42354         NULL upon out-of-memory.
42355         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42356         upon out-of-memory.
42357         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42358         NULL upon out-of-memory.
42359         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42360         NULL upon out-of-memory.
42361         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42362         upon out-of-memory.
42363         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42364         (gl_sublist_list_implementation): Update.
42365         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42366         upon out-of-memory.
42367         * modules/sublist (Depends-on): Remove xalloc.
42368
42369         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42370         * tests/test-carray_list.c: Likewise.
42371         * tests/test-linked_list.c: Likewise.
42372         * tests/test-linkedhash_list.c: Likewise.
42373         * tests/test-avltree_list.c: Likewise.
42374         * tests/test-rbtree_list.c: Likewise.
42375         * tests/test-avltreehash_list.c: Likewise.
42376         * tests/test-rbtreehash_list.c: Likewise.
42377         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42378         * modules/carray-list-tests (Makefile.am): Likewise.
42379         * modules/linked-list-tests (Makefile.am): Likewise.
42380         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42381         * modules/avltree-list-tests (Makefile.am): Likewise.
42382         * modules/rbtree-list-tests (Makefile.am): Likewise.
42383         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42384         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42385
42386         * NEWS: Mention the changes.
42387
42388         * lib/clean-temp.c: Include gl_xlist.h.
42389         * modules/clean-temp (Depends-on): Add xlist.
42390
42391         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
42392         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
42393
42394         * tests/test-array_oset.c: Include gl_xlist.h.
42395         * modules/array-oset-tests (Depends-on): Add xlist.
42396
42397         Reported by José E. Marchesi <jemarch@gnu.org>.
42398
42399 2009-12-13  Bruno Haible  <bruno@clisp.org>
42400
42401         Move the malloc checking from module 'oset' to new module 'xoset'.
42402         * modules/xoset: New file.
42403         * lib/gl_xoset.h: New file.
42404         * lib/gl_xoset.c: New file.
42405         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42406         declarations.
42407         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42408         (struct gl_oset_implementation): Rename and change methods accordingly.
42409         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42410         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42411         'int'. Mark as __warn_unused_result__.
42412         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42413         gl_oset_create_empty.
42414         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42415         'int'.
42416         * lib/gl_array_oset.c: Don't include xalloc.h.
42417         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42418         malloc, not xmalloc.
42419         (grow): Change return type to 'int'. Don't call xalloc_die.
42420         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42421         to 'int'.
42422         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42423         'int'.
42424         (gl_array_oset_implementation): Update.
42425         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42426         gl_tree_create_empty.
42427         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42428         'int'.
42429         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42430         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42431         xmalloc.
42432         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42433         not xmalloc.
42434         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42435         xmalloc.
42436         (gl_avltree_oset_implementation): Update.
42437         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42438         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42439         xmalloc.
42440         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42441         not xmalloc.
42442         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42443         xmalloc.
42444         (gl_rbtree_oset_implementation): Update.
42445         * modules/array-oset (Depends-on): Remove xalloc.
42446         * modules/avltree-oset (Depends-on): Likewise.
42447         * modules/rbtree-oset (Depends-on): Likewise.
42448         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42449         * tests/test-avltree_oset.c: Likewise.
42450         * tests/test-rbtree_oset.c: Likewise.
42451         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42452         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42453         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42454         * NEWS: Mention the change.
42455
42456 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42457
42458         maint.mk: allow a project to override release-prep commands
42459         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42460         commands into a new rule.
42461         (release-prep): New rule.
42462         (release-prep-hook): New overridable variable.
42463
42464 2009-12-13  Bruno Haible  <bruno@clisp.org>
42465
42466         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42467
42468 2009-12-13  Jim Meyering  <meyering@redhat.com>
42469
42470         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42471         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42472
42473 2009-12-12  Bruno Haible  <bruno@clisp.org>
42474
42475         duplocale: Tweak.
42476         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
42477
42478 2009-12-12  Karl Berry  <karl@gnu.org>
42479
42480         * config/srclist.txt (strtoll.c): tab changes, no more sync.
42481
42482 2009-12-12  Bruno Haible  <bruno@clisp.org>
42483
42484         * m4/po.m4: Undo incorrect untabification.
42485
42486 2009-12-12  Bruno Haible  <bruno@clisp.org>
42487
42488         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
42489         * modules/c-strtod (Depends-on): Add locale.
42490         * modules/c-strtold (Depends-on): Likewise.
42491
42492 2009-12-12  Bruno Haible  <bruno@clisp.org>
42493
42494         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
42495
42496 2009-12-11  Eric Blake  <ebb9@byu.net>
42497
42498         setenv: relax requirement in light of POSIX ruling
42499         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
42500         not NULL.
42501         * tests/test-setenv.c (main): Relax test.
42502         * tests/test-unsetenv.c (main): Likewise.
42503         * doc/posix-functions/setenv.texi (setenv): Document this.
42504         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42505
42506 2009-12-11  Bruno Haible  <bruno@clisp.org>
42507
42508         New module 'fd-safer-flag'.
42509         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
42510         * lib/dup-safer.c (dup_safer_flag): Remove function.
42511         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
42512         * lib/fd-safer.c (fd_safer_flag): Remove function.
42513         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
42514         * modules/cloexec (configure.ac): Drop indicator macro.
42515         * modules/fd-safer-flag: New file.
42516         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
42517         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
42518         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
42519
42520 2009-12-11  Bruno Haible  <bruno@clisp.org>
42521
42522         Tests for module 'nl_langinfo'.
42523         * modules/nl_langinfo-tests: New file.
42524         * tests/test-nl_langinfo.sh: New file.
42525         * tests/test-nl_langinfo.c: New file.
42526
42527         New module 'nl_langinfo'.
42528         * lib/nl_langinfo.c: New file.
42529         * m4/nl_langinfo.m4: New file.
42530         * modules/nl_langinfo: New file.
42531         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
42532
42533 2009-12-11  Bruno Haible  <bruno@clisp.org>
42534
42535         Tests for module 'langinfo'.
42536         * modules/langinfo-tests: New file.
42537         * tests/test-langinfo.c: New file.
42538
42539         New module 'langinfo'.
42540         * lib/langinfo.in.h: New file.
42541         * m4/langinfo_h.m4: New file.
42542         * modules/langinfo: New file.
42543         * doc/posix-headers/langinfo.texi: Mention the new module.
42544
42545 2009-12-11  Bruno Haible  <bruno@clisp.org>
42546
42547         * lib/config.charset: Untabify.
42548
42549 2009-12-11  Bruno Haible  <bruno@clisp.org>
42550
42551         * modules/unistd-safer (configure.ac): Drop indicator macro.
42552
42553 2009-12-11  Bruno Haible  <bruno@clisp.org>
42554
42555         Move pipe2-safer code to its own file.
42556         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
42557         * lib/pipe-safer.c (pipe2_safer): Remove function.
42558         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
42559         (Makefile.am): Add it to lib_SOURCES.
42560
42561 2009-12-10  Bruno Haible  <bruno@clisp.org>
42562
42563         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
42564
42565 2009-12-10  Bruno Haible  <bruno@clisp.org>
42566
42567         Declare which arguments expect non-NULL values, for GCC and clang.
42568         * build-aux/arg-nonnull.h: New file.
42569         * modules/arg-nonnull: New file.
42570         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
42571         (inet_ntop, inet_pton): Use it.
42572         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
42573         (closedir, dirfd, opendir, scandir, alphasort): Use it.
42574         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
42575         (open, openat): Use it.
42576         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
42577         (fnmatch): Use it.
42578         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
42579         (getopt, getopt_long, getopt_long_only): Use it.
42580         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
42581         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
42582         Use it.
42583         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
42584         (iconv_open): Use it.
42585         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
42586         (strtoimax, strtoumax): Use it.
42587         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
42588         (duplocale): Use it.
42589         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
42590         (frexp, frexpl): Use it.
42591         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
42592         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
42593         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
42594         (tsearch, tfind, tdelete, twalk): Use it.
42595         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
42596         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
42597         sigpending): Use it.
42598         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
42599         (posix_spawn, posix_spawnp, posix_spawnattr_init,
42600         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
42601         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
42602         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
42603         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
42604         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
42605         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
42606         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
42607         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
42608         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
42609         Use it.
42610         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
42611         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
42612         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
42613         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
42614         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
42615         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
42616         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
42617         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
42618         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
42619         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
42620         strtoull, unsetenv): Use it.
42621         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
42622         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
42623         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
42624         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
42625         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
42626         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
42627         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
42628         (strcasecmp, strncasecmp): Use it.
42629         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
42630         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
42631         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
42632         rpl_setsockopt): Use it.
42633         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
42634         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
42635         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
42636         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
42637         (gettimeofday): Use it.
42638         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
42639         (times): Use it.
42640         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
42641         (uname): Use it.
42642         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
42643         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
42644         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
42645         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
42646         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
42647         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
42648         unlinkat, write): Use it.
42649         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
42650         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
42651         * lib/argv-iter.h: Include arg-nonnull.h.
42652         (_ATTRIBUTE_NONNULL_): Remove macro.
42653         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
42654         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
42655         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
42656         optimization.
42657         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
42658         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
42659         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
42660         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
42661         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
42662         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
42663         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
42664         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
42665         * modules/arpa_inet (Depends-on): Add arg-nonnull.
42666         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
42667         * modules/dirent (Depends-on): Add arg-nonnull.
42668         (Makefile.am): Insert arg-nonnull.h into dirent.h.
42669         * modules/fcntl-h (Depends-on): Add arg-nonnull.
42670         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
42671         * modules/fnmatch (Depends-on): Add arg-nonnull.
42672         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
42673         * modules/getopt-posix (Depends-on): Add arg-nonnull.
42674         (Makefile.am): Insert arg-nonnull.h into getopt.h.
42675         * modules/glob (Depends-on): Add arg-nonnull.
42676         (Makefile.am): Insert arg-nonnull.h into glob.h.
42677         * modules/iconv_open (Depends-on): Add arg-nonnull.
42678         (Makefile.am): Insert arg-nonnull.h into iconv.h.
42679         * modules/inttypes (Depends-on): Add arg-nonnull.
42680         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
42681         * modules/locale (Depends-on): Add arg-nonnull.
42682         (Makefile.am): Insert arg-nonnull.h into locale.h.
42683         * modules/math (Depends-on): Add arg-nonnull.
42684         (Makefile.am): Insert arg-nonnull.h into math.h.
42685         * modules/netdb (Depends-on): Add arg-nonnull.
42686         (Makefile.am): Insert arg-nonnull.h into netdb.h.
42687         * modules/search (Depends-on): Add arg-nonnull.
42688         (Makefile.am): Insert arg-nonnull.h into search.h.
42689         * modules/signal (Depends-on): Add arg-nonnull.
42690         (Makefile.am): Insert arg-nonnull.h into signal.h.
42691         * modules/spawn (Depends-on): Add arg-nonnull.
42692         (Makefile.am): Insert arg-nonnull.h into spawn.h.
42693         * modules/stdio (Depends-on): Add arg-nonnull.
42694         (Makefile.am): Insert arg-nonnull.h into stdio.h.
42695         * modules/stdlib (Depends-on): Add arg-nonnull.
42696         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
42697         * modules/string (Depends-on): Add arg-nonnull.
42698         (Makefile.am): Insert arg-nonnull.h into string.h.
42699         * modules/strings (Depends-on): Add arg-nonnull.
42700         (Makefile.am): Insert arg-nonnull.h into strings.h.
42701         * modules/sys_socket (Depends-on): Add arg-nonnull.
42702         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
42703         * modules/sys_stat (Depends-on): Add arg-nonnull.
42704         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
42705         * modules/sys_time (Depends-on): Add arg-nonnull.
42706         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
42707         * modules/sys_times (Depends-on): Add arg-nonnull.
42708         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
42709         * modules/sys_utsname (Depends-on): Add arg-nonnull.
42710         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
42711         * modules/time (Depends-on): Add arg-nonnull.
42712         (Makefile.am): Insert arg-nonnull.h into time.h.
42713         * modules/unistd (Depends-on): Add arg-nonnull.
42714         (Makefile.am): Insert arg-nonnull.h into unistd.h.
42715         * modules/wchar (Depends-on): Add arg-nonnull.
42716         (Makefile.am): Insert arg-nonnull.h into wchar.h.
42717         * modules/argv-iter (Depends-on): Add arg-nonnull.
42718         * tests/test-canonicalize.c (null_ptr): New function.
42719         (main): Use it.
42720         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
42721         (main): Use it.
42722         * tests/test-memmem.c (null_ptr): New function.
42723         (main): Use it.
42724         Reported by Jim Meyering.
42725
42726 2009-12-10  Bruno Haible  <bruno@clisp.org>
42727
42728         Use spaces for indentation, not tabs.
42729         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
42730         * m4/*.m4: Untabify.
42731         * build-aux/*.h: Untabify.
42732         * tests/**/*.[hc]: Untabify.
42733         * README: New section "Indent with spaces, not TABs", based on
42734         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
42735         * NEWS: Mention the change.
42736
42737 2009-12-10  Bruno Haible  <bruno@clisp.org>
42738
42739         pty test: Fix link error.
42740         * modules/pty-tests (Makefile.am): Add the default LDADD value to
42741         test_pty_LDADD.
42742
42743 2009-12-07  Simon Josefsson  <simon@josefsson.org>
42744
42745         * modules/pty: New file.
42746         * modules/pty-tests: New file.
42747         * m4/pty.m4: New file.
42748         * tests/test-pty.c: New file.
42749         * doc/glibc-headers/pty.texi: Modified.
42750         * doc/glibc-functions/forkpty.texi: Modified.
42751         * doc/glibc-functions/openpty.texi: Modified.
42752
42753 2009-12-10  Bruno Haible  <bruno@clisp.org>
42754
42755         Avoid syntax error in C++ mode.
42756         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
42757
42758 2009-12-10  Bruno Haible  <bruno@clisp.org>
42759
42760         Use sed with option -e.
42761         * gnulib-tool (func_version, func_emit_copyright_notice,
42762         func_emit_initmacro_end, func_import, func_create_testdir): Pass
42763         option -e to sed.
42764         * modules/link-warning (Makefile.am): Likewise.
42765
42766 2009-12-10  Jim Meyering  <meyering@redhat.com>
42767
42768         mgetgroups: do not write bytes beyond end of malloc'd buffer
42769         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
42770         username, we call getgroups with a one-element-shorter buffer,
42771         but still told it the length was original, max_n_groups.
42772
42773 2009-12-09  Eric Blake  <ebb9@byu.net>
42774
42775         cloexec: relax license
42776         * modules/cloexec (Maintainer): Add myself.
42777         (License): Use LGPL, not GPL.
42778
42779         link-warning: optimize generation
42780         * modules/link-warning (Makefile.am): Reduce process usage.
42781
42782 2009-12-09  Bruno Haible  <bruno@clisp.org>
42783
42784         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
42785         workaround was added on 2009-11-17.
42786
42787 2009-12-09  Jim Meyering  <meyering@redhat.com>
42788             Bruno Haible  <bruno@clisp.org>
42789
42790         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
42791         * modules/link-warning (Makefile.am): Make the comment-removing sed
42792         command more robust in the face of bootstrap-prepended comment lines.
42793
42794 2009-12-09  Bruno Haible  <bruno@clisp.org>
42795
42796         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
42797         most one group.
42798
42799 2009-12-09  Simon Josefsson <simon@josefsson.org>
42800             Bruno Haible  <bruno@clisp.org>
42801
42802         * build-aux/link-warning.h: Add copyright notice.
42803         * modules/link-warning (Makefile.am): Generate link-warning.h from
42804         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
42805         * NEWS: Mention change in link-warning module.
42806         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
42807         * modules/dirent (Makefile.am): Add dependency to dirent.h.
42808         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
42809         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
42810         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
42811         * modules/math (Makefile.am): Add dependency to math.h.
42812         * modules/search (Makefile.am): Add dependency to search.h.
42813         * modules/signal (Makefile.am): Add dependency to signal.h.
42814         * modules/spawn (Makefile.am): Add dependency to spawn.h.
42815         * modules/stdio (Makefile.am): Add dependency to stdio.h.
42816         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
42817         * modules/string (Makefile.am): Add dependency to string.h.
42818         * modules/strings (Makefile.am): Add dependency to strings.h.
42819         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
42820         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
42821         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
42822         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
42823         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
42824         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
42825         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
42826         * modules/unistd (Makefile.am): Add dependency to unistd.h.
42827         * modules/wchar (Makefile.am): Add dependency to wchar.h.
42828
42829 2009-12-09  Bruno Haible  <bruno@clisp.org>
42830
42831         fchdir: Optimize away rpl_fstat when possible.
42832         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
42833         REPLACE_OPEN_DIRECTORY.
42834         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
42835
42836 2009-12-09  Bruno Haible  <bruno@clisp.org>
42837
42838         * lib/fchdir.c: Update comment.
42839
42840 2009-12-09  Bruno Haible  <bruno@clisp.org>
42841
42842         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
42843
42844 2009-12-08  Eric Blake  <ebb9@byu.net>
42845
42846         fchdir: avoid memory leak on re-registration.
42847         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
42848
42849 2009-12-08  Jim Meyering  <meyering@redhat.com>
42850
42851         init.sh: avoid Solaris 10 /bin/sh portability problem
42852         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
42853         sourced script:
42854           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
42855           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
42856           bar
42857         tests/init.sh relied on that, accepting a --set-path=DIR argument,
42858         and two tests used that idiom.
42859         * tests/init.sh: Update suggested usage comments.
42860         (path_prepend_): New function, to be used in place
42861         of the --src-path=DIR option.
42862         (setup_): Move PATH-prepending code into path_prepend_.
42863         * tests/test-pread.sh: Adapt to new usage.
42864         * tests/test-xalloc-die.sh: Likewise.
42865
42866 2009-12-08  Simon Josefsson  <simon@josefsson.org>
42867
42868         * doc/gnulib.texi (Glibc pty.h): Add.
42869         * doc/glibc-functions/forkpty.texi: Add.
42870         * doc/glibc-functions/openpty.texi: Add.
42871         Suggested by Bruno Haible.
42872
42873 2009-12-08  Eric Blake  <ebb9@byu.net>
42874
42875         fchdir: fix logic bugs
42876         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
42877         * tests/test-fchdir.c (main): Enhance test.
42878         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
42879         is in use.
42880
42881         dup2: fix logic bugs
42882         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
42883         REPLACE_DUP2 to decide when rpl_dup2 is needed.
42884         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
42885         exists.
42886         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
42887
42888 2009-12-07  Eric Blake  <ebb9@byu.net>
42889
42890         unlink: fix m4 detection
42891         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
42892
42893         unistd-safer: add unit test
42894         * modules/unistd-safer-tests: New file.
42895         * tests/test-dup-safer.c: Likewise.
42896         * tests/test-cloexec.c (setmode): Avoid compiler warning.
42897         * tests/test-dup2.c (setmode): Likewise.
42898         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
42899
42900         cloexec: preserve text vs. binary across dup_cloexec
42901         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
42902         mode.
42903         * modules/dup2-tests (Depends-on): Add binary-io.
42904         * modules/cloexec-tests (Depends-on): Likewise.
42905         * tests/test-dup2.c (setmode, is_mode): New helpers.
42906         (main): Add tests that translation mode is preserved.
42907         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
42908         Reported by Bruno Haible.
42909
42910         mgetgroups: reduce duplicate listings
42911         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
42912         resulting array.
42913         * tests/test-chown.h (test_chown): Simplify client.
42914         * tests/test-lchown.h (test_lchown): Likewise.
42915
42916 2009-12-06  Bruno Haible  <bruno@clisp.org>
42917
42918         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
42919         value.
42920
42921 2009-12-06  Bruno Haible  <bruno@clisp.org>
42922
42923         * lib/progname.c: Include stdio.h, stdlib.h.
42924         (set_program_name): Reject a NULL argument.
42925
42926 2009-12-05  Eric Blake  <ebb9@byu.net>
42927
42928         pipe2-safer: new module
42929         * modules/pipe2-safer: New file.
42930         * lib/unistd-safer.h (pipe2_safer): New prototype.
42931         * lib/unistd--.h (pipe2): New wrapper.
42932         * lib/pipe-safer.c (pipe2_safer): New function.
42933         * modules/pipe (Depends-on): Add pipe2-safer.
42934         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
42935
42936         stdlib-safer: preserve cloexec flag for mkostemp[s]
42937         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
42938         fd_safer_flag.
42939
42940         unistd-safer: allow preservation of cloexec status via flag
42941         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
42942         prototypes.
42943         * lib/dup-safer.c (dup_safer_flag): New function.
42944         * lib/fd-safer.c (fd_safer_flag): Likewise.
42945         * modules/cloexec (configure.ac): Set witness.
42946
42947         test-dup2: enhance test
42948         * modules/dup2-tests (Depends-on): Add cloexec.
42949         * tests/test-dup2.c (main): Enhance test.
42950
42951         cloexec: add dup_cloexec
42952         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
42953         header and comments.
42954         * lib/cloexec.c (set_cloexec_flag): Add comments.
42955         (dup_cloexec): New function, with mingw implementation borrowed
42956         from...
42957         * lib/w32spawn.h (dup_noinherit): ...here.
42958         * modules/execute (Depends-on): Add cloexec.
42959         * modules/pipe (Depends-on): Likewise.
42960         * modules/cloexec (Depends-on): Add dup2.
42961         * modules/cloexec-tests (Files): New file.
42962         * tests/test-cloexec.c: Likewise.
42963
42964         test-xalloc-die: fix test for mingw
42965         * modules/xalloc-die-tests (Files): Add tests/init.sh.
42966         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
42967         directory and .exe suffix off argv[0] output.
42968
42969         test-fseeko: fix test for mingw
42970         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
42971         than undefining fseek, so test will pass on mingw.
42972
42973 2009-12-05  Bruno Haible  <bruno@clisp.org>
42974
42975         * lib/progname.h (set_program_name): Clarify specification.
42976         * lib/progname.c (set_program_name): Likewise.
42977         Reported by Jim Meyering.
42978
42979 2009-12-05  Jim Meyering  <meyering@redhat.com>
42980
42981         maint.mk: backslash-escape parens in default regexp
42982         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
42983         backslash-escape the literal parentheses.
42984
42985         maint.mk: news-date-check: use grep -E
42986         * top/maint.mk (today): Define a Make variable, not a...
42987         (news-date-check): ...shell variable.
42988         (news-date-regexp): Use the Make variable.
42989         Use grep's -E option.  Change the failing diagnostic to mention
42990         the variable, $(news-date-regexp).
42991
42992 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
42993
42994         maintainer-makefile: allow customization of NEWS entry format
42995         * top/maint.mk (news-date-regexp): New overridable variable.
42996         (news-date-check): Use it.
42997
42998 2009-12-04  Eric Blake  <ebb9@byu.net>
42999
43000         mgetgroups: add xgetgroups, and avoid ENOSYS failures
43001         * lib/mgetgroups.h (xgetgroups): New prototype.
43002         * lib/mgetgroups.c (xgetgroups): New wrapper.
43003         (mgetgroups): Handle ENOSYS.
43004         * modules/mgetgroups (Depends-on): Add realloc.
43005         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
43006
43007         mgetgroups: avoid argument promotion issues with -1
43008         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
43009         for invalid gid_t.
43010         * tests/test-chown.h (getegid, test_chown): Likewise.
43011         * tests/test-lchown.h (getegid, test_lchown): Likewise.
43012
43013 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
43014
43015         exclude: Fix header file problems.
43016         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
43017
43018 2009-12-01  Jim Meyering  <meyering@redhat.com>
43019
43020         fts: fts_open: do not let an empty string cause immediate failure
43021         This is required in support of GNU rm, for which the command
43022         "rm A '' B" must process and remove both A and B, in spite of
43023         the empty string argument.
43024         * lib/fts.c (fts_open): Do not let the presence of an empty string
43025         cause fts_open to fail immediately.  Most fts-using tools must be
43026         able to process all arguments, in order, and can be expected to
43027         diagnose such arguments themselves.
43028
43029 2009-11-30  Eric Blake  <ebb9@byu.net>
43030
43031         utimens: fix compilation error
43032         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
43033         Declare variable at right scope.
43034
43035 2009-11-29  Jim Meyering  <meyering@redhat.com>
43036
43037         bootstrap: handle perl-5.11's changed --version output
43038         * build-aux/bootstrap (get_version): Handle perl separately,
43039         since perl-5.11's --version output is different.
43040
43041 2009-11-28  Jim Meyering  <meyering@redhat.com>
43042
43043         userspec: depend on the inttostr module, too
43044         * modules/userspec (Depends-on): Add inttostr.
43045
43046         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
43047         * lib/userspec.c (parse_with_separator): Do not accept a user ID
43048         number of MAXUID when it evaluates to (uid_t) -1.
43049         Likewise for group ID.  Reported by Matt McCutchen in
43050         <http://savannah.gnu.org/bugs/?28113>
43051
43052         userspec: reformat to use spaces, not TABs
43053         * lib/userspec.c: Expand TABs to spaces.
43054         Add Emacs' "indent-tabs-mode: nil" hint.
43055
43056 2009-11-27  Eric Blake  <ebb9@byu.net>
43057
43058         getopt-gnu: flush out another BSD bug
43059         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
43060         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
43061         flush out BSD bug.
43062         * tests/test-getopt.h (test_getopt): End lists with NULL.
43063         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43064         (test_getopt_long_posix): Enhance test.
43065         * modules/getopt-posix-tests (Depends-on): Add stdbool.
43066         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
43067         getopt-gnu.
43068         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
43069         Likewise.
43070
43071 2009-11-27  Simon Josefsson  <simon@josefsson.org>
43072
43073         * modules/idpriv-droptemp-tests (Notice): Fix text.
43074
43075 2009-11-27  Jim Meyering  <meyering@redhat.com>
43076
43077         test-xalloc-die: avoid spurious failure due to libtool argv difference
43078         In a libtool-enabled project, this test would fail due to a difference
43079         in the emitted program name, e.g.,
43080         -test-xalloc-die: memory exhausted
43081         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
43082         Use program to avoid that.
43083         * modules/xalloc-die-tests (Depends-on): Add progname.
43084         * tests/test-xalloc-die.c: Include progname.h".
43085         (program_name): Remove decl.
43086         (main): Call set_program_name.
43087         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
43088
43089 2009-11-26  Richard Jones  <rjones@redhat.com>
43090
43091         w32sock: leave win32 error in place.
43092         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
43093
43094 2009-11-26  Eric Blake  <ebb9@byu.net>
43095
43096         init.sh: suggest to use skip_ and fail_ functions in comments
43097         * tests/init.sh: Add a sentence.
43098
43099 2009-11-25  Bruno Haible  <bruno@clisp.org>
43100
43101         init.sh: add documentation in comments
43102         * tests/init.sh: Add some developer and user documentation.
43103
43104 2009-11-26  Jim Meyering  <meyering@redhat.com>
43105
43106         init.sh: accommodate even those who specify bogus srcdir manually
43107         * tests/init.sh: Normally, srcdir is guaranteed by automake and
43108         configure-time tests to be sanitized, so that there is no need to
43109         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
43110         (with no double quotes) suffices.  However, since tests may be
43111         invoked manually, and since you may explicitly set srcdir to the
43112         name of a directory containing spaces, do quote its uses here.
43113         * tests/test-pread.sh: Likewise.
43114         Suggested by Bruno Haible.
43115
43116         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
43117         * tests/test-pread.sh: Write no data into the pipe, because
43118         test-pread actually reads none.  This avoids a diagnostic,
43119         "bash: echo: write error: Broken pipe", that arises in the unusual
43120         event something is ignoring SIGPIPE, and might be interpreted
43121         as some sort of failure.  Reported by Bruno Haible.
43122
43123 2009-11-25  Jim Meyering  <meyering@redhat.com>
43124
43125         test-pread: cover failure with ESPIPE and EINVAL
43126         * tests/test-pread.c (main): Test for failure, too.
43127         * tests/test-pread.sh: Invoke with stdin on a pipe.
43128         Suggested by Eric Blake.
43129
43130         pread: improvement and fix
43131         * modules/pread (Depends-on): Depend on lseek, for portability to
43132         e.g., mingw.  Suggested by Eric Blake.
43133         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
43134
43135         unistd.in.h: correct declaration of pread
43136         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
43137         Reported by Richard W.M. Jones.
43138
43139         test-pread.sh: distribute the test script
43140         * modules/pread-tests (Files): Include test-pread.sh.
43141
43142         test-pread.sh: clean up
43143         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
43144         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
43145         That is unnecessary, since it's always ".".
43146         Suggestion from Eric Blake.
43147
43148         test-pread.sh: make executable
43149         * tests/test-pread.sh: Set executable bit.
43150         Reported by Eric Blake.
43151
43152         correct typo in test-pread.sh
43153         * tests/test-pread.sh: Add #! line.
43154
43155         test pread
43156         * tests/test-pread.c: New file.
43157         * tests/test-pread.sh: Likewise.
43158         * modules/pread-tests: Likewise.
43159
43160         pread: new module
43161         * modules/pread: New file.
43162         * lib/unistd.in.h (pread): Define/declare.
43163         * lib/pread.c (pread): New file.
43164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
43165         * modules/unistd (Makefile.am): Substitute witnesses.
43166         * doc/posix-functions/pread.texi (pread): Update.
43167         * MODULES.html.sh: Add pread.
43168
43169 2009-11-25  Jim Meyering  <meyering@redhat.com>
43170
43171         tests/init.sh: new file to be used via most *.sh tests
43172         * tests/init.sh: New file.
43173
43174 2009-11-25  Eric Blake  <ebb9@byu.net>
43175
43176         utimens: work around older Linux failure with symlinks
43177         * lib/utimens.c (lutimensat_works_really): New variable.
43178         (fdutimens, lutimens): Use it to manage kernels that support
43179         nanosecond times on files, but not on symlinks.
43180         Reported by Ondřej Vašík.
43181
43182         utimes: fix configure grammar
43183         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
43184
43185 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
43186
43187         regex: Fix fastmap for multibyte character ranges.
43188         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
43189         characters when a multibyte character range is included.
43190
43191 2009-11-22  Andy Wingo  <wingo@pobox.com>
43192
43193         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
43194         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
43195
43196 2009-11-24  Bruno Haible  <bruno@clisp.org>
43197
43198         doc: Most *_l functions exist in MacOS X 10.5.
43199         * doc/posix-functions/duplocale.texi: Update platforms list.
43200         * doc/posix-functions/freelocale.texi: Likewise.
43201         * doc/posix-functions/newlocale.texi: Likewise.
43202         * doc/posix-functions/uselocale.texi: Likewise.
43203         * doc/posix-functions/isalnum_l.texi: Likewise.
43204         * doc/posix-functions/isalpha_l.texi: Likewise.
43205         * doc/posix-functions/isblank_l.texi: Likewise.
43206         * doc/posix-functions/iscntrl_l.texi: Likewise.
43207         * doc/posix-functions/isdigit_l.texi: Likewise.
43208         * doc/posix-functions/isgraph_l.texi: Likewise.
43209         * doc/posix-functions/islower_l.texi: Likewise.
43210         * doc/posix-functions/isprint_l.texi: Likewise.
43211         * doc/posix-functions/ispunct_l.texi: Likewise.
43212         * doc/posix-functions/isspace_l.texi: Likewise.
43213         * doc/posix-functions/isupper_l.texi: Likewise.
43214         * doc/posix-functions/iswalnum_l.texi: Likewise.
43215         * doc/posix-functions/iswalpha_l.texi: Likewise.
43216         * doc/posix-functions/iswblank_l.texi: Likewise.
43217         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43218         * doc/posix-functions/iswctype_l.texi: Likewise.
43219         * doc/posix-functions/iswdigit_l.texi: Likewise.
43220         * doc/posix-functions/iswgraph_l.texi: Likewise.
43221         * doc/posix-functions/iswlower_l.texi: Likewise.
43222         * doc/posix-functions/iswprint_l.texi: Likewise.
43223         * doc/posix-functions/iswpunct_l.texi: Likewise.
43224         * doc/posix-functions/iswspace_l.texi: Likewise.
43225         * doc/posix-functions/iswupper_l.texi: Likewise.
43226         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43227         * doc/posix-functions/isxdigit_l.texi: Likewise.
43228         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
43229         * doc/posix-functions/strcasecmp_l.texi: Likewise.
43230         * doc/posix-functions/strcoll_l.texi: Likewise.
43231         * doc/posix-functions/strfmon_l.texi: Likewise.
43232         * doc/posix-functions/strftime_l.texi: Likewise.
43233         * doc/posix-functions/strncasecmp_l.texi: Likewise.
43234         * doc/posix-functions/strxfrm_l.texi: Likewise.
43235         * doc/posix-functions/tolower_l.texi: Likewise.
43236         * doc/posix-functions/toupper_l.texi: Likewise.
43237         * doc/posix-functions/towctrans_l.texi: Likewise.
43238         * doc/posix-functions/towlower_l.texi: Likewise.
43239         * doc/posix-functions/towupper_l.texi: Likewise.
43240         * doc/posix-functions/wcscoll_l.texi: Likewise.
43241         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43242         * doc/posix-functions/wctrans_l.texi: Likewise.
43243         * doc/posix-functions/wctype_l.texi: Likewise.
43244         * doc/glibc-functions/strptime_l.texi: Likewise.
43245         * doc/glibc-functions/strtod_l.texi: Likewise.
43246         * doc/glibc-functions/strtof_l.texi: Likewise.
43247         * doc/glibc-functions/strtol_l.texi: Likewise.
43248         * doc/glibc-functions/strtold_l.texi: Likewise.
43249         * doc/glibc-functions/strtoll_l.texi: Likewise.
43250         * doc/glibc-functions/strtoul_l.texi: Likewise.
43251         * doc/glibc-functions/strtoull_l.texi: Likewise.
43252         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43253         * doc/glibc-functions/wcstod_l.texi: Likewise.
43254         * doc/glibc-functions/wcstof_l.texi: Likewise.
43255         * doc/glibc-functions/wcstol_l.texi: Likewise.
43256         * doc/glibc-functions/wcstold_l.texi: Likewise.
43257         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43258         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43259         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43260
43261 2009-11-24  Bruno Haible  <bruno@clisp.org>
43262
43263         duplocale: Fix logic bug.
43264         * lib/duplocale.c: Don't include <langinfo.h>.
43265         (_NL_LOCALE_NAME): Remove macro.
43266         (rpl_duplocale): Use setlocale instead of nl_langinfo.
43267         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
43268
43269 2009-11-23  Jim Meyering  <meyering@redhat.com>
43270
43271         test-update-copyright: don't hard-code /usr/bin/perl
43272         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
43273         perl to print the current year.  Gilles Espinasse reported that
43274         the replaced use of perl was hard-coded as /usr/bin/perl.
43275
43276 2009-11-23  Bruno Haible  <bruno@clisp.org>
43277
43278         duplocale: Add support for glibc 2.3.x.
43279         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
43280
43281 2009-11-22  Bruno Haible  <bruno@clisp.org>
43282
43283         vasnprintf: Tiny optimization.
43284         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
43285         MacOS X.
43286
43287 2009-11-22  Bruno Haible  <bruno@clisp.org>
43288
43289         Tests for module 'duplocale'.
43290         * modules/duplocale-tests: New file.
43291         * tests/test-duplocale.c: New file.
43292
43293         New module 'duplocale'.
43294         * m4/duplocale.m4: New file.
43295         * lib/locale.in.h (duplocale): New declaration.
43296         * lib/duplocale.c: New file.
43297         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
43298         gl_LOCALE_H_DEFAULTS): New macros.
43299         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
43300         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
43301         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
43302         REPLACE_DUPLOCALE.
43303         * modules/duplocale: New file.
43304         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
43305
43306 2009-11-22  Bruno Haible  <bruno@clisp.org>
43307
43308         * modules/locale-tests (configure.ac): Test for newlocale function.
43309         * tests/test-locale.c: When the system has extended locale functions,
43310         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
43311
43312         locale: Make locale_t available when possible.
43313         * lib/locale.in.h: Include <xlocale.h> when it exists.
43314         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
43315         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
43316         * modules/locale (Depends-on): Add extensions.
43317         (Makefile.am): Also substitute HAVE_XLOCALE_H.
43318         * doc/posix-headers/locale.texi: Document the problem with locale_t.
43319
43320 2009-11-22  Bruno Haible  <bruno@clisp.org>
43321
43322         Add comments.
43323         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43324         invocation.
43325         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43326         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43327         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43328
43329 2009-11-22  Bruno Haible  <bruno@clisp.org>
43330
43331         error: account for the possibility of freopen (stdout).
43332         * lib/error.c: Include <unistd.h>.
43333         (flush_stdout): New function, extracted from error and error_at_line.
43334         Determine stdout's fd dynamically.
43335         (error, error_at_line): Invoke flush_stdout.
43336         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43337         * modules/error (Depends-on): Add unistd.
43338
43339 2009-11-22  Bruno Haible  <bruno@clisp.org>
43340
43341         diffseq: Add comment.
43342         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43343
43344 2009-11-22  Jim Meyering  <meyering@redhat.com>
43345
43346         c-stack: avoid defining an unused static function
43347         * lib/c-stack.c (find_stack_direction): Do not define this function
43348         when it will not be used.
43349
43350         diffseq: avoid spurious gcc warnings
43351         * lib/diffseq.h (IF_LINT2): Define.
43352         (compareseq): Use it to initialize two members of "part".
43353         This avoids two used-uninitialized warnings.
43354
43355 2009-11-21  Jim Meyering  <meyering@redhat.com>
43356
43357         c-stack: avoid "ignoring return value of `write'" warning
43358         * lib/c-stack.c: Include "ignore-value.h".
43359         (die): Explicitly ignore each write return value.
43360         * modules/c-stack (Depends-on): Add ignore-value.
43361
43362 2009-11-21  Bruno Haible  <bruno@clisp.org>
43363
43364         diffseq: reduce scope of variable 'best'.
43365         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43366         variable, earlier used for two different purposes.
43367
43368 2009-11-21  Jim Meyering  <meyering@redhat.com>
43369
43370         diffseq: remove useless assignment to "best"
43371         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43372         assignment.  At that point "best" is already guaranteed to be zero.
43373
43374 2009-11-20  Eric Blake  <ebb9@byu.net>
43375
43376         build: mention ftp redirector in release announcements
43377         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43378         values that used to come from cfg.mk; mention FTP redirect URL.
43379         * build-aux/announce-gen: Mention the mirror list.
43380         Suggested by Karl Berry.
43381
43382         nanosleep: improve port to mingw
43383         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43384         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43385         LIB_NANOSLEEP, but only when needed.
43386         * modules/select (Link): Document LIBSOCKET.
43387         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
43388         enough.
43389
43390         nanosleep: work around cygwin bug
43391         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
43392         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
43393         bug.
43394         (getnow): Delete, not needed.
43395         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43396         LIB_CLOCK_GETTIME.
43397         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43398         clock-time, gettime.
43399         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43400         bug.
43401         * modules/nanosleep-tests: New test.
43402         * tests/test-nanosleep.c: New file.
43403
43404         sleep: work around cygwin bug
43405         * lib/sleep.c (rpl_sleep): Work around the bug.
43406         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43407         (gl_PREREQ_SLEEP): Delete unused macro.
43408         * modules/sleep (Depends-on): Add verify.
43409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43410         * modules/unistd (Makefile.am): Substitute witness.
43411         * lib/unistd.in.h (sleep): Update prototype.
43412         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43413         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43414         * modules/sleep-tests (Depends-on): Check for alarm.
43415
43416 2009-11-20  Jim Meyering  <meyering@redhat.com>
43417
43418         maint.mk: improve sc_prohibit_magic_number_exit
43419         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43420         so it does not match uses like System.exit(1).
43421         Add comments showing how to correct all offenders.
43422
43423 2009-11-19  Eric Blake  <ebb9@byu.net>
43424
43425         xalloc-die-tests: add missing library
43426         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43427
43428         test-xvasprintf: silence compiler warnings
43429         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43430         empty string from gcc.
43431
43432 2009-11-19  Jim Meyering  <meyering@redhat.com>
43433
43434         xfreopen: new module, from coreutils
43435         * modules/xfreopen: New module.
43436         * lib/xfreopen.c: New file.
43437         * lib/xfreopen.h: New file.
43438         * MODULES.html.sh (File stream based Input/Output"): Add it.
43439
43440 2009-11-19  Eric Blake  <ebb9@byu.net>
43441
43442         manywarnings: depend on warnings
43443         * modules/manywarnings (Depends-on): Add warnings.
43444
43445         build: avoid compiler warnings
43446         * lib/select.c (rpl_select): Delete unused variable.
43447         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43448
43449 2009-11-18  Eric Blake  <ebb9@byu.net>
43450
43451         tests: avoid false negative with --with-packager
43452         * tests/test-version-etc.sh: Discard packager information.
43453         * tests/test-argp-version-etc-1.sh: Likewise.
43454         Reported by Mike Frysinger.
43455
43456         utimens: fix regression on Solaris
43457         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43458         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43459         can only change fd timestamps via futimesat.  Instead, use an
43460         additional witness macro to avoid BSD bug.
43461         Reported by Jim Meyering.
43462
43463 2009-11-17  Eric Blake  <ebb9@byu.net>
43464
43465         usleep: use it to simplify tests
43466         * modules/stat-time-tests (Depends-on): Add usleep.
43467         (configure.ac): Drop usleep check.
43468         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43469         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43470         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43471         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43472         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43473         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43474         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43475         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43476         Likewise.
43477         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
43478         * tests/test-lchown.h (nap): Likewise.
43479         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
43480         * tests/test-stat-time.c (nap): Likewise.
43481         * tests/test-utimens-common.h (nap): Update comments.
43482
43483         usleep: new module
43484         * modules/usleep: New file.
43485         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
43486         * lib/usleep.c (usleep): Likewise.
43487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43488         * modules/unistd (Makefile.am): Substitute witnesses.
43489         * lib/unistd.in.h (usleep): Add declaration.
43490         * doc/pastposix-functions/usleep.texi (usleep): Document this.
43491         * MODULES.html.sh (Date and time): Likewise.
43492         * modules/usleep-tests (Depends-on): New test.
43493         * tests/test-usleep.c: New file.
43494
43495         chown: work around OpenBSD bug
43496         * lib/chown.c (rpl_chown): Work around the bug.
43497         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
43498         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
43499         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
43500         * modules/chown (Depends-on): Add stdbool.
43501         * modules/lchown (Depends-on): Likewise.
43502         * doc/posix-functions/chown.texi (chown): Document the bug.
43503         * doc/posix-functions/lchown.texi (lchown): Likewise.
43504         * tests/test-lchown.h (test_chown): Relax test.
43505
43506         mkstemp: avoid conflict with C++ keyword template
43507         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
43508         * lib/mkostemp.c (mkostemp): Likewise.
43509         * lib/mkostemps.c (mkostemps): Likewise.
43510         * lib/mkstemp.c (mkstemp): Likewise.
43511         * lib/mkstemps.c (mkstemps): Likewise.
43512
43513         xalloc-die-tests: optimize
43514         * tests/test-xalloc-die.sh: Reduce number of processes.
43515
43516 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43517
43518         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
43519         patch from ludo@gnu.org (Ludovic Courtès).
43520
43521 2009-11-17  Jim Meyering  <meyering@redhat.com>
43522
43523         version-etc: use proper license string
43524         * modules/version-etc (License): Use LGPL, not LGPLv3+.
43525         * modules/version-etc-fsf: Likewise.
43526
43527 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43528
43529         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
43530         printed to stdout.  Deal with EOL differences.
43531
43532 2009-11-17  Eric Blake  <ebb9@byu.net>
43533
43534         unsetenv: work around Solaris bug
43535         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
43536         * lib/unsetenv.c (rpl_unsetenv): Work around it.
43537         Reported by Jim Meyering.
43538
43539         vasnprintf: avoid compiler warnings
43540         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
43541         variables.
43542         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
43543
43544 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43545
43546         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
43547         settings since xalloc-die is no longer the self test,
43548         xalloc-die.sh is.
43549
43550 2009-11-17  Jim Meyering  <meyering@redhat.com>
43551
43552         test-xalloc-die.sh: make the code agree with the commit log
43553         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
43554         at the end, just in case you happen to have a test-xalloc-die
43555         program in some other PATH directory.
43556
43557         test-xalloc-die.sh: fix a portability bug
43558         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
43559         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
43560         Otherwise, argv[0] (as often seen in diagnostics) would be too
43561         system-dependent, sometimes with, and sometimes without the leading "./".
43562
43563         version-etc-fsf: relax license to LGPLv3+
43564         * modules/version-etc-fsf (License): Relax license.
43565
43566 2009-11-16  Eric Blake  <ebb9@byu.net>
43567
43568         xalloc-die-tests: avoid printing null pointer
43569         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
43570         shell script.
43571         * tests/test-xalloc-die.c (program_name): Declare.
43572         * tests/test-xalloc-die.sh (tmpfiles): New file.
43573
43574         setenv, unsetenv: work around various bugs
43575         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
43576         (setenv) [HAVE_SETENV]: Work around bugs.
43577         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
43578         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
43579         for bugs.
43580         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
43581         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
43582         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
43583         * modules/stdlib (Makefile.am): Update substitutions.
43584         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
43585         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
43586         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43587         * modules/setenv-tests: New test.
43588         * modules/unsetenv-tests: Likewise.
43589         * tests/test-setenv.c: New file.
43590         * tests/test-unsetenv.c: Likewise.
43591
43592 2009-11-16  Jim Meyering  <meyering@redhat.com>
43593
43594         version-etc: relax license to LGPLv3+
43595         * modules/version-etc (License): Relax license.
43596
43597         better AC_REQUIRE expanded-before-required-warning avoidance
43598         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
43599         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
43600         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
43601         which is no longer needed.
43602
43603 2009-11-16  Eric Blake  <ebb9@byu.net>
43604
43605         test-freading: clean up temporary file
43606         * tests/test-freading.c (main): Remove file on success, and use
43607         ASSERT more liberally.
43608         Reported by Jim Meyering.
43609
43610 2009-11-16  Jim Meyering  <meyering@redhat.com>
43611
43612         avoid new AC_REQUIRE expanded-before-required warnings
43613         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
43614         merely using it.
43615         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
43616         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
43617
43618 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43619
43620         * tests/test-xalloc-die.c: New file.
43621         * modules/xalloc-die-tests: New file.
43622         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
43623         XFAIL_TESTS so it can be appended by modules.
43624
43625 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43626
43627         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
43628         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
43629
43630 2009-11-14  Eric Blake  <ebb9@byu.net>
43631
43632         fnmatch: avoid compiler warning
43633         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
43634         to silence compiler warning about mismatch signedness in ?:.
43635         Reported by Robert Millan.
43636
43637         intprops: add double-inclusion guard
43638         * lib/intprops.h: Allow idempotent includes.
43639         Suggested by Bruce Korb.
43640
43641         openat: detect Solaris fchownat bug
43642         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
43643         penalizing glibc chownat when only lchownat is broken.
43644         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
43645         trailing slash bugs.
43646         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
43647         * modules/openat-tests (Files): Include more files.
43648         (Depends-on): Add mgetgroups, sleep, stat-time.
43649         (configure.ac): Add additional checks.
43650         (Makefile.am): Build new test.
43651         * tests/test-fchownat.c: New file.
43652
43653         lchown: detect Solaris and FreeBSD bug
43654         * lib/lchown.c (rpl_lchown): Work around bug.
43655         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
43656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43657         * modules/unistd (Makefile.am): Populate it.
43658         * lib/unistd.in.h (lchown): Update declaration.
43659         * doc/posix-functions/lchown.texi (lchown): Document the bug.
43660         * modules/lchown-tests: New file.
43661         * tests/test-lchown.h (test_lchown): Likewise.
43662         * tests/test-lchown.c (main): Likewise.
43663
43664         chown: detect Solaris and FreeBSD bug
43665         * lib/chown.c (rpl_chown): Work around bug.
43666         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
43667         (gl_PREREQ_CHOWN): Delete.
43668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43669         * modules/unistd (Makefile.am): Populate it.
43670         * lib/unistd.in.h (chown): Update declaration.
43671         * lib/lchown.c (chown): Update client.
43672         * modules/lchown (Depends-on): Add lstat.
43673         * doc/posix-functions/chown.texi (chown): Document the bug.
43674         * doc/posix-functions/getgroups.texi (getgroups): Document
43675         getgroups pitfall.
43676         * modules/chown-tests: New file.
43677         * tests/test-chown.h (test_chown): Likewise.
43678         * tests/test-chown.c (main): Likewise.
43679
43680 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
43681
43682         gnulib-tool: correctly detect absence of m4 directories
43683         * gnulib-tool: Avoid extra newline on data passed to wc -l.
43684
43685 2009-11-14  Jim Meyering  <meyering@redhat.com>
43686
43687         maint.mk: Prohibit inclusion of "xalloc.h" without use.
43688         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43689
43690 2009-11-14  John W. Eaton  <jwe@gnu.org>
43691
43692         strftime.h: wrap function declaration in extern "C" block
43693         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
43694
43695 2009-11-13  Eric Blake  <ebb9@byu.net>
43696
43697         getgroups: avoid compiler warning
43698         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
43699
43700         getgroups: work around FreeBSD bug
43701         * lib/getgroups.c (rpl_getgroups): Work around the bug.
43702         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
43703         * doc/posix-functions/getgroups.texi (getgroups): Document it.
43704         * tests/test-getgroups.c (main): Fix buffer overrun.
43705
43706         getgroups: avoid compilation failure
43707         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
43708         * modules/getgroups (Depends-on): Add stdint.
43709
43710 2009-11-13  Jim Meyering  <meyering@redhat.com>
43711
43712         test-getgroups: avoid compilation failure
43713         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
43714
43715 2009-11-13  Eric Blake  <ebb9@byu.net>
43716
43717         mgetgroups: new module, taken from coreutils
43718         * modules/mgetgroups: New file.
43719         * lib/mgetgroups.h: Likewise.
43720         * lib/mgetgroups.c (mgetgroups): Likewise.
43721         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
43722         * MODULES.html.sh (Users and groups): Mention it.
43723
43724         getgroups: don't expose GETGROUPS_T to user
43725         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
43726         an element at a time if GETGROUPS_T is wrong size.
43727         * lib/getugroups.h (getugroups): Change signature.
43728         * lib/unistd.in.h (getgroups): Likewise.
43729         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
43730         signature needs fixing.
43731         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
43732         AC_TYPE_GETGROUPS.
43733         * modules/group-member (Depends-on): Add getgroups.
43734         * lib/group-member.c (group_info, get_group_info): Use gid_t.
43735         (group_member): Rely on getgroups replacement.
43736         * lib/getugroups.c (getugroups): Use gid_t.
43737         * tests/test-getgroups.c (main): Likewise.
43738         * NEWS: Mention the signature change.
43739         * doc/posix-functions/getgroups.texi (getgroups): Mention the
43740         problem with signature.
43741         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
43742         GETGROUPS_T is still useful for setgroups.
43743
43744         getgroups, getugroups: provide stubs for mingw
43745         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
43746         * lib/getugroups.c (getugroups): Likewise.
43747         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
43748         function.  Modernize replacement scheme.
43749         (gl_PREREQ_GETGROUPS): Delete.
43750         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
43751         * modules/getgroups (configure.ac): Declare witness.
43752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43753         * modules/unistd (Depends-on): Substitute witness.
43754         * lib/unistd.in.h (getgroups): Declare replacement.
43755
43756         getgroups: avoid calling exit
43757         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
43758         drop xalloc.
43759         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
43760         dependencies.
43761         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
43762         exiting, in the rare case of malloc failure.
43763
43764         getgroups: fix logic error
43765         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
43766         has more than 20 groups.
43767         * modules/getgroups-tests: New test.
43768         * tests/test-getgroups.c: New file.
43769
43770 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43771
43772         * tests/test-base64.c: Improve.
43773
43774 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43775
43776         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
43777         Blake <ebb9@byu.net>.
43778
43779 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43780
43781         * tests/test-xvasprintf.c: Add %s%s related checks.
43782
43783 2009-11-12  Eric Blake  <ebb9@byu.net>
43784
43785         version-etc: match standards.texi style
43786         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
43787         and use <> only for URLs.
43788
43789 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
43790
43791         fts: do not fail on a submount during traversal
43792         * lib/fts.c (fts_build): Read the stat info again after opening
43793         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
43794         Original report at http://bugzilla.redhat.com/501848.
43795
43796 2009-11-12  Jim Meyering  <meyering@redhat.com>
43797
43798         bootstrap: sync from coreutils
43799         * build-aux/bootstrap (bootstrap_epilogue): New function.
43800         Use git_modules_config in one more place.  This make bootstrap's
43801         --gnulib-srcdir option more useful for testing.
43802
43803         bootstrap: generalize autoheader check
43804         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
43805         AC_CONFIG_HEADERS.
43806
43807 2009-11-11  Eric Blake  <ebb9@byu.net>
43808
43809         mkfifoat: use new modules for Solaris and BSD bugs
43810         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
43811         * lib/mkfifoat.c (mknodat): Split...
43812         * lib/mknodat.c (mknodat): ...into new file.
43813         * modules/mkfifoat (Files): Ship new file.
43814         (Depends-on): Add mkfifo, mknod.
43815         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
43816         (Depends-on): Add symlink.
43817         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
43818         redundant with test_mkfifo.h.
43819         (do_mkfifoat, do_mknodat): New helpers.
43820
43821         mknod: new module
43822         * modules/mknod: New file.
43823         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
43824         * lib/mknod.c (mknod): Likewise.
43825         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43826         defaults.
43827         * modules/sys_stat (Makefile.am): Substitute them.
43828         * lib/sys_stat.in.h (mknod): Declare replacement.
43829         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43830         Document it.
43831         * doc/posix-functions/mknod.texi (mknod): Likewise.
43832         * modules/mknod-tests: New test.
43833         * tests/test-mknod.c: Likewise.
43834
43835         mkfifo: new module
43836         * modules/mkfifo: New file.
43837         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
43838         * lib/mkfifo.c (mkfifo): Likewise.
43839         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43840         defaults.
43841         * modules/sys_stat (Makefile.am): Substitute them.
43842         * lib/sys_stat.in.h (mkfifo): Declare replacement.
43843         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43844         Document it.
43845         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
43846         * modules/mkfifo-tests: New test.
43847         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
43848         from test-mkfifoat.c.
43849         * tests/test-mkfifo.c: New file.
43850
43851         readlink: detect FreeBSD bug
43852         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
43853         slash on symlink.
43854         * doc/posix-functions/readlink.texi (readlink): Document the bug.
43855         * tests/test-readlink.h (test_readlink): Enhance test.
43856
43857         symlink: detect FreeBSD bug
43858         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
43859         slash on symlink.
43860         * doc/posix-functions/symlink.texi (symlink): Document the bug.
43861         * tests/test-symlink.h (test_symlink): Enhance test.
43862
43863 2009-11-10  Eric Blake  <ebb9@byu.net>
43864
43865         link: detect FreeBSD bug
43866         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
43867         symlink.
43868         * doc/posix-functions/link.texi (link): Document the bug.
43869         * tests/test-link.h (test_link): Enhance test.
43870         * tests/test-linkat.c (main): Update caller.
43871
43872         unlink, remove: detect FreeBSD bug
43873         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
43874         slash on symlink.
43875         * doc/posix-functions/unlink.texi (unlink): Document the bug.
43876         * doc/posix-functions/remove.texi (remove): Likewise.
43877         * tests/test-unlink.h (test_unlink): Enhance test.
43878         * tests/test-remove.c (main): Likewise.
43879
43880 2009-11-09  Eric Blake  <ebb9@byu.net>
43881
43882         rename: detect FreeBSD bug
43883         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
43884         slash on symlink.
43885         * modules/renameat-tests (Depends-on): Add filenamecat.
43886         * tests/test-rename.h (test_rename): Allow one more errno.
43887         * tests/test-renameat.c (main): Likewise.
43888         * doc/posix-functions/rename.texi (rename): Document the bug.
43889
43890         open: detect FreeBSD bug
43891         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
43892         symlink.
43893         * doc/posix-functions/open.texi (open): Document the bug.
43894         * doc/posix-functions/utimes.texi (utimes): Likewise.
43895         * tests/test-open.h (test_open): Add parameters, and test symlink
43896         handling.
43897         * tests/test-open.c (main): Adjust caller.
43898         * tests/test-fcntl-safer.c (main): Likewise.
43899         * modules/open-tests (Depends-on): Add stdbool, symlink.
43900         * modules/fcntl-safer-tests (Depends-on): Likewise.
43901         * tests/test-openat.c (main): Add test-open tests.
43902
43903         stat: detect FreeBSD bug
43904         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
43905         symlink.
43906         * doc/posix-functions/stat.texi (stat): Document the bug.
43907         * tests/test-stat.h (test_stat_func): Add argument.
43908         * tests/test-stat.c (main): Adjust caller.
43909         * tests/test-fstatat.c (main): Likewise.
43910         * modules/stat-tests (Depends-on): Add stdbool, symlink.
43911         Reported by Jim Meyering.
43912
43913 2009-11-09  James Youngman  <jay@gnu.org>
43914
43915         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
43916         * lib/strftime.c: Correct placement of #include "ignore-value.h".
43917
43918 2009-11-08  Jim Meyering  <meyering@redhat.com>
43919
43920         utimens: remove invalid futimesat call
43921         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
43922         It used the file descriptor of the target file as the DIR_FD
43923         parameter and NULL as the file name.  That caused failure with
43924         errno == EFAULT on FreeBSD-8.0-rc2
43925
43926 2009-11-07  Eric Blake  <ebb9@byu.net>
43927
43928         fflush, freadseek: use fseeko, not fseek
43929         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
43930         (clear_ungetc_buffer): Avoid potential problems on large files.
43931         * lib/freadseek.c (freadseek): Likewise.
43932         * modules/freadseek (Depends-on): Add fseeko.
43933         * modules/fseek (configure.ac): Set a witness.
43934         * tests/test-fflush.c (main): Use fseeko.
43935         * tests/test-fpurge.c (fseek): Disable link warning.
43936         * tests/test-freadable.c (fseek): Likewise.
43937         * tests/test-freading.c (fseek): Likewise.
43938         * tests/test-fseeko.c (fseek): Likewise.
43939         * tests/test-ftell.c (fseek): Likewise.
43940         * tests/test-ftello.c (fseek): Likewise.
43941         * tests/test-fwritable.c (fseek): Likewise.
43942         * tests/test-fwriting.c (fseek): Likewise.
43943
43944 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43945
43946         * modules/memchr (Depends-on): Drop getpagesize dependency.
43947
43948 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43949
43950         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
43951         Reported by Ludovic Courtès.
43952         * build-aux/pmccabe2html: Improve example usage.
43953         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
43954
43955 2009-11-06  Jim Meyering  <meyering@redhat.com>
43956
43957         do-release-commit-and-tag: New module.
43958         Automate the release-commit and tag process.
43959         * build-aux/do-release-commit-and-tag: New script, from coreutils.
43960         * modules/do-release-commit-and-tag: New file.
43961         * MODULES.html.sh (Support for maintaining and releasing): Add it.
43962
43963 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43964
43965         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
43966         because test-select.c uses inet_pton.
43967
43968 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43969
43970         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
43971         GETADDRINFO_LIB.  Bump serial number.
43972         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
43973         Suggested by Eric Blake <ebb9@byu.net>.
43974
43975 2009-11-05  Eric Blake  <ebb9@byu.net>
43976
43977         strtod: detect darwin bug
43978         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
43979         Reported by Leo Davis.
43980
43981         freopen-safer: new module
43982         * modules/freopen-safer: New module.
43983         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
43984         * lib/freopen-safer.c (freopen_safer): New file.
43985         * lib/stdio-safer.h (freopen_safer): New declaration.
43986         * lib/stdio--.h (freopen): New override.
43987         * MODULES.html.sh (File stream based Input/Output): Mention it.
43988         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
43989         freopen-safer module.
43990         * doc/posix-functions/stderr.texi (stderr): Likewise.
43991         * doc/posix-functions/stdin.texi (stdin): Likewise.
43992         * doc/posix-functions/stdout.texi (stdout): Likewise.
43993         * modules/freopen-safer-tests: New test.
43994         * tests/test-reopen-safer.c: New file.
43995
43996 2009-11-05  Jim Meyering  <meyering@redhat.com>
43997
43998         maint.mk: Prohibit inclusion of "close-stream.h" without use.
43999         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44000
44001 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44002
44003         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
44004
44005 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44006
44007         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
44008
44009 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44010
44011         Fix link error.
44012         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44013         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44014
44015 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44016
44017         * tests/test-func.c: Also test value of __func__.
44018
44019 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44020
44021         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
44022         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
44023
44024 2009-11-05  Bruno Haible  <bruno@clisp.org>
44025
44026         Fix link error.
44027         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44028         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44029         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
44030
44031 2009-11-05  Bruno Haible  <bruno@clisp.org>
44032
44033         Tests for module 'inet_pton'.
44034         * modules/inet_pton-tests: New file.
44035         * tests/test-inet_pton.c: New file.
44036
44037 2009-11-05  Bruno Haible  <bruno@clisp.org>
44038
44039         Tests for module 'inet_ntop'.
44040         * modules/inet_ntop-tests: New file.
44041         * tests/test-inet_ntop.c: New file.
44042
44043 2009-11-04  Eric Blake  <ebb9@byu.net>
44044
44045         stdlib-safer: wrap all mkstemp variants
44046         * modules/mkostemp (configure.ac): Set witness.
44047         * modules/mkostemps (configure.ac): Likewise.
44048         * modules/mkstemps (configure.ac): Likewise.
44049         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
44050         (mkstemps_safer): Wrap more functions.
44051         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
44052         wrapping.
44053         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
44054         (mkstemps_safer): Implement the wrappers.
44055
44056         mkstemps, mkostemps: new modules
44057         * modules/mkostemps: New module.
44058         * modules/mkstemps: Likewise.
44059         * lib/mkostemps.c (mkostemps): New file.
44060         * lib/mkstemps.c (mkstemps): Likewise.
44061         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
44062         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
44063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
44064         * modules/stdlib (Makefile.am): Substitute them.
44065         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
44066         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
44067         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44068         * doc/gnulib.texi (Glibc stdlib.h): Include them.
44069         * MODULES.html.sh (File system functions): Mention them.
44070
44071         tempname: resync from glibc
44072         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
44073         same values for __GT_FILE as glibc.  Abort even when assertions
44074         are disabled.
44075         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
44076         match its value otherwise.  Allow idempotent inclusion.
44077         * lib/mkdtemp.c (mkdtemp): Adjust caller.
44078         * lib/mkostemp.c (mkostemp): Likewise.
44079         * lib/mkstemp.c (mkstemp): Likewise.
44080         * lib/tmpfile.c (tmpfile): Likewise.
44081         * NEWS: Document this.
44082
44083         utimens: fix use of futimens on older Linux
44084         * lib/utimens.c (fdutimens): Use updated, rather than original,
44085         timespec to avoid bug in older Linux kernel.
44086         Reported by Simon Josefsson.
44087
44088 2009-11-04  Bruno Haible  <bruno@clisp.org>
44089
44090         Make num_processors more flexible and consistent.
44091         * lib/nproc.h (enum nproc_query): New type.
44092         (num_processors): Add a 'query' argument.
44093         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
44094         (num_processors): Add a 'query' argument. Test the value of the
44095         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
44096         mingw, count the number of CPUs available for the current process.
44097         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
44098         Check for sched_getaffinity and sched_getaffinity_np.
44099         * modules/nproc (Depends-on): Add c-ctype, extensions.
44100         * NEWS: Mention the change.
44101
44102 2009-11-03  Bruno Haible  <bruno@clisp.org>
44103
44104         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
44105
44106 2009-11-03  Jim Meyering  <meyering@redhat.com>
44107
44108         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
44109         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
44110         if it is defined.
44111
44112 2009-11-02  Eric Blake  <ebb9@byu.net>
44113
44114         mktime, timegm: share common declaration
44115         * lib/mktime-internal.h: New file.
44116         * lib/mktime.c: Use it rather than open-coding a declaration.
44117         * lib/timegm.c: Likewise.
44118         * modules/mktime (Files): Ship it.
44119         * modules/timegm (Files): Likewise.
44120         Suggested by Bruno Haible.
44121
44122         test-update-copyright: update test to match script changes
44123         * tests/test-update-copyright.sh: Avoid hard-coding perl
44124         location.  Don't update *.bak created by earlier runs.
44125
44126 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
44127             Simon Josefsson  <simon@josefsson.org>
44128             Bruno Haible  <bruno@clisp.org>
44129
44130         Fix link error on Solaris 8.
44131         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
44132         also in libnsl. Define also INET_PTON_LIB.
44133         * modules/inet_pton (Link): New section.
44134
44135 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44136             Bruno Haible  <bruno@clisp.org>
44137
44138         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
44139         * modules/inet_ntop (Link): New section.
44140         Reported by Boyan Kasarov <bkasarov@gmail.com>.
44141
44142 2009-11-02  Eric Blake  <ebb9@byu.net>
44143
44144         maint: avoid compiler warnings in m4 macros
44145         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
44146         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
44147
44148 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44149
44150         * m4/pmccabe2html.m4: Remove file.
44151         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
44152         function.  Change maintainer.
44153         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
44154         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
44155         Courtès).
44156
44157 2009-10-31  Eric Blake  <ebb9@byu.net>
44158
44159         fseeko: fix m4 regression
44160         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
44161         regression from 2009-10-27.
44162         Reported by Ralf Wildenhues.
44163
44164 2009-10-31  Jim Meyering  <meyering@redhat.com>
44165
44166         inttostr: aesthetics and improved (compile-time) safety
44167         Define inttype_is_signed rather than inttype_is_unsigned,
44168         since the sole use is via "#if inttype_is_signed".
44169         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
44170         inttype_is_unsigned.
44171         * lib/offtostr.c (inttype_is_signed): Likewise.
44172         * lib/uinttostr.c (inttype_is_signed): Likewise.
44173         * lib/umaxtostr.c (inttype_is_signed): Likewise.
44174         * lib/inttostr.c (inttostr): Use verify to cross-check the
44175         inttype_is_signed value and the signedness of the actual type.
44176         * modules/inttostr (Depends-on): Add verify.
44177
44178 2009-10-30  Eric Blake  <ebb9@byu.net>
44179
44180         build: avoid compiler warnings
44181         * lib/fchmodat.c (lchmod): Mark unused variables.
44182         * lib/getopt.c (_getopt_initialize): Likewise.
44183         * lib/mktime.c (__mktime_internal): Provide prototype.
44184         * lib/inttostr.c (inttostr): Avoid compiler warning even with
44185         older gcc that do not understand #pragma GCC diagnostic.
44186         * lib/uinttostr.c (inttype_is_unsigned): Define.
44187         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
44188
44189 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
44190
44191         stat: fix compilation on AIX
44192         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
44193         only see struct stat64.
44194
44195 2009-10-30  Eric Blake  <ebb9@byu.net>
44196
44197         exclude: make more robust
44198         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
44199         rather than masking a coding bug.
44200         Suggested by Bruno Haible.
44201
44202 2009-10-30  Jim Meyering  <meyering@redhat.com>
44203
44204         perl scripts: remove #!/usr/bin/perl in favor of more portable...
44205         Rather than putting #!/usr/bin/perl on the first line,
44206         start with a variant of what's recommended by "man perlrun" that
44207         invokes the first "perl" program from your shell's search path.
44208         * build-aux/gitlog-to-changelog: Replace #!... as above.
44209         Add a "Local Variables" perl mode setting.
44210         Prompted by a patch from Ludovic Courtès.
44211         Improved by Eric Blake.
44212         * build-aux/useless-if-before-free: Likewise.
44213         * build-aux/announce-gen: Likewise.
44214         * build-aux/update-copyright: Likewise.
44215
44216 2009-10-29  Eric Blake  <ebb9@byu.net>
44217
44218         filenamecat-lgpl: adjust clients
44219         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
44220         filenamecat.
44221         * modules/renameat (Depends-on): Likewise.
44222
44223         filenamecat: split into filenamecat-lgpl
44224         * modules/filenamecat-lgpl: New module.
44225         * modules/filenamecat (Files): Move library-safe files into
44226         filenamecat-lgpl.
44227         (Depends-on): Add filenamecat-lgpl.
44228         (configure.ac): Declare witness.
44229         * lib/filenamecat.h (file_name_concat): Only declare when using
44230         GPL module.
44231         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
44232         Move...
44233         * lib/filenamecat-lgpl.c: ...into new file.
44234         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
44235         (gl_FILE_NAME_CONCAT): Use it.
44236         * MODULES.html.sh (File system functions): Mention new module.
44237
44238         argp: avoid memory leak
44239         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
44240         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
44241         base_name, since the latter malloc()s and can call exit().
44242         Leak introduced 2006-07-03.
44243
44244         dirname-lgpl: adjust clients that don't need full dirname
44245         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
44246         * modules/filenamecat (Depends-on): Likewise.
44247         * modules/linkat (Depends-on): Likewise.
44248         * modules/mkancesdirs (Depends-on): Likewise.
44249         * modules/mkdir (Depends-on): Likewise.
44250         * modules/openat (Depends-on): Likewise.
44251         * modules/savewd (Depends-on): Likewise.
44252         * modules/rename (Depends-on): Likewise.
44253         (License): Relax license.
44254         * modules/mkdir-tests (Depends-on): Drop progname.
44255         (Makefile.am): Delete unneeded LDADD.
44256         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
44257
44258         dirname: split into dirname-lgpl
44259         * modules/dirname-lgpl: New module.
44260         * modules/dirname (Files): Move library-safe files into
44261         dirname-lgpl.
44262         (Depends-on): Add dirname-lgpl.
44263         (configure.ac): Declare witness.
44264         * modules/double-slash-root (License): Relax license.
44265         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
44266         module.
44267         * lib/dirname.c (dir_len, mdir_name): Move...
44268         * lib/dirname-lgpl.c: ...into new file.
44269         * lib/basename.c (last_component, base_len): Move...
44270         * lib/basename-lgpl.c: ...into new file.
44271         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
44272         (gl_DIRNAME): Use it.
44273         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
44274         Mention new module.
44275         * modules/dirname-tests (Depends-on): Add progname.
44276         * tests/test-dirname.c (program_name): Delete.
44277
44278         mkdir: make safe for libraries
44279         * modules/mkdir (Depends-on): Drop xalloc.
44280         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
44281         exit.
44282
44283         tests: avoid some compiler warnings
44284         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
44285         literals.
44286         * tests/test-memchr.c (main): Avoid type mismatch.
44287         * tests/test-arpa_inet.c (main): Avoid unused parameters.
44288         * tests/test-base64.c (main): Likewise.
44289         * tests/test-getdelim.c (main): Likewise.
44290         * tests/test-gethostname.c (main): Likewise.
44291         * tests/test-getline.c (main): Likewise.
44292         * tests/test-netinet_in.c (main): Likewise.
44293         * tests/test-select.c (open_server_socket, main): Likewise.
44294         * tests/test-select-stdin.c (main): Likewise.
44295         * tests/test-sockets.c (main): Likewise.
44296         * tests/test-strsignal.c (main): Likewise.
44297         * tests/test-sys_select.c (main): Likewise.
44298         * tests/test-sys_socket.c (main): Likewise.
44299         * tests/test-u64.c (main): Likewise.
44300         * tests/test-xfprintf-posix.c (main): Likewise.
44301         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
44302
44303         sockets: avoid compiler warning
44304         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
44305
44306         maint: detect usage(1) and other suspicious exits
44307         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
44308
44309 2009-10-29  Jim Meyering  <meyering@redhat.com>
44310
44311         timespec: long-to-int truncation could make timespec_cmp malfunction
44312         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
44313         a multiple of 2^32 nanoseconds as no difference.
44314
44315 2009-10-28  Jim Meyering  <meyering@redhat.com>
44316
44317         fprintftime: wrap macro code argument in "do {...} while(0)"
44318         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
44319         cpy macro must be a statement that can be followed by a semicolon.
44320         Now that the else clause contains a comment and is hence longer
44321         than one line, I require curly braces.  That in turn requires
44322         that we wrap this code block in the standard do...while(0).
44323
44324         fprintftime: remove stray semicolon from previous change
44325         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44326
44327         fprintftime: avoid a warning about ignored fwrite return value
44328         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44329         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44330         that is unsafe.
44331         * modules/fprintftime (Depends-on): Add ignore-value.
44332
44333         exclude: avoid an unwarranted warning
44334         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44335
44336 2009-10-27  Eric Blake  <ebb9@byu.net>
44337
44338         fseek: avoid compilation failure when fflush is replaced
44339         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44340         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44341         module is in use.
44342         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44343         module is not in use; since REPLACE_FSEEK worked otherwise.
44344         (GNULIB_FTELLO): Likewise for ftell.
44345         Reported by Ian Beckwith and others.
44346
44347 2009-10-27  Bruno Haible  <bruno@clisp.org>
44348
44349         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44350         Reported by Jim Meyering.
44351
44352 2009-10-27  Jim Meyering  <jim@meyering.net>
44353             Bruno Haible  <bruno@clisp.org>
44354
44355         Avoid warning despite dropping the return value of fwrite.
44356         * lib/unicodeio.c: Include ignore-value.h.
44357         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44358         * modules/unicodeio (Depends-on): Add ignore-value.
44359
44360 2009-10-26  Eric Blake  <ebb9@byu.net>
44361
44362         areadlinkat: fix fallback path
44363         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44364         pointer and zero.
44365
44366 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44367
44368         Use a better IO block size for modern systems
44369         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44370         * lib/md2.c: Likewise.
44371         * lib/md4.c: Likewise.
44372         * lib/md5.c: Likewise.
44373         * lib/sha1.c: Likewise.
44374         * lib/sha256.c: Likewise.
44375         * lib/sha512.c: Likewise.
44376
44377 2009-10-22  Eric Blake  <ebb9@byu.net>
44378
44379         tests: avoid several compiler warnings
44380         * tests/test-getcwd.c (main): Avoid buffer underflow.
44381         * tests/test-getdate.c (main): String literals are not safe with
44382         putenv, so use setenv.  Declare unused argument.
44383         * modules/getdate-tests (Depends-on): Add setenv.
44384         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44385         problems with string literals in char *.
44386         * tests/test-hash.c (main): Avoid shadowing declaration.
44387         (insert_new): Treat string literals as char const *.
44388         * tests/test-getopt.h (test_getopt): Likewise.
44389         (getopt_loop): Alter types to minimize casting elsewhere.
44390         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
44391         (test_getopt_long_posix): Likewise.
44392         (do_getopt_long): Add wrapper to minimize casting.
44393         * tests/test-atexit.c (clear_temp_file): Use void.
44394         * tests/test-areadlink-with-size.c (main): Declare unused
44395         arguments.
44396         * tests/test-areadlink.c (main): Likewise.
44397         * tests/test-areadlinkat-with-size.c (main): Likewise.
44398         * tests/test-areadlinkat.c (main): Likewise.
44399         * tests/test-canonicalize-lgpl.c (main): Likewise.
44400         * tests/test-canonicalize.c (main): Likewise.
44401         * tests/test-dirent-safer.c (main): Likewise.
44402         * tests/test-dirname.c (main): Likewise.
44403         * tests/test-dup2.c (main): Likewise.
44404         * tests/test-fchdir.c (main): Likewise.
44405         * tests/test-fcntl-h.c (main): Likewise.
44406         * tests/test-fcntl-safer.c (main): Likewise.
44407         * tests/test-fdopendir.c (main): Likewise.
44408         * tests/test-fdutimensat.c (main): Likewise.
44409         * tests/test-fflush.c (main): Likewise.
44410         * tests/test-filenamecat.c (main): Likewise.
44411         * tests/test-filevercmp.c (main): Likewise.
44412         * tests/test-fopen-safer.c (main): Likewise.
44413         * tests/test-fopen.c (main): Likewise.
44414         * tests/test-fpending.c (main): Likewise.
44415         * tests/test-fpurge.c (main): Likewise.
44416         * tests/test-freading.c (main): Likewise.
44417         * tests/test-fstatat.c (main): Likewise.
44418         * tests/test-fsync.c (main): Likewise.
44419         * tests/test-futimens.c (main): Likewise.
44420         * tests/test-getndelim2.c (main): Likewise.
44421         * tests/test-gettimeofday.c (main): Likewise.
44422         * tests/test-getopt.c (main): Likewise.
44423         * tests/test-i-ring.c (main): Likewise.
44424         * tests/test-inttypes.c (main): Likewise.
44425         * tests/test-link.c (main): Likewise.
44426         * tests/test-lstat.c (main): Likewise.
44427         * tests/test-math.c (main): Likewise.
44428         * tests/test-md5.c (main): Likewise.
44429         * tests/test-memchr2.c (main): Likewise.
44430         * tests/test-memrchr.c (main): Likewise.
44431         * tests/test-mkdir.c (main): Likewise.
44432         * tests/test-mkdirat.c (main): Likewise.
44433         * tests/test-mkfifoat.c (main): Likewise.
44434         * tests/test-open.c (main): Likewise.
44435         * tests/test-openat-safer.c (main): Likewise.
44436         * tests/test-openat.c (main): Likewise.
44437         * tests/test-quotearg.c (main): Likewise.
44438         * tests/test-rawmemchr.c (main): Likewise.
44439         * tests/test-readlink.c (main): Likewise.
44440         * tests/test-remove.c (main): Likewise.
44441         * tests/test-rename.c (main): Likewise.
44442         * tests/test-renameat.c (main): Likewise.
44443         * tests/test-rmdir.c (main): Likewise.
44444         * tests/test-sha1.c (main): Likewise.
44445         * tests/test-signal.c (main): Likewise.
44446         * tests/test-sigaction.c (main): Likewise.
44447         * tests/test-stat.c (main): Likewise.
44448         * tests/test-stat-time.c (main): Likewise.
44449         * tests/test-stddef.c (main): Likewise.
44450         * tests/test-stdint.c (main): Likewise.
44451         * tests/test-stdio.c (main): Likewise.
44452         * tests/test-stdlib.c (main): Likewise.
44453         * tests/test-strchrnul.c (main): Likewise.
44454         * tests/test-strerror.c (main): Likewise.
44455         * tests/test-string.c (main): Likewise.
44456         * tests/test-strtod.c (main): Likewise.
44457         * tests/test-strverscmp.c (main): Likewise.
44458         * tests/test-symlink.c (main): Likewise.
44459         * tests/test-symlinkat.c (main): Likewise.
44460         * tests/test-sys_stat.c (main): Likewise.
44461         * tests/test-sys_time.c (main): Likewise.
44462         * tests/test-time.c (main): Likewise.
44463         * tests/test-unistd.c (main): Likewise.
44464         * tests/test-unlink.c (main): Likewise.
44465         * tests/test-unlinkat.c (main): Likewise.
44466         * tests/test-utimens.c (main): Likewise.
44467         * tests/test-utimensat.c (main): Likewise.
44468         * tests/test-version-etc.c (main): Likewise.
44469         * tests/test-wchar.c (main): Likewise.
44470         * tests/test-wctype.c (main): Likewise.
44471         * tests/test-xprintf-posix.c (main): Likewise.
44472         * tests/test-posixtm.c (main): Likewise.
44473         (STREQ): Delete unused macro.
44474         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44475         shadowed variables.
44476         * tests/test-memchr.c (main): Likewise.
44477
44478 2009-10-21  Eric Blake  <ebb9@byu.net>
44479
44480         areadlinkat: avoid failure on older glibc
44481         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
44482         rather than mis-comparing 0 against FUNC_RESULT of char*.
44483
44484 2009-10-21  Bruno Haible  <bruno@clisp.org>
44485
44486         * modules/stpncpy (License): Relicense under LGPLv2+.
44487         Reported by David Lutterkort <lutter@redhat.com>.
44488
44489 2009-10-20  Eric Blake  <ebb9@byu.net>
44490
44491         utimensat: work around Solaris 9 bug
44492         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
44493         has trailing slash bugs.
44494         * tests/test-lutimens.h (test_lutimens): Enhance test.
44495         * tests/test-utimens.h (test_utimens): Likewise.
44496         * doc/posix-functions/utime.texi (utime): Enhance documentation.
44497         * doc/posix-functions/utimes.texi (utimes): Likewise.
44498         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44499         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
44500         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
44501         * doc/posix-functions/futimens.texi (futimens): Likewise.
44502
44503         fdutimensat: new module
44504         * modules/fdutimensat: New file.
44505         * lib/fdutimensat.c (fdutimensat): Likewise.
44506         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
44507         * MODULES.html.sh (File system functions): Mention module.
44508         * modules/fdutimensat-tests: New test.
44509         * tests/test-fdutimensat.c: Likewise.
44510
44511         doc: regenerate INSTALL
44512         * doc/INSTALL: Reflect recent autoconf update.
44513         * doc/INSTALL.ISO: Likewise.
44514         * doc/INSTALL.UTF-8: Likewise.
44515
44516 2009-10-20  Pádraig Brady  <P@draigBrady.com>
44517
44518         acl: warn if ACL support is not detected
44519         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
44520
44521 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
44522
44523         * lib/nproc.h: Add extern "C" block for C++.
44524
44525 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
44526             Bruno Haible  <bruno@clisp.org>
44527
44528         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
44529         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
44530         * doc/posix-functions/isalpha.texi: Likewise.
44531         * doc/posix-functions/isblank.texi: Likewise.
44532         * doc/posix-functions/iscntrl.texi: Likewise.
44533         * doc/posix-functions/isdigit.texi: Likewise.
44534         * doc/posix-functions/isgraph.texi: Likewise.
44535         * doc/posix-functions/islower.texi: Likewise.
44536         * doc/posix-functions/isprint.texi: Likewise.
44537         * doc/posix-functions/ispunct.texi: Likewise.
44538         * doc/posix-functions/isspace.texi: Likewise.
44539         * doc/posix-functions/isupper.texi: Likewise.
44540         * doc/posix-functions/isxdigit.texi: Likewise.
44541
44542 2009-10-18  Bruno Haible  <bruno@clisp.org>
44543
44544         Tests for module 'isblank'.
44545         * modules/isblank-tests: New file.
44546         * tests/test-isblank.c: New file.
44547
44548         New module 'isblank'.
44549         * lib/isblank.c: New file.
44550         * m4/isblank.m4: New file.
44551         * modules/isblank: New file.
44552         * doc/posix-functions/isblank.texi: Mention the new module.
44553
44554 2009-10-18  Bruno Haible  <bruno@clisp.org>
44555
44556         New module 'ctype'.
44557         * lib/ctype.in.h: New file.
44558         * m4/ctype.m4: New file.
44559         * modules/ctype: New file.
44560         * doc/posix-headers/ctype.texi: Mention the new module.
44561
44562 2009-10-18  Jim Meyering  <meyering@redhat.com>
44563
44564         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
44565         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
44566         right after its initialization, rather than farther down.
44567         Keeping these in close proximity makes it easier to ensure
44568         that each such variable is initialized.  E.g.,
44569
44570             LIB_CLOCK_GETTIME=
44571             AC_SUBST([LIB_CLOCK_GETTIME])
44572
44573         This change also increments these serial numbers.
44574         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
44575         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44576         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44577
44578 2009-10-18  Bruno Haible  <bruno@clisp.org>
44579
44580         Don't let environment variables perturb build.
44581         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
44582         (gl_PREREQ_GETHRXTIME): ... not here.
44583
44584 2009-10-18  Bruno Haible  <bruno@clisp.org>
44585
44586         Avoid symlink attack in localcharset module.
44587         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
44588         (O_NOFOLLOW): Define fallback.
44589         (get_charset_aliases): Don't open the file if it is a symbolic link.
44590         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
44591         gl_FCNTL_H.
44592         (gl_FCNTL_H): Require it.
44593         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
44594         * modules/localcharset (Files): Add m4/fcntl_h.m4.
44595         Reported by Fergal Glynn <fglynn@veracode.com>.
44596
44597 2009-10-18  Bruno Haible  <bruno@clisp.org>
44598
44599         Implement nproc for mingw.
44600         * lib/nproc.c: Include <windows.h>
44601         (num_processors): On native Windows platforms, try GetSystemInfo.
44602
44603 2009-10-18  Bruno Haible  <bruno@clisp.org>
44604
44605         Implement nproc for IRIX.
44606         * lib/nproc.c: Include <sys/sysmp.h>.
44607         (num_processors): On IRIX systems, try sysmp.
44608         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
44609
44610 2009-10-18  Bruno Haible  <bruno@clisp.org>
44611
44612         Implement nproc for HP-UX.
44613         * lib/nproc.c: Include <sys/pstat.h>
44614         (num_processors): On HP-UX systems, try pstat_getdynamic.
44615         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
44616         pstat_getdynamic.
44617
44618 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
44619             Bruno Haible  <bruno@clisp.org>
44620
44621         Implement nproc for NetBSD, OpenBSD.
44622         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
44623         (ARRAY_SIZE): New macro.
44624         (num_processors): On BSD systems, try sysctl of HW_NCPU.
44625         * m4/nproc.m4: New file.
44626         * modules/nproc (Files): Add m4/nproc.m4.
44627         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
44628         (Makefile.am): Instead, augment lib_SOURCES.
44629
44630 2009-10-18  Bruno Haible  <bruno@clisp.org>
44631
44632         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
44633         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
44634         sys/param.h.
44635
44636 2009-10-16  Eric Blake  <ebb9@byu.net>
44637
44638         utimensat: new module
44639         * modules/utimensat: New file.
44640         * lib/utimensat.c (utimensat): Likewise.
44641         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44642         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
44643         so we can work around Linux bugs.
44644         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44645         * modules/sys_stat (Makefile.am): Substitute them.
44646         * lib/sys_stat.in.h (utimensat): Declare it.
44647         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44648         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44649         * modules/utimensat-tests: New test.
44650         * tests/test-utimensat.c: Likewise.
44651
44652         utimens: let lutimens work on non-symlinks
44653         * lib/utimens.c (lutimens): Fall back to utimens rather than
44654         failing with ENOSYS, when file is not a symlink.
44655         (utimens): Reduce redirection.
44656         * tests/test-lutimens.h (test_lutimens): Update test to cover
44657         non-symlinks.
44658         * tests/test-utimens.h (test_utimens): Update test to cover
44659         symlinks.
44660         * tests/test-utimens.c (main): Update caller.
44661
44662         utimens: cache whether utimensat syscall works
44663         * lib/utimens.c (utimensat_works_really): New cache variable.
44664         (fdutimens, lutimens): Use it to avoid failing syscall.
44665
44666         test-stat-time, test-utimens: improve portability
44667         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
44668         ext4 on alpha, and for cygwin.
44669         * tests/test-utimens-common.h: New file.
44670         (nap): Factor delays into single function.
44671         * tests/test-lutimens.h (test_lutimens): Use new header.
44672         * tests/test-futimens.h (test_futimens): Likewise.
44673         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
44674         timestamps to occur from same machine, as was done previously for
44675         test_utimens.
44676         * modules/utimens-tests (Files): Ship new file.
44677         * modules/futimens-tests (Files): Likewise.
44678         Reported in part by Jim Meyering.
44679
44680         sys_stat: sort replacement declarations
44681         * lib/sys_stat.in.h: Sort declarations.
44682         * lib/futimens.c (futimens): Fix typo.
44683
44684 2009-10-15  Jim Meyering  <meyering@redhat.com>
44685
44686         don't let environment settings perturb build
44687         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
44688         could cause a configure-time and/or build-time malfunction.
44689         Typically, a configure-time function-in-library test is performed
44690         via code like this:
44691
44692           LIB_VAR=
44693           AC_SUBST([LIB_VAR])
44694           prefix_saved_LIBS=$LIBS
44695             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
44696                        [test "$ac_cv_search_FUNC" = "none required" ||
44697                         LIB_VAR=$ac_cv_search_FUNC])
44698           LIBS=$prefix_saved_LIBS
44699
44700         However, in each of the files affected by this change, the LIB_VAR=
44701         initialization was omitted.  Thus, when set in the environment, its
44702         value would propagate into generated Makefiles when FUNC is not found
44703         in LIB_NAME.
44704         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
44705         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44706         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44707
44708 2009-10-14  Eric Blake  <ebb9@byu.net>
44709
44710         fchdir: avoid infinite recursion in mingw
44711         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
44712         recursing.
44713
44714         test-stat-time: port to mingw
44715         * tests/test-stat-time.c (force_unlink): Return a value.
44716         (test_ctime) [W32]: Fix compilation error.
44717         (nap): Don't call usleep with too large an argument.  Use
44718         force_unlink.
44719         * doc/pastposix-functions/usleep.texi (usleep): Document the
44720         portability issue.
44721
44722 2009-10-13  Jim Meyering  <meyering@redhat.com>
44723
44724         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
44725         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
44726         * modules/pipe-filter-ii: Likewise.
44727         * modules/sys_socket-tests: Likewise.
44728         * modules/tsearch-tests: Likewise.
44729         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
44730         (check): Depend on it.
44731
44732 2009-10-12  Eric Blake  <ebb9@byu.net>
44733
44734         utimens-tests: port to NFS file systems
44735         * tests/test-utimens.h (test_utimens): Refactor utimecmp
44736         comparisons to avoid spurious failures from timestamp drift
44737         between NFS machines.
44738
44739 2009-10-12  Eric Blake  <ebb9@byu.net>
44740
44741         stat-time-tests: minor cleanups
44742         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
44743         * tests/test-stat-time.c (nap): Separate assignment from call.
44744         Suggested by Paolo Bonzini and Bruno Haible.
44745
44746         sys_stat: guarantee struct timespec
44747         * lib/sys_stat.in.h (includes): Always include <time.h>
44748         * modules/sys_stat (Depends-on): Add time.
44749         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
44750         mode_t permission values.
44751         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
44752         get at subsecond timestamps.
44753
44754 2009-10-10  Eric Blake  <ebb9@byu.net>
44755
44756         futimens: new module
44757         * modules/futimens: New file.
44758         * lib/futimens.c (futimens): Likewise.
44759         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
44760         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
44761         we can work around Linux bugs.
44762         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44763         * modules/sys_stat (Makefile.am): Substitute them.
44764         * lib/sys_stat.in.h (futimens): Declare it.
44765         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44766         * doc/posix-functions/futimens.texi (futimens): Likewise.
44767         * modules/futimens-tests: New test.
44768         * tests/test-futimens.c: Likewise.
44769
44770         utimens: introduce fdutimens
44771         * lib/utimens.h (fdutimens): New prototype.
44772         * lib/utimens.c (gl_futimens): Move guts...
44773         (fdutimens): ...to new interface.
44774         * tests/test-utimens.c (do_fdutimens): Use it.
44775
44776         utimens: add UTIME_NOW and UTIME_OMIT support
44777         * lib/utimens.c (validate_timespec, update_timespec): New helper
44778         functions.
44779         (gl_futimens, lutimens): Use them.
44780         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
44781         stdbool, sys_stat.
44782         (Link): Mention resulting library dependency.
44783         * modules/utimecmp (Link): Likewise.
44784         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
44785         (Makefile.am): Pick up library dependency.
44786         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
44787         definition.
44788         * tests/test-sys_stat.c: Test the definitions.
44789         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
44790         * NEWS: Document library dependency.
44791
44792         utimecmp: support symlink timestamps
44793         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
44794         hashing when possible.  Use pathconf when available.
44795         (SYSCALL_RESOLUTION): Recognize tighter resolution.
44796         * modules/utimecmp (Depends-on): Add lstat.
44797
44798         utimens: add lutimens interface
44799         * lib/utimens.c (lutimens): New function.
44800         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
44801         * lib/utimens.h (lutimens): Declare new interface.
44802         * tests/test-utimens.c (main): Enhance test.
44803         * tests/test-lutimens.h (test_lutimens): New file.
44804         * modules/utimens-tests (Files): Distribute it.
44805         (Depends-on): Add symlink.
44806         (configure.ac): Check for usleep.
44807
44808         utimens: validate futimens usage
44809         * lib/utimens.c (gl_futimens): Require valid fd up front, using
44810         fewer syscalls on failure later on.  Avoid compiler warning on
44811         mingw.
44812         * modules/utimens (Depends-on): Add dup2.
44813
44814         utimens: add test
44815         * modules/utimens-tests: New test.
44816         * tests/test-utimens.h: New file.
44817         * tests/test-futimens.h: Likewise.
44818         * tests/test-utimens.c: Likewise.
44819
44820         doc: mention timestamp portability issues
44821         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
44822         instead.
44823         * doc/posix-functions/utime.texi (utime): Likewise.
44824         * doc/posix-functions/utimes.texi (utimes): Likewise.
44825         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
44826         instead.
44827         * doc/posix-functions/futimens.texi (futimens): Mention utimens
44828         module.
44829         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44830         Mention weakness with symlink timestamps.
44831         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
44832         to utimensat/futimens instead.
44833         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
44834
44835         test-dup2: enhance test
44836         * tests/test-dup2.c (main): Also check AT_FDCWD.
44837
44838         test-stat-time: avoid more spurious failures
44839         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
44840         xfs; and avoid race if the two timestamps cross quantization edge.
44841
44842         relocatable: prefer 'file system' over 'filesystem'
44843         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
44844         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
44845         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
44846         * doc/relocatable.texi (Enabling Relocatability): Likewise.
44847         * lib/relocatable.c (compute_curr_prefix): Likewise.
44848
44849 2009-10-10  Jim Meyering  <meyering@redhat.com>
44850
44851         stat-time-tests: check for the usleep function
44852         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
44853
44854 2009-10-10  Bruno Haible  <bruno@clisp.org>
44855
44856         * modules/xnanosleep: Put the Link section after the Include section.
44857
44858 2009-10-09  Eric Blake  <ebb9@byu.net>
44859
44860         dup2: work around FreeBSD 6.1 bug
44861         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
44862         * doc/posix-functions/dup2.texi (dup2): Document it.
44863         Reported by Nelson H. F. Beebe and Jim Meyering.
44864
44865         test-stat-time: port to buggy NFS clients
44866         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
44867         (test_ctime): Also skip test if mtime and ctime are skewed.
44868
44869         maint: prefer 'file system' over 'filesystem'
44870         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44871         * doc/posix-functions/lstat.texi (lstat): Likewise.
44872         * lib/file-has-acl.c (file_has_acl): Likewise.
44873         * lib/fwriteerror.c [TEST]: Likewise.
44874         * tests/test-areadlink.h (test_areadlink): Likewise.
44875         * tests/test-areadlinkat-with-size.c (main): Likewise.
44876         * tests/test-areadlinkat.c (main): Likewise.
44877         * tests/test-canonicalize-lgpl.c (main): Likewise.
44878         * tests/test-canonicalize.c (main): Likewise.
44879         * tests/test-fstatat.c (main): Likewise.
44880         * tests/test-linkat.c (main): Likewise.
44881         * tests/test-lstat.h (test_lstat_func): Likewise.
44882         * tests/test-mkdir.h (test_mkdir): Likewise.
44883         * tests/test-readlink.h (test_readlink): Likewise.
44884         * tests/test-remove.c (main): Likewise.
44885         * tests/test-rename.h (test_rename): Likewise.
44886         * tests/test-renameat.c (main): Likewise.
44887         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44888         * tests/test-symlink.h (test_symlink): Likewise.
44889         * tests/test-symlinkat.c (main): Likewise.
44890         * tests/test-unlink.h (test_unlink_func): Likewise.
44891         * tests/test-unlinkat.c (main): Likewise.
44892
44893         maint: make realtime library usage explicit
44894         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
44895         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
44896         * modules/settime (Link): Likewise.
44897         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
44898
44899         test-stat-time: speed up execution
44900         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
44901         warning on mingw.
44902         (nap): New helper function.
44903         (prepare_test): Use it to reduce sleep time.
44904         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
44905         execution.
44906         * modules/stat-time-tests (configure.ac): Check for usleep.
44907
44908 2009-10-09  Jim Meyering  <meyering@redhat.com>
44909
44910         selinux-h: always use getfilecon wrappers
44911         * lib/getfilecon.c: New file.
44912         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
44913         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
44914         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
44915         (fgetfilecon): Provide a stub.
44916         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
44917         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
44918         file unconditionally.
44919         When <selinux/selinux.h> is found, arrange to use wrappers.
44920         * modules/selinux-h (Files): Add getfilecon.c.
44921         (Makefile.am): Substitute include-next-related bits
44922         into the now-always-generated selinux/selinux.h file.
44923         * doc/glibc-functions/lgetfilecon.texi: New file.
44924         * doc/glibc-functions/fgetfilecon.texi: New file.
44925         * doc/glibc-functions/getfilecon.texi: New file.
44926         * doc/glibc-functions/getfilecon-desc.texi: New file.
44927         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
44928         which to pull in the new files.
44929         * MODULES.html.sh (Misc): Add selinux-h.
44930
44931 2009-10-08  Jim Meyering  <meyering@redhat.com>
44932
44933         unistd: fix comment typo
44934         * lib/unistd.in.h (euidaccess): Fix a comment typo.
44935
44936 2009-10-08  Eric Blake  <ebb9@byu.net>
44937
44938         areadlink: use SIZE_MAX consistently
44939         * modules/areadlink (Depends-on): Add stdint.
44940         * modules/areadlink-with-size (Depends-on): Likewise.
44941         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
44942         gives NULL; drop sys/types, since unistd gives size_t; and add
44943         stdint for SIZE_MAX.
44944         (SIZE_MAX): Rely on headers.
44945         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
44946         and add stdint.
44947         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
44948         (SIZE_MAX): Likewise.
44949         (INITIAL_BUF_SIZE): Turn into enum.
44950         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
44951
44952 2009-10-08  Jim Meyering  <meyering@redhat.com>
44953
44954         areadlinkat: avoid compilation failure
44955         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
44956         Fix typo in comment.
44957
44958 2009-10-07  Eric Blake  <ebb9@byu.net>
44959
44960         areadlinkat-with-size: new module
44961         * modules/areadlinkat-with-size: New module.
44962         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
44963         * lib/areadlink.h (areadlinkat): Declare it.
44964         * MODULES.html.sh (File system functions): Mention it.
44965         * modules/areadlinkat-with-size-tests: New test.
44966         * tests/test-areadlinkat-with-size.c: New file.
44967
44968         xreadlinkat: new module
44969         * modules/xreadlinkat: New module.
44970         * lib/xreadlinkat.c (xreadlinkat): New file.
44971         * lib/xreadlink.h (xreadlinkat): Declare it.
44972         * MODULES.html.sh (File system functions): Mention it.
44973
44974         areadlinkat: new module
44975         * lib/at-func.c (FUNC_FAIL): New define.
44976         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
44977         * modules/areadlinkat: New module.
44978         * lib/linkat.c (areadlinkat): Move...
44979         * lib/areadlinkat.c (areadlinkat): ...to new file.
44980         * lib/areadlink.h (areadlinkat): Declare it.
44981         * modules/linkat (Depends-on): Add areadlinkat.
44982         * MODULES.html.sh (File system functions): Mention it.
44983         * modules/areadlinkat-tests: New test.
44984         * tests/test-areadlinkat.c: New file.
44985
44986         areadlink, areadlink-with-size: add tests
44987         * modules/areadlink-tests: New test.
44988         * modules/areadlink-with-size-tests: Likewise.
44989         * tests/test-areadlink.h: New file.
44990         * tests/test-areadlink.c: Likewise.
44991         * tests/test-areadlink-with-size.c: Likewise.
44992
44993         maint: minor cleanups
44994         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
44995         _UNUSED_PARAMETER_ instead.
44996         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
44997         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
44998         * modules/linkat-tests (Files): Distribute test-link.h.
44999
45000         openat, utimens: whitespace cleanup
45001         * lib/openat.c: Prefer space throughout, rather than mix of 8
45002         spaces vs. tabs.
45003         * lib/at-func.c: Likewise.
45004         * lib/utimens.c: Likewise.
45005
45006         openat: avoid using wrong fd
45007         * lib/openat.c (openat_permissive): Reject user's fd if saving the
45008         working directory chooses same fd.
45009         * lib/at-func.c (AT_FUNC_NAME): Likewise.
45010
45011         mkdir, mkdirat: fix cygwin 1.5.x bug
45012         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
45013         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
45014         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
45015         bug.
45016         (gl_PREREQ_MKDIR): Delete unused macro.
45017         * modules/mkdir (Files): Track file rename.
45018         (configure.ac): Update macro name.
45019         * modules/openat (Depends-on): Add mkdir.
45020         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
45021
45022         mkdir, mkdirat: add tests
45023         * modules/mkdir-tests: New test.
45024         * tests/test-mkdir.h: New file.
45025         * tests/test-mkdir.c: Likewise.
45026         * tests/test-mkdirat.c: Likewise.
45027         * modules/openat-tests (Files): Add new files.
45028         (Makefile.am): Run new test.
45029
45030 2009-10-06  Eric Blake  <ebb9@byu.net>
45031
45032         doc: tweak *at function documentation
45033         * doc/posix-functions/faccessat.texi (faccessat): Mention
45034         known issue with replacement.
45035         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
45036         * doc/posix-functions/linkat.texi (linkat): Likewise.
45037         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45038         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45039         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45040         * doc/posix-functions/renameat.texi (renameat): Likewise.
45041         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45042
45043         openat: fix GNU/Hurd bug in unlinkat
45044         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
45045         broken.
45046         * doc/posix-functions/unlink.texi (unlink): Document this.
45047         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
45048
45049         fdopendir: fix GNU/Hurd bug
45050         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
45051         allowing non-directory fds.
45052         * lib/fdopendir.c (rpl_fdopendir): Work around it.
45053         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
45054         * modules/dirent (Makefile.am): Substitute it.
45055         * lib/dirent.in.h (fdopendir): Declare replacement.
45056         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
45057         * tests/test-fdopendir.c (main): Test something other than
45058         /dev/null, since on Hurd that behaves like a directory.
45059
45060         test-symlink: port to GNU/Hurd
45061         * tests/test-symlink.h (test_symlink): Relax expected errno.
45062
45063         doc: tweak more cygwin information
45064         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
45065         now compatible with glibc.
45066         * doc/posix-functions/getopt.texi (getopt): Likewise.
45067
45068         getopt-gnu: add another test
45069         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
45070         guarantee behavior relied on by m4.
45071         * tests/test-getopt.c (main): Use it.
45072         * modules/getopt-posix-tests (Depends-on): Add setenv.
45073         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
45074
45075         getopt: fix compilation on darwin
45076         * lib/getopt.in.h (includes): Leave breadcrumbs during system
45077         include.
45078         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
45079         Reported by Ludovic Courtès.
45080
45081 2009-10-06  Bruno Haible  <bruno@clisp.org>
45082
45083         * modules/size_max (Description): Discourage its use.
45084         Reported by Simon Josefsson.
45085
45086 2009-10-06  Jim Meyering  <meyering@redhat.com>
45087
45088         linkat: avoid compilation failure
45089         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
45090
45091 2009-10-05  Eric Blake  <ebb9@byu.net>
45092
45093         linkat: support Linux 2.6.17
45094         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
45095         linkat on Linux, but allow cache variable override.
45096         * lib/linkat.c (rpl_linkat): Define override.
45097         * modules/linkat (Depends-on): Add symlinkat.
45098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
45099         * modules/unistd (Makefile.am): Substitute it.
45100         * lib/unistd.in.h (linkat): Declare replacement.
45101         Reported by Pádraig Brady.
45102
45103         quotearg: port test to systems with C.UTF-8 locale
45104         * tests/test-quotearg.c (struct result_strings): Add another
45105         member, differentiating between C.ASCII and C.UTF-8 handling.
45106         (compare_strings): Add parameter.
45107         (main): Adjust all callers.
45108
45109         getopt: avoid clash with FreeBSD _getopt_internal
45110         * lib/getopt.in.h (_getopt_internal): Override the name.
45111         * lib/getopt_int.h (includes): Pick up any overrides.
45112         Reported by Reuben Thomas.
45113
45114         hash: allow C89 compilation
45115         * lib/hash.c (check_tuning): Move declaration before statement.
45116         Reported by Reuben Thomas.
45117
45118 2009-10-05  Karl Berry  <karl@gnu.org>
45119
45120         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
45121
45122 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
45123             Bruno Haible  <bruno@clisp.org>
45124
45125         * lib/uname.c (uname): Use a table-driven algorithm to compute
45126         Windows NT versions.
45127
45128 2009-10-04  Bruno Haible  <bruno@clisp.org>
45129
45130         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
45131         program_invocation_short_name.
45132         * modules/progname (configure.ac): Test for presence of
45133         program_invocation_short_name.
45134         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45135
45136 2009-10-04  Bruno Haible  <bruno@clisp.org>
45137
45138         * lib/progname.c (set_program_name): Fix comment.
45139         Reported by Jim Meyering.
45140
45141 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45142             Bruno Haible  <bruno@clisp.org>
45143
45144         * lib/uname.c: Include <string.h>.
45145         (uname): Do only one call to GetVersionEx in the common case.
45146
45147 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45148             Bruno Haible  <bruno@clisp.org>
45149
45150         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
45151         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
45152         (uname): Add support for Windows CE and various non-x86 CPU types.
45153
45154 2009-10-03  Bruno Haible  <bruno@clisp.org>
45155
45156         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
45157         invocation to tests/configure.ac.
45158         Reported by Ian Beckwith <ianb@erislabs.net>.
45159
45160 2009-10-02  Eric Blake  <ebb9@byu.net>
45161
45162         fchdir: avoid compiler warning
45163         * lib/fchdir.c (canonicalize_file_name)
45164         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
45165
45166         test-open: support mingw errno values
45167         * tests/test-open.h (test_open): Relax test.
45168         * tests/test-fopen.h (test_fopen): Likewise.
45169         * tests/test-openat-safer.c (main): Likewise.
45170
45171         open: fix opening directory on mingw
45172         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
45173
45174         test-open: on GNU/Hurd, /dev/null is a directory
45175         * tests/test-fopen.h (main): Rename...
45176         (test_fopen): ...to this.  Use a guaranteed non-directory when
45177         confirming open behavior on trailing slash.
45178         * tests/test-openat-safer.c (main): Likewise.
45179         * tests/test-open.h (main): Likewise....
45180         (test_open): ...to this.
45181         * tests/test-fopen.c (main): Adjust caller.
45182         * tests/test-fopen-safer.c (main): Likewise.
45183         * tests/test-open.c (main): Likewise.
45184         * tests/test-fcntl-safer.c (main): Likewise.
45185         Reported by Samuel Thibault.
45186
45187         rename, fchdir: don't ignore chdir failure
45188         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
45189         * lib/rename.c (rpl_rename) [W32]: Likewise.
45190         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
45191         an empty destination directory if source cannot be renamed,
45192         although there is still possibility for failure.
45193         * doc/posix-functions/rename.texi (rename): Document the race.
45194         Reported by Jim Meyering.
45195
45196         maint: cleanup whitespace in recent commits
45197         * lib/rename.c (rpl_rename): Remove tabs.
45198         * tests/test-link.h (test_link): Likewise.
45199         * lib/fchdir.c (get_name): Likewise.
45200         Reported by Jim Meyering.
45201
45202 2009-10-02  Ben Pfaff  <blp@gnu.org>
45203
45204         relocatable-prog-wrapper: Add missing dependency on
45205         double-slash-root.
45206         * modules/relocatable-prog-wrapper: Add dependency.
45207         Reported by Ian Beckwith <ianb@erislabs.net>.
45208
45209 2009-10-02  Eric Blake  <ebb9@byu.net>
45210
45211         renameat: fix Solaris bugs
45212         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
45213         needed fixing.
45214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
45215         * modules/stdio (Makefile.am): Substitute it.
45216         * lib/stdio.in.h (renameat): Declare replacement.
45217         * lib/renameat.c (rpl_renameat): Implement fix.
45218
45219         renameat: new module
45220         * modules/renameat: New file.
45221         * lib/renameat.c (renameat): Likewise.
45222         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
45223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45224         * modules/stdio (Makefile.am): Substitute them.
45225         * lib/stdio.in.h (renameat): Declare it.
45226         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45227         * doc/posix-functions/renameat.texi (renameat): Likewise.
45228         * modules/renameat-tests: New test.
45229         * tests/test-renameat.c: Likewise.
45230
45231         rename: fix mingw bugs
45232         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
45233         directory overwrite bugs.
45234
45235         rename: fix another cygwin 1.5 bug
45236         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
45237         checks.
45238         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
45239         unnecessary cygwin workarounds.  Also work around bug with moving
45240         full directory onto an empty one.
45241         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
45242
45243         rename-dest-slash: merge into rename module
45244         * modules/rename-dest-slash (Status): Mark obsolete.
45245         (Depends-on): Add rename.
45246         (Files): Let rename do it all.
45247         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
45248         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
45249         * m4/rename-dest-slash.m4: ...so this file can be deleted.
45250         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
45251         * lib/rename.c (rpl_rename): Update comments.
45252
45253         rename: fix cygwin 1.5.x bugs
45254         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
45255         * lib/rename.c (rpl_rename): Work around them.
45256         * modules/rename (Depends-on): Add same-inode.
45257
45258         rename: fix Solaris 10 bug
45259         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45260         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
45261         was the only bug.
45262
45263         rename: fix Solaris 9 bug
45264         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
45265         on non-directory.  Avoid calling exit.
45266         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
45267         strdup.
45268         * modules/rename-tests (Depends-on): Drop lstat.
45269         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45270         (gl_PREREQ_RENAME): Delete unused macro.
45271
45272         rename-dest-slash: fix NetBSD bug
45273         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
45274         links.
45275         * modules/rename-dest-slash (Depends-on): Add same-inode.
45276
45277         rename-tests: new test, exposes several platform bugs
45278         * modules/rename-tests: New file.
45279         * tests/test-rename.h: Likewise.
45280         * tests/test-rename.c: Likewise.
45281         * doc/posix-functions/rename.texi (rename): Improve documentation,
45282         including bugs that will eventually be fixed in gnulib.
45283
45284 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
45285
45286         * lib/uname.c: Include <stdlib.h>
45287         (uname): Assume version info is available.
45288
45289 2009-10-02  Jim Meyering  <meyering@redhat.com>
45290
45291         gnu-web-doc-update: correct --help output
45292         * build-aux/gnu-web-doc-update: Make --help output relevant.
45293
45294         gnu-web-doc-update: add standard options
45295         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
45296
45297         gnu-web-doc-update: New module.
45298         Use this script to automatically update the on-line web documentation
45299         for your GNU project at http://www.gnu.org/software/$pkg/manual/
45300         * modules/gnu-web-doc-update: New file, from coreutils.
45301         * build-aux/gnu-web-doc-update: New script.
45302
45303 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
45304
45305         link: LoadLibrary is not needed.
45306         * lib/link.c: Use GetModuleHandle.
45307
45308 2009-10-01  Eric Blake  <ebb9@byu.net>
45309
45310         getopt: bump serial number
45311         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
45312         change.
45313
45314         tests: tighten link, rmdir, and remove tests
45315         * tests/test-link.h (includes): No need to use <config.h> here.
45316         Clean up if directory hard link was created, otherwise test for
45317         trailing '.'.
45318         * tests/test-linkat.c (main): Simplify.
45319         * tests/test-remove.c (main): Enhance test for trailing '.'.
45320         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45321
45322 2009-10-01  Jim Meyering  <meyering@redhat.com>
45323
45324         maint.mk: requiring "make major" was annoying, for a "minor" release.
45325         What is intended is "stable", to contrast with alpha and beta,
45326         so require "make stable", not "make major".
45327         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45328         (get_tool_versions): Likewise.
45329         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45330
45331 2009-09-30  Ben Pfaff  <blp@gnu.org>
45332
45333         Fix broken build of replacement for Windows tmpfile().
45334         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45335         flags argument added along with the 'mkostemp' module.
45336
45337 2009-09-28  Bruno Haible  <bruno@clisp.org>
45338
45339         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45340         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45341         to 'remove_elt'.
45342         (gl_list_remove): Update.
45343         * lib/gl_list.c (gl_list_remove): Update.
45344         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45345         to 'remove_elt'.
45346         (gl_oset_remove): Update.
45347         * lib/gl_list.c (gl_oset_remove): Update.
45348         Reported by Eric Blake.
45349
45350 2009-09-28  Eric Blake  <ebb9@byu.net>
45351
45352         doc: mention yet more cygwin 1.7 status
45353         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45354         cygwin.
45355         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45356         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45357
45358         argp: fix test failure
45359         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45360         that are not upper-case.  Pass correct range to tolower.
45361
45362 2009-09-27  Jim Meyering  <meyering@redhat.com>
45363
45364         test-yesno: work around sparc-dash here-document infelicity
45365         Without this change, the literal \177 byte in a here document
45366         would make dash 0.5.5.1-3 access uninitialized memory.
45367         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45368         Instead, use a marker, "@", and filter through tr to create the desired
45369         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45370
45371 2009-09-27  Bruno Haible  <bruno@clisp.org>
45372
45373         Disable untested support for new flavours of ACLs on AIX.
45374         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45375         progress.
45376         * lib/set-mode-acl.c (qset_acl): Likewise.
45377
45378 2008-12-07  Bruno Haible  <bruno@clisp.org>
45379
45380         Add support for new flavours of ACLs on AIX. (Untested.)
45381         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45382         (file_has_acl): Add support for newer AIX.
45383         * lib/set-mode-acl.c (qset_acl): Likewise.
45384         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45385         Rainer Tammer <tammer@tammer.net>.
45386
45387 2009-09-26  Eric Blake  <ebb9@byu.net>
45388
45389         argp: fix compilation of getopt
45390         * lib/getopt.in.h (includes): Use different guard than glibc.
45391         Reported by Sergey Poznyakoff.
45392
45393         doc: mention more cygwin 1.7 status
45394         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45395         bug.
45396         * doc/posix-functions/execl.texi (execl): Likewise.
45397         * doc/posix-functions/execle.texi (execle): Likewise.
45398         * doc/posix-functions/execlp.texi (execlp): Likewise.
45399         * doc/posix-functions/execv.texi (execv): Likewise.
45400         * doc/posix-functions/execve.texi (execve): Likewise.
45401         * doc/posix-functions/execvp.texi (execvp): Likewise.
45402         * doc/glibc-functions/canonicalize_file_name.texi
45403         (canonicalize_file_name): Cygwin 1.7 now provides this.
45404         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45405         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45406         on AT_SYMLINK_NOFOLLOW.
45407
45408 2009-09-24  Eric Blake  <ebb9@byu.net>
45409
45410         test-linkat: make test more robust
45411         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45412
45413         getopt: fix inclusion guards for cygwin
45414         * modules/getopt-posix (Depends-on): Add include-next.
45415         (Makefile.am): Substitute more items in replacement header.
45416         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45417         <getopt.h>.
45418         * lib/getopt.in.h (includes): Use split inclusion guard, and
45419         prefer <getopt.h> over include <unistd.h> when one is present.
45420         (option): Also override name of 'struct option'.
45421
45422         same-inode: revert prior change; it is not yet ready
45423         * NEWS: Undo mention of this change.
45424         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45425         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45426         * lib/cycle-check.c (cycle_check): Likewise.
45427         * lib/same.c (same_name): Likewise.
45428         * lib/at-func2.c (at_func2): Likewise.
45429
45430 2009-09-23  Eric Blake  <ebb9@byu.net>
45431
45432         linkat: new module
45433         * modules/linkat: New file.
45434         * lib/at-func2.c (at_func2): Likewise.
45435         * lib/linkat.c (linkat): Likewise.
45436         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45437         * lib/openat-priv.h (at_func2): Add declaration.
45438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45439         * modules/unistd (Makefile.am): Substitute them.
45440         * lib/unistd.in.h (linkat): Declare it.
45441         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45442         * doc/posix-functions/linkat.texi (linkat): Likewise.
45443         * doc/posix-functions/link.texi (link): Tweak wording.
45444         * tests/test-link.c (main): Move guts...
45445         * tests/test-link.h (test_link): ...into new file.
45446         * modules/linkat-tests: New test.
45447         * tests/test-linkat.c: Likewise.
45448         * modules/link-tests (Files): Ship new file.
45449         (Depends-on): Add stdbool.
45450
45451         dirname: add library-safe mdir_name
45452         * lib/dirname.h (mdir_name): New prototype.
45453         * lib/dirname.c (dir_name): Move guts...
45454         (mdir_name): ...to new function that avoids xalloc_die.
45455
45456         fchdir: another mingw fix
45457         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45458         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45459         on mingw (where it has not yet been ported), and make it optional
45460         elsewhere.
45461         (_gl_register_fd): Use it.
45462
45463         same-inode: make SAME_INODE tri-state, to port to mingw
45464         * NEWS: Mention this change.
45465         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45466         st_ino always being 0.
45467         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45468         * lib/cycle-check.c (cycle_check): Likewise.
45469         * lib/same.c (same_name): Likewise.
45470
45471         lstat: avoid mingw compilation error
45472         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45473         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45474         lstat ourselves.
45475         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45476         was adequate.
45477         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
45478         the checks for lstat.
45479         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
45480
45481         link: fix test failure on Solaris 9
45482         * lib/link.c (rpl_link): Don't assume link will catch bogus
45483         trailing slash on source.
45484
45485         test-symlinkat: enhance test
45486         * tests/test-readlink.c (main): Move guts...
45487         * tests/test-readlink.h (test_readlink): ...into new file.
45488         * tests/test-symlink.c (main): Move guts...
45489         * tests/test-symlink.h (test_symlink): ...into new file.
45490         * tests/test-symlinkat.c (main): Use new files for further
45491         coverage.
45492         (do_symlink, do_readlink): New helper functions.
45493         * modules/symlink-tests (Files): Ship new file.
45494         (Depends-on): Add stdbool.
45495         * modules/readlink-tests (Files): Ship new file.
45496         (Depends-on): Add stdbool.
45497         * modules/symlinkat-tests (Files): Use new files.
45498
45499 2009-09-23  Eric Blake  <ebb9@byu.net>
45500
45501         readlink: document portability issue with symlink length
45502         * doc/posix-functions/lstat.texi (lstat): Mention that some file
45503         systems have bogus st_size on symlinks, and mention the
45504         areadlink-with-size module.
45505         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45506         * doc/posix-functions/readlink.texi (readlink): Mention the
45507         areadlink module, and ERANGE failure.
45508         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45509         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
45510
45511         readlink: fix Solaris 9 bug with trailing slash
45512         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
45513         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
45514         * doc/posix-functions/readlink.texi (readlink): Document this.
45515         * modules/readlink-tests: New test.
45516         * tests/test-readlink.c: Likewise.
45517
45518         readlink: fix cygwin 1.5.x bug with return type
45519         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
45520         * lib/unistd.in.h (readlink): Use ssize_t.
45521         * lib/readlink.c (readlink): Likewise.
45522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45523         * modules/unistd (Makefile.am): Substitute it.
45524         * lib/unistd.in.h (readlink): Declare replacement.
45525         * doc/posix-functions/readlink.texi (readlink): Document this.
45526
45527         symlink: use throughout gnulib
45528         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
45529         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
45530         symlink is not used.
45531         * modules/symlinkat (Depends-on): Add symlink.
45532         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45533         * modules/canonicalize-tests (Depends-on): Likewise.
45534         * modules/lstat-tests (Depends-on): Likewise.
45535         * modules/openat-tests (Depends-on): Likewise.
45536         * modules/remove-tests (Depends-on): Likewise.
45537         * modules/rmdir-tests (Depends-on): Likewise.
45538         * modules/unlink-tests (Depends-on): Likewise.
45539         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
45540         * tests/test-canonicalize.c (symlink): Likewise.
45541         * tests/test-fstatat.c (symlink): Likewise.
45542         * tests/test-lstat.c (symlink): Likewise.
45543         * tests/test-remove.c (symlink): Likewise.
45544         * tests/test-rmdir.c (symlink): Likewise.
45545         * tests/test-unlink.c (symlink): Likewise.
45546         * tests/test-unlinkat.c (symlink): Likewise.
45547
45548         symlink: new module, for Solaris 9 bug
45549         * modules/symlink: New file.
45550         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
45551         * lib/symlink.c: Likewise.
45552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
45553         * modules/unistd (Makefile.am): Substitute them.
45554         * lib/unistd.in.h (symlink): Declare replacement.
45555         * MODULES.html.sh (File system functions): Mention it.
45556         * doc/posix-functions/symlink.texi (symlink): Likewise.
45557         * modules/symlink-tests: New test.
45558         * tests/test-symlink.c: Likewise.
45559
45560 2009-09-23  Bruno Haible  <bruno@clisp.org>
45561
45562         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
45563         when needed.
45564         Test case: gnulib-tool --import --with-tests atexit inttypes.
45565         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
45566
45567 2009-09-23  Bruno Haible  <bruno@clisp.org>
45568
45569         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
45570         subcommand, not in a subshell.
45571
45572 2009-09-22  Eric Blake  <ebb9@byu.net>
45573
45574         unistd: sort replacement declarations
45575         * lib/unistd.in.h: Sort declarations.
45576
45577         open, openat: minor optimization
45578         * lib/open.c (open): If open succeeded, len is non-zero.
45579         * lib/openat.c (rpl_openat): Likewise.
45580
45581         link-follow: ensure correct result
45582         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
45583         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
45584         distinguish between possible failures.
45585
45586 2009-09-21  Eric Blake  <ebb9@byu.net>
45587
45588         fts: avoid compiler warning
45589         * lib/fts.c (dirent_inode_sort_may_be_useful)
45590         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
45591
45592 2009-09-19  Bruno Haible  <bruno@clisp.org>
45593
45594         * lib/progreloc.c (canonicalize_file_name): New declaration.
45595
45596 2009-09-19  Eric Blake  <ebb9@byu.net>
45597
45598         link: fix quoting
45599         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
45600
45601         openat: fix openat bugs on Solaris 9
45602         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
45603         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
45604         * modules/openat (Depends-on): Add open.
45605         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
45606         * modules/fcntl-h (Makefile.am): Substitute it.
45607         * lib/fcntl.in.h (openat): Declare replacement.
45608         * doc/posix-functions/openat.texi (openat): Document this.
45609
45610         openat: move fstatat and unlinkat into correct files
45611         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
45612         compiled.
45613         * lib/openat.c (fstatat, unlinkat): Move...
45614         * lib/fstatat.c (fstatat): ...into correct files.
45615         * lib/unlinkat.c (unlinkat): Likewise.
45616
45617         openat: fix unlinkat bugs on Solaris 9
45618         * lib/unlinkat.c (unlinkat): New file.
45619         * modules/openat (Depends-on): Add unlink.
45620         (Files): Distribute it.
45621         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
45622         trailing slash behavior is broken.
45623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45624         * modules/unistd (Makefile.am): Substitute it.
45625         * lib/unistd.in.h (unlinkat): Declare replacement.
45626         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
45627
45628         openat: fix fstatat bugs on Solaris 9
45629         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
45630         stat.
45631         * doc/posix-functions/fstatat.texi (fstatat): Document this.
45632
45633         test-unlinkat: enhance test, to expose Solaris 9 bug
45634         * tests/test-unlink.c (main): Factor guts...
45635         * tests/test-unlink.h (test_rmdir_func): ...into new file.
45636         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
45637         * tests/test-rmdir.c (main): Adjust caller.
45638         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
45639         (unlinker): New helper function.
45640         (rmdirat): Enhance check.
45641         * modules/rmdir-tests (Depends-on): Add stdbool.
45642         * modules/unlink-tests (Depends-on): Likewise.
45643         (Files): Add test-unlink.h.
45644         * modules/openat-tests (Files): Likewise.
45645         (Depends-on): Add unlinkdir.
45646
45647         test-fstatat: new test, to expose Solaris 9 bugs
45648         * tests/test-stat.c (main): Factor guts...
45649         * tests/test-stat.h (test_stat_func): ...into new file.
45650         * tests/test-lstat.c (main): Factor guts...
45651         * tests/test-lstat.h (test_lstat_func): ...into new file.
45652         * tests/test-fstatat.c: New file.
45653         * modules/stat-tests (Files): Add test-stat.h.
45654         * modules/lstat-tests (Files): Add test-lstat.h.
45655         (Depends-on): Add stdbool.
45656         * modules/openat-tests (Depends-on): Add pathmax.
45657         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
45658         (Makefile.am): Run new test.
45659
45660         remove: new module, for mingw and Solaris 9 bugs
45661         * modules/remove: New file.
45662         * lib/remove.c: Likewise.
45663         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
45664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45665         * modules/stdio (Makefile.am): Use them.
45666         * lib/stdio.in.h (remove): Declare replacement.
45667         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45668         * doc/posix-functions/remove.texi (remove): Likewise.
45669         * modules/remove-tests: New test.
45670         * tests/test-remove.c: Likewise.
45671
45672         unlink: new module, for Solaris 9 bug
45673         * modules/unlink: New file.
45674         * lib/unlink.c: Likewise.
45675         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
45676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45677         * modules/unistd (Makefile.am): Use them.
45678         * lib/unistd.in.h (stat): Declare replacement.
45679         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45680         * doc/posix-functions/unlink.texi (unlink): Likewise.
45681         * modules/unlink-tests: New test.
45682         * tests/test-unlink.c: Likewise.
45683
45684         lstat: fix Solaris 9 bug
45685         * lib/lstat.c (lstat): Also check for trailing slash on
45686         non-symlink, non-directories.  Use stat module to simplify logic.
45687         * doc/posix-functions/lstat.texi (lstat): Document it.
45688         * modules/lstat-tests (Depends-on): Add errno, same-inode.
45689         (configure.ac): Check for symlink.
45690         * tests/test-lstat.c (main): Add more tests.
45691
45692         stat: add as dependency to other modules
45693         * modules/chown (Depends-on): Add stat.
45694         * modules/euidaccess (Depends-on): Likewise.
45695         * modules/fchdir (Depends-on): Likewise.
45696         * modules/isdir (Depends-on): Likewise.
45697         * modules/link (Depends-on): Likewise.
45698         * modules/lstat (Depends-on): Likewise.
45699         * modules/mkdir-p (Depends-on): Likewise.
45700         * modules/modechange (Depends-on): Likewise.
45701         * modules/open (Depends-on): Likewise.
45702         * modules/readlink (Depends-on): Likewise.
45703         * modules/same (Depends-on): Likewise.
45704
45705         stat: fix Solaris 9 bug
45706         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
45707         slash.
45708         * lib/stat.c (rpl_stat): Work around it.
45709         * doc/posix-functions/stat.texi (stat): Update documentation.
45710
45711         stat: new module, for mingw bug
45712         * modules/stat: New file.
45713         * lib/stat.c: Likewise.
45714         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
45715         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45716         * modules/sys_stat (Makefile.am): Use them.
45717         * lib/sys_stat.in.h (stat): Declare replacement.
45718         * lib/openat.c (fstatat): Deal with lstat and stat being function
45719         macros.
45720         * modules/openat (Depends-on): Add inline.
45721         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45722         * doc/posix-functions/stat.texi (stat): Likewise.
45723         * modules/stat-tests: New test.
45724         * tests/test-stat.c: Likewise.
45725
45726 2009-09-19  Jim Meyering  <meyering@redhat.com>
45727
45728         syntax-check: detect unnecessary inclusion of canonicalize.h
45729         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
45730
45731 2009-09-19  Eric Blake  <ebb9@byu.net>
45732
45733         canonicalize-lgpl: adjust clients to use correct header
45734         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45735         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
45736         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
45737         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
45738         * lib/progreloc.c (includes): Likewise.
45739
45740 2009-09-19  Jim Meyering  <meyering@redhat.com>
45741
45742         test-posixtm.c: correct a comment
45743         * tests/test-posixtm.c: Correct first-line comment.
45744         Spotted by Eric Blake.
45745
45746 2009-09-16  Jim Meyering  <meyering@redhat.com>
45747
45748         posixtm-tests: make T const-correct; add a test case
45749         * tests/test-posixtm.c (T): Declare const.
45750         Add a test for -(2^31+1).
45751         Remove useless can-succeed-only-in-2002 test.
45752
45753         posixtm-tests: adjust the sole failing test
45754         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
45755         expected output matches what mktime now produces.  Cross-checked via
45756         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
45757
45758         posixtm: move #ifdef'd tests into a new module
45759         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
45760         * tests/test-posixtm.c: ... this new file.
45761         * modules/posixtm-tests: New module.
45762
45763 2009-09-19  Eric Blake  <ebb9@byu.net>
45764
45765         openat: simplify use of at-func.c
45766         * lib/at-func.c (includes): Include prerequisites here, to
45767         simplify requirements on client files.
45768         * lib/openat-priv.h: Add double-inclusion guard.
45769         * lib/faccessat.c (includes): Simplify.
45770         * lib/fchmodat.c (includes): Likewise.
45771         * lib/fchownat.c (includes): Likewise.
45772         * lib/mkdirat.c (includes): Likewise.
45773         * lib/mkfifoat.c (includes): Likewise.
45774         * lib/symlinkat.c (includes): Likewise.
45775
45776         openat: allow return of fd 0
45777         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
45778         * modules/save-cwd (Depends-on): Replace fcntl-safer with
45779         unistd-safer.
45780         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
45781         <fcntl.h>; this module does not leak fds.
45782         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
45783         must be allowed to return 0, leaving openat_safer to add the
45784         safety.
45785         (openat_permissive): Avoid writing to just-opened fd 2 if
45786         restoring the current directory fails.
45787         * lib/openat-die.c (openat_restore_fail): Add comment.
45788         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
45789         (save_cwd): Guarantee safe fd, but without use of open_safer.
45790         * tests/test-openat.c: New test.
45791         * modules/openat-tests (Files, Makefile.am): Distribute and build
45792         new file.
45793
45794         relocatable-prog-wrapper: fix build
45795         * modules/relocatable-prog-wrapper (Files): Update name of
45796         canonicalize m4 file, broken on 2009-09-17.
45797         Reported by emad hajjar <aleppos@hotmail.com>.
45798
45799 2009-09-19  Bruno Haible  <bruno@clisp.org>
45800
45801         * lib/safe-alloc.h: Use the standard header with GPL copyright.
45802         * lib/safe-alloc.c: Likewise.
45803         Reported by Ian Beckwith <ianb@erislabs.net>.
45804
45805 2009-09-18  Bruno Haible  <bruno@clisp.org>
45806
45807         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
45808         Reported by <erobles@sensacd.com.mx>.
45809
45810 2009-09-17  Eric Blake  <ebb9@byu.net>
45811
45812         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
45813         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
45814         slashes when checking if last component is missing.
45815         * tests/test-canonicalize.c (main): Test this.
45816
45817         canonicalize, canonicalize-lgpl: honor // if distinct from /
45818         * modules/canonicalize (Files): Add double-slash-root.m4.
45819         * modules/canonicalize-lgpl (Files): Likewise.
45820         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45821         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
45822         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
45823         fallback definition.
45824         (canonicalize_filename_mode): Use it to protect //.
45825         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
45826         (__realpath): Likewise.
45827         * tests/test-canonicalize.c (main): Test this.
45828         * tests/test-canonicalize-lgpl.c (main): Likewise.
45829         * modules/canonicalize-tests (Depends-on): Add same-inode.
45830         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45831
45832         canonicalize-lgpl: fix glibc bug with trailing slash
45833         * m4/canonicalize-lgpl.m4: Move contents...
45834         * m4/canonicalize.m4: ...here.
45835         (gl_CANONICALIZE_LGPL): Factor realpath check...
45836         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
45837         glibc 2.3.5 bug, fixed 2005-04-27.
45838         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
45839         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
45840         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
45841         * modules/canonicalize-lgpl (Files): Manage file rename.
45842         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45843         * modules/stdlib (Makefile.am): Substitute witness.
45844         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
45845         is needed.
45846         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
45847         replacement is required.
45848         * lib/canonicalize.c (canonicalize_file_name): Likewise.
45849         * doc/glibc-functions/canonicalize_file_name.texi
45850         (canonicalize_file_name): Document this.
45851         * doc/posix-functions/realpath.texi (realpath): Likewise.
45852
45853         canonicalize-lgpl: reject non-directory with trailing slash
45854         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
45855         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
45856         catches failures in glibc 2.3.5.
45857         * tests/test-canonicalize.c (main): Likewise.
45858
45859         canonicalize-lgpl: use native realpath if it works
45860         * lib/canonicalize-lgpl.c (realpath): Guard with
45861         FUNC_REALPATH_WORKS.
45862         * lib/stdlib.in.h (realpath): Make declaration optional based on
45863         HAVE_REALPATH.
45864         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
45865         native realpath works.
45866         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45867         * modules/stdlib (Makefile.am): Substitute witness.
45868
45869         canonicalize, canonicalize-lgpl: use <stdlib.h>
45870         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
45871         (Include): Mention <stdlib.h>.
45872         (configure.ac): Mention functions we provide.
45873         * modules/canonicalize (configure.ac): Likewise.
45874         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
45875         realpath if canonicalize_file_name is missing.
45876         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
45877         * modules/stdlib (Makefile.am): Substitute witnesses.
45878         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
45879         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
45880         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
45881         * NEWS: Document this.
45882         * doc/glibc-functions/canonicalize_file_name.texi
45883         (canonicalize_file_name): Likewise.
45884         * doc/posix-functions/realpath.texi (realpath): Likewise.
45885         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
45886
45887         test-canonicalize: consolidate into single C program
45888         * tests/test-canonicalize.sh: Delete; move setup into...
45889         * tests/test-canonicalize.c (main): ...the program, making it
45890         easier to run in debugger.  Add some tests.
45891         * modules/canonicalize-tests (Files): Remove unused file.
45892         (Depends-on): Add progname.
45893         (configure.ac, Makefile.am): Simplify.
45894
45895         test-canonicalize-lgpl: consolidate into single C program
45896         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
45897         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
45898         easier to run in debugger.  Add some tests.
45899         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
45900         (configure.ac, Makefile.am): Simplify.
45901
45902         canonicalize: avoid resolvepath
45903         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
45904         unnecessary checks.
45905         * lib/canonicalize.c (includes): Simplify.
45906         (canonicalize_file_name): Drop resolvepath implementation.
45907         * modules/canonicalize (Depends-on): Drop filenamecat.
45908
45909         canonicalize: don't lose errno
45910         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
45911         over calls to free.
45912
45913         canonicalize: simplify errno handling
45914         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
45915         assignment.
45916
45917         canonicalize, canonicalize-lgpl: update module dependencies
45918         * modules/canonicalize (Depends-on): Add extensions, lstat,
45919         pathmax, stdlib.
45920         (Files): Drop pathmax.h.
45921         (configure.ac): Adjust macro name.
45922         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
45923         lstat, stdlib, sys_stat.
45924         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
45925         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
45926         extensions.
45927         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
45928         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
45929         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
45930         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
45931         declaration, if available.
45932         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
45933         we can rely on the readlink module.
45934         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
45935         (includes): Use <unistd.h> unconditionally.
45936
45937 2009-09-17  Eric Blake  <ebb9@byu.net>
45938
45939         maint: make Include sections of modules consistent
45940         * modules/alloca: Use only header name; no need to list #include.
45941         * modules/alloca-opt: Likewise.
45942         * modules/arpa_inet: Likewise.
45943         * modules/canon-host: Likewise.
45944         * modules/configmake: Likewise.
45945         * modules/dirent: Likewise.
45946         * modules/eealloc: Likewise.
45947         * modules/environ: Likewise.
45948         * modules/fchdir: Likewise.
45949         * modules/fcntl: Likewise.
45950         * modules/fcntl-h: Likewise.
45951         * modules/gethrxtime: Likewise.
45952         * modules/gettime: Likewise.
45953         * modules/ignore-value: Likewise.
45954         * modules/inet_ntop: Likewise.
45955         * modules/inet_pton: Likewise.
45956         * modules/inttypes: Likewise.
45957         * modules/isnand-nolibm: Likewise.
45958         * modules/isnanf-nolibm: Likewise.
45959         * modules/mbchar: Likewise.
45960         * modules/mbfile: Likewise.
45961         * modules/mbiter: Likewise.
45962         * modules/mbuiter: Likewise.
45963         * modules/netdb: Likewise.
45964         * modules/netinet_in: Likewise.
45965         * modules/nproc: Likewise.
45966         * modules/pagealign_alloc: Likewise.
45967         * modules/poll: Likewise.
45968         * modules/printf-frexp: Likewise.
45969         * modules/pthread: Likewise.
45970         * modules/putenv: Likewise.
45971         * modules/random_r: Likewise.
45972         * modules/relocatable-prog: Likewise.
45973         * modules/search: Likewise.
45974         * modules/select: Likewise.
45975         * modules/selinux-h: Likewise.
45976         * modules/settime: Likewise.
45977         * modules/signal: Likewise.
45978         * modules/size_max: Likewise.
45979         * modules/socklen: Likewise.
45980         * modules/ssize_t: Likewise.
45981         * modules/stdarg: Likewise.
45982         * modules/stdbool: Likewise.
45983         * modules/stddef: Likewise.
45984         * modules/stdint: Likewise.
45985         * modules/stdio: Likewise.
45986         * modules/stdlib: Likewise.
45987         * modules/string: Likewise.
45988         * modules/strings: Likewise.
45989         * modules/sys_file: Likewise.
45990         * modules/sys_ioctl: Likewise.
45991         * modules/sys_select: Likewise.
45992         * modules/sys_socket: Likewise.
45993         * modules/sys_stat: Likewise.
45994         * modules/sys_time: Likewise.
45995         * modules/sys_times: Likewise.
45996         * modules/sys_utsname: Likewise.
45997         * modules/sys_wait: Likewise.
45998         * modules/sysexits: Likewise.
45999         * modules/time: Likewise.
46000         * modules/times: Likewise.
46001         * modules/tmpfile: Likewise.
46002         * modules/trim: Likewise.
46003         * modules/unistd: Likewise.
46004         * modules/wchar: Likewise.
46005         * modules/wctype: Likewise.
46006
46007 2009-09-17  Bruno Haible  <bruno@clisp.org>
46008
46009         Make getdate.y compile on QNX and NetBSD 5 / i386.
46010         * m4/getdate.m4 (gl_GETDATE): Conditionally define
46011         TIME_T_FITS_IN_LONG_INT.
46012         * lib/getdate.y (long_time_t): New type.
46013         (relative_time): Change type of 'seconds' field to long_time_t.
46014         (get_date): Update types of local variables. Check against overflow
46015         during conversion from long_time_t to time_t.
46016         Reported by Matt Kraai <kraai@ftbfs.org>
46017         and Hasso Tepper <hasso@netbsd.org>.
46018
46019 2009-09-17  Bruno Haible  <bruno@clisp.org>
46020
46021         * modules/COPYING: Update copyright years.
46022         * modules/README: Likeiwse.
46023         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
46024         Reported by Ian Beckwith <ianb@erislabs.net>.
46025
46026 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46027
46028         * users.txt: Update references for gnuit package.
46029
46030 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46031
46032         * m4/getdelim.m4: Fix typo in copyright line.
46033
46034 2009-09-17  Bruno Haible  <bruno@clisp.org>
46035
46036         * lib/atoll.c: Use the standard header with GPL copyright.
46037         * lib/argz.in.h: Likewise.
46038         * lib/glob.c: Likewise.
46039         * lib/glob-libc.h: Likewise.
46040         * lib/random_r.c: Likewise.
46041         * lib/siglist.h: Likewise.
46042         * lib/strsignal.c: Likewise.
46043         Reported by Ian Beckwith <ianb@erislabs.net>.
46044
46045 2009-09-17  Eric Blake  <ebb9@byu.net>
46046
46047         rmdir: ensure correct dependency order
46048         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
46049
46050 2009-09-17  Bruno Haible  <bruno@clisp.org>
46051
46052         Disable assertion that fails on NetBSD 5 / i386.
46053         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
46054         Reported by Sam Steingold <sds@gnu.org>
46055         and Hasso Tepper <hasso@netbsd.org>.
46056
46057 2009-09-16  Eric Blake  <ebb9@byu.net>
46058
46059         unlinkdir: port to mingw
46060         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
46061         on which no one can unlink a directory.
46062
46063         stdlib: sort witness names
46064         * modules/stdlib (Makefile.am): Sort replacements.
46065         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46066         * lib/stdlib.in.h: Likewise.
46067
46068         parse-duration-tests: avoid link failure
46069         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
46070         LIBINTL.
46071         Reported by Tom G. Christensen.
46072
46073         openat-tests: ensure unlinkat behaves like rmdir
46074         * tests/test-rmdir.c (main): Factor guts...
46075         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
46076         * modules/rmdir-tests (Files): Ship new file.
46077         * modules/openat-tests: New test.
46078         * tests/test-unlinkat.c: Likewise.
46079
46080         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
46081         * modules/rmdir-errno (Status, Notice): Now obsolete.
46082
46083         rmdir: work around cygwin 1.5.x and mingw bugs
46084         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
46085         * lib/rmdir.c (rmdir): Work around it.
46086         * modules/rmdir (Status, Notice): No longer obsolete.
46087         (Files): Add dos.m4.
46088         (Depends-on): Add unistd.
46089         (configure.ac): Set witnesses.
46090         (License): Relax to LGPLv2+.
46091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
46092         * modules/unistd (Makefile.am): Substitute witnesses.
46093         * lib/unistd.in.h (rmdir): Declare replacement.
46094         * doc/posix-functions/rmdir.texi (rmdir): Document this.
46095         * modules/rmdir-tests: New tests.
46096         * tests/test-rmdir.c: Likewise.
46097
46098 2009-09-15  Eric Blake  <ebb9@byu.net>
46099
46100         fchdir: improve use of replacement functions
46101         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
46102         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
46103         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
46104         REPLACE_CLOSEDIR.
46105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
46106         * modules/sys_stat (Makefile.am): Substitute correct witness.
46107         * modules/dirent (Makefile.am): Likewise.
46108         * modules/unistd (Makefile.am): Likewise.
46109         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
46110         * lib/unistd.in.h (dup): Likewise.
46111         * lib/sys_stat.in.h (fstat): Likewise.
46112
46113         maint: ignore gnulib-tool temp files
46114         * .gitignore: Ignore files created during gnulib-tool --test.
46115
46116 2009-09-13  Jim Meyering  <meyering@redhat.com>
46117
46118         posixtm: don't reject a time that specify "60" as the number of seconds
46119         * lib/posixtm.c (posixtime): The code to reject invalid dates
46120         would also reject a time specified with the .60 suffix.
46121         But POSIX allows that, in order to accommodate leap seconds.
46122         So don't reject it.
46123         (main): Adjust tests accordingly.
46124         * modules/posixtm (Depends-on): Add stpcpy.
46125
46126 2009-09-11  Jim Meyering  <meyering@redhat.com>
46127
46128         announce-gen: include [$release_type] in emitted Subject:
46129         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
46130         e.g., [stable] in the emitted Subject: line.
46131
46132 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46133
46134         Remove obsolete macros from several modules.
46135         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
46136         obsolete Autoconf macros with their modern counterparts.
46137         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
46138         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
46139         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
46140         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46141         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
46142         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46143         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46144         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46145         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46146         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
46147         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
46148         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
46149         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
46150         * m4/sockets.m4 (gl_SOCKETS): Likewise.
46151         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
46152         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
46153         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46154         * m4/time_r.m4 (gl_TIME_R): Likewise.
46155         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46156         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
46157         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46158
46159         Fix copyright header in build-aux scripts.
46160         * build-aux/git-version-gen: Fix copyright header to match GPLv3
46161         recommendation.
46162         * build-aux/ncftpput-ftp: Likewise.
46163         * build-aux/update-copyright: Likewise.
46164
46165 2009-09-09  Eric Blake  <ebb9@byu.net>
46166
46167         test-link: allow Linux choice of errno
46168         * tests/test-link.c (main): Relax test for alternate error.
46169
46170         strndup: fix improper m4 caching
46171         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
46172         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
46173         (gl_PREREQ_STRNDUP): Delete.
46174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
46175         * modules/string (Makefile.am): Substitute it.
46176         * lib/string.in.h (strndup): Modernize prototype.
46177
46178         getcwd: port to mingw
46179         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
46180         different from the POSIX assumptions made throughout the getcwd
46181         module; fortunately, the mingw getcwd does not need replacement.
46182         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
46183         * modules/getcwd-tests: New test.
46184         * tests/test-getcwd.c: Likewise.
46185
46186         link: fix platform bugs
46187         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
46188         * lib/link.c (link): Work around them.  Fix related mingw bug.
46189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
46190         * modules/unistd (Makefile.am): Substitute it.
46191         * lib/unistd.in.h (link): Declare replacement.
46192         * doc/posix-functions/link.texi (link): Document this.
46193         * modules/link (Depends-on): Add strdup-posix, sys_stat.
46194
46195         test-link: consolidate into single C program, test more cases
46196         * tests/test-link.sh: Delete.
46197         * tests/test-link.c: Test more error conditions.  Exposes bugs on
46198         at least Cygwin and Solaris.
46199         * modules/link-tests (Files): Remove unused file.
46200         (Depends-on): Add errno, sys_stat.
46201         (Makefile.am): Simplify.
46202
46203 2009-09-08  Bruno Haible  <bruno@clisp.org>
46204
46205         Work around towlower, towupper bug on mingw.
46206         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
46207         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
46208         * doc/posix-functions/towlower.texi: Mention the mingw bug.
46209         * doc/posix-functions/towupper.texi: Likewise.
46210         Reported by Eric Blake.
46211
46212 2009-09-08  Jim Meyering  <meyering@redhat.com>
46213
46214         build: don't try to run autoheader if we don't use it
46215         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
46216         is not used in configure.ac.
46217
46218 2009-09-08  Eric Blake  <ebb9@byu.net>
46219
46220         euidaccess: fix compilation error
46221         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
46222
46223         rawmemchr: relax license
46224         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
46225         okay.
46226         Reported by Jim Meyering.
46227
46228         mkfifoat: new module
46229         * modules/mkfifoat: New file.
46230         * lib/mkfifoat.c: Likewise.
46231         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
46232         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46233         * modules/sys_stat (Makefile.am): Use them.
46234         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
46235         * MODULES.html.sh (File system functions): Mention module.
46236         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
46237         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
46238         * modules/mkfifoat-tests: New test.
46239         * tests/test-mkfifoat.c: Likewise.
46240
46241         strchrnul: relax license
46242         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
46243         okay.
46244         Reported by Jim Meyering.
46245
46246 2009-09-08  Eric Blake  <ebb9@byu.net>
46247
46248         fstatat: fix compilation on Solaris
46249         * lib/fstatat.c (includes): Add fcntl.h.
46250         Reported by Pádraig Brady.
46251
46252 2009-09-07  Eric Blake  <ebb9@byu.net>
46253
46254         rename: modernize replacement
46255         * modules/rename (Depends-on): Add stdio.
46256         (configure.ac): Declare witness.
46257         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
46258         stdio take care of replacement.
46259         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46260         * modules/stdio (Makefile.am): Substitute them.
46261         * lib/stdio.in.h (rename): Declare replacement.
46262         * lib/rename.c (includes): Allow cross-compilation to non-windows
46263         machines.
46264         * doc/posix-functions/rename.texi (rename): Improve
46265         documentation.
46266
46267         stdio: sort witness names
46268         * modules/stdio (Makefile.am): Sort replacements.
46269         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46270         * lib/stdio.in.h: Likewise.
46271
46272         getcwd: minor cleanups
46273         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
46274         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
46275
46276         openat: provide more convenience names
46277         * modules/faccessat (configure.ac): Add C witness.
46278         * lib/unistd.in.h (readlinkat): Fix typo.
46279         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
46280         convenience wrappers.
46281         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
46282         wrappers in syntax checks.
46283
46284 2009-09-06  Eric Blake  <ebb9@byu.net>
46285
46286         doc: fix comments in recent patches
46287         * lib/faccessat.c: Mention correct function.
46288         * lib/fchmodat.c: Likewise.
46289         * lib/fchownat.c: Likewise.
46290         * lib/symlinkat.c: Likewise.
46291         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
46292         constants.
46293
46294         faccessat, symlinkat: continue cleanup of previous patch
46295         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
46296         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46297         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
46298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
46299         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
46300         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
46301         set.
46302
46303 2009-09-06  Bruno Haible  <bruno@clisp.org>
46304
46305         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
46306         (fstatat): Declare if GNULIB_FSTATAT is set.
46307         (mkdirat): Declare if GNULIB_MKDIRAT is set.
46308         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
46309         (unlinkat): Declare if GNULIB_UNLINKAT is set.
46310         * modules/fcntl-h (Files): Remove m4/openat.m4.
46311         * modules/sys_stat (Files): Remove m4/openat.m4.
46312         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
46313         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
46314         * modules/unistd (Files): Remove m4/openat.m4.
46315         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
46316         GNULIB_OPENAT.
46317         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
46318         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
46319         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
46320         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
46321         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
46322         gl_OPENAT_DEFAULTS.
46323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46324         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46325         Don't require gl_OPENAT_DEFAULTS.
46326         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46327         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46328         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46329         (gl_OPENAT_DEFAULTS): Remove macro.
46330
46331 2009-09-06  Bruno Haible  <bruno@clisp.org>
46332
46333         * modules/openat (configure.ac): Remove unneeded witness.
46334
46335 2009-09-06  Bruno Haible  <bruno@clisp.org>
46336
46337         Set errno to ENOSYS when a function is entirely unsupported.
46338         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46339         EOPNOTSUPP.
46340         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46341         * modules/chown (Depends-on): Remove errno.
46342
46343 2009-09-06  Bruno Haible  <bruno@clisp.org>
46344
46345         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46346
46347 2009-09-06  Bruno Haible  <bruno@clisp.org>
46348
46349         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46350
46351 2009-09-06  Ben Pfaff  <blp@gnu.org>
46352             Bruno Haible  <bruno@clisp.org>
46353
46354         Work around a glibc bug in strtok_r.
46355         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46356         Undefine if UNDEFINE_STRTOK_R is set.
46357         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46358         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46359         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46360         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46361         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46362         UNDEFINE_STRTOK_R.
46363         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46364
46365 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46366
46367         exclude: minor fix
46368         * lib/exclude.c: Include wctype.h
46369
46370 2009-09-06  Akim Demaille  <demaille@gostai.com>
46371
46372         bootstrap: improve error message
46373         * build-aux/bootstrap (find_tool): Upon failure, report the list
46374         of candidates.
46375         Honor the initial value of the envvar.
46376
46377 2009-09-05  Eric Blake  <ebb9@byu.net>
46378
46379         symlinkat: new module
46380         * modules/symlinkat: New file.
46381         * lib/symlinkat.c: Likewise.
46382         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46384         * modules/unistd (Makefile.am): Use them.
46385         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46386         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
46387         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
46388         * MODULES.html.sh (File system functions): Mention module.
46389         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
46390         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46391         * modules/symlinkat-tests: New test.
46392         * tests/test-symlinkat.c: Likewise.
46393
46394         test-openat-safer: add more checks
46395         * tests/test-openat-safer.c (main): Check more code paths.
46396
46397 2009-09-05  Jim Meyering  <meyering@redhat.com>
46398
46399         syntax-check: detect unnecessary inclusion of openat.h
46400         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46401
46402 2009-09-05  Bruno Haible  <bruno@clisp.org>
46403
46404         Support towlower, towupper.
46405         * doc/posix-functions/towlower.texi: Mention module wctype.
46406         * doc/posix-functions/towupper.texi: Likewise.
46407         * lib/wctype.in.h (towlower, towupper): New functions.
46408         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46409         (ASSERT): New macro.
46410         (e): New variable.
46411         (main): Test also towlower, towupper. Test WEOF argument.
46412         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46413
46414 2009-09-05  Bruno Haible  <bruno@clisp.org>
46415
46416         Fix conversion behaviour when the input is invalid.
46417         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46418         mark occurring in first pass of indirect conversion.
46419         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46420         input.
46421         Found by clang's static analyzer.
46422
46423 2009-09-05  Bruno Haible  <bruno@clisp.org>
46424
46425         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46426         where direct conversion is possible.
46427
46428 2009-09-04  Eric Blake  <ebb9@byu.net>
46429
46430         openat: fail with ENOENT on empty name
46431         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46432         buffer.
46433
46434         link-follow: fix logic bug in prior patch
46435         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46436         reversed sense of yes and no in prior patch.  Avoid confusing
46437         compilation failure with desired semantics.
46438
46439         link-follow: accommodate mingw and cross-compilation
46440         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46441         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46442         cross-compilation results to -1, to make linkat easier to
46443         implement when cross-compiling.  Trivially support mingw.
46444         * modules/link-follow (configure.ac): Call new name.
46445         * NEWS: Mention this.
46446
46447 2009-09-03  Eric Blake  <ebb9@byu.net>
46448
46449         faccessat: compile replacement
46450         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46451         needed.
46452
46453         fts: fix compilation error
46454         * lib/fts.c (includes): Re-add "openat.h", for
46455         openat_needs_fchdir.
46456
46457         faccessat: new module
46458         * modules/faccessat: New file.
46459         * lib/faccessat.c: Likewise.
46460         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46462         * modules/unistd (Makefile.am): Use it.
46463         * lib/unistd.in.h (faccessat): Declare it.
46464         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46465         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46466         * MODULES.html.sh (File system functions): Mention it.
46467         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46468         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46469
46470         euidaccess: prefer POSIX over non-standard implementation
46471         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46472         * lib/euidaccess.c (euidaccess): Use it if available.
46473
46474         openat: make template easier to use
46475         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46476         AT_FUNC_F2 to be undefined.
46477         (VALIDATE_FLAG): New macro; use it to reject bad flags.
46478         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
46479         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
46480         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
46481         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
46482         Likewise.
46483         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
46484         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
46485         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
46486         Likewise.
46487
46488         openat: declare in POSIX headers
46489         * NEWS: Mention this.
46490         * modules/openat (configure.ac): Declare witnesses.
46491         (Depends-on): Add fcntl-h, sys_stat, unistd.
46492         (Include): Mention correct headers.
46493         * modules/fcntl-h (Depends-on): Add link-warning.
46494         (Files): Add openat.m4.
46495         (Makefile.am): Substitute witnesses.
46496         * modules/sys_stat (Files, Makefile.am): Likewise.
46497         * modules/unistd (Files, Makefile.am): Likewise.
46498         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
46499         (gl_OPENAT_DEFAULTS): New macro.
46500         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
46501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
46502         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
46503         (SYS_STAT_H): Remove unused variable.
46504         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
46505         * lib/fcntl--.h (includes): Remove unneeded header.
46506         * lib/openat-safer.c (includes): Likewise.
46507         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
46508         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
46509         appropriate headers.
46510         (__OPENAT_PREFIX): Delete.
46511         * lib/fcntl.in.h (openat): Provide declaration.
46512         (AT_FDCWD): Fix Solaris bug.
46513         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
46514         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
46515         * lib/fchmodat.c (includes):  Adjust to find declaration.
46516         * lib/fchownat.c (includes): Likewise.
46517         * lib/mkdirat.c (includes): Likewise.
46518         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
46519         still visible.
46520
46521 2009-09-02  Eric Blake  <ebb9@byu.net>
46522
46523         errno: use consistently
46524         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
46525         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
46526         * lib/canonicalize.c (ELOOP): Likewise.
46527         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
46528         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
46529         * lib/lchown.c (EOPNOTSUPP): Likewise.
46530         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
46531         * lib/savewd.c (ESTALE): Likewise.
46532         * lib/settime.c (ENOSYS): Likewise.
46533         * lib/utimens.c (ENOSYS): Likewise.
46534         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
46535         * lib/chdir-safer.c (ELOOP): Likewise.
46536         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
46537         * modules/c-stack (Depends-on): Add errno.
46538         * modules/canonicalize (Depends-on): Likewise.
46539         * modules/chdir-safer (Depends-on): Likewise.
46540         * modules/fdopendir (Depends-on): Likewise.
46541         * modules/inet_ntop (Depends-on): Likewise.
46542         * modules/inet_pton (Depends-on): Likewise.
46543         * modules/lchown (Depends-on): Likewise.
46544         * modules/openat (Depends-on): Likewise.
46545         * modules/savewd (Depends-on): Likewise.
46546         * modules/settime (Depends-on): Likewise.
46547         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
46548
46549         fts: avoid leaking fds
46550         * modules/fts (Depends-on): Add cloexec.
46551         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
46552         flag.
46553
46554         fts: make directory fds more robust
46555         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
46556         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
46557
46558         backupfile, chdir-long, fts, savedir: make safer
46559         * lib/backupfile.c (includes): Use "dirent--.h", since
46560         numbered_backup can write to stderr during readdir.
46561         * lib/savedir.c (includes): Likewise.
46562         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
46563         emulation can write to stderr on failure.
46564         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
46565         * lib/getcwd.c: Document why opendir_safer is unused.
46566         * lib/glob.c: Likewise.
46567         * lib/scandir.c: Likewise.
46568         * lib/openat-proc.c: Likewise, for open_safer.
46569         * modules/backupfile (Depends-on): Add dirent-safer.
46570         * modules/savedir (Depends-on): Likewise.
46571         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
46572         * modules/chdir-long (Depends-on): Add openat-safer.
46573
46574         openat-safer: new module
46575         * modules/openat-safer: New file.
46576         * lib/openat-safer.c: Likewise.
46577         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
46578         * lib/fcntl-safer.h (openat_safer): Declare.
46579         * lib/fcntl--.h (openat): Override.
46580         * MODULES.html.sh (File descriptor based I/O): Mention it.
46581         * lib/openat.h: Add double-inclusion guards.
46582         * lib/openat.c (includes): Only include "fcntl-safer.h", not
46583         "fcntl--.h", so we can implement openat.
46584         * modules/openat-safer-tests: New test.
46585         * tests/test-openat-safer.c: New file.
46586
46587         dirent-safer: new module
46588         * modules/dirent-safer: New file.
46589         * lib/dirent--.h: Likewise.
46590         * lib/dirent-safer.h: Likewise.
46591         * lib/opendir-safer.c: Likewise.
46592         * m4/dirent-safer.m4: Likewise.
46593         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
46594         * modules/dirent-safer-tests: New test.
46595         * tests/test-dirent-safer.c: New file.
46596         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
46597
46598         fdopendir: optimize on mingw
46599         * lib/unistd.in.h (_gl_directory_name): New prototype.
46600         * lib/fchdir.c (_gl_directory_name): Implement it.
46601         (fchdir): Use it to simplify implementation.
46602         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
46603         fchdir, when available, to avoid calling [f]chdir().
46604
46605         fdopendir: split into its own module
46606         * lib/openat.c (fdopendir): Move...
46607         * lib/fdopendir.c: ...into new file.
46608         * modules/fdopendir: New module.
46609         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
46610         * modules/openat (Depends-on): Add fdopendir.
46611         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
46612         fdopendir here.
46613         * modules/savedir (Depends-on): Only need fdopendir, not full
46614         openat.
46615         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
46616         * lib/openat.h (fdopendir): Drop prototype.
46617         * lib/dirent.in.h (fdopendir): Provide prototype.
46618         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
46619         * modules/dirent (Makefile.am): Substitute them.
46620         * MODULES.html.sh (File system functions): Mention it.
46621         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
46622         * modules/fdopendir-tests: New file.
46623         * tests/test-fdopendir.c: Likewise.
46624
46625         fchdir: use more consistent macro convention
46626         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
46627         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
46628         REPLACE_FCHDIR, rather than relying on config.h macros.
46629         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
46630         inside a single make-time REPLACE_FCHDIR block, rather than using
46631         the config.h FCHDIR_REPLACEMENT.
46632         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
46633         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
46634         Manage fstat replacement.
46635         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
46636         REPLACE_FCHDIR.
46637         * modules/sys_stat (Files): Add m4/unistd_h.m4.
46638         (Makefile.am): Substitute REPLACE_FCHDIR.
46639         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
46640         FCHDIR_REPLACEMENT.
46641         * lib/dup-safer.c (dup_safer): Likewise.
46642         * lib/dup2.c (rpl_dup2): Likewise.
46643         * lib/dup3.c (rpl_dup3): Likewise.
46644         * lib/open.c (rpl_open): Likewise.
46645
46646         fchdir: simplify error handling, and support dup3
46647         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
46648         stdbool, malloc-posix, realloc-posix.
46649         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
46650         (ensure_dirs_slot): Return false on allocation failure.
46651         (rpl_dup2): Delete.
46652         (_gl_register_dup): New function.
46653         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
46654         (_gl_register_fd): Close fd on allocation failure.
46655         * lib/fcntl.in.h (_gl_register_fd): Update signature.
46656         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
46657         prototype.
46658         (rpl_dup2_fchdir): Delete prototype.
46659         * lib/open.c (open): Update caller.
46660         * lib/dup2.c (dup2): Track fchdir metadata.
46661         * lib/dup3.c (dup3): Likewise.
46662         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
46663         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
46664
46665 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46666
46667         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
46668         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
46669         don't pass arguments to AC_OUTPUT.
46670
46671 2009-09-02  Bruno Haible  <bruno@clisp.org>
46672
46673         * modules/mkdtemp (License): Relicense under LGPLv2+.
46674         Reported by Paolo Bonzini.
46675
46676 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46677
46678         Replace uses of obsolete autoconf macros in Jim's modules.
46679         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
46680         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
46681         can evoke a warning from autoconf when run with -Wobsolete
46682         enabled.  They were declared obsolete for good reasons (see
46683         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
46684         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
46685         should not continue using the deprecated macros.
46686         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
46687         obsolete Autoconf macros with modern counterparts.
46688         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46689         * m4/dos.m4 (gl_AC_DOS): Likewise.
46690         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
46691         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
46692         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
46693         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
46694         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
46695         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
46696         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
46697         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
46698         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46699         Likewise.
46700         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
46701         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46702         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
46703         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
46704         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46705         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46706
46707 2009-09-01  Eric Blake  <ebb9@byu.net>
46708
46709         fchdir: fix off-by-one bug in previous patch
46710         * lib/fchdir.c (rpl_fstat): Use correct bounds.
46711         (_gl_unregister_fd): Delete useless if.
46712
46713 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
46714
46715         maint.mk: sort the list of syntax-check rules
46716         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
46717         easier to get a sense of progress when the rules are run sequentially
46718         and take a long time.
46719
46720 2009-09-01  Simon Josefsson  <simon@josefsson.org>
46721
46722         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
46723         * modules/netinet_in: Likewise.
46724         * modules/sys_file: Likewise.
46725         * modules/sys_ioctl: Likewise.
46726         * modules/sys_select: Likewise.
46727         * modules/sys_socket: Likewise.
46728         * modules/sys_stat: Likewise.
46729         * modules/sys_time: Likewise.
46730         * modules/sys_times: Likewise.
46731         * modules/sys_utsname: Likewise.
46732         * modules/sys_wait: Likewise.
46733
46734 2009-09-01  Jim Meyering  <meyering@redhat.com>
46735
46736         fts: help ensure that return values are not ignored
46737         * lib/fts_.h (__GNUC_PREREQ): Define.
46738         (__attribute_warn_unused_result__): Define.
46739         (fts_children, fts_close, fts_open, fts_read): Declare with
46740         __attribute_warn_unused_result__.
46741
46742         fts: fts_close now fails also when closing a dir file descriptor fails
46743         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
46744         and propagate to caller, along with errno.
46745
46746         announce-gen: correct formatting in --help output
46747         * build-aux/announce-gen (usage): Move the one-line description in
46748         --help output "up", to where it belongs, just after Usage:.
46749
46750 2009-08-31  Eric Blake  <ebb9@byu.net>
46751
46752         fchdir: port to mingw
46753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
46754         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
46755         opened, then use a substitute.
46756         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
46757         replacement.
46758         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
46759         (_gl_register_fd): No need to check stat if open already filters
46760         all directories.
46761         (fchdir): Fix error condition to match POSIX.
46762         * modules/fchdir (Depends-on): Add sys_stat.
46763         * doc/posix-functions/open.texi (open): Document the limitation.
46764         * modules/fchdir-tests: New file.
46765         * tests/test-fchdir.c: Likewise.
46766
46767         canonicalize: allow cross-testing from cygwin to mingw
46768         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
46769         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
46770         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
46771         Likewise.
46772         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
46773         target does not support symlinks.
46774         * tests/test-canonicalize-lgpl.sh: Likewise.
46775
46776         chown: avoid compilation warning on mingw
46777         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
46778         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
46779         mingw.
46780         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46781         * modules/chown (Depends-on): Add errno.
46782
46783 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
46784
46785         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
46786         command.
46787
46788 2009-08-31  Jim Meyering  <meyering@redhat.com>
46789
46790         canonicalize: remove useless initialization
46791         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
46792         initialization of local, "end".
46793
46794 2009-08-30  Bruno Haible  <bruno@clisp.org>
46795
46796         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
46797         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
46798         ENOSYS.
46799
46800 2009-08-30  Bruno Haible  <bruno@clisp.org>
46801
46802         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
46803         /usr/xpg4/bin/tr when it exists.
46804         * tests/test-pipe-filter-gi1.sh: Likewise.
46805
46806 2009-08-30  Bruno Haible  <bruno@clisp.org>
46807
46808         Work around deficient /usr/bin/id program on Solaris.
46809         * tests/test-file-has-acl.sh (ID): New variable.
46810         * tests/test-set-mode-acl.sh (ID): Likewise.
46811         * tests/test-copy-acl.sh (ID): Likewise.
46812         * tests/test-copy-file.sh (ID): Likewise.
46813
46814 2009-08-30  Bruno Haible  <bruno@clisp.org>
46815
46816         New module 'xstriconveh'.
46817         * lib/xstriconveh.h: New file.
46818         * lib/xstriconveh.c: New file.
46819         * modules/xstriconveh: New file.
46820
46821 2009-08-30  Bruno Haible  <bruno@clisp.org>
46822
46823         Make it easier to use mem_cd_iconveh.
46824         * lib/striconveh.h (iconveh_t): New type.
46825         (iconveh_open, iconveh_close): New declarations.
46826         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46827         with a single 'const iconveh_t *' argument.
46828         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
46829         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46830         with a single 'const iconveh_t *' argument.
46831         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
46832         * tests/test-striconveh.c (main): Update.
46833         * NEWS: Mention the change.
46834
46835 2009-08-30  Bruno Haible  <bruno@clisp.org>
46836
46837         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
46838         problem.
46839
46840 2009-08-30  Bruno Haible  <bruno@clisp.org>
46841
46842         Work around iconv_open problem on Solaris.
46843         * lib/iconv_open-solaris.gperf: New file.
46844         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
46845         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
46846         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
46847         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
46848         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
46849         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
46850
46851 2009-08-29  Jim Meyering  <meyering@redhat.com>
46852
46853         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
46854         * top/maint.mk (cvs-check): Remove target; it was just an alias
46855         to the better-named vc-diff-check.
46856         (maintainer-distcheck): Remove rule.  It was used only from
46857         the (alpha/beta/major) target, and all of its commands but one
46858         were coreutils-specific.
46859         (vc-dist): Remove rule.
46860         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
46861         Run vc-diff-check, not vc-dist.
46862         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
46863
46864 2009-08-27  Bruno Haible  <bruno@clisp.org>
46865
46866         * tests/test-bitrotate.c (main): Remove test that uses a shift count
46867         of 0.
46868
46869 2009-08-27  Bruno Haible  <bruno@clisp.org>
46870
46871         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
46872         compilers.
46873         * doc/func.texi: Document the SunPRO C bug.
46874
46875 2009-08-27  Bruno Haible  <bruno@clisp.org>
46876
46877         Fix link error on Solaris.
46878         * tests/test-parse-duration.c (xstrdup): Remove function.
46879
46880 2009-08-26  Pádraig Brady  <P@draigbrady.com>
46881
46882         ignore-value: handle pointer types, too
46883         * lib/ignore-value.h (__attribute__): Remove definition.
46884         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
46885         of a more concise and more-often effective "(void) i" statement.
46886         (ignore_ptr): New function to suppress warnings from functions that
46887         return pointers, and to make it explicit that one function doesn't
46888         handle all cases.
46889
46890 2009-08-25  Bruno Haible  <bruno@clisp.org>
46891
46892         dup2: work around a Linux bug.
46893         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
46894         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
46895         * doc/posix-functions/dup2.texi: Mention the Linux bug.
46896         Reported by Simon Josefsson.
46897
46898 2009-08-25  Jim Meyering  <meyering@redhat.com>
46899
46900         libguestfs uses gnulib
46901         * users.txt: Add libguestfs.
46902
46903 2009-08-24  Eric Blake  <ebb9@byu.net>
46904
46905         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
46906         * lib/pipe2.c (includes): Add binary-io.h.
46907         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
46908
46909 2009-08-24  Bruno Haible  <bruno@clisp.org>
46910
46911         Tolerate declared but missing accept4 syscall.
46912         * lib/accept4.c (accept4): Invoke original accept4 function first, if
46913         available.
46914         * lib/sys_socket.in.h (accept4): If the function is already present,
46915         override it.
46916         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
46917         * modules/accept4 (Makefile.am): Compile accept4.c always.
46918         Reported by Paolo Bonzini and Eric Blake.
46919
46920 2009-08-23  Bruno Haible  <bruno@clisp.org>
46921
46922         New module 'accept4'.
46923         * lib/sys_socket.in.h (accept4): New declaration.
46924         * lib/accept4.c: New file.
46925         * m4/accept4.m4: New file.
46926         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46927         GNULIB_ACCEPT4, HAVE_ACCEPT4.
46928         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
46929         HAVE_ACCEPT4.
46930         * modules/accept4: New file.
46931         * doc/glibc-functions/accept4.texi: Mention the new module.
46932
46933 2009-08-24  Jim Meyering  <meyering@redhat.com>
46934
46935         progname: also set global program_invocation_name, when possible
46936         Before this change, a libtool-enabled program that calls glibc's
46937         error function would report the program name as
46938         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
46939         * modules/progname (configure.ac): Check for a declaration of
46940         program_invocation_name.
46941         * lib/progname.c:  Include <errno.h>.
46942         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
46943         Set program_invocation_name.
46944
46945 2009-08-23  Bruno Haible  <bruno@clisp.org>
46946
46947         * lib/dup3.c: Include <string.h>.
46948
46949 2009-08-23  Bruno Haible  <bruno@clisp.org>
46950
46951         * lib/dup3.c (dup3): Test only once whether the system actually exists.
46952         * lib/pipe2.c (pipe2): Likewise.
46953         Suggested by Eric Blake.
46954
46955 2009-08-23  Bruno Haible  <bruno@clisp.org>
46956
46957         Tolerate declared but missing dup3 syscall.
46958         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
46959         * lib/unistd.in.h (dup3): If the function is already present,
46960         override it.
46961         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
46962         * modules/dup3 (Makefile.am): Compile dup3.c always.
46963         Reported by Paolo Bonzini.
46964
46965 2009-08-23  Bruno Haible  <bruno@clisp.org>
46966
46967         Tolerate declared but missing pipe2 syscall.
46968         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
46969         available.
46970         * lib/unistd.in.h (pipe2): If the function is already present,
46971         override it.
46972         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
46973         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
46974         Reported by Paolo Bonzini.
46975
46976 2009-08-23  Bruno Haible  <bruno@clisp.org>
46977
46978         * lib/pipe2.c (pipe2): Move #ifs inside function.
46979
46980 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46981
46982         quotearg: document limitations of quote_these_too
46983         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
46984         those limitations are created.
46985         * lib/quotearg.h (set_char_quoting): Document that digits and
46986         letters that are special after backslash are not permitted.
46987         (quotearg_char): Cross-reference set_char_quoting documentation.
46988
46989 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
46990
46991         quotearg: implement custom_quoting_style
46992         * lib/quotearg.c: (struct quoting_options): Add left_quote and
46993         right_quote fields.
46994         (set_custom_quoting): New public function.
46995         (quotearg_buffer_restyled): Add left_quote and right_quote
46996         arguments, handle them very much like locale quoting, and update
46997         all uses.
46998         (quotearg_n_custom): New public function.
46999         (quotearg_n_custom_mem): New public function.
47000         (quotearg_custom): New public function.
47001         (quotearg_custom_mem): New public function.
47002         * lib/quotearg.h: Prototype and document new public functions.
47003         (enum quoting_style): For escape_quoting_style and
47004         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
47005         ignored even though they're otherwise like c_quoting_style.
47006         Add custom_quoting_style member and document with comparison to
47007         clocale_quoting_style.
47008         * tests/test-quotearg.c (custom_quotes): New array.
47009         (custom_results): New array.
47010         (main): Extend to test custom quoting.
47011
47012 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47013
47014         quotearg: fix right quote escaping when it's in quote_these_too
47015         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
47016         quote, be sure to prepend only one backslash.
47017         * tests/test-quotearg.c (use_quote_double_quotes): New function.
47018         (main): Test it.
47019
47020 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47021
47022         quotearg-tests: test escaping of embedded locale quotes
47023         * tests/test-quotearg.c (struct result_strings): Add member for
47024         new input.
47025         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
47026         (inputs): Add new input.
47027         (results_g): Add expected results.
47028         (flag_results): Likewise.
47029         (locale_results): Likewise.
47030         (compare_strings): Check those.
47031
47032 2009-08-23  Bruno Haible  <bruno@clisp.org>
47033
47034         Tests for module 'dup3'.
47035         * modules/dup3-tests: New file.
47036         * tests/test-dup3.c: New file.
47037
47038         New module 'dup3'.
47039         * lib/unistd.in.h (dup3): New declaration.
47040         * lib/dup3.c: New file.
47041         * m4/dup3.m4: New file.
47042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
47043         HAVE_DUP3.
47044         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
47045         * modules/dup3: New file.
47046         * doc/glibc-functions/dup3.texi: Mention the new module.
47047
47048 2009-08-23  Bruno Haible  <bruno@clisp.org>
47049
47050         Tweak the dup2 test.
47051         * tests/test-dup2.c (main): Create the test file empty. Verify that an
47052         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
47053         the test file is still empty. Fix argument order of lseek.
47054
47055 2009-08-23  Bruno Haible  <bruno@clisp.org>
47056
47057         Avoid test link errors when the modules getopt-gnu, gettext are used.
47058         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
47059         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47060
47061 2009-08-23  Bruno Haible  <bruno@clisp.org>
47062
47063         Fix getdtablesize() on mingw.
47064         * lib/getdtablesize.c (getdtablesize): Implement differently.
47065         * lib/unistd.in.h (getdtablesize): Improve comment.
47066
47067 2009-08-23  Bruno Haible  <bruno@clisp.org>
47068
47069         New module 'mkostemp'.
47070         Based on Ulrich Drepper's 2007-08-10 change in glibc.
47071         * lib/stdlib.in.h (mksotemp): New declaration.
47072         * lib/mkostemp.c: New file, from glibc with modifications.
47073         * lib/tempname.h (GT_FILE): Remove outdated comment.
47074         (gen_tempname): Add flags argument.
47075         * lib/tempname.c (__GT_BIGFILE): Remove macro.
47076         (__GT_FILE): Map to 1.
47077         (small_open, large_open): Remove macros.
47078         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
47079         * lib/mkstemp.c (mkstemp): Update.
47080         * lib/mkdtemp.c (mkdtemp): Likewise.
47081         * m4/mkostemp.m4: New file.
47082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
47083         HAVE_MKOSTEMP.
47084         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
47085         HAVE_MKOSTEMP.
47086         * modules/mkostemp: New file, based on modules/mkstemp.
47087         * doc/glibc-functions/mkostemp.texi: Mention the new module.
47088         * NEWS: Mention the change.
47089
47090 2009-08-23  Bruno Haible  <bruno@clisp.org>
47091
47092         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
47093         Reported by Eric Blake.
47094
47095 2009-08-23  Bruno Haible  <bruno@clisp.org>
47096
47097         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
47098         Reported by Eric Blake.
47099
47100 2009-08-23  Bruno Haible  <bruno@clisp.org>
47101
47102         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
47103         * modules/pipe2 (Depends-on): Likewise.
47104
47105 2009-08-23  Eric Blake  <ebb9@byu.net>
47106
47107         fcntl-h: add O_TTY_INIT support
47108         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
47109         * tests/test-fcntl-h.c (o): Test it.
47110         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47111
47112         fcntl-h: rename from fcntl, in preparation for fcntl(2)
47113         * modules/fcntl: Move <fcntl.h> header replacement...
47114         * modules/fcntl-h: ...to new name, so as not to collide with
47115         like-named function.
47116         * tests/test-fcntl.c: Rename...
47117         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
47118         * modules/fcntl-tests: Rename...
47119         * modules/fcntl-h-tests: ...to this.  Update test file name.
47120         * modules/chdir-long (Depends-on): Update clients.
47121         * modules/chdir-safer (Depends-on): Likewise.
47122         * modules/fcntl-safer (Depends-on): Likewise.
47123         * modules/fts (Depends-on): Likewise.
47124         * modules/mkancesdirs (Depends-on): Likewise.
47125         * modules/mkdir-p (Depends-on): Likewise.
47126         * modules/open (Depends-on): Likewise.
47127         * modules/savewd (Depends-on): Likewise.
47128         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
47129         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47130
47131 2009-08-22  Bruno Haible  <bruno@clisp.org>
47132
47133         * modules/binary-io (License): Relicense under LGPL.
47134         * modules/pipe2 (License): Likewise.
47135
47136 2009-08-22  Bruno Haible  <bruno@clisp.org>
47137
47138         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
47139         return value.
47140         * lib/pipe-filter-gi.c (filter_init): Likewise.
47141         Reported by Eric Blake.
47142
47143 2009-08-22  Bruno Haible  <bruno@clisp.org>
47144
47145         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
47146         * modules/pipe (Depends-on): Add pipe2.
47147
47148 2009-08-22  Bruno Haible  <bruno@clisp.org>
47149
47150         Tests for module 'pipe2'.
47151         * modules/pipe2-tests: New file.
47152         * tests/test-pipe2.c: New file.
47153
47154         New module 'pipe2'.
47155         * lib/unistd.in.h (pipe2): New declaration.
47156         * lib/pipe2.c: New file.
47157         * m4/pipe2.m4: New file.
47158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
47159         HAVE_PIPE2.
47160         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
47161         * modules/pipe2: New file.
47162         * doc/glibc-functions/pipe2.texi: Mention the new module.
47163
47164 2009-08-22  Bruno Haible  <bruno@clisp.org>
47165
47166         Reference some new glibc functions.
47167         * doc/glibc-functions/accept4.texi: New file.
47168         * doc/glibc-functions/dup3.texi: New file.
47169         * doc/glibc-functions/mkostemp.texi: New file.
47170         * doc/glibc-functions/pipe2.texi: New file.
47171         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
47172         (Glibc sys/socket.h): Refer to accept4.
47173         (Glibc unistd.h): Refer to dup3, pipe2.
47174         Reported by Eric Blake.
47175
47176 2009-08-22  Jim Meyering  <meyering@redhat.com>
47177             Bruno Haible  <bruno@clisp.org>
47178
47179         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
47180         This makes it so packages using automake-1.11's silent-rules option
47181         can print e.g., a single "GEN    configmake.h" line, rather than
47182         the 30+ statements that perform the job.  If you want to see the
47183         actual commands, you can still run "make V=1".
47184         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
47185         so that make output is abbreviated when those variables are defined
47186         appropriately.
47187         * modules/argz: Likewise.
47188         * modules/arpa_inet: Likewise.
47189         * modules/byteswap: Likewise.
47190         * modules/configmake: Likewise.
47191         * modules/dirent: Likewise.
47192         * modules/errno: Likewise.
47193         * modules/fcntl: Likewise.
47194         * modules/float: Likewise.
47195         * modules/fnmatch: Likewise.
47196         * modules/getopt-posix: Likewise.
47197         * modules/glob: Likewise.
47198         * modules/iconv_open: Likewise.
47199         * modules/inttypes: Likewise.
47200         * modules/localcharset: Likewise.
47201         * modules/locale: Likewise.
47202         * modules/math: Likewise.
47203         * modules/netdb: Likewise.
47204         * modules/netinet_in: Likewise.
47205         * modules/poll: Likewise.
47206         * modules/posix_spawnp-tests: Likewise.
47207         * modules/sched: Likewise.
47208         * modules/search: Likewise.
47209         * modules/selinux-h: Likewise.
47210         * modules/signal: Likewise.
47211         * modules/spawn: Likewise.
47212         * modules/stdarg: Likewise.
47213         * modules/stdbool: Likewise.
47214         * modules/stddef: Likewise.
47215         * modules/stdint: Likewise.
47216         * modules/stdio: Likewise.
47217         * modules/stdlib: Likewise.
47218         * modules/string: Likewise.
47219         * modules/strings: Likewise.
47220         * modules/sys_file: Likewise.
47221         * modules/sys_ioctl: Likewise.
47222         * modules/sys_select: Likewise.
47223         * modules/sys_socket: Likewise.
47224         * modules/sys_stat: Likewise.
47225         * modules/sys_time: Likewise.
47226         * modules/sys_times: Likewise.
47227         * modules/sys_utsname: Likewise.
47228         * modules/sys_wait: Likewise.
47229         * modules/sysexits: Likewise.
47230         * modules/time: Likewise.
47231         * modules/unistd: Likewise.
47232         * modules/wchar: Likewise.
47233         * modules/wctype: Likewise.
47234
47235 2009-08-22  Jim Meyering  <meyering@redhat.com>
47236
47237         announce-gen: detect write failure
47238         * build-aux/announce-gen: Add Coda at end.
47239         Remove equivalent-but-more-verbose block at top.
47240
47241 2009-08-19  Akim Demaille  <demaille@gostai.com>
47242
47243         bootstrap: --help to stdout.
47244         * bootstrap (usage): Don't send --help to stderr.
47245         Use a here doc instead of a long string.
47246
47247 2009-08-21  Eric Blake  <ebb9@byu.net>
47248
47249         test-popen-safer: split from test-popen
47250         * tests/test-popen.c (main): Move...
47251         * tests/test-popen.h: ...into new file.
47252         * tests/test-popen-safer2.c: New file.
47253         * modules/popen-tests (Files): Add test-popen.h.
47254         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
47255         Suggested by Bruno Haible.
47256
47257         test-fcntl-safer: split from test-open
47258         * tests/test-open.c (main): Move...
47259         * tests/test-open.h: ...into new file.
47260         * tests/test-fcntl-safer.c: New file.
47261         * modules/open-tests (Files): Add test-open.h.
47262         * modules/fcntl-safer-tests: New file.
47263         Suggested by Bruno Haible.
47264
47265         test-fopen-safer: split from test-fopen
47266         * tests/test-fopen.c (main): Move...
47267         * tests/test-fopen.h: ...into new file.
47268         * tests/test-fopen-safer.c: New file.
47269         * modules/fopen-tests (Files): Add test-fopen.h.
47270         * modules/fopen-safer-tests: New file.
47271         Suggested by Bruno Haible.
47272
47273 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47274
47275         popen-safer: test O_CLOEXEC at run-time.
47276         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
47277
47278 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47279
47280         fcntl: move more flags to the header
47281         * lib/cloexec.c: Do not define FD_CLOEXEC here.
47282         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
47283         * lib/fcntl.in.h: Do both things here.
47284
47285 2009-08-21  Jim Meyering  <meyering@redhat.com>
47286
47287         consistently remove $@-t before redirecting to it
47288         * modules/argz: Remove $@-t and $@ before redirecting to the former.
47289         * modules/alloca-opt: Likewise.
47290         * modules/byteswap: Likewise.
47291         * modules/fnmatch: Likewise.
47292         * modules/getopt-posix: Likewise.
47293         * modules/glob: Likewise.
47294         * modules/poll: Likewise.
47295         * modules/posix_spawnp-tests: Likewise.
47296         * modules/sys_socket: Likewise.
47297         * modules/sysexits: Likewise.
47298
47299 2009-08-21  Eric Blake  <ebb9@byu.net>
47300
47301         popen: simplify access to original popen
47302         * lib/popen.c (rpl_popen): No need to worry about popen being a
47303         macro.
47304         Reported by Bruno Haible.
47305
47306 2009-08-20  Eric Blake  <ebb9@byu.net>
47307
47308         build: avoid some compiler warnings
47309         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
47310         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
47311         type.
47312         (new_exclude_segment, excluded_file_pattern_p)
47313         (excluded_file_name_p): Reduce scope.
47314         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
47315         old-style declaration.
47316
47317 2009-08-20  Simon Josefsson  <simon@josefsson.org>
47318
47319         * tests/test-exclude1.sh: Handle Windows EOL.
47320         * tests/test-exclude2.sh: Likewise.
47321         * tests/test-exclude3.sh: Likewise.
47322         * tests/test-exclude4.sh: Likewise.
47323         * tests/test-exclude5.sh: Likewise.
47324         * tests/test-exclude6.sh: Likewise.
47325         * tests/test-exclude7.sh: Likewise.
47326
47327 2009-08-19  Akim Demaille  <demaille@gostai.com>
47328
47329         bootstrap: find sha1sum when named gsha1sum.
47330         * bootstrap (find_tool): New.
47331         ($SHA1SUM): New.
47332         Use it.
47333
47334 2009-08-20  Jim Meyering  <meyering@redhat.com>
47335
47336         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47337         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47338         expression that converts "." in a file name to "\." in the resulting
47339         regexp.  Start with a dummy statement, so that prior shell variable
47340         definitions are expanded portably.  Reported by Simon Josefsson.
47341
47342 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47343
47344         Fix polling for writeability of a screen buffer.
47345         * lib/poll.c: Distinguish input and screen buffers for the
47346         Win32 implementation.
47347         * lib/select.c: Likewise.
47348
47349 2009-08-19  Eric Blake  <ebb9@byu.net>
47350
47351         popen-safer: prevent popen from clobbering std descriptors
47352         * modules/popen-safer: New file.
47353         * lib/popen-safer.c: Likewise.
47354         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47355         * lib/stdio--.h (popen): Provide override.
47356         * lib/stdio-safer.h (popen_safer): Provide declaration.
47357         * tests/test-popen.c (includes): Partially test this.
47358         * modules/popen-safer-tests: New file, for more tests.
47359         * tests/test-popen-safer.c: Likewise.
47360         * MODULES.html.sh (file stream based Input/Output): Mention it.
47361
47362         tests: test some of the *-safer modules
47363         * modules/fopen-safer (Depends-on): Add fopen.
47364         * modules/fcntl-safer (Depends-on): Add fcntl.
47365         * modules/stdlib-safer (Depends-on): Add stdlib.
47366         (configure.ac): Set indicator.
47367         * modules/unistd-safer (configure.ac): Likewise.
47368         * modules/tmpfile-safer (configure.ac): Likewise.
47369         (Depends-on): Add tmpfile.
47370         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47371         active.
47372         * tests/test-fopen.c (includes): Test safer versions when they are
47373         in use.
47374         * tests/test-open.c (includes): Likewise.
47375
47376         popen: fix cygwin 1.5 bug when stdin closed
47377         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47378         * modules/popen: New file.
47379         * modules/popen-tests: Likewise.
47380         * tests/test-popen.c: Likewise.
47381         * m4/popen.m4: Likewise.
47382         * lib/popen.c: Likewise.
47383         * lib/stdio.in.h (popen): New declaration.
47384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47385         * modules/stdio (Makefile.am): Likewise.
47386         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
47387
47388 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
47389
47390         maint.mk: give full control over update-copyright exclusions
47391         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
47392         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
47393         (update-copyright): Don't force inclusion of top-level
47394         ChangeLog.  Don't force exclusion of all COPYING files, but make
47395         them the default exclusion instead.
47396
47397 2009-08-16  Bruno Haible  <bruno@clisp.org>
47398
47399         Fix test failures on Solaris 10.
47400         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47401         tests when Solaris iconv() is used.
47402         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47403         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47404         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47405         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47406         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47407
47408 2009-08-16  Bruno Haible  <bruno@clisp.org>
47409
47410         Fix test failures on Solaris 10.
47411         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47412         'tr' program and pass it as first argument.
47413         * tests/test-pipe-filter-gi1.sh: Likewise.
47414         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47415         program as first argument.
47416         * tests/test-pipe-filter-gi1.c (main): Likewise.
47417
47418 2009-08-16  Eric Blake  <ebb9@byu.net>
47419
47420         fpurge: fix previous commits
47421         * modules/fpurge (Makefile.am): Make replacement conditional,
47422         partially reverting 2007-04-29 change; missed in previous
47423         attempt.
47424         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47425         is missing.
47426
47427 2009-08-16  Bruno Haible  <bruno@clisp.org>
47428
47429         Clarify fpurge's effect on the file position.
47430         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47431         * tests/test-fpurge.c (main): Make a second pass for checking the file
47432         position.
47433
47434 2009-08-16  Bruno Haible  <bruno@clisp.org>
47435
47436         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47437         declaration of fpurge is missing.
47438         * tests/test-fpurge.c (main): Check that the file has not more contents
47439         than expected. Close the file before removing it.
47440
47441 2009-08-15  Eric Blake  <ebb9@byu.net>
47442
47443         fpurge: don't wrap working cygwin implementation
47444         * lib/fpurge.c (fpurge): Fix comment typo.
47445         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47446         1.7 to avoid replacement.
47447         * tests/test-fpurge.c (main): Enhance test.
47448
47449 2009-08-15  Eric Blake  <ebb9@byu.net>
47450         and Jim Meyering  <meyering@redhat.com>
47451
47452         test-update-copyright: skip if perl is insufficient
47453         * tests/test-update-copyright.sh: Failure to run maintainer tool
47454         should not cause testsuite failure on cygwin 1.5.
47455
47456 2009-08-14  Eric Blake  <ebb9@byu.net>
47457
47458         doc: mention more functions added in cygwin 1.7.0
47459         * doc/posix-headers/limits.texi (limits.h): Update for recent
47460         cygwin additions.
47461         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47462         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47463         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47464         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47465         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47466
47467 2009-08-14  Eric Blake  <ebb9@byu.net>
47468
47469         maint.mk: simplify update-copyright rule
47470         * top/maint.mk (update-copyright-local): Delete, and document how
47471         to do it in cfg.mk instead.
47472         (update-copyright-exclude-regexp): Delete, and document how to do
47473         it in .x-update-copyright instead.
47474         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47475         exclude ChangeLog.
47476
47477 2009-08-14  Bruno Haible  <bruno@clisp.org>
47478
47479         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
47480
47481 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47482
47483         maint.mk: support update-copyright-env
47484         * top/maint.mk (update-copyright-env): Define place-holder.
47485         (update-copyright): Expand $(update-copyright-env) before
47486         invoking update-copyright.
47487
47488 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47489
47490         update-copyright: implement forced reformatting
47491         * build-aux/update-copyright: Implement and document
47492         UPDATE_COPYRIGHT_FORCE.
47493         * tests/test-update-copyright.sh: Test it.
47494
47495 2009-08-14  Eric Blake  <ebb9@byu.net>
47496         and Bruno Haible  <bruno@clisp.org>
47497
47498         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
47499         * tests/test-locale.c: Revert previous patch related to NULL.
47500         * tests/test-stdio.c: Likewise.
47501         * tests/test-stdlib.c: Likewise.
47502         * tests/test-string.c: Likewise.
47503         * tests/test-unistd.c: Likewise.
47504         * modules/time-tests (Depends-on): Add verify.
47505         * modules/wchar-tests (Depends-on): Likewise.
47506         * tests/test-time.c: Test for NULL compliance.
47507         * tests/test-wchar.c: Likewise.
47508         * modules/locale (Depends-on): Add stddef.
47509         * modules/stdio (Depends-on): Likewise.
47510         * modules/stdlib (Depends-on): Likewise.
47511         * modules/string (Depends-on): Likewise.
47512         * modules/time (Depends-on): Likewise.
47513         * modules/unistd (Depends-on): Likewise.
47514         * modules/wchar (Depends-on): Likewise.
47515         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
47516         * lib/stdlib.in.h (includes): Likewise.
47517         * lib/string.in.h (includes): Likewise.
47518         * lib/time.in.h (includes): Likewise.
47519         * lib/unistd.in.h (includes): Likewise.
47520         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
47521         replaced.
47522         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47523         * m4/stddef_h.m4: New file.
47524         * modules/stddef: Likewise.
47525         * lib/stddef.in.h: Likewise.
47526         * modules/stddef-tests: Likewise.
47527         * tests/test-stddef.c: Likewise.
47528         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
47529         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
47530         * doc/posix-headers/locale.texi (locale.h): Likewise.
47531         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
47532         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47533         * doc/posix-headers/string.texi (string.h): Likewise.
47534         * doc/posix-headers/time.texi (time.h): Likewise.
47535         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
47536         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
47537
47538 2009-08-14  Eric Blake  <ebb9@byu.net>
47539
47540         doc: improve git diff of texinfo files
47541         * .gitattributes: Add rule for *.texi files, with hint on how to
47542         use it.
47543         Copied from m4, and based on a report by Bruno Haible.
47544
47545 2009-08-14  Bruno Haible  <bruno@clisp.org>
47546
47547         Disable multithread support by default on Cygwin 1.5.x for real.
47548         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
47549
47550 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47551
47552         update-copyright: much ado about intervals
47553         * build-aux/update-copyright: Implement and document
47554         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
47555         of copyright year intervals.
47556         Also, document UPDATE_COPYRIGHT_YEAR.
47557         * tests/test-update-copyright.sh: Test it.
47558
47559         update-copyright: convert 2-digit to 4-digit years
47560         * build-aux/update-copyright: Implement and document.
47561         * tests/test-update-copyright.sh: Update.
47562
47563 2009-08-14  Jim Meyering  <meyering@redhat.com>
47564
47565         test-exclude: avoid coreutils "make check" failure
47566         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
47567         just as in test-argmatch.c.
47568
47569 2009-08-13  Eric Blake  <ebb9@byu.net>
47570
47571         test-dup2: fix bad assumption
47572         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
47573         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
47574
47575         test-version-etc: fix CRLF portability issue
47576         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
47577         recognize \r.
47578         * tests/test-argp-version-etc-1.sh: Likewise.
47579
47580         getopt: update client modules
47581         * modules/argp (Depends-on): Use getopt-gnu.
47582         * modules/git-merge-changelog (Depends-on): Likewise.
47583         * modules/long-options (Depends-on): Likewise.
47584         * modules/xstrtol (Depends-on): Likewise.
47585
47586 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47587
47588         * tests/test-version-etc.sh: Don't fail on different
47589         project/version.  Don't fail on CRLF differences.  Rewrite to use
47590         multiple -e instead of multiple sed forks, suggested by Eric Blake
47591         <ebb9@byu.net>.
47592         * tests/test-argp-version-etc-1.sh: Likewise.
47593
47594 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47595
47596         * tests/test-version-etc.sh: Don't fail on different
47597         project/version.
47598
47599 2009-08-12  Bruno Haible  <bruno@clisp.org>
47600
47601         Tests for modules 'getopt-posix', 'getopt-gnu'.
47602         * modules/getopt-posix-tests: New file.
47603         * tests/test-getopt.c: New file.
47604         * tests/test-getopt.h: New file.
47605         * tests/test-getopt_long.h: New file.
47606
47607         New modules 'getopt-posix', 'getopt-gnu'.
47608         * modules/getopt-gnu: New file, renamed from modules/getopt.
47609         * modules/getopt-posix: New file.
47610         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
47611         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
47612         (gl_GETOPT): Remove macro.
47613         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
47614         Disable the test against BSD systems that declare optreset. Test
47615         against mingw bug. Test against lack of support of optional arguments
47616         on many platforms.
47617         * doc/glibc-headers/getopt.texi: Update module name and list of
47618         relevant platforms.
47619         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
47620         'getopt-gnu' and more portability problems.
47621         * NEWS: Mention the changes.
47622
47623 2009-08-12  Bruno Haible  <bruno@clisp.org>
47624
47625         Ensure that optarg etc. get declared by <unistd.h>.
47626         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
47627         AC_USE_SYSTEM_EXTENSIONS.
47628         * modules/getopt (Depends-on): Add 'extensions'.
47629
47630 2009-08-12  Bruno Haible  <bruno@clisp.org>
47631
47632         Avoid test link errors.
47633         * modules/pipe-filter-ii-tests (Makefile.am): Define
47634         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
47635         * modules/pipe-filter-gi-tests (Makefile.am): Define
47636         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
47637         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47638
47639 2009-08-12  Bruno Haible  <bruno@clisp.org>
47640
47641         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
47642         gl_GETOPT_SUBSTITUTE before.
47643         (gl_GETOPT): Use it.
47644         * m4/argp.m4 (gl_ARGP): Update.
47645         Reported by Sergey Poznyakoff.
47646
47647         * m4/getopt.m4: Reorder macros.
47648         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
47649         (gl_GETOPT_SUBSTITUTE): Remove macro.
47650
47651 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47652
47653         Minor improvement in gitlog-to-changelog
47654
47655         * build-aux/gitlog-to-changelog: New option `--format' makes
47656         output format string configurable.
47657
47658 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47659
47660         Optimize exclude: use hash tables for non-wildcard patterns.
47661
47662         * lib/exclude.c: Include hash.h and mbuiter.h
47663         (struct exclude_pattern, exclude_segment): New data types.
47664         (struct exclude): Rewrite.
47665         (fnmatch_pattern_has_wildcards): New function.
47666         (new_exclude_segment, free_exclude_segment): New functions.
47667         (excluded_file_pattern_p, excluded_file_name_p): New functions.
47668         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
47669         * lib/exclude.h (is_fnmatch_pattern): New prototype.
47670         * modules/exclude: Depend on hash and mbuiter.
47671
47672         * modules/exclude-tests: New file.
47673         * tests/test-exclude.c: New file.
47674         * tests/test-exclude1.sh: New file.
47675         * tests/test-exclude2.sh: New file.
47676         * tests/test-exclude3.sh: New file.
47677         * tests/test-exclude4.sh: New file.
47678         * tests/test-exclude5.sh: New file.
47679         * tests/test-exclude6.sh: New file.
47680         * tests/test-exclude7.sh: New file.
47681
47682 2009-08-12  Bruno Haible  <bruno@clisp.org>
47683
47684         Ensure that getopt() gets declared by <unistd.h>.
47685         * lib/unistd.in.h: Conditionally include getopt.h.
47686         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
47687         Set GNULIB_UNISTD_H_GETOPT.
47688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47689         GNULIB_UNISTD_H_GETOPT.
47690         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
47691
47692 2009-08-12  Bruno Haible  <bruno@clisp.org>
47693
47694         Clarify logic.
47695         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
47696         gl_replace_getopt instead of GETOPT_H.
47697
47698 2009-08-12  Bruno Haible  <bruno@clisp.org>
47699
47700         * m4/getopt.m4: Add comments.
47701
47702 2009-08-12  Bruno Haible  <bruno@clisp.org>
47703
47704         Disable multithread support by default on Cygwin 1.5.x.
47705         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
47706         set gl_use_threads=no if not specified otherwise.
47707
47708 2009-08-11  Bruno Haible  <bruno@clisp.org>
47709
47710         Avoid compilation error on NetBSD 5.0.
47711         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
47712         * tests/test-stdio.c: Likewise.
47713         * tests/test-stdlib.c: Likewise.
47714         * tests/test-string.c: Likewise.
47715         * tests/test-unistd.c: Likewise.
47716         Reported by Greg Troxel <gdt@ir.bbn.com>
47717         at <https://savannah.gnu.org/support/?106973>.
47718
47719 2009-08-11  Bruno Haible  <bruno@clisp.org>
47720
47721         * modules/dup2-tests (Depends-on): Remove close.
47722
47723         Undo 2009-07-19 commit.
47724         * modules/acl-tests (Depends-on): Remove close.
47725         * modules/binary-io-tests (Depends-on): Likewise.
47726         * modules/closein-tests (Depends-on): Likewise.
47727         * modules/flock-tests (Depends-on): Likewise.
47728         * modules/fsync-tests (Depends-on): Likewise.
47729         * modules/lseek-tests (Depends-on): Likewise.
47730         * modules/pipe-tests (Depends-on): Likewise.
47731         * modules/posix_spawn-tests (Depends-on): Likewise.
47732         * modules/posix_spawnp-tests (Depends-on): Likewise.
47733         * modules/stat-time-tests (Depends-on): Likewise.
47734         * modules/yesno-tests (Depends-on): Likewise.
47735
47736 2009-08-10  Bruno Haible  <bruno@clisp.org>
47737
47738         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
47739
47740 2009-08-10  Bruno Haible  <bruno@clisp.org>
47741
47742         Fix a gcc warning.
47743         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
47744
47745 2009-08-10  Bruno Haible  <bruno@clisp.org>
47746
47747         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
47748         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
47749         not only the first time.
47750         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
47751         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
47752         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
47753         is 1, not only the the first time.
47754
47755 2009-08-10  Bruno Haible  <bruno@clisp.org>
47756
47757         Make it possible to use module 'gethostname' without module 'close'.
47758         * lib/unistd.in.h (close): Evoke a link error only if
47759         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47761         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47762         * modules/unistd (Makefile.am): Substitute
47763         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47764         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
47765         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47766         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
47767         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47768         * modules/sys_ioctl (Makefile.am): Substitute
47769         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47770         * modules/socket (configure.ac): On native Windows, set
47771         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
47772         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47773         Reported by Sam Steingold <sds@gnu.org>.
47774
47775 2009-08-10  Bruno Haible  <bruno@clisp.org>
47776
47777         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
47778         * modules/ioctl (configure.ac): Likewise.
47779
47780 2009-08-10  Bruno Haible  <bruno@clisp.org>
47781
47782         Avoid collision between gnulib wrapper and libintl wrapper.
47783         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
47784         already defined in intl/printf.c.
47785         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
47786         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
47787
47788 2009-08-09  Bruno Haible  <bruno@clisp.org>
47789
47790         Make <sys/select.h> really self-contained, also on Solaris 10.
47791         * lib/sys_select.in.h: Include <string.h>.
47792         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
47793         Solaris 10 problem.
47794         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
47795         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
47796         Reported by Jim Meyering.
47797
47798 2009-08-09  Bruno Haible  <bruno@clisp.org>
47799
47800         Avoid warnings from 'aclocal' that are due to a use of macro name
47801         AM_XGETTEXT_OPTION that is not defined in automake.
47802         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
47803         automake.
47804         * modules/error (configure.ac): Likewise.
47805         * modules/propername (configure.ac): Likewise.
47806         * modules/vasprintf (configure.ac): Likewise.
47807         * modules/verror (configure.ac): Likewise.
47808         * modules/xprintf (configure.ac): Likewise.
47809         * modules/xvasprintf (configure.ac): Likewise.
47810
47811 2009-08-08  Bruno Haible  <bruno@clisp.org>
47812
47813         Avoid compilation error in C++ mode.
47814         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
47815         Reported by Sam Steingold <sds@gnu.org>.
47816
47817 2009-08-08  Bruno Haible  <bruno@clisp.org>
47818
47819         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
47820         for the various Unix platforms.
47821         * doc/posix-headers/limits.texi: Update platforms list regarding
47822         HOST_NAME_MAX.
47823         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47824
47825 2009-08-07  Jim Meyering  <meyering@redhat.com>
47826
47827         selinux-at: fix typo in a comment
47828         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
47829         Spotted by Paolo Bonzini.
47830
47831         selinux-at: remove redundant m4 code, add documentation
47832         * modules/selinux-at (configure.ac): Remove redundant code.
47833         LIB_SELINUX is already set via the dependent module, selinux-h.
47834         (Include): Add quotes around selinux-at.h.
47835         * lib/selinux-at.h: Add documentation.
47836         Reported by Bruno Haible in
47837         http://marc.info/?l=gnulib-bug&m=124958988300749
47838
47839 2009-08-07  Bruno Haible  <bruno@clisp.org>
47840
47841         Avoid link error on MacOS X 10.3 and 10.4.
47842         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
47843         on non-ELF systems.
47844         * lib/argp-pv.c (argp_program_version): Likewise.
47845         Reported by Simon Josefsson.
47846
47847 2009-08-07  Simon Josefsson  <simon@josefsson.org>
47848
47849         * tests/test-version-etc.sh: Use $EXEEXT.
47850
47851 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
47852
47853         update-copyright: update documentation to point to maint.mk
47854         * build-aux/update-copyright: Here.
47855
47856 2009-08-06  Jim Meyering  <meyering@redhat.com>
47857
47858         maint.mk: support update-copyright-local
47859         * top/maint.mk (update-copyright-local): Define place-holder.
47860         (update-copyright): Depend on $(update-copyright-local).
47861
47862 2009-08-06  Jim Meyering  <meyering@redhat.com>
47863
47864         selinux-at: new module
47865         Initially written for coreutils, this module will soon be
47866         used by findutils, too.
47867         * MODULES.html.sh [Misc]: Add selinux-at.
47868         * lib/selinux-at.h: New file, from coreutils.
47869         * lib/selinux-at.c: Likewise.
47870         * modules/selinux-at: Likewise.
47871         (License): Change from LGPL to GPL, since it depends
47872         on the GPL'd openat module.
47873
47874         doc: update README
47875         * README: Remove references to cogito.
47876         Remove cvs-repo-updating instructions from 2007.
47877         Don't imply that CVS is better if you have limited disk space.
47878
47879 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47880
47881         update-copyright: support C-style comments
47882         * build-aux/update-copyright: Implement and document.
47883         * tests/test-update-copyright.sh: Test.
47884
47885 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47886
47887         update-copyright: support omitted "(C)"
47888         * build-aux/update-copyright: Implement and document.  Also,
47889         allow variable whitespace before "(C)".
47890         * tests/test-update-copyright.sh: Test.
47891
47892 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47893
47894         update-copyright: don't trip on non-FSF copyright statements
47895         * build-aux/update-copyright: Fix so that the first correctly
47896         formatted FSF copyright statement is recognized no matter what
47897         appears before it.  Update documentation.
47898         * tests/test-update-copyright.sh: Test that.
47899
47900 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47901
47902         update-copyright: clean up code a little
47903         * build-aux/update-copyright: Append "_re" to the name of any
47904         variable holding a regular expression.
47905         Replace "old" and "new" with "stmt" in variable names.
47906         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
47907         handled correctly.
47908         Format code more consistently.
47909
47910 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47911
47912         update-copyright-tests: improve portability
47913         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
47914         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
47915
47916 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47917
47918         update-copyright: support @copyright{} and &copy;
47919         * build-aux/update-copyright: Implement and document.
47920         * tests/test-update-copyright.sh: Test.
47921
47922 2009-08-04  Jim Meyering  <meyering@redhat.com>
47923
47924         update-copyright-tests: correctly test EOL=\r\n handling
47925         * tests/test-update-copyright.sh: Put \r at the end of some lines
47926         for the dos-eol tests.  Based on a patch by Joel E. Denny.
47927
47928         maint.mk: make update-copyright exclusion list more configurable
47929         * top/maint.mk (update-copyright): Default to excluding COPYING,
47930         but allow an override, in case someone does want to update that file.
47931
47932         maint.mk: don't update copyright date in COPYING
47933         * top/maint.mk (update-copyright): Exclude COPYING.
47934
47935         maint.mk: add a copyright-updating rule
47936         * top/maint.mk (update-copyright): New rule.
47937         Derived from coreutils/Makefile.am.
47938
47939         update-copyright: rename some variables
47940         * build-aux/update-copyright: Rename a few variables for clarity.
47941         Tweak syntax.  List Joel E. Denny as coauthor.
47942
47943 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47944
47945         update-copyright: fix bug for 2-digit last year and add tests
47946         * build-aux/update-copyright: Fix bug.
47947         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
47948         specified.
47949         * modules/update-copyright-tests: New
47950         * tests/test-update-copyright.sh: New.
47951
47952 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47953
47954         update-copyright: handle leading tabs in line prefix
47955         * build-aux/update-copyright: Count leading tabs as 8 spaces
47956         when computing margin.  This helps with the formatting of
47957         ChangeLogs, for example.
47958         Fix documentation a little.
47959
47960 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47961
47962         update-copyright: support EOL=\r\n
47963         * build-aux/update-copyright: Implement that.
47964
47965 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47966
47967         update-copyright: automatically format copyright statements
47968         * build-aux/update-copyright: Implement that.
47969         Also, be a little more predictable and safer by always failing
47970         when the full copyright format is not perfectly recognized as an
47971         unbroken whole.  Discussed at
47972         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
47973         Rewrite documentation.
47974
47975 2009-08-03  Bruno Haible  <bruno@clisp.org>
47976
47977         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
47978
47979 2009-08-02  Bruno Haible  <bruno@clisp.org>
47980
47981         Tests for module 'uname'.
47982         * modules/uname-tests: New file.
47983         * tests/test-uname.c: New file.
47984
47985         New module 'uname'.
47986         * lib/uname.c: New file.
47987         * m4/uname.m4: New file.
47988         * modules/uname: New file.
47989         * doc/posix-functions/uname.texi: Mention the new module.
47990
47991 2009-08-02  Bruno Haible  <bruno@clisp.org>
47992
47993         Tests for module 'sys_utsname'.
47994         * modules/sys_utsname-tests: New file.
47995         * tests/test-sys_utsname.c: New file.
47996
47997         New module 'sys_utsname'.
47998         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
47999         * m4/sys_utsname_h.m4: New file.
48000         * modules/sys_utsname: New file.
48001         * doc/posix-headers/sys_utsname.texi: Mention the new module.
48002
48003 2009-08-02  Bruno Haible  <bruno@clisp.org>
48004
48005         Implicitly initialize the sockets library.
48006         * lib/gethostname.c: Include sockets.h.
48007         (rpl_gethostname): Invoke gl_sockets_startup.
48008         * lib/socket.c: Include sockets.h.
48009         (rpl_socket): Invoke gl_sockets_startup.
48010         * modules/gethostname (Depends-on): Add sockets.
48011         * modules/socket (Depends-on): Likewise.
48012         * tests/test-poll.c: Don't include sockets.h.
48013         (main): Don't invoke gl_sockets_startup.
48014         * tests/test-select.c: Don't include sockets.h.
48015         (main): Don't invoke gl_sockets_startup.
48016
48017 2009-08-02  Bruno Haible  <bruno@clisp.org>
48018
48019         Allow multiple calls to gl_sockets_startup.
48020         * lib/sockets.c (initialized_sockets_version): New variable.
48021         (gl_sockets_startup): Do nothing if already called for this or a higher
48022         version.
48023         (gl_sockets_cleanup): Reset initialized_sockets_version.
48024
48025 2009-08-03  Simon Josefsson  <simon@josefsson.org>
48026
48027         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
48028         different project/version.
48029
48030 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
48031             Bruno Haible  <bruno@clisp.org>
48032
48033         Tests for module 'pipe-filter-gi'.
48034         * modules/pipe-filter-gi-tests: New file.
48035         * tests/test-pipe-filter-gi1.sh: New file.
48036         * tests/test-pipe-filter-gi1.c: New file.
48037         * tests/test-pipe-filter-gi2.sh: New file.
48038         * tests/test-pipe-filter-gi2-main.c: New file.
48039         * tests/test-pipe-filter-gi2-child.c: New file.
48040
48041         New module 'pipe-filter-gi'.
48042         * lib/pipe-filter-gi.c: New file.
48043         * modules/pipe-filter-gi: New file.
48044
48045 2009-08-02  Bruno Haible  <bruno@clisp.org>
48046             Paolo Bonzini  <bonzini@gnu.org>
48047
48048         Tests for module 'pipe-filter-ii'.
48049         * modules/pipe-filter-ii-tests: New file.
48050         * tests/test-pipe-filter-ii1.sh: New file.
48051         * tests/test-pipe-filter-ii1.c: New file.
48052         * tests/test-pipe-filter-ii2.sh: New file.
48053         * tests/test-pipe-filter-ii2-main.c: New file.
48054         * tests/test-pipe-filter-ii2-child.c: New file.
48055
48056         New module 'pipe-filter-ii'.
48057         * lib/pipe-filter.h: New file.
48058         * lib/pipe-filter-ii.c: New file.
48059         * lib/pipe-filter-aux.h: New file.
48060         * modules/pipe-filter-ii: New file.
48061
48062 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48063
48064         * lib/gc-libgcrypt.c: Change copyright to FSF.
48065         * lib/gc-gnulib.c: Likewise.
48066
48067 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
48068
48069         * lib/gethostname.c: Include limits.h.
48070
48071 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48072             Bruno Haible  <bruno@clisp.org>
48073
48074         Ensure HOST_NAME_MAX as part of the gethostname module.
48075         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
48076         define also HOST_NAME_MAX.
48077         * tests/test-gethostname.c: Include <limits.h>.
48078         (main): Check also HOST_NAME_MAX.
48079         * doc/posix-headers/limits.texi: Document the mingw problem.
48080
48081 2009-08-02  Bruno Haible  <bruno@clisp.org>
48082
48083         * lib/gethostname.c (gethostname): Fix handling of large len argument.
48084         Add comments.
48085
48086 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48087
48088         * lib/gethostname.c: Add Windows wrapper.
48089         * m4/gethostname.m4: Look for gethostname in -lws2_32.
48090         * modules/gethostname: Depend on sys_socket & errno, for also
48091         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
48092         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
48093
48094 2009-07-31  Jim Meyering  <meyering@redhat.com>
48095
48096         getloadavg: fix symbol name in comment
48097         * lib/getloadavg.c: Correct a typo I introduced when adding
48098         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
48099         Matt Kraai spotted the problem.
48100
48101 2009-07-29  Matt Kraai  <mkraai@beckman.com>
48102
48103         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
48104         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
48105         code also if ! defined N_NAME_POINTER.
48106         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
48107         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
48108         but the n_name member is a 12-byte array.
48109
48110 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
48111
48112         update-copyright: generalize comment handling
48113         * build-aux/update-copyright: Handle copyright statements
48114         within more comment styles.
48115         Document usage.
48116         Report any file with an external copyright holder or parse failure.
48117
48118 2009-07-29  Jim Meyering  <meyering@redhat.com>
48119
48120         mktime: correct setting of REPLACE_MKTIME
48121         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
48122
48123         update-copyright: new module
48124         * modules/update-copyright: New file.
48125         * build-aux/update-copyright: New file.
48126         * MODULES.html.sh (maint+release support): Add update-copyright.
48127
48128 2009-07-27  Bruno Haible  <bruno@clisp.org>
48129
48130         Fix compilation error when <ctime> is used and mktime is replaced.
48131         * lib/time.in.h (mktime): New declaration.
48132         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
48133         REPLACE_MKTIME instead of defining mktime in config.h.
48134         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
48135         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
48136         Reported by Ross McFarland <rwmcfa1@neces.com>.
48137
48138 2009-07-27  Bruno Haible  <bruno@clisp.org>
48139
48140         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
48141         Reported by Matt Kraai <mkraai@beckman.com>.
48142
48143 2009-07-25  Jim Meyering  <meyering@redhat.com>
48144
48145         maint.mk: avoid warnings about missing files
48146         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
48147         diagnostic when .prev-version does not exist.
48148         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
48149         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
48150         nonexistent cfg.mk.
48151         Suggestions from Simon Josefsson.
48152
48153 2009-07-25  Bruno Haible  <bruno@clisp.org>
48154
48155         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
48156         defined as macros. Needed on QNX 6.4.1.
48157         Reported by Matt Kraai <mkraai@beckman.com>.
48158
48159 2009-07-23  Jim Meyering  <meyering@redhat.com>
48160
48161         maint.mk: invoke "make dist" with a working value of XZ_OPT
48162         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
48163
48164 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
48165
48166         Make fseeko.c compile on QNX.
48167         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
48168
48169 2009-07-22  Peter Simons  <simons@cryp.to>
48170
48171         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
48172         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
48173         * lib/md4.h: Likewise.
48174         * lib/md5.h: Likewise.
48175         * lib/sha1.h: Likewise.
48176         * lib/sha256.h: Likewise.
48177         * lib/sha512.h: Likewise.
48178
48179         tests-sha1: don't assign literal string to 'char *' variable
48180         * tests/test-sha1.c (main): Declare locals with "const" to match
48181         attributes of the right hand side.
48182
48183 2009-07-21  Eric Blake  <ebb9@byu.net>
48184
48185         dup2: fix more mingw problems
48186         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
48187         fd to itself.
48188         * doc/posix-functions/dup2.texi (dup2): Document the bug.
48189         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
48190         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
48191         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
48192         care of mingw bugs.
48193
48194 2009-07-21  Jim Meyering  <meyering@redhat.com>
48195
48196         vc-list-files: avoid failure when /bin/sh is dash
48197         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
48198         On some Debian based systems, /bin/sh is a symlink to dash, and running
48199         this command would omit the "/" following each 'tests' prefix:
48200           dash -x build-aux/vc-list-files -C . tests
48201         That is because bash and dash work differently:
48202           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
48203           bash ok
48204           dash odd
48205
48206 2009-07-21  Eric Blake  <ebb9@byu.net>
48207
48208         dup2-tests: test previous patch
48209         * modules/dup2-tests: New file.
48210         * tests/test-dup2.c: Likewise.
48211         * tests/test-open.c (main): Avoid unspecified behavior.
48212         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
48213         test.
48214
48215         dup2: work around mingw and cygwin 1.5 bug
48216         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
48217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
48218         * modules/unistd (Makefile.am): Substitute it.
48219         * lib/unistd.in.h (dup2): Declare the replacement.
48220         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
48221         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
48222         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
48223         * modules/execute (Depends-on): Add dup2.
48224         * modules/fseterr (Depends-on): Likewise.
48225         * modules/pipe (Depends-on): Likewise.
48226         * modules/posix_spawn-internal (Depends-on): Likewise.
48227
48228 2009-07-21  Bruno Haible  <bruno@clisp.org>
48229
48230         * modules/.gitattributes: New file.
48231
48232 2009-07-20  Bruno Haible  <bruno@clisp.org>
48233
48234         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
48235         (main): Use it.
48236
48237 2009-07-20  Eric Blake  <ebb9@byu.net>
48238
48239         test-pipe: make a bit more robust.
48240         * tests/test-pipe.c (myerr): Allow error messages regardless of
48241         what we do to stderr.
48242         (test_pipe): Rearrange to avoid deadlock.
48243         (child_main): Try a larger read, to ensure we avoided deadlock.
48244         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
48245         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
48246         if misused.
48247
48248 2009-07-19  Jim Meyering  <meyering@redhat.com>
48249
48250         fts: avoid false-positive cycle-detection
48251         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
48252         for each new command line argument.
48253
48254 2009-07-19  Bruno Haible  <bruno@clisp.org>
48255
48256         Fix build error on mingw with the modules sys_select and unistd.
48257         * modules/acl-tests (Depends-on): Add close.
48258         * modules/binary-io-tests (Depends-on): Likewise.
48259         * modules/closein-tests (Depends-on): Likewise.
48260         * modules/flock-tests (Depends-on): Likewise.
48261         * modules/fsync-tests (Depends-on): Likewise.
48262         * modules/lseek-tests (Depends-on): Likewise.
48263         * modules/pipe-tests (Depends-on): Likewise.
48264         * modules/posix_spawn-tests (Depends-on): Likewise.
48265         * modules/posix_spawnp-tests (Depends-on): Likewise.
48266         * modules/stat-time-tests (Depends-on): Likewise.
48267         * modules/yesno-tests (Depends-on): Likewise.
48268
48269 2009-07-19  Bruno Haible  <bruno@clisp.org>
48270
48271         Unify conditionals.
48272         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
48273         macros, not at the compiler macros.
48274         * lib/pipe.c: Likewise.
48275         * lib/execute.c: Likewise.
48276         * lib/spawni.c: Likewise.
48277
48278 2009-07-19  Bruno Haible  <bruno@clisp.org>
48279
48280         Fix handling of closed stdin/stdout/stderr on mingw.
48281         * lib/w32spawn.h: Include unistd.h.
48282         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
48283         file descriptor with O_NOINHERIT flag.
48284         (fd_safer_noinherit): New function, based on fd-safer.c.
48285         (dup_safer_noinherit): New function, based on dup-safer.c.
48286         (undup_safer_noinherit): New function.
48287         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
48288         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
48289         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
48290         instead of fd_safer.
48291         * tests/test-pipe.c: Include <windows.h>.
48292         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
48293         result.
48294
48295         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
48296         from main.
48297         (test_pipe): Pass an extra argument for disambiguation.
48298         (main): Invoke parent_main or child_main.
48299
48300         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
48301         consistently.
48302
48303 2009-07-18  Eric Blake  <ebb9@byu.net>
48304
48305         test-pipe: fix mingw build
48306         * tests/test-pipe.c (main): Avoid fcntl on mingw.
48307
48308 2009-07-18  Bruno Haible  <bruno@clisp.org>
48309
48310         * modules/pipe-tests (Makefile.am): Fix typo.
48311
48312 2009-07-18  Eric Blake  <ebb9@byu.net>
48313
48314         error: fix mingw build
48315         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
48316         Reported by Bruno Haible.
48317
48318         error: avoid undefined use of stdout
48319         * lib/error.c (error, error_at_line): Check that fd 1 is open
48320         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
48321         is handling faults and the close_stdout module wants to report the
48322         detection of closed stdout as an error.
48323
48324 2009-07-17  Eric Blake  <ebb9@byu.net>
48325
48326         pipe: be robust in face of closed fds
48327         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48328         should cause child to misbehave.
48329         * modules/pipe-tests: New module.
48330         * tests/test-pipe.c: New file.
48331         * tests/test-pipe.sh: New file.
48332         Reported by Akim Demaille.
48333
48334 2009-07-14  Bruno Haible  <bruno@clisp.org>
48335
48336         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48337         Reported by anonymous kc.
48338
48339 2009-07-07  Jim Meyering  <meyering@redhat.com>
48340
48341         maint.mk: don't look for translatable strings in *.m4 or *.mk
48342         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48343         when searching for translatable strings.
48344
48345 2009-07-05  Jim Meyering  <meyering@redhat.com>
48346
48347         remove superfluous parentheses in STREQ definition
48348         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48349         * lib/getugroups.c (STREQ): Likewise.
48350         * lib/fnmatch.c (STREQ): Likewise.
48351         Spotted by Bruno Haible.
48352
48353 2009-07-04  Jim Meyering  <meyering@redhat.com>
48354
48355         argv-iter: new module
48356         * MODULES.html.sh: Add argv-iter.
48357         * lib/argv-iter.c, lib/argv-iter.h: New files.
48358         * modules/argv-iter: New file.
48359         * modules/argv-iter-tests: New file.
48360         * tests/test-argv-iter.c: Test it.
48361
48362 2009-07-04  Bruno Haible  <bruno@clisp.org>
48363
48364         Fix assertion.
48365         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48366         contains more exact copies of a given entry than file2, leave the extra
48367         copies unpaired rather than aborting.
48368         Reported by Eric Blake.
48369
48370 2009-07-02  Bruno Haible  <bruno@clisp.org>
48371
48372         Speedup git-merge-changelog for git cherry-pick.
48373         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48374         (entries_mapping_get): New function, extracted from compute_mapping.
48375         (entries_mapping_reverse_get): New function.
48376         (compute_mapping): Add a 'full' argument. Return the result in a
48377         'struct entries_mapping'.
48378         (main): Update. Access the mappings through entries_mapping_get.
48379         Reported by Eric Blake.
48380
48381 2009-07-02  Bruno Haible  <bruno@clisp.org>
48382
48383         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48384         best_i.
48385
48386 2009-07-02  Bruno Haible  <bruno@clisp.org>
48387
48388         Speed up approximate search for matching ChangeLog entries.
48389         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
48390         argument. Call fstrcmp_bounded instead of fstrcmp.
48391         (compute_mapping, try_split_merged_entry, main): Update callers.
48392
48393 2009-07-02  Bruno Haible  <bruno@clisp.org>
48394
48395         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48396
48397 2009-06-30  Bruno Haible  <bruno@clisp.org>
48398
48399         Reduce the number of uc_is_cased calls.
48400         * lib/unicase.h (casing_suffix_context_t): Add
48401         'first_char_except_ignorable' field.
48402         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48403         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48404         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48405         Update initializer.
48406         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48407         case-ignorable characters.
48408         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48409         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48410         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48411         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48412         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48413
48414 2009-06-30  Bruno Haible  <bruno@clisp.org>
48415
48416         Tests for module 'unicase/ignorable'.
48417         * modules/unicase/ignorable-tests: New file.
48418         * tests/unicase/test-ignorable.c: New file, generated by
48419         gen-uni-tables.
48420
48421         Tests for module 'unicase/cased'.
48422         * modules/unicase/cased-tests: New file.
48423         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48424         * tests/unicase/test-predicate-part1.h: New file, derived from
48425         tests/unictype/test-predicate-part1.h.
48426         * tests/unicase/test-predicate-part2.h: New file, same as
48427         tests/unictype/test-predicate-part2.h.
48428
48429         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48430         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48431         (output_casing_properties): New function.
48432         (main): Call it.
48433         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48434         * lib/unicase/cased.c: Include unictype/bitmap.h.
48435         (uc_is_cased): Define through a bitmap lookup.
48436         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48437         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48438         (uc_is_case_ignorable): Define through a bitmap lookup.
48439         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48440         lib/unictype/bitmap.h.
48441         (Depends-on): Add inline. Clean up.
48442         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48443         lib/unictype/bitmap.h.
48444         (Depends-on): Add inline. Clean up.
48445         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48446         recognition.
48447         * tests/unicase/test-u16-tolower.c (main): Likewise.
48448         * tests/unicase/test-u32-tolower.c (main): Likewise.
48449
48450 2009-06-30  Bruno Haible  <bruno@clisp.org>
48451
48452         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48453         * lib/unicase/u16-casemap.c: Likewise.
48454         * lib/unicase/u32-casemap.c: Likewise.
48455
48456 2009-06-29  Bruno Haible  <bruno@clisp.org>
48457
48458         Define u32_casefold as a wrapper around u32_ct_casefold.
48459         * lib/unicase/u32-casefold.c: Update.
48460         * modules/unicase/u32-casefold (Depends-on): Add
48461         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48462         unicase/empty-suffix-context. Clean up.
48463
48464         Define u16_casefold as a wrapper around u16_ct_casefold.
48465         * lib/unicase/u16-casefold.c: Update.
48466         * modules/unicase/u16-casefold (Depends-on): Add
48467         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48468         unicase/empty-suffix-context. Clean up.
48469
48470         Define u8_casefold as a wrapper around u8_ct_casefold.
48471         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48472         * lib/unicase/u8-casefold.c: Update.
48473         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48474         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48475
48476         Define u32_totitle as a wrapper around u32_ct_totitle.
48477         * lib/unicase/u32-totitle.c: Update.
48478         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
48479         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48480
48481         Define u16_totitle as a wrapper around u16_ct_totitle.
48482         * lib/unicase/u16-totitle.c: Update.
48483         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
48484         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48485
48486         Define u8_totitle as a wrapper around u8_ct_totitle.
48487         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
48488         functions.
48489         (FUNC): Delegate to U_CT_TOTITLE.
48490         * lib/unicase/u8-totitle.c: Update.
48491         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
48492         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48493
48494         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
48495         invocation.
48496         * modules/unicase/u32-tolower (Depends-on): Add
48497         unicase/empty-prefix-context, unicase/empty-suffix-context.
48498
48499         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
48500         invocation.
48501         * modules/unicase/u16-tolower (Depends-on): Add
48502         unicase/empty-prefix-context, unicase/empty-suffix-context.
48503
48504         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
48505         * modules/unicase/u8-tolower (Depends-on): Add
48506         unicase/empty-prefix-context, unicase/empty-suffix-context.
48507
48508         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
48509         invocation.
48510         * modules/unicase/u32-toupper (Depends-on): Add
48511         unicase/empty-prefix-context, unicase/empty-suffix-context.
48512
48513         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
48514         invocation.
48515         * modules/unicase/u16-toupper (Depends-on): Add
48516         unicase/empty-prefix-context, unicase/empty-suffix-context.
48517
48518         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
48519         * modules/unicase/u8-toupper (Depends-on): Add
48520         unicase/empty-prefix-context, unicase/empty-suffix-context.
48521
48522         New module 'unicase/u32-ct-casefold'.
48523         * lib/unicase/u32-ct-casefold.c: New file.
48524         * modules/unicase/u32-ct-casefold: New file.
48525
48526         New module 'unicase/u16-ct-casefold'.
48527         * lib/unicase/u16-ct-casefold.c: New file.
48528         * modules/unicase/u16-ct-casefold: New file.
48529
48530         New module 'unicase/u8-ct-casefold'.
48531         * lib/unicase/u8-ct-casefold.c: New file.
48532         * lib/unicase/u-ct-casefold.h: New file, derived from
48533         lib/unicase/u-casefold.h.
48534         * modules/unicase/u8-ct-casefold: New file.
48535
48536         New module 'unicase/u32-ct-totitle'.
48537         * lib/unicase/u32-ct-totitle.c: New file.
48538         * modules/unicase/u32-ct-totitle: New file.
48539
48540         New module 'unicase/u16-ct-totitle'.
48541         * lib/unicase/u16-ct-totitle.c: New file.
48542         * modules/unicase/u16-ct-totitle: New file.
48543
48544         New module 'unicase/u8-ct-totitle'.
48545         * lib/unicase/u8-ct-totitle.c: New file.
48546         * lib/unicase/u-ct-totitle.h: New file, derived from
48547         lib/unicase/u-totitle.h.
48548         * modules/unicase/u8-ct-totitle: New file.
48549
48550         New module 'unicase/u32-ct-tolower'.
48551         * lib/unicase/u32-ct-tolower.c: New file.
48552         * modules/unicase/u32-ct-tolower: New file.
48553
48554         New module 'unicase/u16-ct-tolower'.
48555         * lib/unicase/u16-ct-tolower.c: New file.
48556         * modules/unicase/u16-ct-tolower: New file.
48557
48558         New module 'unicase/u8-ct-tolower'.
48559         * lib/unicase/u8-ct-tolower.c: New file.
48560         * modules/unicase/u8-ct-tolower: New file.
48561
48562         New module 'unicase/u32-ct-toupper'.
48563         * lib/unicase/u32-ct-toupper.c: New file.
48564         * modules/unicase/u32-ct-toupper: New file.
48565
48566         New module 'unicase/u16-ct-toupper'.
48567         * lib/unicase/u16-ct-toupper.c: New file.
48568         * modules/unicase/u16-ct-toupper: New file.
48569
48570         New module 'unicase/u8-ct-toupper'.
48571         * lib/unicase/u8-ct-toupper.c: New file.
48572         * modules/unicase/u8-ct-toupper: New file.
48573
48574         Add context arguments to u*_casemap functions.
48575         * lib/unicase/unicasemap.h: Include unicase.h.
48576         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
48577         suffix_context arguments.
48578         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
48579         functions.
48580         (FUNC): Add prefix_context and suffix_context arguments. Use
48581         uc_is_cased and uc_is_case_ignorable.
48582         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
48583         * lib/unicase/u16-casemap.c: Likewise.
48584         * lib/unicase/u32-casemap.c: Likewise.
48585         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
48586         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48587         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
48588         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48589         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
48590         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48591
48592         New module 'unicase/u32-suffix-context'.
48593         * lib/unicase/u32-suffix-context.c: New file.
48594         * modules/unicase/u32-suffix-context: New file.
48595
48596         New module 'unicase/u16-suffix-context'.
48597         * lib/unicase/u16-suffix-context.c: New file.
48598         * modules/unicase/u16-suffix-context: New file.
48599
48600         New module 'unicase/u8-suffix-context'.
48601         * lib/unicase/u8-suffix-context.c: New file.
48602         * lib/unicase/u-suffix-context.h: New file.
48603         * modules/unicase/u8-suffix-context: New file.
48604
48605         New module 'unicase/empty-suffix-context'.
48606         * lib/unicase/empty-suffix-context.c: New file.
48607         * modules/unicase/empty-suffix-context: New file.
48608
48609         New module 'unicase/u32-prefix-context'.
48610         * lib/unicase/u32-prefix-context.c: New file.
48611         * modules/unicase/u32-prefix-context: New file.
48612
48613         New module 'unicase/u16-prefix-context'.
48614         * lib/unicase/u16-prefix-context.c: New file.
48615         * modules/unicase/u16-prefix-context: New file.
48616
48617         New module 'unicase/u8-prefix-context'.
48618         * lib/unicase/u8-prefix-context.c: New file.
48619         * lib/unicase/u-prefix-context.h: New file.
48620         * lib/unicase/context.h: New file.
48621         * modules/unicase/u8-prefix-context: New file.
48622
48623         New module 'unicase/empty-prefix-context'.
48624         * lib/unicase/empty-prefix-context.c: New file.
48625         * modules/unicase/empty-prefix-context: New file.
48626
48627         New module 'unicase/ignorable'.
48628         * lib/unicase/ignorable.c: New file.
48629         * modules/unicase/ignorable: New file.
48630
48631         New module 'unicase/cased'.
48632         * lib/unicase/caseprop.h: New file.
48633         * lib/unicase/cased.c: New file.
48634         * modules/unicase/cased: New file.
48635
48636         New functions for case mapping of substrings.
48637         * lib/unicase.h (casing_prefix_context_t): New type.
48638         (unicase_empty_prefix_context): New variable.
48639         (u8_casing_prefix_context, u16_casing_prefix_context,
48640         u32_casing_prefix_context, u8_casing_prefixes_context,
48641         u16_casing_prefixes_context, u32_casing_prefixes_context): New
48642         declarations.
48643         (casing_suffix_context_t): New type.
48644         (unicase_empty_suffix_context): New variable.
48645         (u8_casing_suffix_context, u16_casing_suffix_context,
48646         u32_casing_suffix_context, u8_casing_suffixes_context,
48647         u16_casing_suffixes_context, u32_casing_suffixes_context,
48648         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
48649         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
48650         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
48651         declarations.
48652
48653 2009-06-28  Jim Meyering  <meyering@redhat.com>
48654
48655         boostrap: indent only with spaces
48656         * build-aux/bootstrap: Indent only with spaces, never TABs.
48657
48658         bootstrap: split long lines
48659         * build-aux/bootstrap: Keep line length < 80.
48660
48661         bootstrap: sync from coreutils
48662         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
48663         just as autoreconf does.  Verify a list of prerequisite
48664         package-name,version-number pairs if defined in bootstrap.conf.
48665         Refer to README-prereq, if prerequisites are not satisfied.
48666
48667 2009-06-27  Eric Blake  <ebb9@byu.net>
48668
48669         tests: add test for bogus NULL definition
48670         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
48671         * tests/test-stdlib.c: Likewise.
48672         * tests/test-string.c: Likewise.
48673         * tests/test-locale.c: Likewise.
48674         * tests/test-unistd.c: Likewise.
48675         * modules/stdio-tests (Depends-on): Add verify.
48676         * modules/stdlib-tests (Depends-on): Likewise.
48677         * modules/string-tests (Depends-on): Likewise.
48678         * modules/locale-tests (Depends-on): Likewise.
48679         * modules/unistd-tests (Depends-on): Likewise.
48680
48681 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
48682
48683         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
48684         self-explaining comment.
48685         * m4/selinux-selinux-h: Update serial.
48686         (gl_LIBSELINUX): New macro, adding a warning for missing development
48687         packages to code extracted from...
48688         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
48689         Add warning for missing development packages here, too.
48690
48691 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
48692
48693         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
48694
48695 2009-06-25  Eric Blake  <ebb9@byu.net>
48696
48697         version-etc: fix regression
48698         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
48699         gcc.
48700         (version_etc): Use it, to catch bugs with trailing NULL.
48701         * lib/version-etc.c (version_etc_arn): Delete unused argument.
48702         (version_etc_va): Fix logic bug.
48703         * modules/version-etc-tests: Add test.
48704         * tests/test-version-etc.c: New file.
48705         * tests/test-version-etc.sh: Likewise.
48706
48707 2009-06-25  Sam Steingold  <sds@gnu.org>
48708
48709         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
48710         mbtowc declaration.
48711
48712 2009-06-25  Eric Blake  <ebb9@byu.net>
48713
48714         fpurge: migrate into <stdio.h>
48715         * lib/fpurge.h: Delete...
48716         * lib/stdio.in.h (fpurge): ...and declare here, instead.
48717         * lib/fpurge.c (fpurge): Change declaring header.
48718         * modules/fpurge (Files): Drop deleted file.
48719         (Depends-on): Add stdio.
48720         (configure.ac): Set witness.
48721         * modules/stdio (Makefile.am): Support fpurge macros.
48722         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48723         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
48724         * lib/fflush.c: Update client.
48725         * tests/test-fpurge.c: Likewise.
48726         * NEWS: Mention the change.
48727
48728 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48729
48730         * lib/argp-version-etc.c (program_authors): Add const
48731         qualifier.
48732         * lib/version-etc.c: Fix typos in the comments.
48733         * modules/argp-version-etc: Depends on version-etc.
48734
48735 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48736
48737         argp-version-etc: new module.
48738
48739         * lib/argp-version-etc.c: New file.
48740         * lib/argp-version-etc.h: New file.
48741         * modules/argp-version-etc: New file.
48742         * modules/argp-version-etc-tests: New file.
48743         * tests/test-argp-version-etc.c: New test.
48744         * tests/test-argp-version-etc-1.sh: New test.
48745
48746 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48747
48748         Provide additional interfaces and documentation for version-etc
48749         module.
48750
48751         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
48752         interfaces.
48753         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
48754         prototypes.
48755
48756 2009-06-24  Bruno Haible  <bruno@clisp.org>
48757
48758         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
48759         HAVE_LIB${NAME} macro.
48760         Reported by Sam Steingold <sds@gnu.org>.
48761
48762 2009-06-23  Simon Josefsson  <simon@josefsson.org>
48763
48764         * modules/hash-tests (test_hash_LDADD): Link to libintl when
48765         needed.
48766
48767 2009-06-21  Bruno Haible  <bruno@clisp.org>
48768
48769         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
48770         work.
48771         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
48772         together with LIB${NAME}, LTLIB${NAME}.
48773         Reported by Sam Steingold <sds@gnu.org>.
48774
48775 2009-06-20  Jim Meyering  <meyering@redhat.com>
48776
48777         tests: make sc_require_test_exit_idiom more generic
48778         * top/maint.mk (Exit_witness_file): New overridable variable.
48779         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
48780         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
48781
48782 2009-06-19  Jim Meyering  <meyering@redhat.com>
48783
48784         hash: reverse order of src/dst parameters in an internal interface
48785         * lib/hash.c (transfer_entries): Reverse order of parameters to
48786         put DST before SRC.  Adjust callers.
48787
48788         tests: test-hash: avoid wholesale duplication
48789         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
48790         Instead, use a loop and add a single conditional.
48791
48792         tests: test-hash: allow seed selection via a command line argument
48793         * tests/test-hash.c (get_seed): New function.
48794         (main): Use it.
48795
48796 2009-06-19  Eric Blake  <ebb9@byu.net>
48797
48798         hash: avoid memory leak on allocation failure
48799         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
48800         failure.  Factor repeated algorithm...
48801         (transfer_entries): ...into new helper routine.
48802         (hash_delete): React to hash_rehash return value.
48803
48804         hash: reduce memory pressure in hash_rehash no-op case
48805         * lib/hash.c (next_prime): Avoid overflow.
48806         (hash_initialize): Factor bucket size computation...
48807         (compute_bucket_size): ...into new helper function.
48808         (hash_rehash): Use new function and open coding to reduce memory
48809         pressure, and avoid a memory leak in USE_OBSTACK code.
48810         Reported by Jim Meyering.
48811
48812 2009-06-18  Eric Blake  <ebb9@byu.net>
48813
48814         hash: make rotation more obvious
48815         * modules/hash (Depends-on): Add bitrotate and stdint.
48816         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
48817         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
48818         (SIZE_MAX): Rely on headers for definition.
48819         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
48820         (raw_hasher): Use rotr_sz.
48821         Suggested by Jim Meyering.
48822
48823         hash: fix memory leak in last patch
48824         * lib/hash.c (hash_rehash): Avoid memory leak.
48825
48826         hash: avoid no-op rehashing
48827         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
48828
48829         hash: provide default callback functions
48830         * lib/hash.c (raw_hasher, raw_comparator): New functions.
48831         (hash_initialize): Use them as defaults.
48832         * tests/test-hash.c (main): Test this.
48833
48834         hash: minor optimization
48835         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
48836         when possible.
48837         (hash_initialize): Document this promise.
48838         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
48839         * tests/test-hash.c (hash_compare_strings): Test this.
48840
48841 2009-06-18  Bruno Haible  <bruno@clisp.org>
48842
48843         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
48844         going to be replaced anyway.
48845
48846 2009-06-18  Bruno Haible  <bruno@clisp.org>
48847
48848         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
48849         in one place.
48850         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
48851         be replaced anyway.
48852
48853 2009-06-18  Eric Blake  <ebb9@byu.net>
48854
48855         hash: check for resize before insertion
48856         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
48857         threshold before insertion, so that a pathological hash_rehash
48858         that fills every bucket can still trigger another rehash.
48859
48860 2009-06-18  Jim Meyering  <meyering@redhat.com>
48861
48862         hash-tests: add a loop around the small tests
48863         * tests/test-hash.c (main): Repeat small tests with selected
48864         small initial table sizes.
48865
48866 2009-06-17  Eric Blake  <ebb9@byu.net>
48867
48868         hash: minor cleanups
48869         * lib/hash.h (hash_entry): Make opaque, by moving...
48870         * lib/hash.c (hash_entry): ...here.
48871         (hash_insert): Clarify restrictions on what can be inserted.
48872         (hash_get_next): Clarify when it is safe to remove an element
48873         during traversal.
48874         (check_tuning): Skip verification when tuning is known safe.
48875         (hash_initialize): Clarify restrictions on tuning.
48876
48877 2009-06-17  Jim Meyering  <jim@meyering.net>
48878         and Eric Blake  <ebb9@byu.net>
48879
48880         hash-tests: new module
48881         * modules/hash-tests: New file.
48882         * tests/test-hash.c: New file.
48883
48884 2009-06-17  Eric Blake  <ebb9@byu.net>
48885
48886         strstr-simple: document new module
48887         * MODULES.html.sh: Document new module.
48888
48889         strstr, strcasestr: replace on platforms with broken memchr
48890         * modules/strstr: Split into...
48891         * modules/strstr-simple: ...new module that does not care about
48892         performance, but does care about glibc bug.
48893         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
48894         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
48895         if platform memchr is broken, per Debian bug 521737.
48896         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
48897         memchr.
48898         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
48899         * doc/posix-functions/strstr.texi (strstr): Document the fix.
48900         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48901         * modules/mountlist (Depends-on): Add strstr-simple.
48902         * modules/gen-uni-tables (Depends-on): Likewise.
48903         * modules/argz (Depends-on): Add strstr.
48904
48905 2009-06-17  Bruno Haible  <bruno@clisp.org>
48906
48907         * modules/posix_spawn-internal (Depends-on): Add errno.
48908
48909 2009-06-17  Bruno Haible  <bruno@clisp.org>
48910
48911         Define missing ESTALE on Interix 3.5.
48912         * lib/errno.in.h (ESTALE): Assign a value if missing.
48913         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
48914         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
48915         missing.
48916         * doc/posix-headers/errno.texi: Mention the Interix bug.
48917         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
48918
48919 2009-06-15  Eric Blake  <ebb9@byu.net>
48920
48921         memchr, memchr2: add valgrind exception
48922         * lib/memchr.valgrind: New file.
48923         * lib/memchr2.valgrind: New file.
48924         * modules/memchr (Files): Distribute valgrind file.
48925         * modules/memchr2 (Files): Likewise.
48926
48927         docs: memchr is no longer obsolete
48928         * MODULES.html.sh: Move memchr from obsolete to string.h section.
48929         * lib/string.in.h (memchr): Simplify logic.
48930
48931 2009-06-14  Jim Meyering  <meyering@redhat.com>
48932
48933         link-follow: fix the "checking..." message to not mention trailing slash
48934         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
48935         never considered trailing slashes.
48936
48937 2009-06-14  Bruno Haible  <bruno@clisp.org>
48938
48939         * m4/memchr.m4: Mention also the bug on IA-64.
48940         * doc/posix-functions/memchr.texi: Likewise.
48941
48942 2009-06-12  Eric Blake  <ebb9@byu.net>
48943
48944         memchr: detect broken x86_64 and alpha implementations
48945         * modules/memchr-tests (Depends-on): Move mmap detection...
48946         * modules/memchr (Depends-on): ...here.
48947         (configure.ac): Set indicator.
48948         * lib/string.in.h (memchr): Declare replacement.
48949         * modules/string (Makefile.am): Trigger replacement.
48950         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48951         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
48952         bugs.
48953         * doc/posix-functions/memchr.texi (memchr): Document the bug.
48954         * modules/getpagesize (License): Relax license.
48955
48956 2009-06-11  Bruno Haible  <bruno@clisp.org>
48957
48958         * lib/idpriv.h: Add more references.
48959
48960 2009-06-08  Bruno Haible  <bruno@clisp.org>
48961
48962         Tests for module 'idpriv-droptemp'.
48963         * modules/idpriv-droptemp-tests: New file.
48964         * tests/test-idpriv-droptemp.sh: New file.
48965         * tests/test-idpriv-droptemp.su.sh: New file.
48966         * tests/test-idpriv-droptemp.c: New file.
48967
48968         New module 'idpriv-droptemp'.
48969         * lib/idpriv-droptemp.c: New file.
48970         * modules/idpriv-droptemp: New file.
48971
48972 2009-06-08  Bruno Haible  <bruno@clisp.org>
48973
48974         Tests for module 'idpriv-drop'.
48975         * modules/idpriv-drop-tests: New file.
48976         * tests/test-idpriv-drop.sh: New file.
48977         * tests/test-idpriv-drop.su.sh: New file.
48978         * tests/test-idpriv-drop.c: New file.
48979
48980         New module 'idpriv-drop'.
48981         * lib/idpriv.h: New file.
48982         * lib-idpriv-drop.c: New file.
48983         * m4/idpriv.m4: New file.
48984         * modules/idpriv-drop: New file.
48985
48986 2009-06-08  Bruno Haible  <bruno@clisp.org>
48987
48988         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
48989         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48990         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48991         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48992         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48993         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48994         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48995
48996 2009-06-08  Eric Blake  <ebb9@byu.net>
48997
48998         test-strstr: use memory fence, when possible
48999         * tests/test-strstr.c (main): Use memory fence, in order to be
49000         more likely to trigger Debian bug 521737.
49001         * modules/strstr-tests (Files): Pull in additional files.
49002
49003         memchr: no longer obsolete, for wider field testing
49004         * modules/memchr (Status, Notice): Delete, this module is no
49005         longer obsolete.
49006         * modules/vasnprintf (Depends-on): Add memchr.
49007
49008 2009-06-07  Jim Meyering  <meyering@redhat.com>
49009
49010         hash: declare some functions with the warn_unused_result attribute
49011         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
49012
49013 2009-06-07  Bruno Haible  <bruno@clisp.org>
49014
49015         * tests/test-alignof.c: Don't test int64_t if it does not exist.
49016         Reported by Eric Blake.
49017
49018 2009-06-06  Eric Blake  <ebb9@byu.net>
49019
49020         test-alignof: fix typo with long double
49021         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
49022         compiler error.
49023
49024 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
49025
49026         Escape non-texinfo { and }s.
49027         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
49028         markup error.
49029
49030 2009-06-04  Jim Meyering  <meyering@redhat.com>
49031
49032         gitlog-to-changelog: don't infloop on an empty commit log
49033         * build-aux/gitlog-to-changelog: Warn about an empty log message.
49034         Reported by Boris Petersen <transacid@centerim.org>.
49035
49036 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
49037
49038         version-etc: extend for packagers
49039         Add three new configure options, intended for packagers:
49040           --with-packager="packager name"
49041           --with-packager-version="packager-specific version"
49042           --with-packager-bug-reports="packager bug reporting"
49043         An example with coreutils:
49044           $ ./configure \
49045             --with-packager=Gentoo \
49046             --with-packager-bug-report=http://bugs.gentoo.org/ \
49047             --with-packager-version="patchset 1.6"
49048           $ ./src/ls --version | head -n2
49049           ls (GNU coreutils) 7.1-dirty
49050           Packaged by Gentoo (patchset 1.6)
49051         Note that the bug reporting info via --help doesn't show up because
49052         coreutils uses its own custom emit_bug_reporting_address() implementation
49053         in src/system.h.  If it didn't, it'd look like:
49054           $ ./src/ls --help | tail -n4
49055           Report bugs to <bug-coreutils@gnu.org>.
49056           Report Gentoo bugs to <http://bugs.gentoo.org/>.
49057           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
49058           General help using GNU software: <http://www.gnu.org/gethelp/>.
49059         * lib/version-etc.c: Print new information, if provided.
49060         * m4/version-etc.m4: New file.
49061         * modules/version-etc (Files): Add m4/version-etc.m4.
49062         (configure.ac): Add gl_VERSION_ETC.
49063
49064 2009-05-31  Bruno Haible  <bruno@clisp.org>
49065
49066         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
49067         and 'int64_t'.
49068         * modules/alignof-tests (Dependencies): Add stdint.
49069         Reported by Eric Blake.
49070
49071 2009-05-31  Bruno Haible  <bruno@clisp.org>
49072
49073         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
49074         restriction due to compiler bugs.
49075         Reported by Eric Blake.
49076
49077 2009-05-31  Simon Josefsson  <simon@josefsson.org>
49078             Bruno Haible  <bruno@clisp.org>
49079
49080         Fix test-alignof failure.
49081         * lib/alignof.h (alignof_slot): New macro.
49082         (alignof_type): New macro, with the same semantics as the previous
49083         'alignof'.
49084         (alignof): Alias to alignof_slot.
49085         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
49086         check that the results are usable as constant expressions.
49087
49088 2009-05-31  Bruno Haible  <bruno@clisp.org>
49089
49090         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
49091         * tests/test-memchr.c (main): Check that memchr does not read past the
49092         first occurrence of the byte.
49093         * tests/test-strstr.c (main): Update comment.
49094         Suggested by Eric Blake.
49095
49096 2009-05-30  Bruno Haible  <bruno@clisp.org>
49097
49098         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
49099         detail how to use dumpbin.
49100         Reported by David Byron <dbyron@dbyron.com>.
49101
49102 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49103
49104         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
49105
49106 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49107
49108         * m4/manywarnings.m4: Add GCC 4.4 warnings.
49109
49110 2009-05-28  Bruno Haible  <bruno@clisp.org>
49111
49112         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
49113         build-aux/ files.
49114
49115 2009-05-28  Simon Josefsson  <simon@josefsson.org>
49116
49117         * gnulib-tool (func_import): Transform license on build-aux/ files too.
49118
49119 2009-05-27  Simon Josefsson  <simon@josefsson.org>
49120
49121         * gnulib-tool (sed_transform_main_lib_file)
49122         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
49123         regexps.
49124
49125 2009-05-26  Simon Josefsson  <simon@josefsson.org>
49126
49127         * tests/test-strstr.c: Add another self-test.
49128         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
49129         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
49130
49131 2009-05-23  Bruno Haible  <bruno@clisp.org>
49132
49133         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
49134         change.
49135
49136 2009-05-21  Bruno Haible  <bruno@clisp.org>
49137
49138         Simplify use of mode_t varargs.
49139         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
49140         uses 'mode_t' or 'int'.
49141         * lib/openat.c (openat): Likewise.
49142         * lib/open-safer.c (open_safer): Likewise.
49143         * m4/mode_t.m4: New file.
49144         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
49145         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
49146         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
49147         * modules/open (Files): Add m4/mode_t.m4.
49148         * modules/openat (Files): Likewise.
49149         * modules/fcntl-safer (Files): Likewise.
49150         Suggested by Eric Blake.
49151
49152 2009-05-21  Pádraig Brady  <P@draigbrady.com>
49153
49154         * doc/glibc-functions/fallocate.texi: New file.
49155         * doc/gnulib.texi: Include it.
49156
49157 2009-05-21  Eric Blake  <ebb9@byu.net>
49158             Bruno Haible  <bruno@clisp.org>
49159
49160         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
49161         invocations.
49162         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49163
49164 2009-05-21  Eric Blake  <ebb9@byu.net>
49165             Bruno Haible  <bruno@clisp.org>
49166
49167         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
49168         include_next. Fix of 2008-11-20 commit.
49169         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
49170         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
49171         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
49172         NEXT_MATH_H.
49173         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
49174         instead of NEXT_MATH_H.
49175
49176 2009-05-21  Bruno Haible  <bruno@clisp.org>
49177
49178         Avoid redefinition warnings for SIZE_MAX.
49179         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
49180         Reported by Simon Josefsson.
49181
49182 2009-05-21  Bruno Haible  <bruno@clisp.org>
49183
49184         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
49185         AC_CACHE_VAL.
49186
49187 2009-05-20  Bruno Haible  <bruno@clisp.org>
49188
49189         Make zeroptr.h work on mingw.
49190         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
49191         mprotect.
49192         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
49193         * modules/memchr2-tests (configure.ac): Likewise.
49194         * modules/memcmp-tests (configure.ac): Likewise.
49195         * modules/memmem-tests (configure.ac): Likewise.
49196         * modules/memrchr-tests (configure.ac): Likewise.
49197         Reported by Simon Josefsson.
49198
49199 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49200
49201         * tests/test-glob.c: Include string.h for strcmp prototype.
49202
49203 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49204
49205         * modules/getdelim (Depends-on): Add explicit stdint, although it
49206         was implicitly already pulled in via realloc-posix.
49207         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
49208
49209 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49210
49211         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
49212         G. Christensen" <tgc@jupiterrise.com>.
49213         * m4/sys_socket_h.m4: Check for sa_family_t.
49214         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
49215         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
49216         * tests/test-sys_socket.c: Check that sa_family_t works.
49217
49218 2009-05-18  Eric Blake  <ebb9@byu.net>
49219
49220         maint.mk: allow gnulib_dir in VPATH build
49221         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
49222
49223 2009-05-15  Jim Meyering  <meyering@redhat.com>
49224
49225         maint.mk: Give gnulib_dir a default definition.
49226         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
49227         Thus, most packages no longer need to specify this variable in cfg.mk
49228
49229 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
49230
49231         rename.m4: fix typos that would make non-mingw cross-configure fail
49232         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
49233
49234 2009-05-13  Eric Blake  <ebb9@byu.net>
49235
49236         mmap-anon: avoid out-of-order autoconf expansion
49237         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
49238         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
49239         * modules/memchr-tests (Depends-on): Add extensions.
49240         * modules/memchr2-tests (Depends-on): Add extensions.
49241         * modules/memcmp-tests (Depends-on): Add extensions.
49242         * modules/memmem-tests (Depends-on): Add extensions.
49243         * modules/memrchr-tests (Depends-on): Add extensions.
49244
49245 2009-05-13  Bruno Haible  <bruno@clisp.org>
49246
49247         Make some tests ISO C 99 compliant.
49248         * tests/zerosize-ptr.h: New file.
49249         * tests/test-memchr.c: Include zerosize-ptr.h.
49250         (main): Use a zero-size object pointer instead of NULL.
49251         * tests/test-memchr2.c: Include zerosize-ptr.h.
49252         (main): Use a zero-size object pointer instead of NULL.
49253         * tests/test-memcmp.c: Include zerosize-ptr.h.
49254         (main): Use a zero-size object pointer instead of NULL.
49255         * tests/test-memmem.c: Include zerosize-ptr.h.
49256         (main): Use a zero-size object pointer instead of NULL.
49257         * tests/test-memrchr.c: Include zerosize-ptr.h.
49258         (main): Use a zero-size object pointer instead of NULL.
49259         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
49260         m4/mmap-anon.m4.
49261         (Depends-on): Add getpagesize.
49262         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49263         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
49264         m4/mmap-anon.m4.
49265         (Depends-on): Add getpagesize.
49266         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49267         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
49268         m4/mmap-anon.m4.
49269         (Depends-on): Add getpagesize.
49270         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49271         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
49272         m4/mmap-anon.m4.
49273         (Depends-on): Add getpagesize.
49274         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49275         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
49276         m4/mmap-anon.m4.
49277         (Depends-on): Add getpagesize.
49278         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49279
49280 2009-05-12  Bruno Haible  <bruno@clisp.org>
49281
49282         Tests for module 'alignof'.
49283         * modules/alignof-tests: New file.
49284         * tests/test-alignof.c: New file.
49285
49286 2009-05-12  Bruno Haible  <bruno@clisp.org>
49287
49288         Fix alignof macro.
49289         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
49290         vendor compilers that are always correct.
49291
49292 2009-05-12  Bruno Haible  <bruno@clisp.org>
49293
49294         Make the MAP_ANONYMOUS detection work on HP-UX 11.
49295         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
49296         not whether its fully works.
49297
49298 2009-05-12  Bruno Haible  <bruno@clisp.org>
49299
49300         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
49301
49302 2009-05-12  Jim Meyering  <meyering@redhat.com>
49303
49304         * top/maint.mk: Adjust backslash alignment.
49305
49306 2009-05-11  Simon Josefsson  <simon@josefsson.org>
49307
49308         * top/maint.mk: Make $(srcdir)/build-aux configurable.
49309
49310 2009-05-11  Eric Blake  <ebb9@byu.net>
49311
49312         argp: avoid undefined behavior
49313         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
49314         macros.
49315
49316 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49317
49318         * tests/test-vc-list-files-git.sh: Do git config of user.email and
49319         user.name to prevent git commit from complaining.
49320
49321 2009-05-10  Bruno Haible  <bruno@clisp.org>
49322
49323         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49324         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49325         it rewrites every file name only once.
49326         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49327
49328 2009-05-08  Bruno Haible  <bruno@clisp.org>
49329
49330         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49331         instead of 'max'.
49332
49333 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49334
49335         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49336         sockaddr_storage test.
49337
49338 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49339
49340         * modules/sys_socket (Makefile.am): Substitute
49341         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49342         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49343         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49344         * tests/test-sys_socket.c: Check sockaddr_storage.
49345
49346 2009-05-08  Bruno Haible  <bruno@clisp.org>
49347
49348         New module 'alignof'.
49349         * lib/alignof.h: New file.
49350         * modules/alignof: New file.
49351
49352 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49353             Bruno Haible  <bruno@clisp.org>
49354
49355         Fix test-file-has-acl on FreeBSD.
49356         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49357         mask is implicitly added.
49358         * tests/test-file-has-acl.c: Include <signal.h>.
49359         (main): Terminate the test after 5 seconds.
49360         * modules/acl-tests (configure.ac): Check for alarm function.
49361
49362 2009-05-04  Bruno Haible  <bruno@clisp.org>
49363
49364         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49365         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49366         * modules/errno (configure.ac): Drop AC_REQUIRE.
49367         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49368         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49369
49370 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49371
49372         * modules/glob-tests: New module.
49373         * tests/test-glob.c: Add.
49374
49375 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49376
49377         * modules/fnmatch-tests: New module.
49378         * tests/test-fnmatch.c: Add.
49379
49380 2009-05-04  Eric Blake  <ebb9@byu.net>
49381
49382         maint: make the new no-submodule-changes rule VPATH-safe
49383         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49384
49385 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49386             Bruno Haible  <bruno@clisp.org>
49387
49388         acl: Fix infinite loop on FreeBSD.
49389         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
49390         of return value from acl_get_entry.
49391         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
49392         Likewise.
49393
49394 2009-05-03  Bruno Haible  <bruno@clisp.org>
49395
49396         * lib/acl-internal.h (acl_entries): Clarify return value.
49397         * lib/acl_entries.c (acl_entries): Likewise.
49398
49399 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49400
49401         Bug fix in acl module.
49402         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49403
49404 2009-05-03  Bruno Haible  <bruno@clisp.org>
49405
49406         Create gperf-generated file in the source dir, not in the build dir.
49407         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49408         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49409         * modules/unicase/locale-language (unicase/locale-languages.h):
49410         Likewise.
49411         * modules/unicase/special-casing (unicase/special-casing-table.h):
49412         Likewise.
49413         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49414         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49415         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49416         Reported by Ralf Wildenhues.
49417
49418 2009-05-03  Bruno Haible  <bruno@clisp.org>
49419
49420         * modules/fnmatch (Description, configure.ac): Taken from
49421         fnmatch-posix.
49422         * modules/fnmatch-posix: Turn into a symbolic reference to the
49423         'fnmatch' module, and deprecate.
49424         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49425
49426 2009-05-03  Bruno Haible  <bruno@clisp.org>
49427
49428         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49429         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49430         Reported by Ralf Wildenhues.
49431
49432 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49433
49434         * m4/fnmatch.m4: Fix fnmatch re-define.
49435
49436 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49437
49438         priv-set: new module and tests; adapt write-any-file
49439         * lib/priv-set.c: New file.
49440         * lib/priv-set.h: New file.
49441         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49442         * lib/write-any-file.c: Simplify by using priv-set module.
49443         * m4/priv-set.m4: New file.
49444         * modules/priv-set: New file.
49445         * modules/unlinkdir: Add dependency on priv-set module.
49446         * modules/write-any-file: Likewise.
49447
49448         Tests for module 'priv-set'.
49449         * modules/priv-set-tests: New file.
49450         * tests/test-priv-set.c: New file.
49451
49452 2009-05-03  Jim Meyering  <meyering@redhat.com>
49453             Bruno Haible  <bruno@clisp.org>
49454
49455         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49456         use the converted UTF-8 variant of the name instead.
49457
49458 2009-05-03  Jim Meyering  <meyering@redhat.com>
49459
49460         tests: tighten some getdate tests
49461         * tests/test-getdate.c (main): Tighten tests: require equality,
49462         not just greater than.  Set TZ envvar to UTC0.
49463
49464 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49465
49466         getdate: correctly interpret "next monday" when run on a Monday
49467         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49468         that e.g., "next tues" (when run on a tuesday) results in a date
49469         that is one week in the future, and not today's date.
49470         I.e., add a week when the wday is the same as the current one.
49471         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49472         and earlier by Martin Bernreuther and Jan Minář.
49473         * tests/test-getdate.c (main): Check that "next DAY" is always in
49474         the future and that "last DAY" is always in the past.
49475
49476 2009-05-02  Jim Meyering  <meyering@redhat.com>
49477
49478         build: ensure that a release build fails when a submodule is unclean
49479         * top/maint.mk (no-submodule-changes): New rule.
49480         (alpha beta major): Depend on it.
49481
49482 2009-05-02  Bruno Haible  <bruno@clisp.org>
49483
49484         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
49485         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
49486         shell variable gl_fnmatch_required to detect which variant is
49487         requested.
49488         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
49489         gl_FUNC_FNMATCH_POSIX.
49490         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
49491         exclude fnmatch-posix.
49492
49493 2009-05-02  Bruno Haible  <bruno@clisp.org>
49494
49495         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
49496         * modules/mbsrtowcs (License): Change to LGPLv2+.
49497         * modules/strnlen1 (License): Likewise.
49498         Reported by Simon Josefsson.
49499
49500 2009-05-02  Bruno Haible  <bruno@clisp.org>
49501
49502         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
49503         "cross".
49504         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
49505         gnulib-tool was called with option --source-base=lib.
49506
49507 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49508
49509         Use automake *-local hooks without commands, for extensibility.
49510         * modules/localcharset (Makefile.am): Rename install-exec-local
49511         rule to install-exec-localcharset, and make it a prerequisite of
49512         install-exec-local.  Likewise, rename the uninstall-local rule to
49513         uninstall-localcharset, and make it a prerequisite of the former.
49514
49515 2009-05-01  Bruno Haible  <bruno@clisp.org>
49516
49517         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
49518         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49519         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
49520         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
49521         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
49522         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49523         m4/locale-zh.m4, m4/codeset.m4.
49524
49525         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49526         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
49527         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49528         m4/locale-zh.m4.
49529
49530         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
49531         REPLACE_WCRTOMB if mbstate_t must be replaced.
49532         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
49533         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
49534
49535 2009-05-01  Bruno Haible  <bruno@clisp.org>
49536
49537         Avoid compiler warnings when redefining macros defined by <libintl.h>.
49538         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
49539         dngettext, dcngettext, textdomain, bindtextdomain,
49540         bind_textdomain_codeset): Undefine before redefining.
49541
49542 2009-04-30  Bruno Haible  <bruno@clisp.org>
49543
49544         Fix bug introduced on 2009-04-25.
49545         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
49546         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
49547         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
49548         is defined.
49549         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
49550         is defined.
49551         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
49552         is defined.
49553         Reported by Elbert_Pol <elbert.pol@gmail.com>.
49554
49555 2009-04-28  Bruno Haible  <bruno@clisp.org>
49556
49557         Comment tweaks.
49558         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
49559         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
49560         * lib/unicase.h (u*_casexfrm): Likewise.
49561         Reported by Paolo Bonzini.
49562
49563 2009-04-28  Bruno Haible  <bruno@clisp.org>
49564
49565         Fix a compilation error.
49566         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
49567         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49568         Reported by Jim Meyering.
49569
49570 2009-04-27  Bruno Haible  <bruno@clisp.org>
49571
49572         New module 'libunistring'.
49573         * modules/libunistring: New file.
49574         * m4/libunistring.m4: New file.
49575         * MODULES.html.sh (Unicode string functions): Add it.
49576
49577 2009-04-27  Eric Blake  <ebb9@byu.net>
49578
49579         maint.mk: allow package-specific header to provide <config.h>
49580         * top/maint.mk (sc_require_config_h): New variable.
49581         (sc_require_config_h, sc_require_config_h_first): Use it.
49582
49583 2009-04-27  Simon Josefsson  <simon@josefsson.org>
49584
49585         * top/maint.mk (sc_avoid_if_before_free): Except
49586         useless-if-before-free script.
49587
49588 2009-04-27  Eric Blake  <ebb9@byu.net>
49589
49590         maintainer-makefile: depend on all required helper scripts
49591         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
49592         useless-if-before-free.
49593         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
49594         version, rather than assuming gnulib checkout is available.
49595         Reported by Simen Josefsson.
49596
49597 2009-04-26  Bruno Haible  <bruno@clisp.org>
49598
49599         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
49600         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
49601         "../" or "..".
49602
49603 2009-04-26  Bruno Haible  <bruno@clisp.org>
49604
49605         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
49606         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
49607         AC_LIB_HAVE_LINKFLAGS.
49608
49609 2009-04-26  Bruno Haible  <bruno@clisp.org>
49610
49611         Simplify calling convention of u*_conv_from_encoding.
49612         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
49613         u32_conv_from_encoding): Expect a resultbuf argument and return the
49614         result directly as a pointer.
49615         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
49616         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
49617         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
49618         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
49619         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
49620         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49621         Update.
49622         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
49623         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
49624         * lib/vasnprintf.c (VASNPRINTF): Update.
49625         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
49626         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
49627         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
49628         * NEWS: Mention the change.
49629
49630 2009-04-26  Bruno Haible  <bruno@clisp.org>
49631
49632         Simplify calling convention of u*_conv_to_encoding.
49633         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49634         u32_conv_to_encoding): Expect a resultbuf argument and return the
49635         result directly as a pointer.
49636         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49637         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
49638         freeing scaled_offsets if mem_iconveha failed.
49639         * lib/unicase/u-casexfrm.h (FUNC): Update.
49640         * lib/uninorm/u-normxfrm.h (FUNC): Update.
49641         * lib/vasnprintf.c (VASNPRINTF): Update.
49642         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
49643         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
49644         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
49645         * NEWS: Mention the change.
49646
49647 2009-04-26  Bruno Haible  <bruno@clisp.org>
49648
49649         Avoid test failures on AIX and OSF/1.
49650         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
49651         malloc(0).
49652         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49653         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49654         Likewise.
49655         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
49656         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
49657         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
49658         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
49659         * doc/posix-functions/malloc.texi: Document the portability problem
49660         related to malloc(0).
49661
49662 2009-04-26  Bruno Haible  <bruno@clisp.org>
49663
49664         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
49665         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
49666         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
49667
49668 2009-04-25  Bruno Haible  <bruno@clisp.org>
49669
49670         Avoid link error when creating a namespace clean library.
49671         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
49672         as macro with arguments if already defined as an alias.
49673         * lib/signbitf.c (gl_signbitf): Don't undefine.
49674         * lib/signbitd.c (gl_signbitd): Don't undefine.
49675         * lib/signbitl.c (gl_signbitl): Don't undefine.
49676
49677 2009-04-25  Jim Meyering  <meyering@redhat.com>
49678
49679         vc-list-files: fix another quoting bug
49680         * build-aux/vc-list-files: Avoid sed backslash expansion
49681         of pathological directory names.
49682
49683 2009-04-25  Eric Blake  <ebb9@byu.net>
49684
49685         vc-list-files: fix shell quoting error
49686         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
49687         timestamp.
49688
49689 2009-04-25  Jim Meyering  <meyering@redhat.com>
49690
49691         vc-list-files: restore lost functionality with subdir argument
49692         * build-aux/vc-list-files: When given a non-"." sub-directory
49693         argument, substitute the $dir/ prefix back onto each resulting name.
49694         Otherwise, coreutils' root_tests check would fail.
49695
49696 2009-04-24  Eric Blake  <ebb9@byu.net>
49697
49698         vc-list-files: ignore git symlinks
49699         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
49700         than ls-files, to ignore git symlinks.
49701
49702         maint.mk: import improvements from m4
49703         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
49704         (move_if_change): Delete unused macro.
49705         (news-date-check, vc-diff-check): Support VPATH builds.
49706         (announcement): Likewise.  Split --bootstrap-tools list...
49707         (boostrap-tools): ...into separate list, which can be overridden
49708         in cfg.mk.
49709         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
49710         requiring dependency on useless-if-before-free module.
49711         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
49712         Support VPATH builds.
49713
49714 2009-04-24  Jim Meyering  <meyering@redhat.com>
49715
49716         maint.mk: remove coreutils-specific rules and variables
49717         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
49718         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
49719         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
49720
49721         maint.mk: remove obsolete rule
49722         * top/maint.mk (rel-check): Remove rule.
49723         (WGET, WGETFLAGS): Remove now-unused variables.
49724
49725 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49726
49727         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
49728         consistency.
49729
49730         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
49731         '$(PATH_SEPARATOR)' instead of ':'.
49732
49733 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49734
49735         * lib/getopt1.c (main): Use 'const' for static array.
49736
49737 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49738
49739         * top/maint.mk: Sync with coreutils.
49740         * NEWS: Explain incompatibilities.
49741
49742 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49743             Bruno Haible  <bruno@clisp.org>
49744
49745         Fix cross-compilation results.
49746         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
49747         statement, as third argument of AC_TRY_RUN.
49748         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49749         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49750         Likewise.
49751         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49752         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
49753         Likewise.
49754         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49755         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
49756         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
49757
49758 2009-04-20  Bruno Haible  <bruno@clisp.org>
49759
49760         Avoid test failure on mingw.
49761         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
49762
49763 2009-04-20  Bruno Haible  <bruno@clisp.org>
49764
49765         Avoid compilation error on mingw.
49766         * modules/localename-tests (Depends-on): Add locale.
49767
49768 2009-04-19  Bruno Haible  <bruno@clisp.org>
49769
49770         Support for building a shared library on Windows platforms.
49771         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
49772         (main): Test the presence of UNINORM_NFC here.
49773         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
49774         (main): Test the presence of UNINORM_NFD here.
49775         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
49776         (main): Test the presence of UNINORM_NFKC here.
49777         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
49778         (main): Test the presence of UNINORM_NFKD here.
49779
49780 2009-04-19  Bruno Haible  <bruno@clisp.org>
49781
49782         Avoid a compiler warning.
49783         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
49784         Change type of variable 'sequence'.
49785
49786 2009-04-19  Bruno Haible  <bruno@clisp.org>
49787
49788         * modules/configmake (Makefile.am): When the contents of configmake.h
49789         does not change, arrange to preserve its modification time.
49790
49791 2009-04-17  Simon Josefsson  <simon@josefsson.org>
49792
49793         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
49794         gettext domain.
49795
49796 2009-04-16  Jim Meyering  <meyering@redhat.com>
49797
49798         useless-if-before-free: improve conversion code
49799         * build-aux/useless-if-before-free: Adjust code-in-comment to match
49800         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
49801
49802 2009-04-14  Bruno Haible  <bruno@clisp.org>
49803
49804         * modules/fcntl (Depends-on): Add extensions.
49805         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
49806
49807 2009-04-12  Ben Pfaff  <blp@gnu.org>
49808
49809         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
49810         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
49811
49812 2009-03-20  Ben Pfaff  <blp@gnu.org>
49813
49814         Make rename replace existing destinations on Windows.
49815         * m4/rename.m4: Add test for Mingw.
49816         * lib/rename.c: Add rename replacement that uses MoveFileEx with
49817         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
49818         * doc/posix-functions/rename.texi: Document.
49819
49820 2009-04-10  Bruno Haible  <bruno@clisp.org>
49821
49822         New include file "iconveh.h".
49823         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
49824         * lib/striconveh.h: Include it.
49825         (enum iconv_ilseq_handler): Remove definition.
49826         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
49827         striconveh.h.
49828         * lib/striconveha.c: Include striconveh.h.
49829         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
49830         * modules/striconveh (Files): Add lib/iconveh.h.
49831         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
49832         lib/striconveh.h.
49833
49834 2009-04-10  Bruno Haible  <bruno@clisp.org>
49835
49836         * lib/uniconv.h: Update comment.
49837
49838 2009-04-10  Bruno Haible  <bruno@clisp.org>
49839
49840         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
49841         always.
49842         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49843         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49844         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49845         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
49846         "unistring-notinline.h", so that the function gets defined always.
49847         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49848         * lib/unistr/u8-uctomb.c: Likewise.
49849         * lib/unistr/u16-mbtouc.c: Likewise.
49850         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49851         * lib/unistr/u16-uctomb.c: Likewise.
49852         * lib/unistr/u32-mbtouc.c: Likewise.
49853         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49854         * lib/unistr/u32-uctomb.c: Likewise.
49855
49856 2009-04-10  Bruno Haible  <bruno@clisp.org>
49857
49858         Mark 'utime' obsolete.
49859         * modules/utime (Status, Notice): New sections.
49860         Suggested by Jim Meyering.
49861
49862         Fix cross-compile guess for utime test.
49863         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
49864         autoconf.
49865         * doc/posix-functions/utime.texi: Give more precisions.
49866         Reported by Jan <ipif@ymail.com>.
49867
49868 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
49869
49870         filevercmp: correct today's change
49871         * lib/filevercmp.c: Also handle coreutils' test inputs.
49872         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
49873
49874         Fix regression in 'filevercmp' module. Thanks Sven Joachim
49875         for reporting it.
49876         * lib/filevercmp.c: Special handle for "", "." and "..".
49877         * tests/test-filevercmp.c: Enlarge the set suite.
49878
49879 2009-04-07  Jim Meyering  <meyering@redhat.com>
49880
49881         useless-if-before-free: show how to remove braced useless free, too
49882         * build-aux/useless-if-before-free: still only in a comment, though.
49883
49884 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
49885
49886         maint.mk: import changes to syntax-check macros from coreutils
49887         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
49888         Use them in the relevant macros.
49889
49890 2009-04-06  Bruno Haible  <bruno@clisp.org>
49891
49892         Fix unportable use of bit-fields.
49893         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
49894         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
49895         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
49896
49897 2009-04-06  Bruno Haible  <bruno@clisp.org>
49898
49899         Avoid test failures on AIX and OSF/1.
49900         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
49901         that malloc(0) = NULL.
49902         * tests/unicase/test-u8-tolower.c (check): Likewise.
49903         * tests/unicase/test-u8-totitle.c (check): Likewise.
49904         * tests/unicase/test-u8-toupper.c (check): Likewise.
49905         * tests/unicase/test-u16-casefold.c (check): Likewise.
49906         * tests/unicase/test-u16-tolower.c (check): Likewise.
49907         * tests/unicase/test-u16-totitle.c (check): Likewise.
49908         * tests/unicase/test-u16-toupper.c (check): Likewise.
49909         * tests/unicase/test-u32-casefold.c (check): Likewise.
49910         * tests/unicase/test-u32-tolower.c (check): Likewise.
49911         * tests/unicase/test-u32-totitle.c (check): Likewise.
49912         * tests/unicase/test-u32-toupper.c (check): Likewise.
49913         * tests/uninorm/test-u8-nfc.c (check): Likewise.
49914         * tests/uninorm/test-u8-nfd.c (check): Likewise.
49915         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
49916         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
49917         * tests/uninorm/test-u16-nfc.c (check): Likewise.
49918         * tests/uninorm/test-u16-nfd.c (check): Likewise.
49919         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
49920         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
49921         * tests/uninorm/test-u32-nfc.c (check): Likewise.
49922         * tests/uninorm/test-u32-nfd.c (check): Likewise.
49923         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
49924         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
49925
49926 2009-04-05  Bruno Haible  <bruno@clisp.org>
49927
49928         Work around an autoconf limitation.
49929         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
49930         comment line if it would be longer than 3 KB.
49931
49932 2009-04-05  Bruno Haible  <bruno@clisp.org>
49933
49934         Avoid test failure with libiconv-1.13.
49935         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
49936         of the expected test results.
49937
49938 2009-04-05  Bruno Haible  <bruno@clisp.org>
49939
49940         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
49941         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
49942         that it should be installed.
49943
49944 2009-04-05  Bruno Haible  <bruno@clisp.org>
49945
49946         * gnulib-tool: New option --copy-file.
49947         (func_usage): Document it.
49948         (func_dest_tmpfilename): Moved out of func_import.
49949         (func_add_file, func_update_file): New functions, extracted from
49950         func_import.
49951         (func_import): Update.
49952
49953 2009-04-05  Karl Berry  <karl@gnu.org>
49954
49955         * README: prominently mention gnulib-tool.
49956         Rearrange sections so getting the code is near the top.
49957
49958 2009-04-05  Bruno Haible  <bruno@clisp.org>
49959
49960         * lib/unicase.h: Mention u*_cmp2.
49961         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49962         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
49963         * lib/unicase/ulc-casecmp.c: Likewise.
49964         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
49965         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
49966         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
49967         unistr/u8-cmp.
49968         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
49969         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
49970         unistr/u16-cmp.
49971         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
49972         unistr/u32-cmp.
49973
49974         * lib/uninorm.h: Mention u*_cmp2.
49975         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49976         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
49977         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
49978         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
49979         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
49980         unistr/u8-cmp.
49981         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
49982         unistr/u16-cmp.
49983         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
49984         unistr/u32-cmp.
49985
49986         New module 'unistr/u32-cmp2'.
49987         * lib/unistr/u32-cmp2.c: New file.
49988         * modules/unistr/u32-cmp2: New file.
49989
49990         New module 'unistr/u16-cmp2'.
49991         * lib/unistr/u16-cmp2.c: New file.
49992         * modules/unistr/u16-cmp2: New file.
49993
49994         New module 'unistr/u8-cmp2'.
49995         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
49996         * lib/unistr/u8-cmp2.c: New file.
49997         * lib/unistr/u-cmp2.h: New file.
49998         * modules/unistr/u8-cmp2: New file.
49999
50000 2009-04-05  Bruno Haible  <bruno@clisp.org>
50001
50002         * lib/unictype.h (uc_property_is_valid): New macro.
50003         * tests/unictype/test-pr_byname.c (main): Use it.
50004
50005         * lib/unistr.h: Doc fixes.
50006         * lib/uniconv.h: Doc fixes.
50007         * lib/unictype.h: Doc fixes.
50008
50009 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
50010
50011         Port coreutils 7.2 to Solaris 8.
50012
50013         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
50014         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
50015         for Solaris 8.  This is a bit of a hack, as it means it's the
50016         caller's responsibility to add -lnsl if needed, but most likely it
50017         won't be needed since only getaddrinfo uses this and getaddrinfo
50018         isn't needed on Solaris 8.
50019
50020         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
50021         problem to Solaris 8 encountered with coreutils 7.2, which
50022         resulted in a message "fnmatch.c:292: warning: passing argument 4
50023         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
50024         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
50025
50026 2009-04-03  Simon Josefsson  <simon@josefsson.org>
50027
50028         * m4/ld-version-script.m4: Add FIXME comment.
50029
50030 2009-04-02  Simon Josefsson  <simon@josefsson.org>
50031
50032         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
50033         SOVERSION variable.
50034
50035 2009-04-02  Bruno Haible  <bruno@clisp.org>
50036
50037         * Makefile (info, html, dvi, pdf): Combine the rules.
50038         Suggested by Jim Meyering.
50039
50040 2009-04-01  Bruno Haible  <bruno@clisp.org>
50041
50042         * Makefile (info, html, dvi, pdf): New targets.
50043         Reported by Reuben Thomas <rrt@sc3d.org>.
50044
50045 2009-04-01  Bruno Haible  <bruno@clisp.org>
50046
50047         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
50048         can be put into PATH.
50049         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
50050
50051 2009-04-01  Bruno Haible  <bruno@clisp.org>
50052
50053         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
50054
50055 2009-04-01  Bruno Haible  <bruno@clisp.org>
50056
50057         Rename module 'visibility'.
50058         * modules/lib-symbol-visibility: Renamed from modules/visibility.
50059         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
50060         * doc/gnulib.texi: Update.
50061         * MODULES.html.sh (Misc): Update.
50062         * NEWS: Mention the change.
50063
50064 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50065
50066         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
50067         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
50068         Eric Blake <ebb9@byu.net> for review.
50069         * MODULES.html.sh: Add lib-msvc-compat.
50070         * doc/gnulib.texi: Link to new section.
50071         * m4/ld-output-def.m4: New file.
50072         * doc/ld-output-def.texi: New file.
50073
50074 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50075
50076         Rename ld-version-script to lib-symbol-versions.  Suggested by
50077         Bruno Haible <bruno@clisp.org>.
50078         * modules/ld-version-script: Renamed to lib-symbol-versions.
50079         * doc/ld-version-script.texi: Fix module name.
50080         * MODULES.html.sh: Add lib-symbol-versions.
50081
50082 2009-03-31  Simon Josefsson  <simon@josefsson.org>
50083
50084         * modules/u64-tests: New file.
50085         * tests/test-u64.c: New file.
50086
50087 2009-03-04  Simon Josefsson  <simon@josefsson.org>
50088
50089         * MODULES.html.sh: Mention u64.
50090         * modules/u64: New module.
50091         * modules/crypto/sha512: Depend on u64 module instead of providing
50092         u64.h.
50093
50094 2009-03-27  Eric Blake  <ebb9@byu.net>
50095
50096         test-strerror: make debugging EAI_SYSTEM easier
50097         * modules/getaddrinfo-tests (Depends-on): Add strerror.
50098         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
50099         failure was EAI_SYSTEM.
50100
50101 2009-03-25  Bruno Haible  <bruno@clisp.org>
50102
50103         Fix a problem with --enable-relocatable on Solaris 7.
50104         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
50105         since 2008-02-24.
50106
50107 2009-03-25  Eric Blake  <ebb9@byu.net>
50108
50109         test-sockets: avoid gcc warning
50110         * tests/test-sockets.c (main): Silence compiler warning.
50111
50112 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50113
50114         New modules nproc, pthread, contributed by Glen Lenker.
50115
50116         * MODULES.html.sh: Add pthread, nproc.
50117         * lib/nproc.c: New file.
50118         * lib/nproc.h: New file.
50119         * lib/pthread.in.h: New file.
50120         * m4/pthread.m4: New file.
50121         * modules/nproc: New file.
50122         * modules/pthread: New file.
50123
50124 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50125
50126         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
50127         New variable.
50128
50129 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
50130
50131         filevercmp: handle simple~ and numbered.~3~ backup suffixes
50132         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
50133         * tests/test-filevercmp.c: Add tests for backup suffixes.
50134
50135 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50136
50137         * modules/stdlib (Depends-on): Add stdint, needed when defining
50138         struct random_data on, for example, HP-UX 10.20.  Reported by
50139         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50140
50141 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50142
50143         * lib/readline.c (readline): Call fflush on stdout after printing
50144         prompt.
50145
50146 2009-03-20  Bruno Haible  <bruno@clisp.org>
50147
50148         Remove dependency from 'close' module to -lws2_32 on native Windows.
50149         * lib/close-hook.h: New file.
50150         * lib/close-hook.c: New file.
50151         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
50152         w32sock.h.
50153         (_gl_close_fd_maybe_socket): Remove function.
50154         (rpl_close): Invoke execute_all_close_hooks instead of
50155         _gl_close_fd_maybe_socket.
50156         * lib/sockets.c: Include close-hook.h, w32sock.h.
50157         (close_fd_maybe_socket): New function, essentially from lib/close.c.
50158         (close_sockets_hook): New variable.
50159         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
50160         (gl_sockets_cleanup): Unregister it.
50161         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
50162         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
50163         * modules/close-hook: New file.
50164         * modules/close (Files): Remove lib/w32sock.h.
50165         (Depends-on): Add close-hook.
50166         (Link): Remove section.
50167         * modules/sockets (Files): Add lib/w32sock.h.
50168         (Depends-on): Add close-hook.
50169         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
50170         invocation.
50171         * NEWS: Mention that LIB_CLOSE is gone.
50172
50173 2009-03-23  Eric Blake  <ebb9@byu.net>
50174
50175         signal-tests: test previous patch
50176         * tests/test-signal.c: New file.
50177         * modules/signal-tests: Likewise.
50178
50179         signal.h: always support 'volatile sig_atomic_t'
50180         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
50181         (gl_SIGNAL_H_DEFAULTS): Add a default.
50182         * modules/signal (Makefile.am): Substitute if needed.
50183         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
50184         users can blindly add volatile.
50185         * doc/posix-headers/signal.texi (signal.h): Document it.
50186         Reported by Matthew Woehlke.
50187
50188 2009-03-23  Jim Meyering  <meyering@redhat.com>
50189
50190         pathmax: PATH_MAX: use pathconf only when available
50191         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
50192         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
50193         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
50194         This avoids a link failure in a PSP cross-compilation environment
50195         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
50196
50197         * lib/vasnprintf.c (divide): Fix typo in comment.
50198
50199 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50200
50201         * gnulib-tool (func_filter_filelist): Fix comment.
50202
50203 2009-03-20  Bruno Haible  <bruno@clisp.org>
50204
50205         Make sockets.h self-contained.
50206         * lib/sockets.c: Include sockets.h first.
50207         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
50208
50209 2009-03-19  Eric Blake  <ebb9@byu.net>
50210
50211         doc: mention more functions added in cygwin 1.7.0
50212         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
50213         addition.
50214         * doc/posix-functions/log2f.texi: Likewise.
50215
50216 2009-03-19  Jim Meyering  <meyering@redhat.com>
50217
50218         fsusage: avoid syntax error due to statement-before-declaration
50219         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
50220         after all declarations.  Reported by Matthew Woehlke in
50221         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
50222
50223 2009-03-18  Eric Blake  <ebb9@byu.net>
50224
50225         build-aux/compile: sync from automake
50226         * build-aux/compile: New file, from automake.
50227         * config/srclist.txt: Mention build-aux/compile.
50228
50229 2009-03-17  Bruno Haible  <bruno@clisp.org>
50230
50231         * lib/git-merge-changelog.c: Fix typo in comment.
50232         Reported by Reuben Thomas <rrt@sc3d.org>.
50233
50234 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
50235
50236         * m4/regex.m4: update and improve help for
50237         --without-included-regex.
50238
50239 2009-03-17  Simon Josefsson  <simon@josefsson.org>
50240
50241         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
50242         failure on missing include files.
50243
50244 2009-03-17  Eric Blake  <ebb9@byu.net>
50245
50246         doc: mention more functions added in cygwin 1.7.0
50247         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
50248         addition.
50249         * doc/posix-functions/fwscanf.texi: Likewise.
50250         * doc/posix-functions/swprintf.texi: Likewise.
50251         * doc/posix-functions/swscanf.texi: Likewise.
50252         * doc/posix-functions/vfwprintf.texi: Likewise.
50253         * doc/posix-functions/vfwscanf.texi: Likewise.
50254         * doc/posix-functions/vswprintf.texi: Likewise.
50255         * doc/posix-functions/vswscanf.texi: Likewise.
50256         * doc/posix-functions/vwprintf.texi: Likewise.
50257         * doc/posix-functions/vwscanf.texi: Likewise.
50258         * doc/posix-functions/wcscasecmp.texi: Likewise.
50259         * doc/posix-functions/wcsdup.texi: Likewise.
50260         * doc/posix-functions/wcsftime.texi: Likewise.
50261         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50262         * doc/posix-functions/wprintf.texi: Likewise.
50263         * doc/posix-functions/wscanf.texi: Likewise.
50264         * doc/glibc-functions/gethostbyname2.texi: Likewise.
50265
50266 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50267
50268         maint.mk: really add $(AM_MAKEFLAGS)
50269         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
50270         was inadvertently omitted in the last commit.
50271         Spotted by Bruno Haible.
50272
50273         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
50274         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
50275         $(AM_MAKEFLAGS)' rather than plain `make'.
50276
50277         gnulib-tool: execute $MAKE not make
50278         * gnulib-tool: Default $MAKE to 'make'.
50279         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
50280         than make.  Initialize $MAKE in the do-autobuild script.
50281
50282         gnulib-tool: use $MAKE not make in generated files
50283         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
50284         make, in generated files.  Initialize $MAKE in the do-autobuild
50285         script.
50286
50287         * top/GNUmakefile (_have-git-version-gen): Fix typo.
50288
50289         GNUmakefile: disable parallelism only for multiple, recursive targets
50290         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
50291         additions in the Makefile.
50292         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
50293         by Automake.
50294         (.NOTPARALLEL): Only disable parallel builds if multiple targets
50295         are listed on the command line and at least one of them is
50296         listed in $(ALL_RECURSIVE_TARGETS).
50297
50298 2009-03-14  Bruno Haible  <bruno@clisp.org>
50299
50300         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
50301         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
50302         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
50303         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
50304         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
50305         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
50306         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
50307         unistr/u8-uctomb.
50308         * modules/unistr/u8-strchr (Depends-on): Likewise.
50309         * modules/unistr/u8-strrchr (Depends-on): Likewise.
50310         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
50311         unistr/u16-uctomb.
50312         * modules/unistr/u16-strchr (Depends-on): Likewise.
50313         * modules/unistr/u16-strrchr (Depends-on): Likewise.
50314
50315 2009-03-12  Bruno Haible  <bruno@clisp.org>
50316
50317         Work around select() bug on Interix 3.5.
50318         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
50319         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
50320         * m4/select.m4: New file.
50321         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
50322         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
50323         * modules/select (Files): Add m4/select.m4.
50324         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50325         * modules/nanosleep (Depends-on): Add select.
50326         * modules/poll (Depends-on): Likewise.
50327         * doc/posix-functions/select.texi: Mention the Interix bug.
50328         Reported by Markus Duft <mduft@gentoo.org>.
50329
50330         * lib/select.c: Renamed from lib/winsock-select.c.
50331         * modules/select (Files): Add lib/select.c, remove
50332         lib/winsock-select.c.
50333         (configure.ac): Update.
50334
50335 2009-03-12  Jim Meyering  <meyering@redhat.com>
50336
50337         avoid gcc warnings about unused macro definitions
50338         * lib/readtokens.c (STREQ): Remove unused definition.
50339         * lib/xmalloc.c (SIZE_MAX): Likewise.
50340         * lib/openat-die.c (N_): Likewise.
50341         * lib/mountlist.c (SIZE_MAX): Remove definition.
50342         Instead, include <stdint.h>.
50343         * lib/readutmp.c: Likewise.
50344         * modules/readutmp (Depends-on): Add stdint.
50345         * modules/mountlist (Depends-on): Add stdint.
50346         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50347
50348 2009-03-10  Bruno Haible  <bruno@clisp.org>
50349
50350         Tests for module 'mbmemcasecoll'.
50351         * modules/mbmemcasecoll-tests: New file.
50352         * tests/test-mbmemcasecoll1.sh: New file.
50353         * tests/test-mbmemcasecoll2.sh: New file.
50354         * tests/test-mbmemcasecoll3.sh: New file.
50355         * tests/test-mbmemcasecoll.c: New file.
50356
50357         New module 'mbmemcasecoll'.
50358         * lib/mbmemcasecoll.h: New file.
50359         * lib/mbmemcasecoll.c: New file.
50360         * modules/mbmemcasecoll: New file.
50361
50362         * tests/test-mbmemcasecmp.h: New file, extracted from
50363         tests/test-mbmemcasecmp.c.
50364         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50365         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50366         (main): Update.
50367         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50368
50369 2009-03-09  Bruno Haible  <bruno@clisp.org>
50370
50371         Tests for module 'mbmemcasecmp'.
50372         * modules/mbmemcasecmp-tests: New file.
50373         * tests/test-mbmemcasecmp1.sh: New file.
50374         * tests/test-mbmemcasecmp2.sh: New file.
50375         * tests/test-mbmemcasecmp3.sh: New file.
50376         * tests/test-mbmemcasecmp.c: New file.
50377
50378         New module 'mbmemcasecmp'.
50379         * lib/mbmemcasecmp.h: New file.
50380         * lib/mbmemcasecmp.c: New file.
50381         * modules/mbmemcasecmp: New file.
50382
50383 2009-03-09  Bruno Haible  <bruno@clisp.org>
50384
50385         Tests for module 'unicase/ulc-casecoll'.
50386         * modules/unicase/ulc-casecoll-tests: New file.
50387         * tests/unicase/test-ulc-casecoll1.sh: New file.
50388         * tests/unicase/test-ulc-casecoll2.sh: New file.
50389         * tests/unicase/test-ulc-casecoll.c: New file.
50390
50391         New module 'unicase/ulc-casecoll'.
50392         * lib/unicase.h (ulc_casecoll): New declaration.
50393         * lib/unicase/ulc-casecoll.c: New file.
50394         * modules/unicase/ulc-casecoll: New file.
50395
50396         New module 'unicase/ulc-casexfrm'.
50397         * lib/unicase.h (ulc_casexfrm): New declaration.
50398         * lib/unicase/ulc-casexfrm.c: New file.
50399         * modules/unicase/ulc-casexfrm: New file.
50400
50401 2009-03-09  Bruno Haible  <bruno@clisp.org>
50402
50403         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50404         invocations.
50405
50406         * m4/mbscasecmp.m4: Remove file.
50407         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50408         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50409
50410         * m4/mbscasestr.m4: Remove file.
50411         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50412         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50413
50414         * m4/mbschr.m4: Remove file.
50415         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50416         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50417
50418         * m4/mbscspn.m4: Remove file.
50419         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50420         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50421
50422         * m4/mbslen.m4: Remove file.
50423         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50424         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50425
50426         * m4/mbsncasecmp.m4: Remove file.
50427         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50428         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50429
50430         * m4/mbsnlen.m4: Remove file.
50431         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50432         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50433
50434         * m4/mbspbrk.m4: Remove file.
50435         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50436         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50437
50438         * m4/mbspcasecmp.m4: Remove file.
50439         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50440         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50441
50442         * m4/mbsrchr.m4: Remove file.
50443         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50444         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50445
50446         * m4/mbssep.m4: Remove file.
50447         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50448         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50449
50450         * m4/mbsspn.m4: Remove file.
50451         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50452         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50453
50454         * m4/mbsstr.m4: Remove file.
50455         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50456         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50457
50458         * m4/mbstok_r.m4: Remove file.
50459         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50460         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50461
50462         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50463
50464         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50465         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50466
50467         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50468
50469 2009-03-08  Bruno Haible  <bruno@clisp.org>
50470
50471         Tests for module 'unicase/ulc-casecmp'.
50472         * modules/unicase/ulc-casecmp-tests: New file.
50473         * tests/unicase/test-ulc-casecmp1.sh: New file.
50474         * tests/unicase/test-ulc-casecmp2.sh: New file.
50475         * tests/unicase/test-ulc-casecmp.c: New file.
50476
50477         New module 'unicase/ulc-casecmp'.
50478         * lib/unicase.h (ulc_casecmp): New declaration.
50479         * lib/unicase/ulc-casecmp.c: New file.
50480         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
50481         'const SRC_UNIT *'.
50482         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
50483         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
50484         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
50485         * modules/unicase/ulc-casecmp: New file.
50486
50487         Tests for module 'unicase/u32-is-cased'.
50488         * modules/unicase/u32-is-cased-tests: New file.
50489         * tests/unicase/test-u32-is-cased.c: New file.
50490
50491         Tests for module 'unicase/u16-is-cased'.
50492         * modules/unicase/u16-is-cased-tests: New file.
50493         * tests/unicase/test-u16-is-cased.c: New file.
50494
50495         Tests for module 'unicase/u8-is-cased'.
50496         * modules/unicase/u8-is-cased-tests: New file.
50497         * tests/unicase/test-u8-is-cased.c: New file.
50498         * tests/unicase/test-is-cased.h: New file.
50499
50500         New module 'unicase/u32-is-cased'.
50501         * lib/unicase/u32-is-cased.c: New file.
50502         * modules/unicase/u32-is-cased: New file.
50503
50504         New module 'unicase/u16-is-cased'.
50505         * lib/unicase/u16-is-cased.c: New file.
50506         * modules/unicase/u16-is-cased: New file.
50507
50508         New module 'unicase/u8-is-cased'.
50509         * lib/unicase/u8-is-cased.c: New file.
50510         * lib/unicase/u-is-cased.h: New file.
50511         * modules/unicase/u8-is-cased: New file.
50512
50513         Tests for module 'unicase/u32-is-casefolded'.
50514         * modules/unicase/u32-is-casefolded-tests: New file.
50515         * tests/unicase/test-u32-is-casefolded.c: New file.
50516
50517         Tests for module 'unicase/u16-is-casefolded'.
50518         * modules/unicase/u16-is-casefolded-tests: New file.
50519         * tests/unicase/test-u16-is-casefolded.c: New file.
50520
50521         Tests for module 'unicase/u8-is-casefolded'.
50522         * modules/unicase/u8-is-casefolded-tests: New file.
50523         * tests/unicase/test-u8-is-casefolded.c: New file.
50524         * tests/unicase/test-is-casefolded.h: New file.
50525
50526         New module 'unicase/u32-is-casefolded'.
50527         * lib/unicase/u32-is-casefolded.c: New file.
50528         * modules/unicase/u32-is-casefolded: New file.
50529
50530         New module 'unicase/u16-is-casefolded'.
50531         * lib/unicase/u16-is-casefolded.c: New file.
50532         * modules/unicase/u16-is-casefolded: New file.
50533
50534         New module 'unicase/u8-is-casefolded'.
50535         * lib/unicase/u8-is-casefolded.c: New file.
50536         * modules/unicase/u8-is-casefolded: New file.
50537
50538         Tests for module 'unicase/u32-is-titlecase'.
50539         * modules/unicase/u32-is-titlecase-tests: New file.
50540         * tests/unicase/test-u32-is-titlecase.c: New file.
50541
50542         Tests for module 'unicase/u16-is-titlecase'.
50543         * modules/unicase/u16-is-titlecase-tests: New file.
50544         * tests/unicase/test-u16-is-titlecase.c: New file.
50545
50546         Tests for module 'unicase/u8-is-titlecase'.
50547         * modules/unicase/u8-is-titlecase-tests: New file.
50548         * tests/unicase/test-u8-is-titlecase.c: New file.
50549         * tests/unicase/test-is-titlecase.h: New file.
50550
50551         New module 'unicase/u32-is-titlecase'.
50552         * lib/unicase/u32-is-titlecase.c: New file.
50553         * modules/unicase/u32-is-titlecase: New file.
50554
50555         New module 'unicase/u16-is-titlecase'.
50556         * lib/unicase/u16-is-titlecase.c: New file.
50557         * modules/unicase/u16-is-titlecase: New file.
50558
50559         New module 'unicase/u8-is-titlecase'.
50560         * lib/unicase/u8-is-titlecase.c: New file.
50561         * modules/unicase/u8-is-titlecase: New file.
50562
50563         Tests for module 'unicase/u32-is-lowercase'.
50564         * modules/unicase/u32-is-lowercase-tests: New file.
50565         * tests/unicase/test-u32-is-lowercase.c: New file.
50566
50567         Tests for module 'unicase/u16-is-lowercase'.
50568         * modules/unicase/u16-is-lowercase-tests: New file.
50569         * tests/unicase/test-u16-is-lowercase.c: New file.
50570
50571         Tests for module 'unicase/u8-is-lowercase'.
50572         * modules/unicase/u8-is-lowercase-tests: New file.
50573         * tests/unicase/test-u8-is-lowercase.c: New file.
50574         * tests/unicase/test-is-lowercase.h: New file.
50575
50576         New module 'unicase/u32-is-lowercase'.
50577         * lib/unicase/u32-is-lowercase.c: New file.
50578         * modules/unicase/u32-is-lowercase: New file.
50579
50580         New module 'unicase/u16-is-lowercase'.
50581         * lib/unicase/u16-is-lowercase.c: New file.
50582         * modules/unicase/u16-is-lowercase: New file.
50583
50584         New module 'unicase/u8-is-lowercase'.
50585         * lib/unicase/u8-is-lowercase.c: New file.
50586         * modules/unicase/u8-is-lowercase: New file.
50587
50588         Tests for module 'unicase/u32-is-uppercase'.
50589         * modules/unicase/u32-is-uppercase-tests: New file.
50590         * tests/unicase/test-u32-is-uppercase.c: New file.
50591
50592         Tests for module 'unicase/u16-is-uppercase'.
50593         * modules/unicase/u16-is-uppercase-tests: New file.
50594         * tests/unicase/test-u16-is-uppercase.c: New file.
50595
50596         Tests for module 'unicase/u8-is-uppercase'.
50597         * modules/unicase/u8-is-uppercase-tests: New file.
50598         * tests/unicase/test-u8-is-uppercase.c: New file.
50599         * tests/unicase/test-is-uppercase.h: New file.
50600
50601         New module 'unicase/u32-is-uppercase'.
50602         * lib/unicase/u32-is-uppercase.c: New file.
50603         * modules/unicase/u32-is-uppercase: New file.
50604
50605         New module 'unicase/u16-is-uppercase'.
50606         * lib/unicase/u16-is-uppercase.c: New file.
50607         * modules/unicase/u16-is-uppercase: New file.
50608
50609         New module 'unicase/u8-is-uppercase'.
50610         * lib/unicase/u8-is-uppercase.c: New file.
50611         * modules/unicase/u8-is-uppercase: New file.
50612
50613         New module 'unicase/u32-is-invariant'.
50614         * lib/unicase/u32-is-invariant.c: New file.
50615         * modules/unicase/u32-is-invariant: New file.
50616
50617         New module 'unicase/u16-is-invariant'.
50618         * lib/unicase/u16-is-invariant.c: New file.
50619         * modules/unicase/u16-is-invariant: New file.
50620
50621         New module 'unicase/u8-is-invariant'.
50622         * lib/unicase/u8-is-invariant.c: New file.
50623         * lib/unicase/invariant.h: New file.
50624         * lib/unicase/u-is-invariant.h: New file.
50625         * modules/unicase/u8-is-invariant: New file.
50626
50627         Tests for module 'unicase/u32-casecoll'.
50628         * modules/unicase/u32-casecoll-tests: New file.
50629         * tests/unicase/test-u32-casecoll.c: New file.
50630
50631         Tests for module 'unicase/u16-casecoll'.
50632         * modules/unicase/u16-casecoll-tests: New file.
50633         * tests/unicase/test-u16-casecoll.c: New file.
50634
50635         Tests for module 'unicase/u8-casecoll'.
50636         * modules/unicase/u8-casecoll-tests: New file.
50637         * tests/unicase/test-u8-casecoll.c: New file.
50638
50639         New module 'unicase/u32-casecoll'.
50640         * lib/unicase/u32-casecoll.c: New file.
50641         * modules/unicase/u32-casecoll: New file.
50642
50643         New module 'unicase/u16-casecoll'.
50644         * lib/unicase/u16-casecoll.c: New file.
50645         * modules/unicase/u16-casecoll: New file.
50646
50647         New module 'unicase/u8-casecoll'.
50648         * lib/unicase/u8-casecoll.c: New file.
50649         * lib/unicase/u-casecoll.h: New file.
50650         * modules/unicase/u8-casecoll: New file.
50651
50652         New module 'unicase/u32-casexfrm'.
50653         * lib/unicase/u32-casexfrm.c: New file.
50654         * modules/unicase/u32-casexfrm: New file.
50655
50656         New module 'unicase/u16-casexfrm'.
50657         * lib/unicase/u16-casexfrm.c: New file.
50658         * modules/unicase/u16-casexfrm: New file.
50659
50660         New module 'unicase/u8-casexfrm'.
50661         * lib/unicase/u8-casexfrm.c: New file.
50662         * lib/unicase/u-casexfrm.h: New file.
50663         * modules/unicase/u8-casexfrm: New file.
50664
50665         Tests for module 'unicase/u32-casecmp'.
50666         * modules/unicase/u32-casecmp-tests: New file.
50667         * tests/unicase/test-u32-casecmp.c: New file.
50668
50669         Tests for module 'unicase/u16-casecmp'.
50670         * modules/unicase/u16-casecmp-tests: New file.
50671         * tests/unicase/test-u16-casecmp.c: New file.
50672
50673         Tests for module 'unicase/u8-casecmp'.
50674         * modules/unicase/u8-casecmp-tests: New file.
50675         * tests/unicase/test-u8-casecmp.c: New file.
50676         * tests/unicase/test-casecmp.h: New file.
50677
50678         New module 'unicase/u32-casecmp'.
50679         * lib/unicase/u32-casecmp.c: New file.
50680         * modules/unicase/u32-casecmp: New file.
50681
50682         New module 'unicase/u16-casecmp'.
50683         * lib/unicase/u16-casecmp.c: New file.
50684         * modules/unicase/u16-casecmp: New file.
50685
50686         New module 'unicase/u8-casecmp'.
50687         * lib/unicase/u8-casecmp.c: New file.
50688         * lib/unicase/u-casecmp.h: New file.
50689         * modules/unicase/u8-casecmp: New file.
50690
50691         Tests for module 'unicase/u32-casefold'.
50692         * modules/unicase/u32-casefold-tests: New file.
50693         * tests/unicase/test-u32-casefold.c: New file.
50694
50695         Tests for module 'unicase/u16-casefold'.
50696         * modules/unicase/u16-casefold-tests: New file.
50697         * tests/unicase/test-u16-casefold.c: New file.
50698
50699         Tests for module 'unicase/u8-casefold'.
50700         * modules/unicase/u8-casefold-tests: New file.
50701         * tests/unicase/test-u8-casefold.c: New file.
50702
50703         New module 'unicase/u32-casefold'.
50704         * lib/unicase/u32-casefold.c: New file.
50705         * modules/unicase/u32-casefold: New file.
50706
50707         New module 'unicase/u16-casefold'.
50708         * lib/unicase/u16-casefold.c: New file.
50709         * modules/unicase/u16-casefold: New file.
50710
50711         New module 'unicase/u8-casefold'.
50712         * lib/unicase/u8-casefold.c: New file.
50713         * lib/unicase/u-casefold.h: New file.
50714         * modules/unicase/u8-casefold: New file.
50715
50716         New module 'unicase/tocasefold'.
50717         * lib/unicase/casefold.h: New file.
50718         * lib/unicase/tocasefold.c: New file.
50719         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
50720         * modules/unicase/tocasefold: New file.
50721
50722         Tests for module 'unicase/u32-totitle'.
50723         * modules/unicase/u32-totitle-tests: New file.
50724         * tests/unicase/test-u32-totitle.c: New file.
50725
50726         Tests for module 'unicase/u16-totitle'.
50727         * modules/unicase/u16-totitle-tests: New file.
50728         * tests/unicase/test-u16-totitle.c: New file.
50729
50730         Tests for module 'unicase/u8-totitle'.
50731         * modules/unicase/u8-totitle-tests: New file.
50732         * tests/unicase/test-u8-totitle.c: New file.
50733
50734         New module 'unicase/u32-totitle'.
50735         * lib/unicase/u32-totitle.c: New file.
50736         * modules/unicase/u32-totitle: New file.
50737
50738         New module 'unicase/u16-totitle'.
50739         * lib/unicase/u16-totitle.c: New file.
50740         * modules/unicase/u16-totitle: New file.
50741
50742         New module 'unicase/u8-totitle'.
50743         * lib/unicase/u8-totitle.c: New file.
50744         * lib/unicase/u-totitle.h: New file.
50745         * modules/unicase/u8-totitle: New file.
50746
50747         Tests for module 'unicase/u32-tolower'.
50748         * modules/unicase/u32-tolower-tests: New file.
50749         * tests/unicase/test-u32-tolower.c: New file.
50750
50751         Tests for module 'unicase/u16-tolower'.
50752         * modules/unicase/u16-tolower-tests: New file.
50753         * tests/unicase/test-u16-tolower.c: New file.
50754
50755         Tests for module 'unicase/u8-tolower'.
50756         * modules/unicase/u8-tolower-tests: New file.
50757         * tests/unicase/test-u8-tolower.c: New file.
50758
50759         New module 'unicase/u32-tolower'.
50760         * lib/unicase/u32-tolower.c: New file.
50761         * modules/unicase/u32-tolower: New file.
50762
50763         New module 'unicase/u16-tolower'.
50764         * lib/unicase/u16-tolower.c: New file.
50765         * modules/unicase/u16-tolower: New file.
50766
50767         New module 'unicase/u8-tolower'.
50768         * lib/unicase/u8-tolower.c: New file.
50769         * modules/unicase/u8-tolower: New file.
50770
50771         Tests for module 'unicase/u32-toupper'.
50772         * modules/unicase/u32-toupper-tests: New file.
50773         * tests/unicase/test-u32-toupper.c: New file.
50774
50775         Tests for module 'unicase/u16-toupper'.
50776         * modules/unicase/u16-toupper-tests: New file.
50777         * tests/unicase/test-u16-toupper.c: New file.
50778
50779         Tests for module 'unicase/u8-toupper'.
50780         * modules/unicase/u8-toupper-tests: New file.
50781         * tests/unicase/test-u8-toupper.c: New file.
50782
50783         New module 'unicase/u32-toupper'.
50784         * lib/unicase/u32-toupper.c: New file.
50785         * modules/unicase/u32-toupper: New file.
50786
50787         New module 'unicase/u16-toupper'.
50788         * lib/unicase/u16-toupper.c: New file.
50789         * modules/unicase/u16-toupper: New file.
50790
50791         New module 'unicase/u8-toupper'.
50792         * lib/unicase/u8-toupper.c: New file.
50793         * modules/unicase/u8-toupper: New file.
50794
50795         New module 'unicase/u32-casemap'.
50796         * lib/unicase/u32-casemap.c: New file.
50797         * modules/unicase/u32-casemap: New file.
50798
50799         New module 'unicase/u16-casemap'.
50800         * lib/unicase/u16-casemap.c: New file.
50801         * modules/unicase/u16-casemap: New file.
50802
50803         New module 'unicase/u8-casemap'.
50804         * lib/unicase/unicasemap.h: New file.
50805         * lib/unicase/u8-casemap.c: New file.
50806         * lib/unicase/u-casemap.h: New file.
50807         * modules/unicase/u8-casemap: New file.
50808
50809         New module 'unicase/special-casing'.
50810         * lib/unicase/special-casing.h: New file.
50811         * lib/unicase/special-casing.c: New file.
50812         * lib/unicase/special-casing-table.gperf: New file, generated by
50813         gen-uni-tables.c.
50814         * modules/unicase/special-casing: New file.
50815
50816         Tests for module 'unicase/locale-language'.
50817         * modules/unicase/locale-language-tests: New file.
50818         * tests/unicase/test-locale-language.sh: New file.
50819         * tests/unicase/test-locale-language.c: New file.
50820
50821         New module 'unicase/locale-language'.
50822         * lib/unicase/locale-language.c: New file.
50823         * lib/unicase/locale-languages.gperf: New file.
50824         * modules/unicase/locale-language: New file.
50825
50826         Generate more tables for case conversion and case folding.
50827         * lib/gen-uni-tables.c (SCC_*): New enum items.
50828         (struct special_casing_rule): New type.
50829         (casing_rules, num_casing_rules, allocated_casing_rules): New
50830         variables.
50831         (add_casing_rule, fill_casing_rules): New functions.
50832         (struct casefold_rule): New type.
50833         (casefolding_rules, num_casefolding_rules,
50834         allocated_casefolding_rules): New variables.
50835         (fill_casefolding_rules): New function.
50836         (unicode_casefold): New variable.
50837         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
50838         sort_casing_rules, output_casing_rules): New functions.
50839         (main): Accept to more arguments: SpecialCasing.txt and
50840         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
50841         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
50842         Output mapping for casefolding.
50843
50844         * lib/unicase.h: Include stdbool.h, uninorm.h.
50845         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
50846         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
50847         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
50848         arguments.
50849         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
50850         resultp arguments.
50851         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
50852         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
50853         resultp arguments.
50854         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
50855         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
50856         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
50857         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
50858         declarations.
50859         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
50860
50861 2009-03-08  Bruno Haible  <bruno@clisp.org>
50862
50863         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50864         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
50865         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
50866         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50867
50868 2009-03-07  Bruno Haible  <bruno@clisp.org>
50869
50870         Adjust u*_normcmp, u*_normcoll API.
50871         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50872         u16_normcoll, u32_normcoll): Change failure conventions.
50873         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
50874         errno and return -1.
50875         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50876
50877 2009-03-07  Bruno Haible  <bruno@clisp.org>
50878
50879         Tests for module 'uninorm/u32-normcoll'.
50880         * modules/uninorm/u32-normcoll-tests: New file.
50881         * tests/uninorm/test-u32-normcoll.c: New file.
50882
50883         Tests for module 'uninorm/u16-normcoll'.
50884         * modules/uninorm/u16-normcoll-tests: New file.
50885         * tests/uninorm/test-u16-normcoll.c: New file.
50886
50887         Tests for module 'uninorm/u8-normcoll'.
50888         * modules/uninorm/u8-normcoll-tests: New file.
50889         * tests/uninorm/test-u8-normcoll.c: New file.
50890
50891 2009-03-07  Bruno Haible  <bruno@clisp.org>
50892
50893         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
50894         tests/uninorm/test-u32-normcmp.c.
50895         * tests/uninorm/test-u32-normcmp.c: Include it.
50896         (test_nonascii): New function, extracted from main. Add some more
50897         tests.
50898         (main): Invoke test_ascii and test_nonascii.
50899         * modules/uninorm/u32-normcmp-tests (Files): Add
50900         tests/uninorm/test-u32-normcmp.h.
50901         (Depends-on): Remove uninorm/u32-normcmp.
50902
50903         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
50904         tests/uninorm/test-u16-normcmp.c.
50905         * tests/uninorm/test-u16-normcmp.c: Include it.
50906         (test_nonascii): New function, extracted from main. Add some more
50907         tests.
50908         (main): Invoke test_ascii and test_nonascii.
50909         * modules/uninorm/u16-normcmp-tests (Files): Add
50910         tests/uninorm/test-u16-normcmp.h.
50911         (Depends-on): Remove uninorm/u16-normcmp.
50912
50913         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
50914         tests/uninorm/test-u8-normcmp.c.
50915         * tests/uninorm/test-u8-normcmp.c: Include it.
50916         (test_nonascii): New function, extracted from main. Add some more
50917         tests.
50918         (main): Invoke test_ascii and test_nonascii.
50919         * modules/uninorm/u8-normcmp-tests (Files): Add
50920         tests/uninorm/test-u8-normcmp.h.
50921         (Depends-on): Remove uninorm/u8-normcmp.
50922
50923 2009-03-07  Bruno Haible  <bruno@clisp.org>
50924
50925         New module 'uninorm/u32-normcoll'.
50926         * lib/uninorm/u32-normcoll.c: New file.
50927         * modules/uninorm/u32-normcoll: New file.
50928
50929         New module 'uninorm/u16-normcoll'.
50930         * lib/uninorm/u16-normcoll.c: New file.
50931         * modules/uninorm/u16-normcoll: New file.
50932
50933         New module 'uninorm/u8-normcoll'.
50934         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
50935         declarations.
50936         * lib/uninorm/u8-normcoll.c: New file.
50937         * lib/uninorm/u-normcoll.h: New file.
50938         * modules/uninorm/u8-normcoll: New file.
50939
50940         New module 'uninorm/u32-normxfrm'.
50941         * lib/uninorm/u32-normxfrm.c: New file.
50942         * modules/uninorm/u32-normxfrm: New file.
50943
50944         New module 'uninorm/u16-normxfrm'.
50945         * lib/uninorm/u16-normxfrm.c: New file.
50946         * modules/uninorm/u16-normxfrm: New file.
50947
50948         New module 'uninorm/u8-normxfrm'.
50949         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
50950         declarations.
50951         * lib/uninorm/u8-normxfrm.c: New file.
50952         * lib/uninorm/u-normxfrm.h: New file.
50953         * modules/uninorm/u8-normxfrm: New file.
50954
50955 2009-03-07  Bruno Haible  <bruno@clisp.org>
50956
50957         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
50958         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
50959         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
50960
50961 2009-03-07  Bruno Haible  <bruno@clisp.org>
50962
50963         New module 'memxfrm'.
50964         * lib/memxfrm.h: New file.
50965         * lib/memxfrm.c: New file.
50966         * modules/memxfrm: New file.
50967
50968 2009-03-07  Bruno Haible  <bruno@clisp.org>
50969
50970         New module 'memcmp2'.
50971         * lib/memcmp2.h: New file.
50972         * lib/memcmp2.c: New file.
50973         * modules/memcmp2: New file.
50974
50975 2009-03-07  Bruno Haible  <bruno@clisp.org>
50976
50977         Tests for module 'uninorm/decomposing-form'.
50978         * modules/uninorm/decomposing-form-tests: New file.
50979         * tests/uninorm/test-decomposing-form.c: New file.
50980
50981         New module 'uninorm/decomposing-form'.
50982         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
50983         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
50984         Add 'decomposing_variant' field.
50985         * lib/uninorm/decomposing-form.c: New file.
50986         * lib/uninorm/nfc.c (uninorm_nfc): Update.
50987         * lib/uninorm/nfd.c (uninorm_nfd): Update.
50988         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
50989         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
50990         * modules/uninorm/decomposing-form: New file.
50991         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
50992         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
50993
50994 2009-03-07  Bruno Haible  <bruno@clisp.org>
50995
50996         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
50997         strings.
50998
50999 2009-03-06  Bruno Haible  <bruno@clisp.org>
51000
51001         Tests for module 'uninorm/u32-normcmp'.
51002         * tests/uninorm/test-u32-normcmp.c: New file.
51003         * modules/uninorm/u32-normcmp-tests: New file.
51004
51005         Tests for module 'uninorm/u16-normcmp'.
51006         * tests/uninorm/test-u16-normcmp.c: New file.
51007         * modules/uninorm/u16-normcmp-tests: New file.
51008
51009         Tests for module 'uninorm/u8-normcmp'.
51010         * tests/uninorm/test-u8-normcmp.c: New file.
51011         * modules/uninorm/u8-normcmp-tests: New file.
51012
51013         New module 'uninorm/u32-normcmp'.
51014         * lib/uninorm/u32-normcmp.c: New file.
51015         * modules/uninorm/u32-normcmp: New file.
51016
51017         New module 'uninorm/u16-normcmp'.
51018         * lib/uninorm/u16-normcmp.c: New file.
51019         * modules/uninorm/u16-normcmp: New file.
51020
51021         New module 'uninorm/u8-normcmp'.
51022         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
51023         declarations.
51024         * lib/uninorm/u8-normcmp.c: New file.
51025         * lib/uninorm/u-normcmp.h: New file.
51026         * modules/uninorm/u8-normcmp: New file.
51027
51028 2009-03-06  Bruno Haible  <bruno@clisp.org>
51029
51030         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
51031         Reported by Eric Blake.
51032
51033 2009-03-06  Eric Blake  <ebb9@byu.net>
51034             Bruno Haible  <bruno@clisp.org>
51035
51036         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
51037         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
51038         condition.
51039         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51040         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
51041         condition.
51042         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51043
51044 2009-03-06  Eric Blake  <ebb9@byu.net>
51045
51046         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
51047         to avoid compiler warnings.
51048         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
51049
51050 2009-03-05  Bruno Haible  <bruno@clisp.org>
51051
51052         * tests/test-ftell.c (main): Disable test beyond end of file on
51053         FreeMiNT.
51054         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51055
51056 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
51057
51058         * lib/filevercmp.c: Move hidden files up in ordering.
51059         * tests/test-filevercmp.c: Add tests for hidden files.
51060
51061 2009-03-04  Bruno Haible  <bruno@clisp.org>
51062
51063         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
51064         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
51065         AM_CFLAGS.
51066         Reported by Simon Josefsson.
51067
51068 2009-03-03  Bruno Haible  <bruno@clisp.org>
51069
51070         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
51071         Reported by Simon Josefsson.
51072
51073         * doc/ld-version-script.texi: Update node reference.
51074
51075 2009-03-03  Bruno Haible  <bruno@clisp.org>
51076
51077         * modules/visibility (License): Change to 'unlimited'.
51078         Suggested by Simon Josefsson.
51079
51080 2009-03-03  Jim Meyering  <meyering@redhat.com>
51081
51082         unlinkdir: cannot_unlink_dir may modify process state
51083         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
51084         it's neither thread-safe nor appropriate for use in a library.
51085
51086 2009-03-03  Eric Blake  <ebb9@byu.net>
51087
51088         test-closein: silence test under Darwin
51089         * tests/test-closein.sh: Ignore stderr from cat, since we don't
51090         care if it dies from EPIPE or EBADF.
51091
51092 2009-03-03  Bruno Haible  <bruno@clisp.org>
51093
51094         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
51095         earlier.
51096         * doc/visibility.texi: Fix @node and @section.
51097
51098 2009-03-03  Simon Josefsson  <simon@josefsson.org>
51099
51100         * doc/gnulib.texi: Link to sections for ld version script and
51101         visibility.
51102         * doc/visibility.texi: Add @node and @section.
51103         * modules/ld-version-script: New module.
51104         * m4/ld-version-script.m4: New file.
51105         * doc/ld-version-script.texi: New file.
51106
51107 2009-03-02  David Lutterkort  <lutter@redhat.com>
51108
51109         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
51110         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51111
51112 2009-03-02  Bruno Haible  <bruno@clisp.org>
51113
51114         * doc/visibility.texi: Mention libtool's -export-symbols option.
51115
51116 2009-03-02  Jim Meyering  <meyering@redhat.com>
51117
51118         announce-gen: new option: --no-print-checksums
51119         * build-aux/announce-gen (usage): Describe it.
51120         (print_checksums): Print a newline here, not in the [*] footnote.
51121         (main): Honor it.
51122
51123 2009-03-01  Bruno Haible  <bruno@clisp.org>
51124
51125         Use socklen_t in the native Windows replacements prototypes.
51126         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
51127         instead of 'int'.
51128         * lib/getsockopt.c (rpl_getsockopt): Likewise.
51129         * lib/setsockopt.c (rpl_setsockopt): Likewise.
51130         * modules/getsockopt (Depends-on): Add socklen.
51131         * modules/setsockopt (Depends-on): Add socklen.
51132
51133 2009-03-01  Bruno Haible  <bruno@clisp.org>
51134
51135         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
51136         least 4.2.
51137
51138 2009-03-01  Eric Blake  <ebb9@byu.net>
51139             Bruno Haible  <bruno@clisp.org>
51140
51141         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
51142         error messages.
51143         * lib/wait-process.c (wait_subprocess): Omit error message about
51144         deadly signal sent to the child of termsigp != NULL.
51145
51146 2009-03-01  Eric Blake  <ebb9@byu.net>
51147
51148         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
51149
51150 2009-03-01  Bruno Haible  <bruno@clisp.org>
51151
51152         Avoid a gcc warning.
51153         * tests/test-sched.c (b): Make global.
51154         Reported by Eric Blake.
51155
51156 2009-01-19  Martin Lambers  <marlam@marlam.de>
51157
51158         Provide POSIX semantics for socket timeout options on W32.
51159         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
51160         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
51161         * modules/setsockopt: Depend on sys_time module for struct timeval.
51162         * modules/getsockopt: Depend on sys_time module for struct timeval.
51163
51164 2009-03-01  Simon Josefsson  <simon@josefsson.org>
51165
51166         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
51167         __USE_GNU, for consistency with netdb.in.h.
51168         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51169
51170 2009-03-01  Bruno Haible  <bruno@clisp.org>
51171
51172         More support for FreeMiNT.
51173         * lib/fseeko.c (rpl_fseeko): Complete last commit.
51174         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51175
51176 2009-03-01  Bruno Haible  <bruno@clisp.org>
51177
51178         More support for FreeMiNT.
51179         * lib/fpurge.c (fpurge): Correct last commit.
51180         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51181
51182 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51183
51184         Fix unportable awk script in vc-list-files.
51185         * build-aux/vc-list-files: In the replacement awk script, use
51186         substr with a second argument of 1, not zero.
51187         Report by Simon Josefsson.
51188
51189 2009-02-28  Bruno Haible  <bruno@clisp.org>
51190
51191         More support for FreeMiNT.
51192         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
51193         to FreeMiNT today.
51194         * lib/fwriting.c (fwriting): Likewise.
51195         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
51196
51197 2009-02-28  Bruno Haible  <bruno@clisp.org>
51198
51199         * tests/test-freadseek.c (main): Disable test beyond end of file on
51200         FreeMiNT.
51201         * tests/test-ftello.c (main): Likewise.
51202         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51203
51204 2009-02-28  Bruno Haible  <bruno@clisp.org>
51205
51206         Add tentative support for FreeMiNT.
51207         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
51208         * lib/fpurge.c (fpurge): Likewise.
51209         * lib/freadable.c (freadable): Likewise.
51210         * lib/freading.c (freading): Likewise.
51211         * lib/freadptr.c (freadptr): Likewise.
51212         * lib/freadseek.c (freadptrinc): Likewise.
51213         * lib/fseeko.c (rpl_fseeko): Likewise.
51214         * lib/fseterr.c (fseterr): Likewise.
51215         * lib/fwritable.c (fwritable): Likewise.
51216         * lib/fwriting.c (fwriting): Likewise.
51217         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
51218         Hourihane.
51219         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51220
51221 2009-02-28  Bruno Haible  <bruno@clisp.org>
51222
51223         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
51224         SIGCHLD.
51225         Reported by Jim Meyering.
51226
51227 2009-02-28  Bruno Haible  <bruno@clisp.org>
51228
51229         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
51230         Mention the results of these tests on various platforms.
51231         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
51232         order.
51233         * doc/posix-functions/printf.texi: Likewise.
51234         * doc/posix-functions/snprintf.texi: Likewise.
51235         * doc/posix-functions/sprintf.texi: Likewise.
51236         * doc/posix-functions/vfprintf.texi: Likewise.
51237         * doc/posix-functions/vprintf.texi: Likewise.
51238         * doc/posix-functions/vsnprintf.texi: Likewise.
51239         * doc/posix-functions/vsprintf.texi: Likewise.
51240         * doc/glibc-functions/obstack_printf.texi: Likewise.
51241         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
51242
51243 2009-02-28  Bruno Haible  <bruno@clisp.org>
51244
51245         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
51246         Reported by Loïc Minier <lool@dooz.org>.
51247
51248 2009-02-27  Bruno Haible  <bruno@clisp.org>
51249
51250         * gnulib-tool (func_import): Make the sed expression used to create the
51251         sed script for updating the .gitignore file POSIX compliant.
51252         Reported by Eric Blake.
51253
51254 2009-02-27  Bruno Haible  <bruno@clisp.org>
51255
51256         * gnulib-tool (sed): Don't alias as "sed --posix".
51257         Reported by Eric Blake.
51258
51259 2009-02-27  Bruno Haible  <bruno@clisp.org>
51260
51261         Avoid test link errors.
51262         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
51263         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
51264         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
51265         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
51266         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51267
51268 2009-02-27  Bruno Haible  <bruno@clisp.org>
51269
51270         Avoid spurious "(cached)" in configure output.
51271         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
51272         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
51273         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51274         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51275         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51276         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
51277         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51278         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
51279         Reported by Eric Blake.
51280
51281 2009-02-27  Eric Blake  <ebb9@byu.net>
51282
51283         printf: fix regression in previous patch
51284         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
51285
51286 2009-02-27  Bruno Haible  <bruno@clisp.org>
51287
51288         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
51289         value.
51290         * lib/stdint.in.h: Likewise.
51291         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
51292
51293 2009-02-27  Eric Blake  <ebb9@byu.net>
51294
51295         doc: mention more functions added in cygwin 1.7.0
51296         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
51297         addition.
51298         * doc/posix-functions/open_wmemstream.texi: Likewise.
51299         * doc/posix-functions/wcsnlen.texi: Likewise.
51300         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51301         * doc/posix-functions/wcstod.texi: Likewise.
51302         * doc/posix-functions/wcstof.texi: Likewise.
51303         * doc/posix-functions/wcstoimax.texi: Likewise.
51304         * doc/posix-functions/wcstok.texi: Likewise.
51305         * doc/posix-functions/wcstoumax.texi: Likewise.
51306
51307         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
51308         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
51309         * doc/posix-functions/fprintf.texi: Update.
51310         * doc/posix-functions/printf.texi: Update.
51311         * doc/posix-functions/snprintf.texi: Update.
51312         * doc/posix-functions/sprintf.texi: Update.
51313         * doc/posix-functions/vfprintf.texi: Update.
51314         * doc/posix-functions/vprintf.texi: Update.
51315         * doc/posix-functions/vsnprintf.texi: Update.
51316         * doc/posix-functions/vsprintf.texi: Update.
51317         * doc/glibc-functions/obstack_printf.texi: Update.
51318         * doc/glibc-functions/obstack_vprintf.texi: Update.
51319
51320 2009-02-26  Eric Blake  <ebb9@byu.net>
51321
51322         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
51323         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51324         compilation bug by using runtime conversion.
51325         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51326         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51327         * modules/ceill-tests (Files): Use nan.h.
51328         * modules/floorl-tests (Files): Likewise.
51329         * modules/frexpl-tests (Files): Likewise.
51330         * modules/isnanl-tests (Files): Likewise.
51331         * modules/ldexpl-tests (Files): Likewise.
51332         * modules/roundl-tests (Files): Likewise.
51333         * modules/truncl-tests (Files): Likewise.
51334         * tests/test-ceill.c (main): Use a working NaN.
51335         * tests/test-floorl.c (main): Likewise.
51336         * tests/test-frexpl.c (main): Likewise.
51337         * tests/test-isnan.c (test_long_double): Likewise.
51338         * tests/test-isnanl.h (main): Likewise.
51339         * tests/test-ldexpl.h (main): Likewise.
51340         * tests/test-roundl.h (main): Likewise.
51341         * tests/test-truncl.h (main): Likewise.
51342         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51343
51344 2009-02-26  Eric Blake  <ebb9@byu.net>
51345             Bruno Haible  <bruno@clisp.org>
51346
51347         Work around a *printf bug with %ls on Solaris.
51348         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51349         precision is specified, sprintf stops converting the wide string
51350         argument when the number of bytes that have been produced by this
51351         conversion equals or exceeds the precision.
51352         * doc/posix-functions/fprintf.texi: Update.
51353         * doc/posix-functions/printf.texi: Update.
51354         * doc/posix-functions/snprintf.texi: Update.
51355         * doc/posix-functions/sprintf.texi: Update.
51356         * doc/posix-functions/vfprintf.texi: Update.
51357         * doc/posix-functions/vprintf.texi: Update.
51358         * doc/posix-functions/vsnprintf.texi: Update.
51359         * doc/posix-functions/vsprintf.texi: Update.
51360         * doc/glibc-functions/obstack_printf.texi: Update.
51361         * doc/glibc-functions/obstack_vprintf.texi: Update.
51362
51363 2009-02-26  Eric Blake  <ebb9@byu.net>
51364
51365         stdlib: favor compiler check of random.h
51366         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51367         to avoid an ObjC random.h installed by Swarm.
51368
51369 2009-02-26  Bruno Haible  <bruno@clisp.org>
51370
51371         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51372         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51373         Reported by Gary V. Vaughan <gary@gnu.org>.
51374
51375 2009-02-26  Bruno Haible  <bruno@clisp.org>
51376
51377         Fix *printf behaviour regarding the %ls directive.
51378         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51379         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51380         NEED_PRINTF_DIRECTIVE_LS.
51381         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51382         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51383         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51384         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51385         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51386         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
51387         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51388         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51389         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51390         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51391         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51392         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
51393         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51394         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51395         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51396         * doc/posix-functions/fprintf.texi: Update.
51397         * doc/posix-functions/printf.texi: Update.
51398         * doc/posix-functions/snprintf.texi: Update.
51399         * doc/posix-functions/sprintf.texi: Update.
51400         * doc/posix-functions/vfprintf.texi: Update.
51401         * doc/posix-functions/vprintf.texi: Update.
51402         * doc/posix-functions/vsnprintf.texi: Update.
51403         * doc/posix-functions/vsprintf.texi: Update.
51404         * doc/glibc-functions/obstack_printf.texi: Update.
51405         * doc/glibc-functions/obstack_vprintf.texi: Update.
51406         Reported by Eric Blake.
51407
51408 2009-02-25  Bruno Haible  <bruno@clisp.org>
51409
51410         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51411         with known value.
51412         Reported by Gary V. Vaughan <gary@gnu.org>.
51413
51414 2009-02-25  Bruno Haible  <bruno@clisp.org>
51415
51416         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51417         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51418         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51419         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51420         Reported by Gary V. Vaughan <gary@gnu.org>.
51421
51422 2009-02-25  Bruno Haible  <bruno@clisp.org>
51423
51424         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51425         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51426         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51427         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51428         Reported by Gary V. Vaughan <gary@gnu.org>.
51429
51430 2009-02-25  Eric Blake  <ebb9@byu.net>
51431
51432         tests: skip fseek/ftell tests if ungetc is broken
51433         * m4/ungetc.m4: New file.
51434         * modules/fseek-tests: Split test, so ungetc dependency is
51435         separate from rest of test.
51436         * modules/fseeko-tests: Likewise.
51437         * modules/ftell-tests: Likewise.
51438         * modules/ftello-tests: Likewise.
51439         * tests/test-fseek.c (main): Isolate ungetc dependency.
51440         * tests/test-fseeko.c (main): Likewise.
51441         * tests/test-ftell.c (main): Likewise.
51442         * tests/test-ftello.c (main): Likewise.
51443         * tests/test-fseek2.sh: New file.
51444         * tests/test-fseeko2.sh: Likewise.
51445         * tests/test-ftell2.sh: Likewise.
51446         * tests/test-ftello2.sh: Likewise.
51447
51448 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
51449
51450         test-getaddrinfo: fix usage of skip return code 77
51451         * tests/test-gettaddrinfo.c: Return skip code 77 only
51452         for first occurrence of skip (4x77 is not 77)
51453
51454 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51455
51456         strtod: avoid C99 decl-after-statement
51457         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51458
51459 2009-02-24  Eric Blake  <ebb9@byu.net>
51460
51461         strtod: detect HP-UX 11.31 bug
51462         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51463         Reported by Gary V. Vaughan.
51464
51465 2009-02-23  Bruno Haible  <bruno@clisp.org>
51466
51467         Fix invalid read past end of memory block.
51468         * lib/vasnprintf.c (DCHAR_SET): Define.
51469         (local_wcslen): Define only when needed.
51470         (local_strnlen, local_wcsnlen): New functions.
51471         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51472         directives that involve a conversion ourselves.
51473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51474         wcsnlen, mbrtowc, wcrtomb.
51475         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51476         * tests/test-vasprintf-posix.c (test_function): Likewise.
51477         * tests/test-snprintf-posix.h (test_function): Likewise.
51478         * tests/test-sprintf-posix.h (test_function): Likewise.
51479         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51480
51481 2009-02-22  Bruno Haible  <bruno@clisp.org>
51482
51483         Implement new clarified decomposition of Hangul syllables.
51484         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
51485         of type LTV, return only a pairwise decomposition.
51486         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
51487         Likewise.
51488         * tests/uninorm/test-decomposition.c (main): Updated expected result.
51489         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
51490         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
51491
51492 2009-02-22  Bruno Haible  <bruno@clisp.org>
51493
51494         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
51495         zero-length results and shrink excess allocated memory.
51496         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
51497         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
51498         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
51499         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
51500         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
51501         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
51502         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
51503         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
51504         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
51505         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
51506         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
51507         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
51508
51509 2009-02-21  Bruno Haible  <bruno@clisp.org>
51510
51511         * doc/gnulib.texi: Include safe-alloc.texi earlier.
51512         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
51513         spaces after a period. Put a space between a macro name and its
51514         argument list. Trivial rewordings.
51515         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
51516         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
51517         (main): Return 0 explicitly.
51518
51519 2009-02-21  Bruno Haible  <bruno@clisp.org>
51520
51521         Tests for module 'uninorm/filter'.
51522         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
51523         * modules/uninorm/filter-tests: New file.
51524
51525         New module 'uninorm/filter'.
51526         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
51527         uninorm_filter_flush, uninorm_filter_free): New declarations.
51528         * lib/uninorm/uninorm-filter.c: New file.
51529         * modules/uninorm/filter: New file.
51530
51531 2009-02-21  Bruno Haible  <bruno@clisp.org>
51532
51533         Tests for module 'uninorm/nfkc'.
51534         * tests/uninorm/test-nfkc.c: New file.
51535         * tests/uninorm/test-u8-nfkc.c: New file.
51536         * tests/uninorm/test-u16-nfkc.c: New file.
51537         * tests/uninorm/test-u32-nfkc.c: New file.
51538         * tests/uninorm/test-u32-nfkc-big.sh: New file.
51539         * tests/uninorm/test-u32-nfkc-big.c: New file.
51540         * modules/uninorm/nfkc-tests: New file.
51541
51542         New module 'uninorm/nfkc'.
51543         * lib/uninorm/nfkc.c: New file.
51544         * modules/uninorm/nfkc: New file.
51545
51546         Tests for module 'uninorm/nfkd'.
51547         * tests/uninorm/test-nfkd.c: New file.
51548         * tests/uninorm/test-u8-nfkd.c: New file.
51549         * tests/uninorm/test-u16-nfkd.c: New file.
51550         * tests/uninorm/test-u32-nfkd.c: New file.
51551         * tests/uninorm/test-u32-nfkd-big.sh: New file.
51552         * tests/uninorm/test-u32-nfkd-big.c: New file.
51553         * modules/uninorm/nfkd-tests: New file.
51554
51555         New module 'uninorm/nfkd'.
51556         * lib/uninorm/nfkd.c: New file.
51557         * modules/uninorm/nfkd: New file.
51558
51559         Tests for module 'uninorm/nfc'.
51560         * tests/uninorm/test-nfc.c: New file.
51561         * tests/uninorm/test-u8-nfc.c: New file.
51562         * tests/uninorm/test-u16-nfc.c: New file.
51563         * tests/uninorm/test-u32-nfc.c: New file.
51564         * tests/uninorm/test-u32-nfc-big.sh: New file.
51565         * tests/uninorm/test-u32-nfc-big.c: New file.
51566         * modules/uninorm/nfc-tests: New file.
51567
51568         New module 'uninorm/nfc'.
51569         * lib/uninorm/nfc.c: New file.
51570         * modules/uninorm/nfc: New file.
51571
51572         Tests for module 'uninorm/nfd'.
51573         * tests/uninorm/test-nfd.c: New file.
51574         * tests/uninorm/test-u8-nfd.c: New file.
51575         * tests/uninorm/test-u16-nfd.c: New file.
51576         * tests/uninorm/test-u32-nfd.c: New file.
51577         * tests/uninorm/test-u32-nfd-big.sh: New file.
51578         * tests/uninorm/test-u32-nfd-big.c: New file.
51579         * tests/uninorm/test-u32-normalize-big.h: New file.
51580         * tests/uninorm/test-u32-normalize-big.c: New file.
51581         * tests/uninorm/NormalizationTest.txt: New file, created from
51582         Unicode 5.1.0 NormalizationTest.txt.
51583         * modules/uninorm/nfd-tests: New file.
51584
51585         New module 'uninorm/nfd'.
51586         * lib/uninorm/nfd.c: New file.
51587         * modules/uninorm/nfd: New file.
51588
51589         New module 'uninorm/u32-normalize'.
51590         * lib/uninorm/u32-normalize.c: New file.
51591         * modules/uninorm/u32-normalize: New file.
51592
51593         New module 'uninorm/u16-normalize'.
51594         * lib/uninorm/u16-normalize.c: New file.
51595         * modules/uninorm/u16-normalize: New file.
51596
51597         New module 'uninorm/u8-normalize'.
51598         * lib/uninorm/u8-normalize.c: New file.
51599         * lib/uninorm/normalize-internal.h: New file.
51600         * lib/uninorm/u-normalize-internal.h: New file.
51601         * modules/uninorm/u8-normalize: New file.
51602
51603         New module 'uninorm/decompose-internal'.
51604         * lib/uninorm/decompose-internal.c: New file.
51605         * modules/uninorm/decompose-internal: New file.
51606
51607         Tests for module 'uninorm/composition'.
51608         * tests/uninorm/test-composition.c: New file.
51609         * modules/uninorm/composition-tests: New file.
51610
51611         New module 'uninorm/composition'.
51612         * lib/uninorm/composition.c: New file.
51613         * lib/uninorm/composition-table.gperf: New file, generated by
51614         gen-uni-tables.
51615         * modules/uninorm/composition: New file.
51616
51617         Tests for module 'uninorm/compat-decomposition'.
51618         * tests/uninorm/test-compat-decomposition.c: New file.
51619         * modules/uninorm/compat-decomposition-tests: New file.
51620
51621         New module 'uninorm/compat-decomposition'.
51622         * lib/uninorm/decompose-internal.h: New file.
51623         * lib/uninorm/compat-decomposition.c: New file.
51624         * modules/uninorm/compat-decomposition: New file.
51625
51626         Tests for module 'uninorm/canonical-decomposition'.
51627         * tests/uninorm/test-canonical-decomposition.c: New file.
51628         * modules/uninorm/canonical-decomposition-tests: New file.
51629
51630         New module 'uninorm/canonical-decomposition'.
51631         * lib/uninorm/canonical-decomposition.c: New file.
51632         * modules/uninorm/canonical-decomposition: New file.
51633
51634         Tests for module 'uninorm/decomposition'.
51635         * tests/uninorm/test-decomposition.c: New file.
51636         * modules/uninorm/decomposition-tests: New file.
51637
51638         New module 'uninorm/decomposition'.
51639         * lib/uninorm/decomposition.c: New file.
51640         * modules/uninorm/decomposition: New file.
51641
51642         New module 'uninorm/decomposition-table'.
51643         * lib/uninorm/decomposition-table.h: New file.
51644         * lib/uninorm/decomposition-table.c: New file.
51645         * lib/uninorm/decomposition-table1.h: New file, generated by
51646         gen-uni-tables.
51647         * lib/uninorm/decomposition-table2.h: New file, generated by
51648         gen-uni-tables.
51649         * modules/uninorm/decomposition-table: New file.
51650
51651         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
51652         (UC_DECOMP_*): New enumeration items.
51653         (get_decomposition): New function.
51654         (struct decomp_table): New type.
51655         (output_decomposition, output_decomposition_tables): New functions.
51656         (unicode_composition_exclusions): New variable.
51657         (fill_composition_exclusions, debug_output_composition_tables): New
51658         functions.
51659         (main): Accept one more argument. Invoke fill_composition_exclusions.
51660         Output decomposition and composition tables.
51661
51662         New module 'uninorm/base'.
51663         * lib/uninorm.h: New file.
51664         * lib/unictype.h: Update comment.
51665         * modules/uninorm/base: New file.
51666
51667 2009-02-21  David Lutterkort  <lutter@redhat.com>
51668
51669         Tests for module 'safe-alloc'.
51670         * tests/test-safe-alloc.c: New file.
51671         * modules/safe-alloc-tests: New file.
51672
51673         New module 'safe-alloc'.
51674         * lib/safe-alloc.h: New file.
51675         * lib/safe-alloc.c: New file.
51676         * m4/safe-alloc.m4: New file.
51677         * modules/safe-alloc: New file.
51678         * doc/safe-alloc.texi: New file.
51679         * doc/gnulib.texi: Include it.
51680         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
51681         safe-alloc.
51682
51683 2009-02-18  Bruno Haible  <bruno@clisp.org>
51684
51685         Fix link error on non-glibc systems.
51686         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
51687         variable.
51688         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51689
51690 2009-02-18  Jim Meyering  <meyering@redhat.com>
51691
51692         fts: avoid used-uninitialized error due to recent change
51693         * lib/fts.c (fts_read): Guard uses of the new member,
51694         parent->fts_n_dirs_remaining, since it's not relevant for
51695         the parent of a directory specified on the command-line.
51696
51697 2009-02-17  James Youngman  <jay@gnu.org>
51698             Bruno Haible  <bruno@clisp.org>
51699
51700         * m4/include_next.m4: Reformulate comment.
51701
51702 2009-02-16  Jim Meyering  <meyering@redhat.com>
51703
51704         fts: add #if guards so that the fts_lgpl module still builds
51705         * lib/fts.c: Guard just-added hash-table-using parts with
51706         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
51707         Reported by Simon Josefsson.
51708
51709 2009-02-15  Bruno Haible  <bruno@clisp.org>
51710
51711         * modules/array-mergesort-tests: New file.
51712         * tests/test-array-mergesort.c: New file.
51713
51714         New module 'array-mergesort'.
51715         * modules/array-mergesort: New file.
51716         * lib/array-mergesort.h: New file.
51717
51718 2009-02-15  Bruno Haible  <bruno@clisp.org>
51719
51720         Fix 2009-02-07 commit.
51721         * lib/gen-uni-tables.c (output_predicate, output_category,
51722         output_combclass, output_bidi_category, output_decimal_digit,
51723         output_digit, output_numeric, output_mirror, output_scripts,
51724         output_ident_category, output_simple_mapping): Fix format directives.
51725         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
51726
51727 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
51728
51729         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
51730         fixes are available from IBM.
51731
51732 2009-02-13  Jim Meyering  <meyering@redhat.com>
51733
51734         fts: arrange not to stat non-directories in more cases
51735         This makes GNU find (when it doesn't need to stat each file)
51736         *much* more efficient at traversing reiserfs file systems.
51737         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
51738         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
51739         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
51740         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
51741         (leaf_optimization_applies): New function.
51742         (LCO_hash, LCO_compare): New helper functions.
51743         (link_count_optimize_ok): New function.
51744         (fts_stat): Initialize new member (if dir).
51745         (fts_read): Decrement parent's fts_n_dirs_remaining count if
51746         we've just stat'ed a directory.  Skip the stat call when possible.
51747         ---
51748         Note this AFS-related exchange:
51749         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
51750         and note find's pioctl call in find/fstype.c.
51751         But that is necessary only if you want to enable the
51752         optimization for AFS, and for now, I don't.
51753
51754         fts: move a function definition "up" (no semantic change)
51755         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
51756         "up" to precede upcoming use of a related function.
51757
51758 2009-02-11  Jim Meyering  <meyering@redhat.com>
51759
51760         fts: correct internal computation of nlinks (optimization-related)
51761         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
51762         whether the current entry is a directory, so don't test it.
51763
51764 2009-02-10  Bruno Haible  <bruno@clisp.org>
51765
51766         Tests for module 'uniwbrk/ulc-wordbreaks'.
51767         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
51768         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
51769         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
51770
51771         Tests for module 'uniwbrk/u32-wordbreaks'.
51772         * modules/uniwbrk/u32-wordbreaks-tests: New file.
51773         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
51774
51775         Tests for module 'uniwbrk/u16-wordbreaks'.
51776         * modules/uniwbrk/u16-wordbreaks-tests: New file.
51777         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
51778
51779         Tests for module 'uniwbrk/u8-wordbreaks'.
51780         * modules/uniwbrk/u8-wordbreaks-tests: New file.
51781         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
51782
51783 2009-02-10  Bruno Haible  <bruno@clisp.org>
51784
51785         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
51786         property.
51787         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
51788         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
51789         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
51790
51791 2009-02-10  Simon Josefsson  <simon@josefsson.org>
51792
51793         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
51794         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
51795
51796 2009-02-10  Bruno Haible  <bruno@clisp.org>
51797
51798         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
51799         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
51800         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
51801         * lib/unilbrk/u8-possible-linebreaks.c: Update.
51802         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
51803         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
51804
51805 2009-02-09  Simon Josefsson  <simon@josefsson.org>
51806
51807         * lib/sockets.h (gl_fd_to_handle): New function.
51808
51809         * tests/test-sockets.c: Call gl_fd_to_handle.
51810
51811 2009-02-09  Bruno Haible  <bruno@clisp.org>
51812
51813         * doc/havelib.texi: Document the conventions on bi-arch systems.
51814
51815 2009-02-08  Bruno Haible  <bruno@clisp.org>
51816
51817         Document the AC_LIB_LINKFLAGS macro.
51818         * doc/havelib.texi: New file, mostly written on 2005-05-24.
51819         * doc/gnulib.texi: Include it.
51820
51821 2009-02-08  Bruno Haible  <bruno@clisp.org>
51822
51823         Fix wrong order of sections, compared to TOC.
51824         * doc/gnulib.texi: Include relocatable-maint.texi after the
51825         "Regular expressions" node, not before.
51826
51827 2009-02-08  Bruno Haible  <bruno@clisp.org>
51828
51829         Tests for module 'unicase/totitle'.
51830         * modules/unicase/totitle-tests: New file.
51831
51832         Tests for module 'unicase/tolower'.
51833         * modules/unicase/tolower-tests: New file.
51834
51835         Tests for module 'unicase/toupper'.
51836         * modules/unicase/toupper-tests: New file.
51837         * tests/unicase/test-mapping-part1.h: New file.
51838         * tests/unicase/test-mapping-part2.h: New file.
51839
51840         New module 'unicase/totitle'.
51841         * modules/unicase/totitle: New file.
51842         * lib/unicase/totitle.c: New file.
51843
51844         New module 'unicase/tolower'.
51845         * modules/unicase/tolower: New file.
51846         * lib/unicase/tolower.c: New file.
51847
51848         New module 'unicase/toupper'.
51849         * modules/unicase/toupper: New file.
51850         * lib/unicase/toupper.c: New file.
51851         * lib/unicase/simple-mapping.h: New file.
51852
51853         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
51854         (mapping_table): New structure.
51855         (output_simple_mapping): New function.
51856         (main): Invoke output_simple_mapping_test and output_simple_mapping.
51857         * modules/gen-uni-tables (Description): Update.
51858         * lib/unicase/toupper.h: New file, automatically generated by
51859         gen-uni-tables.
51860         * lib/unicase/tolower.h: New file, automatically generated by
51861         gen-uni-tables.
51862         * lib/unicase/totitle.h: New file, automatically generated by
51863         gen-uni-tables.
51864         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
51865         gen-uni-tables.
51866         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
51867         gen-uni-tables.
51868         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
51869         gen-uni-tables.
51870
51871         New module 'unicase/base'.
51872         * modules/unicase/base: New file.
51873         * lib/unicase.h: New file.
51874
51875 2009-02-08  Bruno Haible  <bruno@clisp.org>
51876
51877         New module 'uniwbrk/ulc-wordbreaks'.
51878         * modules/uniwbrk/ulc-wordbreaks: New file.
51879         * lib/uniwbrk/ulc-wordbreaks.c: New file.
51880
51881         New module 'uniwbrk/u32-wordbreaks'.
51882         * modules/uniwbrk/u32-wordbreaks: New file.
51883         * lib/uniwbrk/u32-wordbreaks.c: New file.
51884
51885         New module 'uniwbrk/u16-wordbreaks'.
51886         * modules/uniwbrk/u16-wordbreaks: New file.
51887         * lib/uniwbrk/u16-wordbreaks.c: New file.
51888
51889         New module 'uniwbrk/u8-wordbreaks'.
51890         * modules/uniwbrk/u8-wordbreaks: New file.
51891         * lib/uniwbrk/u8-wordbreaks.c: New file.
51892         * lib/uniwbrk/u-wordbreaks.h: New file.
51893
51894         New module 'uniwbrk/table'.
51895         * modules/uniwbrk/table: New file.
51896         * lib/uniwbrk/wbrktable.h: New file.
51897         * lib/uniwbrk/wbrktable.c: New file.
51898
51899         New module 'uniwbrk/wordbreak-property'.
51900         * modules/uniwbrk/wordbreak-property: New file.
51901         * lib/uniwbrk/wordbreak-property.c: New file.
51902
51903         * lib/gen-uni-tables.c (WBP_*): New enum items.
51904         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
51905         (unicode_org_wbp): New variable.
51906         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
51907         New functions.
51908         (wbp_table): New structure.
51909         (output_wbp, output_wbrk_tables): New functions.
51910         (main): Accept additional argument. Invoke fill_org_wbp,
51911         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
51912         output_wbrk_tables.
51913         * modules/gen-uni-tables (Description): Update.
51914         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
51915         gen-uni-tables.
51916
51917         New module 'uniwbrk/base'.
51918         * modules/uniwbrk/base: New file.
51919         * lib/uniwbrk.h: New file.
51920
51921 2009-02-08  Bruno Haible  <bruno@clisp.org>
51922
51923         Update to Unicode 5.1.0.
51924         * lib/gen-uni-tables.c (is_property_alphabetic): Include
51925         U+2185..U+2188.
51926         (is_property_default_ignorable_code_point): Don't include characters
51927         of category Cc or Cs and not-a-characters.
51928         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
51929         U+0D79, U+109E, U+109F, U+A60C.
51930         * lib/unictype/bidi_of.h: Regenerated.
51931         * lib/unictype/blocks.h: Regenerated.
51932         * lib/unictype/categ_C.h: Regenerated.
51933         * lib/unictype/categ_Cf.h: Regenerated.
51934         * lib/unictype/categ_Cn.h: Regenerated.
51935         * lib/unictype/categ_L.h: Regenerated.
51936         * lib/unictype/categ_Ll.h: Regenerated.
51937         * lib/unictype/categ_Lm.h: Regenerated.
51938         * lib/unictype/categ_Lo.h: Regenerated.
51939         * lib/unictype/categ_Lu.h: Regenerated.
51940         * lib/unictype/categ_M.h: Regenerated.
51941         * lib/unictype/categ_Mc.h: Regenerated.
51942         * lib/unictype/categ_Me.h: Regenerated.
51943         * lib/unictype/categ_Mn.h: Regenerated.
51944         * lib/unictype/categ_N.h: Regenerated.
51945         * lib/unictype/categ_Nd.h: Regenerated.
51946         * lib/unictype/categ_Nl.h: Regenerated.
51947         * lib/unictype/categ_No.h: Regenerated.
51948         * lib/unictype/categ_P.h: Regenerated.
51949         * lib/unictype/categ_Pd.h: Regenerated.
51950         * lib/unictype/categ_Pe.h: Regenerated.
51951         * lib/unictype/categ_Pf.h: Regenerated.
51952         * lib/unictype/categ_Pi.h: Regenerated.
51953         * lib/unictype/categ_Po.h: Regenerated.
51954         * lib/unictype/categ_Ps.h: Regenerated.
51955         * lib/unictype/categ_S.h: Regenerated.
51956         * lib/unictype/categ_Sk.h: Regenerated.
51957         * lib/unictype/categ_Sm.h: Regenerated.
51958         * lib/unictype/categ_So.h: Regenerated.
51959         * lib/unictype/categ_of.h: Regenerated.
51960         * lib/unictype/combining.h: Regenerated.
51961         * lib/unictype/ctype_alnum.h: Regenerated.
51962         * lib/unictype/ctype_alpha.h: Regenerated.
51963         * lib/unictype/ctype_graph.h: Regenerated.
51964         * lib/unictype/ctype_lower.h: Regenerated.
51965         * lib/unictype/ctype_print.h: Regenerated.
51966         * lib/unictype/ctype_punct.h: Regenerated.
51967         * lib/unictype/ctype_upper.h: Regenerated.
51968         * lib/unictype/decdigit.h: Regenerated.
51969         * lib/unictype/digit.h: Regenerated.
51970         * lib/unictype/mirror.h: Regenerated.
51971         * lib/unictype/numeric.h: Regenerated.
51972         * lib/unictype/pr_alphabetic.h: Regenerated.
51973         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
51974         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
51975         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
51976         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
51977         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
51978         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
51979         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
51980         * lib/unictype/pr_combining.h: Regenerated.
51981         * lib/unictype/pr_dash.h: Regenerated.
51982         * lib/unictype/pr_decimal_digit.h: Regenerated.
51983         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
51984         * lib/unictype/pr_deprecated.h: Regenerated.
51985         * lib/unictype/pr_diacritic.h: Regenerated.
51986         * lib/unictype/pr_extender.h: Regenerated.
51987         * lib/unictype/pr_format_control.h: Regenerated.
51988         * lib/unictype/pr_grapheme_base.h: Regenerated.
51989         * lib/unictype/pr_grapheme_extend.h: Regenerated.
51990         * lib/unictype/pr_grapheme_link.h: Regenerated.
51991         * lib/unictype/pr_id_continue.h: Regenerated.
51992         * lib/unictype/pr_id_start.h: Regenerated.
51993         * lib/unictype/pr_ideographic.h: Regenerated.
51994         * lib/unictype/pr_ignorable_control.h: Regenerated.
51995         * lib/unictype/pr_lowercase.h: Regenerated.
51996         * lib/unictype/pr_math.h: Regenerated.
51997         * lib/unictype/pr_numeric.h: Regenerated.
51998         * lib/unictype/pr_other_alphabetic.h: Regenerated.
51999         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
52000         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
52001         * lib/unictype/pr_other_id_continue.h: Regenerated.
52002         * lib/unictype/pr_other_lowercase.h: Regenerated.
52003         * lib/unictype/pr_other_math.h: Regenerated.
52004         * lib/unictype/pr_punctuation.h: Regenerated.
52005         * lib/unictype/pr_sentence_terminal.h: Regenerated.
52006         * lib/unictype/pr_soft_dotted.h: Regenerated.
52007         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
52008         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
52009         * lib/unictype/pr_unified_ideograph.h: Regenerated.
52010         * lib/unictype/pr_uppercase.h: Regenerated.
52011         * lib/unictype/pr_xid_continue.h: Regenerated.
52012         * lib/unictype/pr_xid_start.h: Regenerated.
52013         * lib/unictype/pr_zero_width.h: Regenerated.
52014         * lib/unictype/scripts.h: Regenerated.
52015         * lib/unictype/scripts_byname.gperf: Regenerated.
52016         * lib/unictype/sy_java_ident.h: Regenerated.
52017         * lib/unilbrk/lbrkprop1.h: Regenerated.
52018         * lib/unilbrk/lbrkprop2.h: Regenerated.
52019         * tests/unictype/test-categ_C.c: Regenerated.
52020         * tests/unictype/test-categ_Cf.c: Regenerated.
52021         * tests/unictype/test-categ_Cn.c: Regenerated.
52022         * tests/unictype/test-categ_L.c: Regenerated.
52023         * tests/unictype/test-categ_Ll.c: Regenerated.
52024         * tests/unictype/test-categ_Lm.c: Regenerated.
52025         * tests/unictype/test-categ_Lo.c: Regenerated.
52026         * tests/unictype/test-categ_Lu.c: Regenerated.
52027         * tests/unictype/test-categ_M.c: Regenerated.
52028         * tests/unictype/test-categ_Mc.c: Regenerated.
52029         * tests/unictype/test-categ_Me.c: Regenerated.
52030         * tests/unictype/test-categ_Mn.c: Regenerated.
52031         * tests/unictype/test-categ_N.c: Regenerated.
52032         * tests/unictype/test-categ_Nd.c: Regenerated.
52033         * tests/unictype/test-categ_Nl.c: Regenerated.
52034         * tests/unictype/test-categ_No.c: Regenerated.
52035         * tests/unictype/test-categ_P.c: Regenerated.
52036         * tests/unictype/test-categ_Pd.c: Regenerated.
52037         * tests/unictype/test-categ_Pe.c: Regenerated.
52038         * tests/unictype/test-categ_Pf.c: Regenerated.
52039         * tests/unictype/test-categ_Pi.c: Regenerated.
52040         * tests/unictype/test-categ_Po.c: Regenerated.
52041         * tests/unictype/test-categ_Ps.c: Regenerated.
52042         * tests/unictype/test-categ_S.c: Regenerated.
52043         * tests/unictype/test-categ_Sk.c: Regenerated.
52044         * tests/unictype/test-categ_Sm.c: Regenerated.
52045         * tests/unictype/test-categ_So.c: Regenerated.
52046         * tests/unictype/test-ctype_alnum.c: Regenerated.
52047         * tests/unictype/test-ctype_alpha.c: Regenerated.
52048         * tests/unictype/test-ctype_graph.c: Regenerated.
52049         * tests/unictype/test-ctype_lower.c: Regenerated.
52050         * tests/unictype/test-ctype_print.c: Regenerated.
52051         * tests/unictype/test-ctype_punct.c: Regenerated.
52052         * tests/unictype/test-ctype_upper.c: Regenerated.
52053         * tests/unictype/test-decdigit.h: Regenerated.
52054         * tests/unictype/test-digit.h: Regenerated.
52055         * tests/unictype/test-numeric.h: Regenerated.
52056         * tests/unictype/test-pr_alphabetic.c: Regenerated.
52057         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
52058         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
52059         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
52060         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
52061         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
52062         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
52063         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
52064         * tests/unictype/test-pr_combining.c: Regenerated.
52065         * tests/unictype/test-pr_dash.c: Regenerated.
52066         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
52067         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
52068         * tests/unictype/test-pr_deprecated.c: Regenerated.
52069         * tests/unictype/test-pr_diacritic.c: Regenerated.
52070         * tests/unictype/test-pr_extender.c: Regenerated.
52071         * tests/unictype/test-pr_format_control.c: Regenerated.
52072         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
52073         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
52074         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
52075         * tests/unictype/test-pr_id_continue.c: Regenerated.
52076         * tests/unictype/test-pr_id_start.c: Regenerated.
52077         * tests/unictype/test-pr_ideographic.c: Regenerated.
52078         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
52079         * tests/unictype/test-pr_lowercase.c: Regenerated.
52080         * tests/unictype/test-pr_math.c: Regenerated.
52081         * tests/unictype/test-pr_numeric.c: Regenerated.
52082         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
52083         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
52084         Regenerated.
52085         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
52086         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
52087         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
52088         * tests/unictype/test-pr_other_math.c: Regenerated.
52089         * tests/unictype/test-pr_punctuation.c: Regenerated.
52090         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
52091         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
52092         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
52093         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
52094         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
52095         * tests/unictype/test-pr_uppercase.c: Regenerated.
52096         * tests/unictype/test-pr_xid_continue.c: Regenerated.
52097         * tests/unictype/test-pr_xid_start.c: Regenerated.
52098         * tests/unictype/test-pr_zero_width.c: Regenerated.
52099
52100         Update to Unicode 5.1.0.
52101         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
52102         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
52103         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
52104         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
52105         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
52106         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
52107         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
52108         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
52109         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
52110         (nonspacing_table_ind): Update.
52111         * tests/uniwidth/test-uc_width2.sh: Update expected result.
52112
52113         Update to Unicode 5.1.0.
52114         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
52115         code transform.
52116         * lib/uniname/uniname.c (unicode_character_name,
52117         unicode_name_character): Add the range 0x1Fxxx to the code transform.
52118         * lib/uniname/uninames.h: Regenerated.
52119         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
52120
52121 2009-02-07  Bruno Haible  <bruno@clisp.org>
52122
52123         Merge gen-ctype and gen-lbrk into a single program.
52124         * lib/gen-uni-tables.c: New file, incorporating
52125         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
52126         Add directory prefixes to the names of the generated files.
52127         * lib/unictype/gen-ctype.c: Remove file.
52128         * lib/unilbrk/gen-lbrk.c: Remove file.
52129         * modules/gen-uni-tables: New file.
52130         * modules/unictype/gen-ctype: Remove file.
52131         * modules/unilbrk/gen-lbrk: Remove file.
52132
52133 2009-02-07  Bruno Haible  <bruno@clisp.org>
52134
52135         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
52136
52137         New module 'unistr/u32-strcoll'.
52138         * modules/unistr/u32-strcoll: New file.
52139         * lib/unistr/u32-strcoll.c: New file.
52140
52141         New module 'unistr/u16-strcoll'.
52142         * modules/unistr/u16-strcoll: New file.
52143         * lib/unistr/u16-strcoll.c: New file.
52144
52145         New module 'unistr/u8-strcoll'.
52146         * modules/unistr/u8-strcoll: New file.
52147         * lib/unistr/u8-strcoll.c: New file.
52148         * lib/unistr/u-strcoll.h: New file.
52149
52150 2009-02-07  Bruno Haible  <bruno@clisp.org>
52151
52152         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
52153         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52154         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52155         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
52156         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
52157         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
52158
52159 2009-02-07  Bruno Haible  <bruno@clisp.org>
52160
52161         Make 64-bit clean.
52162         * lib/unictype/gen-ctype.c (output_predicate, output_category,
52163         output_combclass, output_bidi_category, output_decimal_digit,
52164         output_digit, output_numeric, output_mirror, output_scripts,
52165         output_ident_category): Use proper width specifier in format strings.
52166
52167 2009-02-07  Bruno Haible  <bruno@clisp.org>
52168
52169         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
52170         failure behaviour.
52171
52172 2009-02-07  Jim Meyering  <meyering@redhat.com>
52173
52174         regex: avoid compilation failure with upcoming gcc-4.4
52175         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
52176         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
52177         "... error: integer overflow in preprocessor expression".
52178
52179 2009-02-05  Ben Pfaff  <blp@gnu.org>
52180
52181         Fix link errors on Windows when close module is used.
52182         * modules/close: Add $(LIB_CLOSE) to Link section.
52183         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
52184         $(LIB_CLOSE) on Windows.
52185
52186 2009-02-05  Jim Meyering  <meyering@redhat.com>
52187
52188         still avoid unused-parameter warnings, but do it cleanly
52189         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
52190         (get_fs_usage): Cast to void instead.
52191         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
52192         (dev_from_mount_options, read_file_system_list): Cast to void.
52193         Prompted by Bruno Haible.
52194
52195 2009-02-04  Jim Meyering  <meyering@redhat.com>
52196
52197         fsusage.c: correct copyright year
52198         * lib/fsusage.c: Reflect year in which the change is pushed into
52199
52200         avoid misc. warnings
52201         * lib/fsusage.c (UNUSED_PARAM): Define.
52202         (get_fs_usage): Mark parameter "disk" as unused.
52203         * lib/getugroups.c (getgrent): Use "void" in prototype.
52204         * lib/mountlist.c: Mark unused parameters.
52205         (read_file_system_list): Declare a local with "const".
52206         * lib/nanosleep.c (getnow): Declare static.
52207         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
52208
52209         dirfd: set errno upon failure
52210         * lib/dirfd.c: Include <errno.h>.
52211         Set errno to ENOTSUP when returning -1.
52212         * modules/dirfd (Depends-on): Add errno.
52213         Suggested by John Kodis <kodis@comcast.net>.
52214
52215 2009-02-01  Bruno Haible  <bruno@clisp.org>
52216
52217         Don't assume sizeof (long) >= sizeof (void *).
52218         * lib/memcmp.c: Include stdint.h.
52219         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
52220         srcp2 to 'const byte *'.
52221         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
52222         types to uintptr_t.
52223         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
52224         * modules/memcmp (Depends-on): Add stdint.
52225         Reported by Ozkan Sezer <sezeroz@gmail.com>.
52226
52227 2009-01-30  Eric Blake  <ebb9@byu.net>
52228
52229         fix more require-before-expand issues
52230         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
52231         expand, AC_PROG_AWK.
52232         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
52233
52234 2009-01-28  Eric Blake  <ebb9@byu.net>
52235
52236         version-etc: use consistent URL formatting
52237         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
52238         Improve formatting.  Use fputs for string without %.
52239
52240 2009-01-28  Jim Meyering  <meyering@redhat.com>
52241
52242         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
52243         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
52244         "underquoted definition of NAME" from autoconf-2.59.
52245
52246 2009-01-28  Bruno Haible  <bruno@clisp.org>
52247
52248         * doc/gnulib.texi: Add "Obsolete modules" to index.
52249
52250 2009-01-28  Jim Meyering  <meyering@redhat.com>
52251
52252         useless-if-before-free: recognize more variants
52253         * build-aux/useless-if-before-free: Also recognize e.g.,
52254         if (NULL != p) free (p);
52255
52256 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
52257
52258         test-getaddrinfo: skip (don't fail) this test when there's no network
52259         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
52260         on the presumption that it means you lack network access.
52261
52262 2009-01-26  Jim Meyering  <meyering@redhat.com>
52263
52264         fflush: avoid warnings on modern systems
52265         * lib/fflush.c (rpl_fflush): Move declarations of locals,
52266         pos and result, into scopes where they're used.
52267
52268 2009-01-26  Eric Blake  <ebb9@byu.net>
52269
52270         Silence warning reintroduced by recent extensions patch.
52271         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
52272         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
52273         autoconf.
52274
52275         Backport improved autoconf semantics of AC_DEFUN_ONCE.
52276         * m4/00gnulib.m4: New file.
52277         * gnulib-tool (func_get_filelist): Always use it.
52278         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
52279         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
52280
52281 2009-01-25  Bruno Haible  <bruno@clisp.org>
52282
52283         Make test-quotearg work on MacOS X and AIX.
52284         * tests/test-quotearg.sh: New file.
52285         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
52286         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
52287         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
52288         include <libintl.h>.
52289         (fake_locale): Remove variable.
52290         (gettext, dgettext, dcgettext): Remove functions.
52291         (main): Instead of setting a fake locale, set a real locale. Call
52292         textdomain and bindtextdomain.
52293         * modules/quotearg-tests (Files): Add the new files.
52294         (Depends-on): Add gettext, setenv, unsetenv.
52295         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52296         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
52297         Augment TESTS_ENVIRONMENT.
52298
52299 2009-01-25  Bruno Haible  <bruno@clisp.org>
52300
52301         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
52302         fr_FR.ISO8859-1 locale on MacOS X.
52303         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
52304         ja_JP.eucJP locale on MacOS X.
52305         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
52306         zh_CN.GB18030 locale on MacOS X.
52307
52308 2009-01-25  Bruno Haible  <bruno@clisp.org>
52309
52310         Avoid link errors on MacOS X 10.3.
52311         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
52312         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
52313
52314 2009-01-25  Bruno Haible  <bruno@clisp.org>
52315
52316         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52317         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
52318         * modules/pipe (Files): Remove m4/posix_spawn.m4.
52319         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52320         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
52321         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52322         posix_spawnattr_init, posix_spawnattr_setsigmask,
52323         posix_spawnattr_setflags, posix_spawnattr_destroy.
52324
52325         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52326         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52327         * modules/execute (Files): Remove m4/posix_spawn.m4.
52328         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52329         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52330         posix_spawnattr_init, posix_spawnattr_setsigmask,
52331         posix_spawnattr_setflags, posix_spawnattr_destroy.
52332
52333 2009-01-25  Bruno Haible  <bruno@clisp.org>
52334
52335         * lib/glthread/threadlib.c: Include <stdlib.h>.
52336
52337 2009-01-25  Bruno Haible  <bruno@clisp.org>
52338
52339         * lib/glthread/threadlib.c (dummy): New declaration.
52340
52341 2009-01-25  Bruno Haible  <bruno@clisp.org>
52342
52343         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52344         multibyte characters also for the GB18030 encoding. Don't crash when
52345         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52346
52347 2009-01-25  Bruno Haible  <bruno@clisp.org>
52348
52349         Avoid redefining 'struct random_data' on OSF/1 5.1.
52350         * lib/stdlib.in.h: Include <random.h> if it exists.
52351         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52352         HAVE_RANDOM_H. Include <random.h> when testing whether
52353         'struct random_data' exists.
52354         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52355
52356 2009-01-25  Bruno Haible  <bruno@clisp.org>
52357
52358         Don't install charset.alias on MacOS X >= 10.3.
52359         * lib/localcharset.c (DARWIN7): New macro.
52360         (get_charset_aliases): Hardcode the result for Darwin7.
52361         * modules/localcharset (install-exec-local): Don't install
52362         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52363
52364 2009-01-25  Bruno Haible  <bruno@clisp.org>
52365
52366         Don't install charset.alias on mingw and Cygwin.
52367         * modules/localcharset (install-exec-local): Don't install
52368         charset.alias on mingw and Cygwin, if the file does not yet exist.
52369         The result for these platforms is hardcoded in localcharset.c.
52370
52371 2009-01-25  Bruno Haible  <bruno@clisp.org>
52372
52373         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52374         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52375         before requiring AC_USE_SYSTEM_EXTENSIONS.
52376
52377 2009-01-25  Jim Meyering  <meyering@redhat.com>
52378
52379         c-strtod: avoid warnings
52380         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52381         "assignment discards qualifiers from pointer target type" warnings.
52382
52383 2009-01-24  Bruno Haible  <bruno@clisp.org>
52384
52385         Add support for non-UTF-8 locales on MacOS X.
52386         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
52387         canonical encodings. For Darwin 7 and newer, don't map traditional
52388         encodings to UTF-8.
52389         Reported by Vincent Lefevre <vincent@vinc17.org>
52390         at <http://savannah.gnu.org/bugs/?25235>.
52391
52392 2009-01-24  Bruno Haible  <bruno@clisp.org>
52393
52394         * doc/gnulib.texi (Obsolete modules): New section.
52395         Reported by Mike Frysinger <vapier@gentoo.org>.
52396
52397 2009-01-24  Bruno Haible  <bruno@clisp.org>
52398
52399         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52400         (%.dvi): New rule.
52401
52402 2009-01-24  Bruno Haible  <bruno@clisp.org>
52403
52404         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52405         Reported by Eric Blake.
52406
52407 2009-01-24  Bruno Haible  <bruno@clisp.org>
52408
52409         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52410         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52411         Reported by Gary V. Vaughan <gary@gnu.org>.
52412
52413 2009-01-24  Bruno Haible  <bruno@clisp.org>
52414
52415         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52416
52417 2009-01-23  Bruno Haible  <bruno@clisp.org>
52418
52419         Make c-strtod, c-strtold usable in libraries.
52420         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52421         (C_STRTOD): Call strdup instead of xstrdup.
52422         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52423         * modules/c-strtold (Depends-on): Likewise.
52424         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52425         * NEWS: Mention the change.
52426         Reported by Michael Gold <mgold@ncf.ca>.
52427
52428 2009-01-23  Jim Meyering  <meyering@redhat.com>
52429
52430         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52431         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52432         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52433
52434 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52435
52436         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52437         GNU CoreUtils.
52438         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52439         * modules/version-etc (Description): Update.
52440
52441 2009-01-22  Bruno Haible  <bruno@clisp.org>
52442
52443         Cache the C locale object.
52444         * lib/c-strtod.c (c_locale_cache): New variable.
52445         (c_locale): New function.
52446         (C_STRTOD): Use it, and don't call freelocale.
52447         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52448         Suggested by Paolo Bonzini.
52449
52450 2009-01-21  Bruno Haible  <bruno@clisp.org>
52451
52452         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52453         conditions other than overflow.
52454
52455 2009-01-21  Bruno Haible  <bruno@clisp.org>
52456
52457         * lib/c-strtod.c: Include errno.h.
52458         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52459         value from STRTOD_L and STRTOD.
52460
52461 2009-01-21  Bruno Haible  <bruno@clisp.org>
52462         and Jim Meyering  <meyering@redhat.com>
52463
52464         nanosleep: skip configure test (fail it) for apple universal builds
52465         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52466         universal builds, assume that nanosleep does not work.
52467         * modules/nanosleep (Depends-on): Add multiarch.
52468
52469         mktime: skip configure test (fail it) for apple universal builds
52470         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52471         universal builds, assume that mktime does not work.
52472         * modules/mktime (Depends-on): Add multiarch.
52473
52474 2009-01-21  Eric Blake  <ebb9@byu.net>
52475
52476         multiarch: avoid expand-before-require warning
52477         * modules/multiarch (configure.ac): Require, rather than expand,
52478         gl_MULTIARCH.
52479         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
52480         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
52481         enforce that all clients require it.  Partial reversion of
52482         2008-12-29 patch.
52483
52484         error: avoid expand-before-require warning
52485         * modules/errno (configure.ac): Require, rather than expand,
52486         gl_HEADER_ERRNO_H.
52487         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
52488         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
52489         enforce that all clients require it.
52490
52491         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
52492         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
52493         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
52494         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
52495
52496 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
52497
52498         Revert:
52499         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52500
52501         regex: do not depend on obsolete modules.
52502         * modules/regex: Remove memcmp and memmove.
52503
52504 2009-01-20  Bruno Haible  <bruno@clisp.org>
52505
52506         Make the 'link' module link on Windows NT 4.
52507         * lib/link.c (_WIN32_WINNT): Don't define.
52508         (CreateHardLinkFuncType): New type.
52509         (CreateHardLinkFunc, initialized): New variables.
52510         (initialize): New function.
52511         (link): Invoke CreateHardLink indirectly through the function pointer.
52512
52513 2009-01-20  Bruno Haible  <bruno@clisp.org>
52514
52515         Fix compilation failure on mingw.
52516         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
52517
52518 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
52519
52520         * doc/c-strtod.texi: Mention a couple of restrictions.
52521
52522 2009-01-20  Jim Meyering  <meyering@redhat.com>
52523
52524         gettimeofday: move more declarations out of functions
52525         * lib/gettimeofday.c: Move extern declarations of tzset and
52526         gmtime out of containing functions.  Prompted by Bruno Haible.
52527
52528 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52529
52530         regex: do not depend on obsolete modules.
52531         * modules/regex: Remove memcmp and memmove.
52532
52533 2009-01-19  Bruno Haible  <bruno@clisp.org>
52534
52535         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52536         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
52537         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52538         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
52539         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
52540
52541 2009-01-19  Bruno Haible  <bruno@clisp.org>
52542
52543         * tests/test-link.c: Include <errno.h>.
52544         (main): Exit with code 77 when a hard link cannot be created due to
52545         the file system.
52546         * tests/test-link.sh: Skip test when a hard link cannot be created due
52547         to the file system.
52548         Suggested by Eric Blake.
52549
52550 2009-01-19  Martin Lambers  <marlam@marlam.de>
52551
52552         * modules/link-tests: New file.
52553         * tests/test-link.sh: New file.
52554         * tests/test-link.c: New file.
52555
52556 2009-01-19  Eric Blake  <ebb9@byu.net>
52557
52558         doc: mention another function added in cygwin 1.7.0
52559         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
52560         Another new function in cygwin 1.7.
52561
52562 2009-01-19  Bruno Haible  <bruno@clisp.org>
52563
52564         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52565         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
52566         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
52567         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52568         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
52569         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
52570         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
52571         * m4/md4.m4 (gl_MD4): Likewise.
52572         * m4/md5.m4 (gl_MD5): Likewise.
52573         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
52574         * m4/sha1.m4 (gl_SHA1): Likewise.
52575         * m4/sha256.m4 (gl_SHA256): Likewise.
52576         * m4/sha512.m4 (gl_SHA512): Likewise.
52577
52578 2009-01-19  Bruno Haible  <bruno@clisp.org>
52579
52580         * modules/uniname/uniname-tests (Depends-on): Add progname.
52581         * tests/uniname/test-uninames.c: Include progname.h.
52582         (main): Call set_program_name.
52583
52584         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
52585         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
52586         (main): Call set_program_name.
52587
52588         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
52589         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
52590         (main): Call set_program_name.
52591
52592         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
52593         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
52594         (main): Call set_program_name.
52595
52596         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
52597         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
52598         (main): Call set_program_name.
52599
52600         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
52601         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
52602         (main): Call set_program_name.
52603
52604         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
52605         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
52606         (main): Call set_program_name.
52607
52608         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
52609         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
52610         (main): Call set_program_name.
52611
52612         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
52613         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
52614         (main): Call set_program_name.
52615
52616 2009-01-19  Eric Blake  <ebb9@byu.net>
52617
52618         test-unistd: test previous patch
52619         * tests/test-unistd.c: Test *_FILENO macros.
52620
52621         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
52622         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52623         Guarantee a definition.
52624         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
52625         * modules/unistd-safer (Depends-on): Add dependency on unistd.
52626         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
52627         * lib/dup-safer.c (STDERR_FILENO): Likewise.
52628         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52629         Likewise.
52630         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
52631         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
52632         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52633         Likewise.
52634         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
52635         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
52636         (STDERR_FILENO): Likewise.
52637         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
52638         (STDERR_FILENO): Likewise.
52639         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
52640         (STDERR_FILENO): Likewise.
52641         Reported by Elbert Pol.
52642
52643 2009-01-19  Eric Blake  <ebb9@byu.net>
52644
52645         doc: mention more functions added in cygwin 1.7.0
52646         * doc/posix-functions/abort.texi (abort): Update wording related
52647         to cygwin.
52648         * doc/posix-functions/daylight.texi (daylight): Likewise.
52649         * doc/posix-functions/optarg.texi (optarg): Likewise.
52650         * doc/posix-functions/optarg.texi (opterr): Likewise.
52651         * doc/posix-functions/optarg.texi (optind): Likewise.
52652         * doc/posix-functions/optarg.texi (optopt): Likewise.
52653         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
52654         worked in 1.5.x, and was withdrawn in 1.7.
52655         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
52656         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
52657         cygwin versions.
52658         * doc/posix-functions/perror.texi (perror): Likewise.
52659         * doc/posix-functions/printf.texi (printf): Likewise.
52660         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
52661         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
52662         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
52663         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
52664         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
52665         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
52666         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52667         Likewise.
52668         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52669         Likewise.
52670         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
52671         this function.
52672         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
52673         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
52674         Likewise.
52675         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
52676         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
52677         * doc/posix-functions/confstr.texi (confstr): Likewise.
52678         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
52679         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
52680         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
52681         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
52682         * doc/posix-functions/fputws.texi (fputws): Likewise.
52683         * doc/posix-functions/fwide.texi (fwide): Likewise.
52684         * doc/posix-functions/getwc.texi (getwc): Likewise.
52685         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
52686         * doc/posix-functions/putwc.texi (putwc): Likewise.
52687         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
52688         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
52689         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
52690         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
52691         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
52692         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
52693         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
52694         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
52695         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
52696         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
52697         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
52698
52699 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52700
52701         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
52702         * lib/ioctl.c: Include <sys/ioctl.h>.
52703
52704 2009-01-19  Simon Josefsson  <simon@josefsson.org>
52705
52706         * modules/getdate-tests (Depends-on): Add progname.
52707         * tests/test-getdate.c: Use progname module, to avoid link errors
52708         on non-glibc systems.
52709
52710 2009-01-18  Simon Josefsson  <simon@josefsson.org>
52711
52712         * modules/filenamecat-tests (Depends-on): Add progname.
52713         * modules/fstrcmp-tests (Depends-on): Likewise.
52714
52715         * tests/test-filenamecat.c: Use progname module, to avoid link
52716         errors on non-glibc systems.
52717         * tests/test-fstrcmp.c: Likewise.
52718
52719 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52720
52721         gettimeofday: avoid warning: nested extern declaration of 'localtime'
52722         * lib/gettimeofday.c: Move extern declaration out of function.
52723
52724 2009-01-18  Bruno Haible  <bruno@clisp.org>
52725
52726         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
52727         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
52728         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
52729
52730 2009-01-18  Bruno Haible  <bruno@clisp.org>
52731
52732         * lib/strftime.c (MEMPCPY): Remove unused macro.
52733         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
52734
52735 2009-01-18  Martin Lambers  <marlam@marlam.de>
52736
52737         New module 'link'.
52738         * lib/unistd.in.h (link): New declaration.
52739         * lib/link.c: New file.
52740         * m4/link.m4: New file.
52741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
52742         HAVE_LINK.
52743         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
52744         * modules/link: New file.
52745         * doc/posix-functions/link.texi: Mention the new module.
52746
52747 2009-01-18  Bruno Haible  <bruno@clisp.org>
52748
52749         * tests/test-avltree_list.c (main): Call set_program_name.
52750         * tests/test-avltree_oset.c (main): Likewise.
52751         * tests/test-obstack-printf.c: Include progname.h.
52752         (main): Call set_program_name.
52753         * tests/test-quotearg.c: Include progname.h.
52754         (main): Call set_program_name.
52755         * tests/test-xmemdup0.c: Include progname.h.
52756         (main): Call set_program_name.
52757
52758 2009-01-18  Bruno Haible  <bruno@clisp.org>
52759
52760         New module 'alphasort'.
52761         * lib/dirent.in.h (alphasort): New declaration.
52762         * lib/alphasort.c: New file, from glibc with modifications.
52763         * m4/alphasort.m4: New file.
52764         * modules/alphasort: New file.
52765         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
52766         HAVE_ALPHASORT.
52767         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
52768         HAVE_ALPHASORT.
52769         * doc/posix-functions/alphasort.texi: Mention the new module and the
52770         portability problems.
52771
52772 2009-01-18  Bruno Haible  <bruno@clisp.org>
52773
52774         New module 'scandir'.
52775         * lib/dirent.in.h (scandir): New declaration.
52776         * lib/scandir.c: New file, from glibc with modifications.
52777         * m4/scandir.m4: New file.
52778         * modules/scandir: New file.
52779         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
52780         HAVE_SCANDIR.
52781         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
52782         HAVE_SCANDIR.
52783         * doc/posix-functions/scandir.texi: Mention the new module and the
52784         portability problems.
52785
52786 2009-01-17  Bruno Haible  <bruno@clisp.org>
52787
52788         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
52789         Update documentation.
52790         (func_remove_suffix): Escape all dots in the suffix. Update
52791         documentation.
52792         (func_filter_filelist): Update documentation.
52793         Reported by Ralf Wildenhues.
52794
52795 2009-01-17  Bruno Haible  <bruno@clisp.org>
52796
52797         * modules/dprintf-posix-tests: New file.
52798         * tests/test-dprintf-posix.sh: New file.
52799         * tests/test-dprintf-posix.c: New file.
52800
52801         New modules 'dprintf', 'dprintf-posix'.
52802         * lib/stdio.in.h (dprintf): New declaration.
52803         * lib/dprintf.c: New file.
52804         * m4/dprintf.m4: New file.
52805         * m4/dprintf-posix.m4: New file.
52806         * modules/dprintf: New file.
52807         * modules/dprintf-posix: New file.
52808         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
52809         HAVE_DPRINTF, REPLACE_DPRINTF.
52810         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
52811         HAVE_DPRINTF, REPLACE_DPRINTF.
52812         * doc/posix-functions/dprintf.texi: Mention the new modules.
52813
52814 2009-01-17  Bruno Haible  <bruno@clisp.org>
52815
52816         * modules/vdprintf-posix-tests: New file.
52817         * tests/test-vdprintf-posix.sh: New file.
52818         * tests/test-vdprintf-posix.c: New file.
52819
52820         New modules 'vdprintf', 'vdprintf-posix'.
52821         * lib/stdio.in.h (vdprintf): New declaration.
52822         * lib/vdprintf.c: New file.
52823         * m4/vdprintf.m4: New file.
52824         * m4/vdprintf-posix.m4: New file.
52825         * modules/vdprintf: New file.
52826         * modules/vdprintf-posix: New file.
52827         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
52828         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52829         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
52830         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52831         * doc/posix-functions/vdprintf.texi: Mention the new modules.
52832
52833 2009-01-17  Bruno Haible  <bruno@clisp.org>
52834
52835         Fix replacement of fopen on mingw.
52836         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
52837         mingw.
52838
52839 2009-01-17  Bruno Haible  <bruno@clisp.org>
52840
52841         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
52842         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
52843
52844 2009-01-17  Bruno Haible  <bruno@clisp.org>
52845
52846         Avoid test-fflush2.sh failure on mingw.
52847         * tests/test-fflush2.c: Include binary-io.h.
52848         (main): Put standard input into binary mode.
52849         * modules/fflush-tests (Depends-on): Add binary-io.
52850
52851 2009-01-17  Bruno Haible  <bruno@clisp.org>
52852
52853         * lib/wchar.in.h: In another particular situation, include only the
52854         system's <wchar.h> file.
52855         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
52856         Reported by Albert Chin-A-Young <china@thewrittenword.com>
52857         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
52858
52859 2009-01-17  Bruno Haible  <bruno@clisp.org>
52860
52861         Support for stripping executables in --enable-relocatable.
52862         * build-aux/install-reloc: Expect one more argument, or an environment
52863         variable RELOC_STRIP_PROG. If set, strip the destination program and
52864         its wrapper.
52865         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
52866         RELOC_STRIP_PROG.
52867         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
52868         to set RELOCATABLE_STRIP.
52869         * NEWS: Mention the new Makefile requirement.
52870
52871 2009-01-17  Bruno Haible  <bruno@clisp.org>
52872
52873         * build-aux/install-reloc: Remove debugging information left over by
52874         C compiler on MacOS X.
52875
52876 2009-01-17  Bruno Haible  <bruno@clisp.org>
52877
52878         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
52879         * lib/progreloc.c (find_executable): Fix type of pointer passed to
52880         _NSGetExecutablePath.
52881
52882 2009-01-16  Jim Meyering  <meyering@redhat.com>
52883
52884         strerror: avoid warnings about discarding "const"
52885         * lib/strerror.c (rpl_strerror): Instead of returning a const
52886         string from each and every "case", use a variable, and add a single
52887         cast after the switch.
52888
52889 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
52890
52891         * lib/arpa_inet.in.h: Add extern "C" block for C++.
52892
52893 2009-01-16  Bruno Haible  <bruno@clisp.org>
52894
52895         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
52896         array initializer syntax that also works in C++ mode.
52897         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52898
52899 2009-01-16  Jim Meyering  <meyering@redhat.com>
52900
52901         poll: suppress a warning
52902         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
52903         to ignore "...unsigned expression < 0 is always false" warnings.
52904
52905 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
52906
52907         poll: remove declarations of unused variables
52908         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
52909         sockbuf and optlen.
52910
52911 2009-01-15  Bruno Haible  <bruno@clisp.org>
52912
52913         Make fflush-after-ungetc POSIX compliant on BSD systems.
52914         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
52915         (clear_ungetc_buffer): Implement also for other systems.
52916         (rpl_fflush): On glibc systems, invoke
52917         clear_ungetc_buffer_preserving_position. Otherwise, invoke
52918         clear_ungetc_buffer after fetching the stream's position, not before.
52919
52920 2009-01-15  Bruno Haible  <bruno@clisp.org>
52921
52922         Make fflush-after-ungetc POSIX compliant on glibc systems.
52923         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
52924         after ungetc.
52925         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
52926         (rpl_fflush): On glibc systems, simply call the system's fflush
52927         function after clearing the ungetc buffer.
52928         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
52929         Instead, lseek only to the end of file, then use the system's fseeko
52930         for the rest. On glibc systems, reset the EOF indicator bit.
52931
52932 2009-01-15  Jim Meyering  <meyering@redhat.com>
52933
52934         openmp.m4: revert quote-adding change, for portability to older autoconf
52935         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
52936         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
52937         Simon Josefsson noticed the problem when using autoconf-2.61.
52938
52939 2009-01-15  Bruno Haible  <bruno@clisp.org>
52940
52941         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
52942         * tests/test-fflush2.c (ASSERT): Always fail.
52943         (main): Add two tests for fflush() after ungetc(), taking into account
52944         the Austin Group's clarification.
52945         Suggested by Eric Blake.
52946
52947 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
52948
52949         mktime.m4: remove K&R-style function prototypes
52950         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
52951         for the Sun C++ compiler.
52952
52953 2009-01-14  Bruno Haible  <bruno@clisp.org>
52954
52955         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
52956         while including <wchar.h>.
52957         * lib/wchar.in.h: In two particular situations on HP-UX, include only
52958         the system's <wchar.h> file.
52959         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52960
52961 2009-01-14  Bruno Haible  <bruno@clisp.org>
52962
52963         * m4/csharp.m4: Don't mention gettext on the serial number line.
52964         * m4/csharpexec.m4: Likewise.
52965         * m4/eaccess.m4: Likewise.
52966         * m4/javaexec.m4: Likewise.
52967         * m4/sig_atomic_t.m4: Likewise.
52968         * m4/tmpdir.m4: Likewise.
52969         * m4/intldir.m4: Bump gettext version.
52970         * m4/lib-ld.m4: Likewise.
52971
52972 2009-01-14  Bruno Haible  <bruno@clisp.org>
52973
52974         * lib/progname.c (set_program_name): Add more comments.
52975         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
52976
52977 2009-01-14  Simon Josefsson  <simon@josefsson.org>
52978
52979         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
52980         were sys/stat.h does not define it.
52981
52982 2009-01-14  Jim Meyering  <meyering@redhat.com>
52983
52984         many *.m4 files: improve m4 quoting
52985         99% of this change was performed by running the following commands:
52986         git ls-files | grep '\.m4$' | xargs perl -pi \
52987           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
52988           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52989           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52990           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
52991         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
52992         The remainder were to add Copyright dates, increment serial numbers,
52993         undo some changes in comments, exclude m4/intl.m4, and add quotes
52994         around the "1" in ",1" where the unusual spacing prohibited the
52995         above regexps from doing the job.  For more details, see
52996         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
52997         * m4/acl.m4: Modified.
52998         * m4/afs.m4: Likewise.
52999         * m4/alloca.m4: Likewise.
53000         * m4/argp.m4: Likewise.
53001         * m4/argz.m4: Likewise.
53002         * m4/atexit.m4: Likewise.
53003         * m4/bison-i18n.m4: Likewise.
53004         * m4/bison.m4: Likewise.
53005         * m4/byteswap.m4: Likewise.
53006         * m4/c-stack.m4: Likewise.
53007         * m4/c-strtod.m4: Likewise.
53008         * m4/calloc.m4: Likewise.
53009         * m4/canonicalize-lgpl.m4: Likewise.
53010         * m4/chown.m4: Likewise.
53011         * m4/clock_time.m4: Likewise.
53012         * m4/codeset.m4: Likewise.
53013         * m4/copy-file.m4: Likewise.
53014         * m4/csharp.m4: Likewise.
53015         * m4/csharpcomp.m4: Likewise.
53016         * m4/csharpexec.m4: Likewise.
53017         * m4/d-ino.m4: Likewise.
53018         * m4/d-type.m4: Likewise.
53019         * m4/dirfd.m4: Likewise.
53020         * m4/double-slash-root.m4: Likewise.
53021         * m4/eaccess.m4: Likewise.
53022         * m4/eealloc.m4: Likewise.
53023         * m4/environ.m4: Likewise.
53024         * m4/errno_h.m4: Likewise.
53025         * m4/euidaccess.m4: Likewise.
53026         * m4/execute.m4: Likewise.
53027         * m4/fatal-signal.m4: Likewise.
53028         * m4/fchdir.m4: Likewise.
53029         * m4/fcntl_h.m4: Likewise.
53030         * m4/fileblocks.m4: Likewise.
53031         * m4/filenamecat.m4: Likewise.
53032         * m4/findprog.m4: Likewise.
53033         * m4/flexmember.m4: Likewise.
53034         * m4/fnmatch.m4: Likewise.
53035         * m4/fopen.m4: Likewise.
53036         * m4/fpending.m4: Likewise.
53037         * m4/fprintf-posix.m4: Likewise.
53038         * m4/free.m4: Likewise.
53039         * m4/frexp.m4: Likewise.
53040         * m4/frexpl.m4: Likewise.
53041         * m4/fsusage.m4: Likewise.
53042         * m4/ftruncate.m4: Likewise.
53043         * m4/gc-camellia.m4: Likewise.
53044         * m4/gc-random.m4: Likewise.
53045         * m4/gc.m4: Likewise.
53046         * m4/getaddrinfo.m4: Likewise.
53047         * m4/getcwd-abort-bug.m4: Likewise.
53048         * m4/getcwd-path-max.m4: Likewise.
53049         * m4/getdate.m4: Likewise.
53050         * m4/getdomainname.m4: Likewise.
53051         * m4/getgroups.m4: Likewise.
53052         * m4/gethostname.m4: Likewise.
53053         * m4/gethrxtime.m4: Likewise.
53054         * m4/getline.m4: Likewise.
53055         * m4/getloadavg.m4: Likewise.
53056         * m4/getndelim2.m4: Likewise.
53057         * m4/getpass.m4: Likewise.
53058         * m4/gettext.m4: Likewise.
53059         * m4/gettime.m4: Likewise.
53060         * m4/gettimeofday.m4: Likewise.
53061         * m4/gnulib-common.m4: Likewise.
53062         * m4/group-member.m4: Likewise.
53063         * m4/host-os.m4: Likewise.
53064         * m4/iconv.m4: Likewise.
53065         * m4/iconv_open.m4: Likewise.
53066         * m4/inet_ntop.m4: Likewise.
53067         * m4/inet_pton.m4: Likewise.
53068         * m4/inline.m4: Likewise.
53069         * m4/intldir.m4: Likewise.
53070         * m4/intlmacosx.m4: Likewise.
53071         * m4/intmax.m4: Likewise.
53072         * m4/intmax_t.m4: Likewise.
53073         * m4/inttypes.m4: Likewise.
53074         * m4/inttypes_h.m4: Likewise.
53075         * m4/inttypes-pri.m4: Likewise.
53076         * m4/isapipe.m4: Likewise.
53077         * m4/isnand.m4: Likewise.
53078         * m4/isnanf.m4: Likewise.
53079         * m4/isnanl.m4: Likewise.
53080         * m4/javacomp.m4: Likewise.
53081         * m4/javaexec.m4: Likewise.
53082         * m4/jm-winsz1.m4: Likewise.
53083         * m4/jm-winsz2.m4: Likewise.
53084         * m4/lchown.m4: Likewise.
53085         * m4/lcmessage.m4: Likewise.
53086         * m4/ldexpl.m4: Likewise.
53087         * m4/lib-ld.m4: Likewise.
53088         * m4/lib-link.m4: Likewise.
53089         * m4/libsigsegv.m4: Likewise.
53090         * m4/link-follow.m4: Likewise.
53091         * m4/localcharset.m4: Likewise.
53092         * m4/locale-fr.m4: Likewise.
53093         * m4/locale-ja.m4: Likewise.
53094         * m4/locale-tr.m4: Likewise.
53095         * m4/locale-zh.m4: Likewise.
53096         * m4/lock.m4: Likewise.
53097         * m4/longlong.m4: Likewise.
53098         * m4/ls-mntd-fs.m4: Likewise.
53099         * m4/lstat.m4: Likewise.
53100         * m4/malloc.m4: Likewise.
53101         * m4/mathl.m4: Likewise.
53102         * m4/mbrtowc.m4: Likewise.
53103         * m4/mbstate_t.m4: Likewise.
53104         * m4/mbswidth.m4: Likewise.
53105         * m4/memchr.m4: Likewise.
53106         * m4/memcmp.m4: Likewise.
53107         * m4/memcpy.m4: Likewise.
53108         * m4/memmem.m4: Likewise.
53109         * m4/memmove.m4: Likewise.
53110         * m4/mempcpy.m4: Likewise.
53111         * m4/memrchr.m4: Likewise.
53112         * m4/memset.m4: Likewise.
53113         * m4/minmax.m4: Likewise.
53114         * m4/mkdir-slash.m4: Likewise.
53115         * m4/mkdtemp.m4: Likewise.
53116         * m4/mktime.m4: Likewise.
53117         * m4/mmap-anon.m4: Likewise.
53118         * m4/mountlist.m4: Likewise.
53119         * m4/nanosleep.m4: Likewise.
53120         * m4/nls.m4: Likewise.
53121         * m4/nocrash.m4: Likewise.
53122         * m4/open.m4: Likewise.
53123         * m4/openat.m4: Likewise.
53124         * m4/openmp.m4: Likewise.
53125         * m4/pathmax.m4: Likewise.
53126         * m4/perl.m4: Likewise.
53127         * m4/physmem.m4: Likewise.
53128         * m4/pipe.m4: Likewise.
53129         * m4/po.m4: Likewise.
53130         * m4/poll.m4: Likewise.
53131         * m4/posixtm.m4: Likewise.
53132         * m4/posixver.m4: Likewise.
53133         * m4/printf-frexp.m4: Likewise.
53134         * m4/printf-frexpl.m4: Likewise.
53135         * m4/printf-posix.m4: Likewise.
53136         * m4/printf-posix-rpl.m4: Likewise.
53137         * m4/printf.m4: Likewise.
53138         * m4/progtest.m4: Likewise.
53139         * m4/putenv.m4: Likewise.
53140         * m4/readline.m4: Likewise.
53141         * m4/readlink.m4: Likewise.
53142         * m4/readutmp.m4: Likewise.
53143         * m4/realloc.m4: Likewise.
53144         * m4/regex.m4: Likewise.
53145         * m4/relocatable.m4: Likewise.
53146         * m4/relocatable-lib.m4: Likewise.
53147         * m4/rename-dest-slash.m4: Likewise.
53148         * m4/rename.m4: Likewise.
53149         * m4/rmdir-errno.m4: Likewise.
53150         * m4/rmdir.m4: Likewise.
53151         * m4/roundf.m4: Likewise.
53152         * m4/roundl.m4: Likewise.
53153         * m4/rpmatch.m4: Likewise.
53154         * m4/save-cwd.m4: Likewise.
53155         * m4/selinux-selinux-h.m4: Likewise.
53156         * m4/setenv.m4: Likewise.
53157         * m4/settime.m4: Likewise.
53158         * m4/sig2str.m4: Likewise.
53159         * m4/sig_atomic_t.m4: Likewise.
53160         * m4/signalblocking.m4: Likewise.
53161         * m4/signbit.m4: Likewise.
53162         * m4/sigpipe.m4: Likewise.
53163         * m4/sockets.m4: Likewise.
53164         * m4/sockpfaf.m4: Likewise.
53165         * m4/st_dm_mode.m4: Likewise.
53166         * m4/stat-time.m4: Likewise.
53167         * m4/stdbool.m4: Likewise.
53168         * m4/stdint.m4: Likewise.
53169         * m4/stdint_h.m4: Likewise.
53170         * m4/stpcpy.m4: Likewise.
53171         * m4/stpncpy.m4: Likewise.
53172         * m4/strcase.m4: Likewise.
53173         * m4/strchrnul.m4: Likewise.
53174         * m4/strcspn.m4: Likewise.
53175         * m4/strdup.m4: Likewise.
53176         * m4/strftime.m4: Likewise.
53177         * m4/strndup.m4: Likewise.
53178         * m4/strnlen.m4: Likewise.
53179         * m4/strpbrk.m4: Likewise.
53180         * m4/strptime.m4: Likewise.
53181         * m4/strsep.m4: Likewise.
53182         * m4/strtod.m4: Likewise.
53183         * m4/strtoimax.m4: Likewise.
53184         * m4/strtok_r.m4: Likewise.
53185         * m4/strtol.m4: Likewise.
53186         * m4/strtoll.m4: Likewise.
53187         * m4/strtoul.m4: Likewise.
53188         * m4/strtoull.m4: Likewise.
53189         * m4/strtoumax.m4: Likewise.
53190         * m4/strverscmp.m4: Likewise.
53191         * m4/threadlib.m4: Likewise.
53192         * m4/timegm.m4: Likewise.
53193         * m4/tm_gmtoff.m4: Likewise.
53194         * m4/tmpdir.m4: Likewise.
53195         * m4/tmpfile.m4: Likewise.
53196         * m4/tzset.m4: Likewise.
53197         * m4/uintmax_t.m4: Likewise.
53198         * m4/unlinkdir.m4: Likewise.
53199         * m4/unlocked-io.m4: Likewise.
53200         * m4/uptime.m4: Likewise.
53201         * m4/userspec.m4: Likewise.
53202         * m4/utimbuf.m4: Likewise.
53203         * m4/utime.m4: Likewise.
53204         * m4/utimes-null.m4: Likewise.
53205         * m4/utimes.m4: Likewise.
53206         * m4/vararrays.m4: Likewise.
53207         * m4/vasnprintf.m4: Likewise.
53208         * m4/vfprintf-posix.m4: Likewise.
53209         * m4/vprintf-posix.m4: Likewise.
53210         * m4/wait-process.m4: Likewise.
53211         * m4/wchar_t.m4: Likewise.
53212         * m4/wint_t.m4: Likewise.
53213         * m4/write-any-file.m4: Likewise.
53214         * m4/yield.m4: Likewise.
53215
53216 2009-01-13  Bruno Haible  <bruno@clisp.org>
53217
53218         Avoid test-copy-file.sh failures when ACL support insufficient.
53219         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
53220         TESTS_ENVIRONMENT.
53221         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
53222         Reported by Jim Meyering.
53223
53224 2009-01-13  Bruno Haible  <bruno@clisp.org>
53225
53226         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
53227         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
53228         * modules/unistdio/u8-printf-parse (Files): Likewise.
53229         * modules/unistdio/u32-printf-parse (Files): Likewise.
53230         * modules/unistdio/ulc-printf-parse (Files): Likewise.
53231
53232 2009-01-13  Simon Josefsson  <simon@josefsson.org>
53233
53234         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
53235         and m4/inttypes_h.m4 too.
53236
53237 2009-01-12  Eric Blake  <ebb9@byu.net>
53238
53239         tests: IRIX 6.2 cc can't compile -0.0 into .data
53240         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
53241         rather than at compile-time.
53242         * tests/test-floorl.c (minus_zero): Likewise.
53243         * tests/test-frexpl.c (minus_zero): Likewise.
53244         * tests/test-isnan.c (minus_zerol): Likewise.
53245         * tests/test-isnanl.h (minus_zero): Likewise.
53246         * tests/test-ldexpl.c (minus_zero): Likewise.
53247         * tests/test-roundl.c (minus_zero): Likewise.
53248         * tests/test-signbit.c (minus_zerol): Likewise.
53249         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53250         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53251         * tests/test-truncl.c (minus_zero): Likewise.
53252         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53253         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53254         Reported by Tom G. Christensen and Nelson H. F. Beebe.
53255
53256 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53257
53258         regex: fix glibc bug 9697
53259         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
53260         handling.
53261
53262 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53263
53264         regex: fix glibc bug 697
53265         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
53266         being NULL also if there are no backreferences.
53267
53268 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53269
53270         regex: merge glibc changes
53271         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
53272         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
53273         re_string_skip_chars, re_string_reconstruct): Likewise.
53274         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
53275
53276 2009-01-07  Jim Meyering  <meyering@redhat.com>
53277
53278         poll: filter through cppi
53279         * lib/poll.c: Indent cpp directives to reflect nesting.
53280
53281 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
53282
53283         poll: don't return uninitialized
53284         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
53285
53286 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
53287
53288         avoid compile failure on AIX 6.1
53289         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
53290         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
53291
53292 2009-01-04  Jim Meyering  <meyering@redhat.com>
53293
53294         remove duplicate inclusion of <stdio.h>
53295         * tests/test-fprintf-posix.c: Likewise.
53296         * tests/test-printf-posix.c: Likewise.
53297         * tests/test-snprintf-posix.c: Likewise.
53298         * tests/test-sprintf-posix.c: Likewise.
53299         * tests/test-vasprintf-posix.c: Likewise.
53300         * tests/test-vfprintf-posix.c: Likewise.
53301         * tests/test-vprintf-posix.c: Likewise.
53302         * tests/test-vsnprintf-posix.c: Likewise.
53303         * tests/test-vsprintf-posix.c: Likewise.
53304
53305 2009-01-03  Jim Meyering  <meyering@redhat.com>
53306
53307         gnulib-tool: fix sed-based filtering
53308         * gnulib-tool (func_filter_filelist): Remove extra backslash
53309         in sed_fff_filter definition.
53310
53311 2009-01-02  Jim Meyering  <meyering@redhat.com>
53312
53313         strftime: avoid compilation failure on Solaris 2.6
53314         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
53315         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
53316         Don't #define mbrlen or mbsinit, since now they're guaranteed to
53317         be available.  Reported by Tom G. Christensen.  Details in
53318         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
53319
53320 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53321             Bruno Haible  <bruno@clisp.org>
53322
53323         Speed up gnulib-tool by doing more string processing through shell
53324         built-ins.
53325         * gnulib-tool (fast_func_append): New variable.
53326         (func_remove_prefix, func_remove_suffix): New functions.
53327         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53328         (func_filter_filelist): New function.
53329         (func_get_dependencies): Use func_remove_suffix instead of sed.
53330         (func_get_automake_snippet): Use func_filter_filelist instead of a
53331         subshell and sed invocation.
53332
53333 2009-01-01  Bruno Haible  <bruno@clisp.org>
53334
53335         Fix a security bug.
53336         * gnulib-tool (func_import, import, update): Don't allow the characters
53337         '"', '$', '`', '\' in macro arguments that become part of commands that
53338         are evaluated.
53339
53340 2009-01-01  Bruno Haible  <bruno@clisp.org>
53341
53342         * gnulib-tool (func_reset_sigpipe): Add more comments.
53343
53344 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53345
53346         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53347         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53348         already know the answer.
53349
53350 2009-01-01  Jim Meyering  <meyering@redhat.com>
53351
53352         * lib/version-etc.c (version_etc_va): Update copyright year.
53353
53354 2008-12-30  Bruno Haible  <bruno@clisp.org>
53355
53356         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53357         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53358         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53359
53360 2008-12-29  Eric Blake  <ebb9@byu.net>
53361
53362         multiarch: avoid autoconf AC_REQUIRE bug
53363         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53364         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53365         2.63 and older.
53366         Reported by Bruno Haible, and analyzed in
53367         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53368
53369 2008-12-29  Bruno Haible  <bruno@clisp.org>
53370
53371         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53372         files in subdirectories correctly.
53373         Reported by Ralf Wildenhues.
53374
53375 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53376
53377         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53378         rather than 'join FILE -', for Solaris join.
53379
53380 2008-12-29  Bruno Haible  <bruno@clisp.org>
53381
53382         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53383         quoting.
53384         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53385         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53386         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53387         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
53388         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53389         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
53390         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
53391         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
53392         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53393         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53394         * m4/nls.m4 (AM_NLS): Likewise.
53395         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53396         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53397         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53398         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53399         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53400         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53401         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53402         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53403         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53404         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53405         * m4/xsize.m4 (gl_XSIZE): Likewise.
53406         Suggested by Jim Meyering.
53407
53408 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53409
53410         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53411         * lib/parse-duration.c: use a switch instead of cascading if's.
53412
53413 2008-12-29  Eric Blake  <ebb9@byu.net>
53414
53415         wchar.h: supply WEOF on Irix 5.3
53416         * lib/wchar.in.h (wint_t): Also supply WEOF.
53417         * lib/wctype.in.h (wint_t): Likewise.
53418         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53419         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53420         Reported by Tom G. Christensen.
53421
53422 2008-12-26  Bruno Haible  <bruno@clisp.org>
53423
53424         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53425         i486, i586, i686.
53426
53427 2008-12-26  Bruno Haible  <bruno@clisp.org>
53428
53429         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53430
53431 2008-12-26  Bruno Haible  <bruno@clisp.org>
53432
53433         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53434         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53435         not __STDC_CONSTANT_MACROS.
53436         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53437
53438 2008-12-25  Bruno Haible  <bruno@clisp.org>
53439
53440         Add support for universal builds to vasnprintf.
53441         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53442         universal builds, guess no.
53443         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53444         * modules/vasprintf-posix (Depends-on): Likewise.
53445         * modules/fprintf-posix (Depends-on): Likewise.
53446         * modules/vfprintf-posix (Depends-on): Likewise.
53447         * modules/snprintf-posix (Depends-on): Likewise.
53448         * modules/vsnprintf-posix (Depends-on): Likewise.
53449         * modules/sprintf-posix (Depends-on): Likewise.
53450         * modules/vsprintf-posix (Depends-on): Likewise.
53451         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53452         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53453         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53454         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53455         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53456         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53457         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53458
53459         Add support for universal builds to <inttypes.h>.
53460         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53461         _SCNu64_PREFIX): In Apple
53462         universal builds, define directly, using _LP64.
53463         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53464         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53465         * modules/inttypes (Depends-on): Add multiarch.
53466         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53467
53468         Add support for universal builds to <stdint.h>.
53469         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53470         universal builds, define directly, using _LP64.
53471         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53472         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53473         and size_t.
53474         * modules/stdint (Depends-on): Add multiarch.
53475         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53476
53477         New module 'multiarch'.
53478         * modules/multiarch: New file.
53479         * m4/multiarch.m4: New file.
53480
53481 2008-12-25  Bruno Haible  <bruno@clisp.org>
53482
53483         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
53484
53485 2008-12-25  Bruno Haible  <bruno@clisp.org>
53486
53487         * modules/btowc (License): Relicense under LGPLv2+.
53488         * modules/mbsinit (License): Likewise.
53489         * modules/mbrtowc (License): Likewise.
53490         * modules/wcrtomb (License): Likewise.
53491         * modules/streq (License): Likewise.
53492         Reported by David Lutterkort <lutter@redhat.com>.
53493
53494 2008-12-23  Bruno Haible  <bruno@clisp.org>
53495
53496         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
53497
53498 2008-12-23  Bruno Haible  <bruno@clisp.org>
53499
53500         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
53501         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
53502         GETADDRINFO_LIB, not in LIBS.
53503         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
53504         * modules/canon-host (Link): Likewise.
53505         * NEWS: Mention the change.
53506         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
53507         GETADDRINFO_LIB.
53508
53509 2008-12-22  Bruno Haible  <bruno@clisp.org>
53510
53511         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
53512         * doc/posix-functions/iswalpha_l.texi: Likewise.
53513         * doc/posix-functions/iswblank_l.texi: Likewise.
53514         * doc/posix-functions/iswcntrl_l.texi: Likewise.
53515         * doc/posix-functions/iswctype_l.texi: Likewise.
53516         * doc/posix-functions/iswdigit_l.texi: Likewise.
53517         * doc/posix-functions/iswgraph_l.texi: Likewise.
53518         * doc/posix-functions/iswlower_l.texi: Likewise.
53519         * doc/posix-functions/iswprint_l.texi: Likewise.
53520         * doc/posix-functions/iswpunct_l.texi: Likewise.
53521         * doc/posix-functions/iswspace_l.texi: Likewise.
53522         * doc/posix-functions/iswupper_l.texi: Likewise.
53523         * doc/posix-functions/iswxdigit_l.texi: Likewise.
53524         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
53525         * doc/posix-functions/open_wmemstream.texi: Likewise.
53526         * doc/posix-functions/swscanf.texi: Likewise.
53527         * doc/posix-functions/towctrans_l.texi: Likewise.
53528         * doc/posix-functions/towlower.texi: Likewise.
53529         * doc/posix-functions/towlower_l.texi: Likewise.
53530         * doc/posix-functions/towupper.texi: Likewise.
53531         * doc/posix-functions/towupper_l.texi: Likewise.
53532         * doc/posix-functions/vfwprintf.texi: Likewise.
53533         * doc/posix-functions/vfwscanf.texi: Likewise.
53534         * doc/posix-functions/vswscanf.texi: Likewise.
53535         * doc/posix-functions/vwprintf.texi: Likewise.
53536         * doc/posix-functions/vwscanf.texi: Likewise.
53537         * doc/posix-functions/wcpcpy.texi: Likewise.
53538         * doc/posix-functions/wcpncpy.texi: Likewise.
53539         * doc/posix-functions/wcscasecmp.texi: Likewise.
53540         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
53541         * doc/posix-functions/wcscoll_l.texi: Likewise.
53542         * doc/posix-functions/wcsdup.texi: Likewise.
53543         * doc/posix-functions/wcsncasecmp.texi: Likewise.
53544         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
53545         * doc/posix-functions/wcsnlen.texi: Likewise.
53546         * doc/posix-functions/wcsnrtombs.texi: Likewise.
53547         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
53548         * doc/posix-functions/wctrans_l.texi: Likewise.
53549         * doc/posix-functions/wctype_l.texi: Likewise.
53550         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
53551         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
53552         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
53553         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
53554         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
53555         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
53556         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
53557         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
53558         * doc/glibc-functions/wcschrnul.texi: Likewise.
53559         * doc/glibc-functions/wcsftime_l.texi: Likewise.
53560         * doc/glibc-functions/wcstod_l.texi: Likewise.
53561         * doc/glibc-functions/wcstof_l.texi: Likewise.
53562         * doc/glibc-functions/wcstol_l.texi: Likewise.
53563         * doc/glibc-functions/wcstold_l.texi: Likewise.
53564         * doc/glibc-functions/wcstoll_l.texi: Likewise.
53565         * doc/glibc-functions/wcstoq.texi: Likewise.
53566         * doc/glibc-functions/wcstoul_l.texi: Likewise.
53567         * doc/glibc-functions/wcstoull_l.texi: Likewise.
53568         * doc/glibc-functions/wcstouq.texi: Likewise.
53569         * doc/glibc-functions/wmempcpy.texi: Likewise.
53570
53571 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
53572             Eric Blake  <ebb9@byu.net>
53573             Paolo Bonzini  <bonzini@gnu.org>
53574             Bruno Haible  <bruno@clisp.org>
53575
53576         Make c-stack work on Haiku.
53577         * lib/c-stack.c (SA_ONSTACK): Define fallback.
53578         (c_stack_action): Use SA_ONSTACK flag.
53579
53580 2008-12-22  Bruno Haible  <bruno@clisp.org>
53581
53582         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
53583
53584 2008-12-22  Bruno Haible  <bruno@clisp.org>
53585
53586         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
53587         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
53588         being overridden.
53589         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
53590         New macros.
53591         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
53592         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
53593         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
53594         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
53595
53596 2008-12-22  Bruno Haible  <bruno@clisp.org>
53597
53598         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
53599         from test code.
53600
53601 2008-12-22  Eric Blake  <ebb9@byu.net>
53602
53603         Avoid gcc warnings on cygwin.
53604         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
53605         Avoid unused variable.
53606         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
53607         Likewise.
53608
53609 2008-12-22  Bruno Haible  <bruno@clisp.org>
53610
53611         Remove HAVE_MBRTOWC conditionals.
53612         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
53613         (mbscasecmp): Assume mbrtowc function.
53614         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
53615         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
53616         * lib/mbschr.c: Include mbuiter.h unconditionally.
53617         (mbschr): Assume mbrtowc function.
53618         * lib/mbscspn.c: Include mbuiter.h unconditionally.
53619         (mbscspn): Assume mbrtowc function.
53620         * lib/mbslen.c: Include mbuiter.h unconditionally.
53621         (mbslen): Assume mbrtowc function.
53622         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
53623         (mbsncasecmp): Assume mbrtowc function.
53624         * lib/mbsnlen.c: Include mbiter.h unconditionally.
53625         (mbsnlen): Assume mbrtowc function.
53626         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
53627         (mbspbrk): Assume mbrtowc function.
53628         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
53629         (mbspcasecmp): Assume mbrtowc function.
53630         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
53631         (mbsrchr): Assume mbrtowc function.
53632         * lib/mbssep.c: Include mbuiter.h unconditionally.
53633         (mbssep): Assume mbrtowc function.
53634         * lib/mbsspn.c: Include mbuiter.h unconditionally.
53635         (mbsspn): Assume mbrtowc function.
53636         * lib/mbsstr.c: Include mbuiter.h unconditionally.
53637         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
53638         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
53639         (mbstok_r): Assume mbrtowc function.
53640         * lib/propername.c: Include mbuiter.h unconditionally.
53641         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
53642         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
53643         (trim2): Assume mbrtowc function.
53644         * lib/mbswidth.c (mbsinit): Remove fallback definition.
53645         (mbsnwidth): Assume mbrtowc function.
53646         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
53647         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
53648         fallback definitions.
53649         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
53650
53651 2008-12-22  Bruno Haible  <bruno@clisp.org>
53652
53653         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
53654
53655 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
53656
53657         * modules/regex: Request emulations for the mb*/wc* functions we need.
53658         * m4/regex.m4: Don't look for those functions here.
53659         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
53660
53661 2008-12-22  Bruno Haible  <bruno@clisp.org>
53662
53663         * modules/fnmatch (Depends-on): Remove duplicated dependency.
53664
53665 2008-12-21  Bruno Haible  <bruno@clisp.org>
53666
53667         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
53668         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
53669         (Include): Remove conditionalization.
53670         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
53671         (Include): Remove conditionalization.
53672         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
53673         (Include): Remove conditionalization.
53674         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
53675         * m4/mbfile.m4 (gl_MBFILE): Likewise.
53676         * NEWS: Mention the change.
53677         Reported by Alan Hourihane <alanh@fairlite.co.uk>
53678         via Sergey Poznyakoff <gray@gnu.org.ua>.
53679
53680 2008-12-21  Bruno Haible  <bruno@clisp.org>
53681
53682         * MODULES.html.sh (Extended multibyte and wide character utilities
53683         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
53684         wcrtomb, wcsrtombs.
53685         (Support for systems lacking POSIX:2008): Add accept, bind, close,
53686         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
53687         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
53688         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
53689
53690 2008-12-21  Bruno Haible  <bruno@clisp.org>
53691
53692         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
53693
53694 2008-12-21  Bruno Haible  <bruno@clisp.org>
53695
53696         * modules/wcsnrtombs-tests: New file.
53697         * tests/test-wcsnrtombs1.sh: New file.
53698         * tests/test-wcsnrtombs2.sh: New file.
53699         * tests/test-wcsnrtombs3.sh: New file.
53700         * tests/test-wcsnrtombs4.sh: New file.
53701         * tests/test-wcsnrtombs.c: New file.
53702
53703         New module 'wcsnrtombs'.
53704         * lib/wchar.in.h (wcsnrtombs): New declaration.
53705         * lib/wcsnrtombs.c: New file.
53706         * lib/wcsrtombs-state.c: New file.
53707         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
53708         (internal_state): Remove variable.
53709         * m4/wcsnrtombs.m4: New file.
53710         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
53711         compilation units.
53712         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
53713         HAVE_WCSNRTOMBS.
53714         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
53715         HAVE_WCSNRTOMBS.
53716         * modules/wcsnrtombs: New file.
53717         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
53718         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
53719
53720 2008-12-21  Bruno Haible  <bruno@clisp.org>
53721
53722         * modules/wcsrtombs-tests: New file.
53723         * tests/test-wcsrtombs1.sh: New file.
53724         * tests/test-wcsrtombs2.sh: New file.
53725         * tests/test-wcsrtombs3.sh: New file.
53726         * tests/test-wcsrtombs4.sh: New file.
53727         * tests/test-wcsrtombs.c: New file.
53728
53729         New module 'wcsrtombs'.
53730         * lib/wchar.in.h (wcsrtombs): New declaration.
53731         * lib/wcsrtombs.c: New file.
53732         * m4/wcsrtombs.m4: New file.
53733         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
53734         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53735         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
53736         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53737         * modules/wcsrtombs: New file.
53738         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
53739         bugs.
53740
53741 2008-12-21  Bruno Haible  <bruno@clisp.org>
53742
53743         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
53744         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
53745         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
53746         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
53747         if not correct.
53748         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
53749         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
53750         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53751         m4/locale-zh.m4, m4/codeset.m4.
53752         * doc/posix-functions/wcrtomb.texi: Document the bug.
53753
53754 2008-12-21  Bruno Haible  <bruno@clisp.org>
53755
53756         Work around a btowc() bug on IRIX 6.5.
53757         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
53758         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
53759         REPLACE_WTOBC if not.
53760         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
53761         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
53762         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
53763
53764 2008-12-21  Bruno Haible  <bruno@clisp.org>
53765
53766         * modules/wcrtomb-tests: New file.
53767         * tests/test-wcrtomb.sh: New file.
53768         * tests/test-wcrtomb.c: New file.
53769
53770         New module 'wcrtomb'.
53771         * lib/wchar.in.h (wcrtomb): New declaration.
53772         * lib/wcrtomb.c: New file.
53773         * m4/wcrtomb.m4: New file.
53774         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
53775         HAVE_WCRTOMB.
53776         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
53777         HAVE_WCRTOMB.
53778         * modules/wcrtomb: New file.
53779         * doc/posix-functions/wcrtomb.texi: Mention the new module.
53780
53781 2008-12-21  Bruno Haible  <bruno@clisp.org>
53782
53783         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
53784         * modules/mbsrtowcs (Files): Likewise.
53785         * modules/wctob (Files): Likewise.
53786         * modules/c-strcase-tests (Files): Likewise.
53787         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
53788         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
53789         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
53790         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
53791         * modules/vasnprintf-posix-tests (Files): Likewise.
53792
53793 2008-12-21  William Pursell  <bill.pursell@gmail.com>
53794
53795         gitlog-to-changelog: pass all command-line arguments to git-log
53796         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
53797         it is sometimes convenient to filter the commits in various ways.
53798         gitlog-to-changelog only allows --since to specify a start date,
53799         but git-log itself supports many other filtering mechanisms.
53800         At the moment, I want to filter by branch name.  Rather than
53801         adding a --branch option to gitlog-to-changelog, it seems more
53802         flexible to simply pass all options directly to git-log and let
53803         git do the work.  Notice that this effectively makes --since a
53804         redundant option for gitlog-to-changelog, but removing it would
53805         require current usage to change since calls would then require
53806         an additional '--'.
53807
53808 2008-12-21  Bruno Haible  <bruno@clisp.org>
53809
53810         * modules/mbsnrtowcs-tests: New file.
53811         * tests/test-mbsnrtowcs1.sh: New file.
53812         * tests/test-mbsnrtowcs2.sh: New file.
53813         * tests/test-mbsnrtowcs3.sh: New file.
53814         * tests/test-mbsnrtowcs4.sh: New file.
53815         * tests/test-mbsnrtowcs.c: New file.
53816
53817         New module 'mbsnrtowcs'.
53818         * lib/wchar.in.h (mbsnrtowcs): New declaration.
53819         * lib/mbsnrtowcs.c: New file.
53820         * lib/mbsrtowcs-state.c: New file.
53821         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
53822         (internal_state): Remove variable.
53823         * m4/mbsnrtowcs.m4: New file.
53824         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
53825         compilation units.
53826         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
53827         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53828         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
53829         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53830         * modules/mbsnrtowcs: New file.
53831         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
53832         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
53833         portability problem.
53834
53835 2008-12-21  Bruno Haible  <bruno@clisp.org>
53836
53837         Work around mbsrtowcs bug.
53838         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
53839         (gl_FUNC_MBSRTOWCS): Invoke it.
53840         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53841         m4/locale-zh.m4.
53842         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
53843
53844 2008-12-21  Bruno Haible  <bruno@clisp.org>
53845
53846         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
53847
53848 2008-12-21  Bruno Haible  <bruno@clisp.org>
53849
53850         Update doc for AIX.
53851         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
53852         16-bit wchar_t type.
53853         * doc/posix-functions/btowc.texi: Likewise.
53854         * doc/posix-functions/fgetwc.texi: Likewise.
53855         * doc/posix-functions/fgetws.texi: Likewise.
53856         * doc/posix-functions/fputwc.texi: Likewise.
53857         * doc/posix-functions/fputws.texi: Likewise.
53858         * doc/posix-functions/fwide.texi: Likewise.
53859         * doc/posix-functions/fwprintf.texi: Likewise.
53860         * doc/posix-functions/fwscanf.texi: Likewise.
53861         * doc/posix-functions/getwchar.texi: Likewise.
53862         * doc/posix-functions/getwc.texi: Likewise.
53863         * doc/posix-functions/iswalnum.texi: Likewise.
53864         * doc/posix-functions/iswalpha.texi: Likewise.
53865         * doc/posix-functions/iswblank.texi: Likewise.
53866         * doc/posix-functions/iswcntrl.texi: Likewise.
53867         * doc/posix-functions/iswctype.texi: Likewise.
53868         * doc/posix-functions/iswdigit.texi: Likewise.
53869         * doc/posix-functions/iswgraph.texi: Likewise.
53870         * doc/posix-functions/iswlower.texi: Likewise.
53871         * doc/posix-functions/iswprint.texi: Likewise.
53872         * doc/posix-functions/iswpunct.texi: Likewise.
53873         * doc/posix-functions/iswspace.texi: Likewise.
53874         * doc/posix-functions/iswupper.texi: Likewise.
53875         * doc/posix-functions/iswxdigit.texi: Likewise.
53876         * doc/posix-functions/mbrtowc.texi: Likewise.
53877         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53878         * doc/posix-functions/mbstowcs.texi: Likewise.
53879         * doc/posix-functions/mbtowc.texi: Likewise.
53880         * doc/posix-functions/putwchar.texi: Likewise.
53881         * doc/posix-functions/putwc.texi: Likewise.
53882         * doc/posix-functions/swprintf.texi: Likewise.
53883         * doc/posix-functions/tolower.texi: Likewise.
53884         * doc/posix-functions/toupper.texi: Likewise.
53885         * doc/posix-functions/towctrans.texi: Likewise.
53886         * doc/posix-functions/ungetwc.texi: Likewise.
53887         * doc/posix-functions/vswprintf.texi: Likewise.
53888         * doc/posix-functions/wcrtomb.texi: Likewise.
53889         * doc/posix-functions/wcscat.texi: Likewise.
53890         * doc/posix-functions/wcschr.texi: Likewise.
53891         * doc/posix-functions/wcscmp.texi: Likewise.
53892         * doc/posix-functions/wcscoll.texi: Likewise.
53893         * doc/posix-functions/wcscpy.texi: Likewise.
53894         * doc/posix-functions/wcscspn.texi: Likewise.
53895         * doc/posix-functions/wcsftime.texi: Likewise.
53896         * doc/posix-functions/wcslen.texi: Likewise.
53897         * doc/posix-functions/wcsncat.texi: Likewise.
53898         * doc/posix-functions/wcsncmp.texi: Likewise.
53899         * doc/posix-functions/wcsncpy.texi: Likewise.
53900         * doc/posix-functions/wcspbrk.texi: Likewise.
53901         * doc/posix-functions/wcsrchr.texi: Likewise.
53902         * doc/posix-functions/wcsrtombs.texi: Likewise.
53903         * doc/posix-functions/wcsspn.texi: Likewise.
53904         * doc/posix-functions/wcsstr.texi: Likewise.
53905         * doc/posix-functions/wcstod.texi: Likewise.
53906         * doc/posix-functions/wcstof.texi: Likewise.
53907         * doc/posix-functions/wcstoimax.texi: Likewise.
53908         * doc/posix-functions/wcstok.texi: Likewise.
53909         * doc/posix-functions/wcstold.texi: Likewise.
53910         * doc/posix-functions/wcstoll.texi: Likewise.
53911         * doc/posix-functions/wcstol.texi: Likewise.
53912         * doc/posix-functions/wcstombs.texi: Likewise.
53913         * doc/posix-functions/wcstoull.texi: Likewise.
53914         * doc/posix-functions/wcstoul.texi: Likewise.
53915         * doc/posix-functions/wcstoumax.texi: Likewise.
53916         * doc/posix-functions/wcswidth.texi: Likewise.
53917         * doc/posix-functions/wcsxfrm.texi: Likewise.
53918         * doc/posix-functions/wctob.texi: Likewise.
53919         * doc/posix-functions/wctomb.texi: Likewise.
53920         * doc/posix-functions/wctrans.texi: Likewise.
53921         * doc/posix-functions/wctype.texi: Likewise.
53922         * doc/posix-functions/wcwidth.texi: Likewise.
53923         * doc/posix-functions/wmemchr.texi: Likewise.
53924         * doc/posix-functions/wmemcmp.texi: Likewise.
53925         * doc/posix-functions/wmemcpy.texi: Likewise.
53926         * doc/posix-functions/wmemmove.texi: Likewise.
53927         * doc/posix-functions/wmemset.texi: Likewise.
53928         * doc/posix-functions/wprintf.texi: Likewise.
53929         * doc/posix-functions/wscanf.texi: Likewise.
53930
53931 2008-12-21  Bruno Haible  <bruno@clisp.org>
53932
53933         Update doc for HP-UX 11.11.
53934         * doc/posix-functions/btowc.texi: Clarify that the function is missing
53935         in HP-UX version 11.00, not in all versions of HP-UX 11.
53936         * doc/posix-functions/fwide.texi: Likewise.
53937         * doc/posix-functions/fwprintf.texi: Likewise.
53938         * doc/posix-functions/fwscanf.texi: Likewise.
53939         * doc/posix-functions/inet_ntop.texi: Likewise.
53940         * doc/posix-functions/inet_pton.texi: Likewise.
53941         * doc/posix-functions/mbrlen.texi: Likewise.
53942         * doc/posix-functions/mbrtowc.texi: Likewise.
53943         * doc/posix-functions/mbsinit.texi: Likewise.
53944         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53945         * doc/posix-functions/swprintf.texi: Likewise.
53946         * doc/posix-functions/swscanf.texi: Likewise.
53947         * doc/posix-functions/towctrans.texi: Likewise.
53948         * doc/posix-functions/vfwprintf.texi: Likewise.
53949         * doc/posix-functions/vswprintf.texi: Likewise.
53950         * doc/posix-functions/vwprintf.texi: Likewise.
53951         * doc/posix-functions/wcrtomb.texi: Likewise.
53952         * doc/posix-functions/wcsrtombs.texi: Likewise.
53953         * doc/posix-functions/wcsstr.texi: Likewise.
53954         * doc/posix-functions/wctob.texi: Likewise.
53955         * doc/posix-functions/wctrans.texi: Likewise.
53956         * doc/posix-functions/wmemchr.texi: Likewise.
53957         * doc/posix-functions/wmemcmp.texi: Likewise.
53958         * doc/posix-functions/wmemcpy.texi: Likewise.
53959         * doc/posix-functions/wmemmove.texi: Likewise.
53960         * doc/posix-functions/wmemset.texi: Likewise.
53961         * doc/posix-functions/wprintf.texi: Likewise.
53962         * doc/posix-functions/wscanf.texi: Likewise.
53963
53964 2008-12-21  Bruno Haible  <bruno@clisp.org>
53965
53966         Work around a portability problem.
53967         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
53968         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
53969
53970 2008-12-20  Bruno Haible  <bruno@clisp.org>
53971
53972         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
53973         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
53974         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
53975         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
53976         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
53977
53978         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
53979         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
53980         set.
53981         (GNULIB_defined_mbstate_t): New macro.
53982         (mbsinit): Redefine if REPLACE_MBSINIT is set.
53983         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
53984         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
53985         reuses the system's mbrtowc function but works around the bugs.
53986         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
53987         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
53988         macros.
53989         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
53990         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
53991         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
53992         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
53993         REPLACE_MBSINIT if mbsinit needs to be overridden.
53994         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
53995         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53996         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
53997         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53998         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53999         m4/locale-zh.m4.
54000         (Depends): Add mbsinit.
54001         * modules/mbsinit (Depends): Add mbrtowc.
54002         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
54003
54004 2008-12-20  Bruno Haible  <bruno@clisp.org>
54005
54006         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
54007         so that there are no conversion errors on AIX.
54008         * tests/test-mbsrtowcs.c (main): LIkewise.
54009
54010 2008-12-20  Bruno Haible  <bruno@clisp.org>
54011
54012         Work around wctob bug on Solaris <= 9.
54013         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
54014         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
54015         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
54016         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
54017         * modules/wctob (Files): Add m4/locale-fr.m4.
54018         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
54019
54020 2008-12-20  Bruno Haible  <bruno@clisp.org>
54021
54022         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
54023         /dev/null.
54024         * tests/test-select-in.sh: Likewise.
54025         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54026
54027 2008-12-20  Bruno Haible  <bruno@clisp.org>
54028
54029         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
54030         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
54031         Cygwin 1.5.x.
54032
54033 2008-12-20  Bruno Haible  <bruno@clisp.org>
54034
54035         Ensure mbstate_t is defined on HP-UX 11.11.
54036         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
54037         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
54038         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
54039         AC_USE_SYSTEM_EXTENSIONS.
54040         * modules/fnmatch (Depends-on): Add extensions.
54041         * modules/mbrlen (Depends-on): Likewise.
54042         * modules/mbrtowc (Depends-on): Likewise.
54043         * modules/mbsinit (Depends-on): Likewise.
54044         * modules/mbsrtowcs (Depends-on): Likewise.
54045         * modules/mbswidth (Depends-on): Likewise.
54046         * modules/quotearg (Depends-on): Likewise.
54047         * modules/strftime (Depends-on): Likewise.
54048
54049 2008-12-20  Bruno Haible  <bruno@clisp.org>
54050
54051         Ensure wctob is declared on IRIX 6.5.
54052         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
54053         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
54054         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
54055         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
54056         of HAVE_WCTOB.
54057         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
54058         HAVE_WCTOB.
54059         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
54060
54061 2008-12-19  Bruno Haible  <bruno@clisp.org>
54062
54063         * modules/mbsrtowcs-tests: New file.
54064         * tests/test-mbsrtowcs1.sh: New file.
54065         * tests/test-mbsrtowcs2.sh: New file.
54066         * tests/test-mbsrtowcs3.sh: New file.
54067         * tests/test-mbsrtowcs4.sh: New file.
54068         * tests/test-mbsrtowcs.c: New file.
54069
54070         New module 'mbsrtowcs'.
54071         * lib/wchar.in.h (mbsrtowcs): New declaration.
54072         * lib/mbsrtowcs.c: New file.
54073         * m4/mbsrtowcs.m4: New file.
54074         * modules/mbsrtowcs: New file.
54075         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
54076         HAVE_MBSRTOWCS.
54077         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
54078         HAVE_MBSRTOWCS.
54079         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
54080
54081 2008-12-19  Bruno Haible  <bruno@clisp.org>
54082
54083         New module 'mbrlen'.
54084         * lib/wchar.in.h (mbrlen): New declaration.
54085         * lib/mbrlen.c: New file.
54086         * m4/mbrlen.m4: New file.
54087         * modules/mbrlen: New file.
54088         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
54089         HAVE_MBRLEN.
54090         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
54091         HAVE_MBRLEN.
54092         * doc/posix-functions/mbrlen.texi: Document the new module.
54093
54094 2008-12-19  Bruno Haible  <bruno@clisp.org>
54095
54096         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
54097         * modules/mbrtowc (Depends-on): Add verify.
54098         Suggested by Paul Eggert.
54099
54100 2008-12-18  Bruno Haible  <bruno@clisp.org>
54101
54102         * modules/mbsinit-tests: New file.
54103         * tests/test-mbsinit.sh: New file.
54104         * tests/test-mbsinit.c: New file.
54105
54106 2008-12-18  Bruno Haible  <bruno@clisp.org>
54107
54108         * modules/mbrtowc-tests: New file.
54109         * tests/test-mbrtowc1.sh: New file.
54110         * tests/test-mbrtowc2.sh: New file.
54111         * tests/test-mbrtowc3.sh: New file.
54112         * tests/test-mbrtowc4.sh: New file.
54113         * tests/test-mbrtowc.c: New file.
54114
54115         New module 'mbrtowc'.
54116         * lib/wchar.in.h (mbstate_t): Override when the system does not have
54117         mbsinit and mbrtowc.
54118         (mbrtowc): New declaration.
54119         * lib/mbrtowc.c: New file.
54120         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
54121         * modules/mbrtowc: New file.
54122         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
54123         HAVE_MBRTOWC.
54124         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
54125         HAVE_MBRTOWC.
54126         * doc/posix-functions/mbrtowc.texi: Document the new module.
54127
54128 2008-12-18  Bruno Haible  <bruno@clisp.org>
54129
54130         New module 'wctob'.
54131         * lib/wchar.in.h (wctob): New declaration.
54132         * lib/wctob.c: New file.
54133         * m4/wctob.m4: New file.
54134         * modules/wctob: New file.
54135         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
54136         HAVE_WCTOB.
54137         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
54138         * doc/posix-functions/wctob.texi: Document the new module.
54139
54140 2008-12-18  Bruno Haible  <bruno@clisp.org>
54141
54142         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
54143         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
54144
54145 2008-12-18  Simon Josefsson  <simon@josefsson.org>
54146
54147         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
54148         G. Christensen" <tgc@jupiterrise.com>.
54149
54150         * lib/flock.c: Need to include errno.h.  Reported by "Tom
54151         G. Christensen" <tgc@jupiterrise.com>.
54152
54153         * lib/flock.c: Need to include string.h.  Reported by "Tom
54154         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
54155         <ebb9@byu.net>.
54156
54157 2008-12-18  Bruno Haible  <bruno@clisp.org>
54158
54159         * m4/locale-ja.m4: New file, from GNU gettext.
54160
54161 2008-12-17  Bruno Haible  <bruno@clisp.org>
54162
54163         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
54164         Suggested by Eric Blake.
54165
54166 2008-12-17  Bruno Haible  <bruno@clisp.org>
54167
54168         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
54169
54170 2008-12-17  Bruno Haible  <bruno@clisp.org>
54171
54172         * lib/mbsinit.c: Include verify.h. Verify an assumption.
54173         * modules/mbsinit (Depends-on): Add verify.
54174         Suggested by Paul Eggert.
54175
54176 2008-12-17  Bruno Haible  <bruno@clisp.org>
54177
54178         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
54179         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
54180         gl_FUNC_MBRTOWC.
54181         * m4/mbiter.m4 (gl_MBITER): LIkewise.
54182         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
54183         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
54184         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
54185         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
54186         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
54187         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
54188         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
54189         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
54190         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
54191         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
54192         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
54193         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
54194         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
54195         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
54196         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54197         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
54198         * modules/trim (configure.ac): Likewise.
54199
54200 2008-12-17  Bruno Haible  <bruno@clisp.org>
54201
54202         * modules/btowc-tests: New file.
54203         * tests/test-btowc1.sh: New file.
54204         * tests/test-btowc2.sh: New file.
54205         * tests/test-btowc.c: New file.
54206
54207         New module 'btowc'.
54208         * lib/wchar.in.h (btowc): New declaration.
54209         * lib/btowc.c: New file.
54210         * m4/btowc.m4: New file.
54211         * modules/btowc: New file.
54212         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
54213         HAVE_BTOWC.
54214         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
54215         * doc/posix-functions/btowc.texi: Document the new module.
54216
54217 2008-12-17  Bruno Haible  <bruno@clisp.org>
54218
54219         New module 'mbsinit'.
54220         * lib/wchar.in.h (mbsinit): New declaration.
54221         * lib/mbsinit.c: New file.
54222         * m4/mbsinit.m4: New file.
54223         * modules/mbsinit: New file.
54224         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
54225         HAVE_MBSINIT.
54226         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
54227         HAVE_MBSINIT.
54228         * doc/posix-functions/mbsinit.texi: Document the new module.
54229
54230 2008-12-16  Bruno Haible  <bruno@clisp.org>
54231
54232         * lib/unistd.in.h: Add comment.
54233         * tests/test-environ.c: Don't include <stdlib.h>.
54234
54235 2008-12-16  Bruno Haible  <bruno@clisp.org>
54236
54237         * lib/parse-duration.h (parse_duration): Document return value
54238         convention.
54239         * lib/parse-duration.c: Include specification header first. Add
54240         comments.
54241         (_): Remove macro.
54242         (parse_year_month_day, parse_hour_minute_second): Move side effects
54243         outside of strchr call.
54244         (parse_non_iso8601): Move side effects outside of isspace call.
54245         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
54246         call.
54247
54248 2008-12-16  Bruno Haible  <bruno@clisp.org>
54249
54250         * tests/test-parse-duration.sh: Produce no output when the test
54251         succeeds.
54252
54253 2008-12-16  Bruno Haible  <bruno@clisp.org>
54254
54255         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
54256         expressions.
54257
54258 2008-12-15  Bruno Haible  <bruno@clisp.org>
54259
54260         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
54261         * doc/glibc-functions/flistxattr.texi: Likewise.
54262         * doc/glibc-functions/fopencookie.texi: Likewise.
54263         * doc/glibc-functions/fremovexattr.texi: Likewise.
54264         * doc/glibc-functions/fsetxattr.texi: Likewise.
54265         * doc/glibc-functions/getxattr.texi: Likewise.
54266         * doc/glibc-functions/lgetxattr.texi: Likewise.
54267         * doc/glibc-functions/listxattr.texi: Likewise.
54268         * doc/glibc-functions/llistxattr.texi: Likewise.
54269         * doc/glibc-functions/lremovexattr.texi: Likewise.
54270         * doc/glibc-functions/lsetxattr.texi: Likewise.
54271         * doc/glibc-functions/removexattr.texi: Likewise.
54272         * doc/glibc-functions/setxattr.texi: Likewise.
54273         * doc/posix-functions/open_memstream.texi: Likewise.
54274
54275 2008-12-15  Eric Blake  <ebb9@byu.net>
54276
54277         Update doc for cygwin 1.7.
54278         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
54279         functions.
54280         * doc/posix-functions/fchmodat.texi: Likewise.
54281         * doc/posix-functions/fchownat.texi: Likewise.
54282         * doc/posix-functions/fdopendir.texi: Likewise.
54283         * doc/posix-functions/fmemopen.texi: Likewise.
54284         * doc/posix-functions/freeaddrinfo.texi: Likewise.
54285         * doc/posix-functions/fstatat.texi: Likewise.
54286         * doc/posix-functions/futimens.texi: Likewise.
54287         * doc/posix-functions/gai_strerror.texi: Likewise.
54288         * doc/posix-functions/getaddrinfo.texi: Likewise.
54289         * doc/posix-functions/getnameinfo.texi: Likewise.
54290         * doc/posix-functions/if_freenameindex.texi: Likewise.
54291         * doc/posix-functions/if_indextoname.texi: Likewise.
54292         * doc/posix-functions/if_nameindex.texi: Likewise.
54293         * doc/posix-functions/if_nametoindex.texi: Likewise.
54294         * doc/posix-functions/insque.texi: Likewise.
54295         * doc/posix-functions/linkat.texi: Likewise.
54296         * doc/posix-functions/llrint.texi: Likewise.
54297         * doc/posix-functions/llrintf.texi: Likewise.
54298         * doc/posix-functions/llrintl.texi: Likewise.
54299         * doc/posix-functions/lockf.texi: Likewise.
54300         * doc/posix-functions/lrintl.texi: Likewise.
54301         * doc/posix-functions/mkdirat.texi: Likewise.
54302         * doc/posix-functions/mkfifoat.texi: Likewise.
54303         * doc/posix-functions/mknodat.texi: Likewise.
54304         * doc/posix-functions/mq_close.texi: Likewise.
54305         * doc/posix-functions/mq_getattr.texi: Likewise.
54306         * doc/posix-functions/mq_notify.texi: Likewise.
54307         * doc/posix-functions/mq_open.texi: Likewise.
54308         * doc/posix-functions/mq_receive.texi: Likewise.
54309         * doc/posix-functions/mq_send.texi: Likewise.
54310         * doc/posix-functions/mq_setattr.texi: Likewise.
54311         * doc/posix-functions/mq_timedreceive.texi: Likewise.
54312         * doc/posix-functions/mq_timedsend.texi: Likewise.
54313         * doc/posix-functions/mq_unlink.texi: Likewise.
54314         * doc/posix-functions/open_memstream.texi: Likewise.
54315         * doc/posix-functions/openat.texi: Likewise.
54316         * doc/posix-functions/posix_fadvise.texi: Likewise.
54317         * doc/posix-functions/posix_fallocate.texi: Likewise.
54318         * doc/posix-functions/posix_madvise.texi: Likewise.
54319         * doc/posix-functions/posix_memalign.texi: Likewise.
54320         * doc/posix-functions/posix_openpt.texi: Likewise.
54321         * doc/posix-functions/readlinkat.texi: Likewise.
54322         * doc/posix-functions/remque.texi: Likewise.
54323         * doc/posix-functions/renameat.texi: Likewise.
54324         * doc/posix-functions/rintl.texi: Likewise.
54325         * doc/posix-functions/sem_unlink.texi: Likewise.
54326         * doc/posix-functions/shm_open.texi: Likewise.
54327         * doc/posix-functions/shm_unlink.texi: Likewise.
54328         * doc/posix-functions/signgam.texi: Likewise.
54329         * doc/posix-functions/sigset.texi: Likewise.
54330         * doc/posix-functions/stpcpy.texi: Likewise.
54331         * doc/posix-functions/stpncpy.texi: Likewise.
54332         * doc/posix-functions/strerror.texi: Likewise.
54333         * doc/posix-functions/strtod.texi: Likewise.
54334         * doc/posix-functions/symlinkat.texi: Likewise.
54335         * doc/posix-functions/unlinkat.texi: Likewise.
54336         * doc/posix-functions/utimensat.texi: Likewise.
54337         * doc/glibc-functions/bindresvport.texi: Likewise.
54338         * doc/glibc-functions/dn_expand.texi: Likewise.
54339         * doc/glibc-functions/exp10.texi: Likewise.
54340         * doc/glibc-functions/exp10f.texi: Likewise.
54341         * doc/glibc-functions/fgetxattr.texi: Likewise.
54342         * doc/glibc-functions/flistxattr.texi: Likewise.
54343         * doc/glibc-functions/fopencookie.texi: Likewise.
54344         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54345         * doc/glibc-functions/fremovexattr.texi: Likewise.
54346         * doc/glibc-functions/fsetxattr.texi: Likewise.
54347         * doc/glibc-functions/getifaddrs.texi: Likewise.
54348         * doc/glibc-functions/getxattr.texi: Likewise.
54349         * doc/glibc-functions/lgetxattr.texi: Likewise.
54350         * doc/glibc-functions/listxattr.texi: Likewise.
54351         * doc/glibc-functions/llistxattr.texi: Likewise.
54352         * doc/glibc-functions/lremovexattr.texi: Likewise.
54353         * doc/glibc-functions/lsetxattr.texi: Likewise.
54354         * doc/glibc-functions/pow10.texi: Likewise.
54355         * doc/glibc-functions/pow10f.texi: Likewise.
54356         * doc/glibc-functions/rcmd_af.texi: Likewise.
54357         * doc/glibc-functions/removexattr.texi: Likewise.
54358         * doc/glibc-functions/res_init.texi: Likewise.
54359         * doc/glibc-functions/res_mkquery.texi: Likewise.
54360         * doc/glibc-functions/res_query.texi: Likewise.
54361         * doc/glibc-functions/res_querydomain.texi: Likewise.
54362         * doc/glibc-functions/res_send.texi: Likewise.
54363         * doc/glibc-functions/rresvport_af.texi: Likewise.
54364         * doc/glibc-functions/setxattr.texi: Likewise.
54365         * doc/glibc-functions/strcasestr.texi: Likewise.
54366
54367 2008-12-15  Bruno Haible  <bruno@clisp.org>
54368
54369         Fix compilation error on OSF/1 4.0.
54370         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54371         <sys/time.h>, simply delegate to the system header.
54372         Reported by Daniel Richard G. <oss@teragram.com>.
54373
54374 2008-12-15  Bruno Haible  <bruno@clisp.org>
54375
54376         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54377         * doc/posix-functions/fchmodat.texi: Likewise.
54378         * doc/posix-functions/fchownat.texi: Likewise.
54379         * doc/posix-functions/fdopendir.texi: Likewise.
54380         * doc/posix-functions/fstatat.texi: Likewise.
54381         * doc/posix-functions/mkdirat.texi: Likewise.
54382         * doc/posix-functions/unlinkat.texi: Likewise.
54383
54384 2008-12-14  Bruno Haible  <bruno@clisp.org>
54385
54386         Update doc for POSIX:2008.
54387         * doc/posix-functions/faccessat.texi: New file.
54388         * doc/posix-functions/fchmodat.texi: New file.
54389         * doc/posix-functions/fchownat.texi: New file.
54390         * doc/posix-functions/fdopendir.texi: New file.
54391         * doc/posix-functions/fstatat.texi: New file.
54392         * doc/posix-functions/futimens.texi: New file.
54393         * doc/posix-functions/linkat.texi: New file.
54394         * doc/posix-functions/mkdirat.texi: New file.
54395         * doc/posix-functions/mkfifoat.texi: New file.
54396         * doc/posix-functions/mknodat.texi: New file.
54397         * doc/posix-functions/open_wmemstream.texi: New file.
54398         * doc/posix-functions/openat.texi: New file.
54399         * doc/posix-functions/psiginfo.texi: New file.
54400         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54401         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54402         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54403         * doc/posix-functions/readlinkat.texi: New file.
54404         * doc/posix-functions/renameat.texi: New file.
54405         * doc/posix-functions/strerror_l.texi: New file.
54406         * doc/posix-functions/symlinkat.texi: New file.
54407         * doc/posix-functions/unlinkat.texi: New file.
54408         * doc/posix-functions/utimensat.texi: New file.
54409         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54410
54411 2008-12-14  Bruno Haible  <bruno@clisp.org>
54412
54413         Update doc for POSIX:2008.
54414         * doc/posix-functions/alphasort.texi: Renamed from
54415         doc/glibc-functions/alphasort.texi.
54416         * doc/posix-functions/dirfd.texi: Renamed from
54417         doc/glibc-functions/dirfd.texi.
54418         * doc/posix-functions/dprintf.texi: Renamed from
54419         doc/glibc-functions/dprintf.texi.
54420         * doc/posix-functions/duplocale.texi: Renamed from
54421         doc/glibc-functions/duplocale.texi.
54422         * doc/posix-functions/fexecve.texi: Renamed from
54423         doc/glibc-functions/fexecve.texi.
54424         * doc/posix-functions/fmemopen.texi: Renamed from
54425         doc/glibc-functions/fmemopen.texi.
54426         * doc/posix-functions/freelocale.texi: Renamed from
54427         doc/glibc-functions/freelocale.texi.
54428         * doc/posix-functions/getdate_err.texi: Renamed from
54429         doc/glibc-functions/getdate_err.texi.
54430         * doc/posix-functions/isalnum_l.texi: Renamed from
54431         doc/glibc-functions/isalnum_l.texi.
54432         * doc/posix-functions/isalpha_l.texi: Renamed from
54433         doc/glibc-functions/isalpha_l.texi.
54434         * doc/posix-functions/isblank_l.texi: Renamed from
54435         doc/glibc-functions/isblank_l.texi.
54436         * doc/posix-functions/iscntrl_l.texi: Renamed from
54437         doc/glibc-functions/iscntrl_l.texi.
54438         * doc/posix-functions/isdigit_l.texi: Renamed from
54439         doc/glibc-functions/isdigit_l.texi.
54440         * doc/posix-functions/isgraph_l.texi: Renamed from
54441         doc/glibc-functions/isgraph_l.texi.
54442         * doc/posix-functions/islower_l.texi: Renamed from
54443         doc/glibc-functions/islower_l.texi.
54444         * doc/posix-functions/isprint_l.texi: Renamed from
54445         doc/glibc-functions/isprint_l.texi.
54446         * doc/posix-functions/ispunct_l.texi: Renamed from
54447         doc/glibc-functions/ispunct_l.texi.
54448         * doc/posix-functions/isspace_l.texi: Renamed from
54449         doc/glibc-functions/isspace_l.texi.
54450         * doc/posix-functions/isupper_l.texi: Renamed from
54451         doc/glibc-functions/isupper_l.texi.
54452         * doc/posix-functions/iswalnum_l.texi: Renamed from
54453         doc/glibc-functions/iswalnum_l.texi.
54454         * doc/posix-functions/iswalpha_l.texi: Renamed from
54455         doc/glibc-functions/iswalpha_l.texi.
54456         * doc/posix-functions/iswblank_l.texi: Renamed from
54457         doc/glibc-functions/iswblank_l.texi.
54458         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54459         doc/glibc-functions/iswcntrl_l.texi.
54460         * doc/posix-functions/iswctype_l.texi: Renamed from
54461         doc/glibc-functions/iswctype_l.texi.
54462         * doc/posix-functions/iswdigit_l.texi: Renamed from
54463         doc/glibc-functions/iswdigit_l.texi.
54464         * doc/posix-functions/iswgraph_l.texi: Renamed from
54465         doc/glibc-functions/iswgraph_l.texi.
54466         * doc/posix-functions/iswlower_l.texi: Renamed from
54467         doc/glibc-functions/iswlower_l.texi.
54468         * doc/posix-functions/iswprint_l.texi: Renamed from
54469         doc/glibc-functions/iswprint_l.texi.
54470         * doc/posix-functions/iswpunct_l.texi: Renamed from
54471         doc/glibc-functions/iswpunct_l.texi.
54472         * doc/posix-functions/iswspace_l.texi: Renamed from
54473         doc/glibc-functions/iswspace_l.texi.
54474         * doc/posix-functions/iswupper_l.texi: Renamed from
54475         doc/glibc-functions/iswupper_l.texi.
54476         * doc/posix-functions/iswxdigit_l.texi: Renamed from
54477         doc/glibc-functions/iswxdigit_l.texi.
54478         * doc/posix-functions/isxdigit_l.texi: Renamed from
54479         doc/glibc-functions/isxdigit_l.texi.
54480         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
54481         doc/glibc-functions/mbsnrtowcs.texi.
54482         * doc/posix-functions/mkdtemp.texi: Renamed from
54483         doc/glibc-functions/mkdtemp.texi.
54484         * doc/posix-functions/newlocale.texi: Renamed from
54485         doc/glibc-functions/newlocale.texi.
54486         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
54487         doc/glibc-functions/nl_langinfo_l.texi.
54488         * doc/posix-functions/open_memstream.texi: Renamed from
54489         doc/glibc-functions/open_memstream.texi.
54490         * doc/posix-functions/opterr.texi: Renamed from
54491         doc/glibc-functions/opterr.texi.
54492         * doc/posix-functions/optind.texi: Renamed from
54493         doc/glibc-functions/optind.texi.
54494         * doc/posix-functions/optopt.texi: Renamed from
54495         doc/glibc-functions/optopt.texi.
54496         * doc/posix-functions/psignal.texi: Renamed from
54497         doc/glibc-functions/psignal.texi.
54498         * doc/posix-functions/scandir.texi: Renamed from
54499         doc/glibc-functions/scandir.texi.
54500         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
54501         doc/glibc-functions/sched_get_priority_min.texi.
54502         * doc/posix-functions/signgam.texi: Renamed from
54503         doc/glibc-functions/signgam.texi.
54504         * doc/posix-functions/stpcpy.texi: Renamed from
54505         doc/glibc-functions/stpcpy.texi.
54506         * doc/posix-functions/stpncpy.texi: Renamed from
54507         doc/glibc-functions/stpncpy.texi.
54508         * doc/posix-functions/strcasecmp_l.texi: Renamed from
54509         doc/glibc-functions/strcasecmp_l.texi.
54510         * doc/posix-functions/strcoll_l.texi: Renamed from
54511         doc/glibc-functions/strcoll_l.texi.
54512         * doc/posix-functions/strfmon_l.texi: Renamed from
54513         doc/glibc-functions/strfmon_l.texi.
54514         * doc/posix-functions/strftime_l.texi: Renamed from
54515         doc/glibc-functions/strftime_l.texi.
54516         * doc/posix-functions/strncasecmp_l.texi: Renamed from
54517         doc/glibc-functions/strncasecmp_l.texi.
54518         * doc/posix-functions/strndup.texi: Renamed from
54519         doc/glibc-functions/strndup.texi.
54520         * doc/posix-functions/strnlen.texi: Renamed from
54521         doc/glibc-functions/strnlen.texi.
54522         * doc/posix-functions/strsignal.texi: Renamed from
54523         doc/glibc-functions/strsignal.texi.
54524         * doc/posix-functions/strxfrm_l.texi: Renamed from
54525         doc/glibc-functions/strxfrm_l.texi.
54526         * doc/posix-functions/timer_gettime.texi: Renamed from
54527         doc/glibc-functions/timer_gettime.texi.
54528         * doc/posix-functions/tolower_l.texi: Renamed from
54529         doc/glibc-functions/tolower_l.texi.
54530         * doc/posix-functions/toupper_l.texi: Renamed from
54531         doc/glibc-functions/toupper_l.texi.
54532         * doc/posix-functions/towctrans_l.texi: Renamed from
54533         doc/glibc-functions/towctrans_l.texi.
54534         * doc/posix-functions/towlower_l.texi: Renamed from
54535         doc/glibc-functions/towlower_l.texi.
54536         * doc/posix-functions/towupper_l.texi: Renamed from
54537         doc/glibc-functions/towupper_l.texi.
54538         * doc/posix-functions/uselocale.texi: Renamed from
54539         doc/glibc-functions/uselocale.texi.
54540         * doc/posix-functions/vdprintf.texi: Renamed from
54541         doc/glibc-functions/vdprintf.texi.
54542         * doc/posix-functions/wcpcpy.texi:
54543         Renamed from doc/glibc-functions/wcpcpy.texi.
54544         * doc/posix-functions/wcpncpy.texi: Renamed from
54545         doc/glibc-functions/wcpncpy.texi.
54546         * doc/posix-functions/wcscasecmp.texi: Renamed from
54547         doc/glibc-functions/wcscasecmp.texi.
54548         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
54549         doc/glibc-functions/wcscasecmp_l.texi.
54550         * doc/posix-functions/wcscoll_l.texi: Renamed from
54551         doc/glibc-functions/wcscoll_l.texi.
54552         * doc/posix-functions/wcsdup.texi: Renamed from
54553         doc/glibc-functions/wcsdup.texi.
54554         * doc/posix-functions/wcsncasecmp.texi: Renamed from
54555         doc/glibc-functions/wcsncasecmp.texi.
54556         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
54557         doc/glibc-functions/wcsncasecmp_l.texi.
54558         * doc/posix-functions/wcsnlen.texi: Renamed from
54559         doc/glibc-functions/wcsnlen.texi.
54560         * doc/posix-functions/wcsnrtombs.texi: Renamed from
54561         doc/glibc-functions/wcsnrtombs.texi.
54562         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
54563         doc/glibc-functions/wcsxfrm_l.texi.
54564         * doc/posix-functions/wctrans_l.texi: Renamed from
54565         doc/glibc-functions/wctrans_l.texi.
54566         * doc/posix-functions/wctype_l.texi: Renamed from
54567         doc/glibc-functions/wctype_l.texi.
54568         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54569         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
54570         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
54571         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
54572         these subsections.
54573         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
54574         Remove sections.
54575
54576 2008-12-14  Bruno Haible  <bruno@clisp.org>
54577
54578         Update doc for POSIX:2008.
54579         * doc/posix-functions/*.texi: Update URL of POSIX specification.
54580
54581 2008-12-14  Bruno Haible  <bruno@clisp.org>
54582
54583         Update doc for POSIX:2008.
54584         * doc/pastposix-functions/bcmp.texi: Renamed from
54585         doc/posix-functions/bcmp.texi.
54586         * doc/pastposix-functions/bcopy.texi: Renamed from
54587         doc/posix-functions/bcopy.texi.
54588         * doc/pastposix-functions/bsd_signal.texi: Renamed from
54589         doc/posix-functions/bsd_signal.texi.
54590         * doc/pastposix-functions/bzero.texi: Renamed from
54591         doc/posix-functions/bzero.texi.
54592         * doc/pastposix-functions/ecvt.texi: Renamed from
54593         doc/posix-functions/ecvt.texi.
54594         * doc/pastposix-functions/fcvt.texi: Renamed from
54595         doc/posix-functions/fcvt.texi.
54596         * doc/pastposix-functions/ftime.texi: Renamed from
54597         doc/posix-functions/ftime.texi.
54598         * doc/pastposix-functions/gcvt.texi: Renamed from
54599         doc/posix-functions/gcvt.texi.
54600         * doc/pastposix-functions/getcontext.texi: Renamed from
54601         doc/posix-functions/getcontext.texi.
54602         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
54603         doc/posix-functions/gethostbyaddr.texi.
54604         * doc/pastposix-functions/gethostbyname.texi: Renamed from
54605         doc/posix-functions/gethostbyname.texi.
54606         * doc/pastposix-functions/getwd.texi: Renamed from
54607         doc/posix-functions/getwd.texi.
54608         * doc/pastposix-functions/h_errno.texi: Renamed from
54609         doc/posix-functions/h_errno.texi.
54610         * doc/pastposix-functions/index.texi: Renamed from
54611         doc/posix-functions/index.texi.
54612         * doc/pastposix-functions/makecontext.texi: Renamed from
54613         doc/posix-functions/makecontext.texi.
54614         * doc/pastposix-functions/mktemp.texi: Renamed from
54615         doc/posix-functions/mktemp.texi.
54616         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
54617         doc/posix-functions/pthread_attr_getstackaddr.texi.
54618         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
54619         doc/posix-functions/pthread_attr_setstackaddr.texi.
54620         * doc/pastposix-functions/rindex.texi: Renamed from
54621         doc/posix-functions/rindex.texi.
54622         * doc/pastposix-functions/scalb.texi: Renamed from
54623         doc/posix-functions/scalb.texi.
54624         * doc/pastposix-functions/setcontext.texi: Renamed from
54625         doc/posix-functions/setcontext.texi.
54626         * doc/pastposix-functions/swapcontext.texi: Renamed from
54627         doc/posix-functions/swapcontext.texi.
54628         * doc/pastposix-functions/ualarm.texi: Renamed from
54629         doc/posix-functions/ualarm.texi.
54630         * doc/pastposix-functions/usleep.texi: Renamed from
54631         doc/posix-functions/usleep.texi.
54632         * doc/pastposix-functions/vfork.texi: Renamed from
54633         doc/posix-functions/vfork.texi.
54634         * doc/pastposix-functions/wcswcs.texi: Renamed from
54635         doc/posix-functions/wcswcs.texi.
54636         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
54637         (Function Substitutes): Update.
54638
54639 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54640
54641         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
54642         m4/strerror.m4.
54643
54644 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54645             Bruno Haible  <bruno@clisp.org>
54646
54647         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
54648
54649 2008-12-13  Bruno Haible  <bruno@clisp.org>
54650
54651         * modules/strtoull (Depends-on): Remove unistd.
54652
54653 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54654
54655         * modules/strtoull (Depends-on): Add stdlib.
54656
54657 2008-12-11  Simon Josefsson  <simon@josefsson.org>
54658
54659         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
54660
54661 2008-12-10  Jim Meyering  <meyering@redhat.com>
54662
54663         gl_ASSERT: don't say assertions are disabled when they're not
54664         * m4/assert.m4 (gl_ASSERT): Do not make configure report
54665         "checking whether to enable assertions... no", when they are in
54666         fact enabled.  This is solely a bug in the output of configure.
54667         In spite of saying "no", NDEBUG was not defined in that case.
54668         Also, as noted by Eric Blake, leave assertions enabled upon
54669         --enable-assert=INVALID.
54670
54671 2008-12-10  Bruno Haible  <bruno@clisp.org>
54672
54673         Change MODULES.html to refer to POSIX:2008 where possible.
54674         * MODULES.html.sh (POSIX2008_URL): New variable.
54675         (posix_headers): Remove sys/timeb, ucontext.
54676         (posix2001_headers): New variable.
54677         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
54678         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
54679         index, makecontext, mktemp, pthread_attr_getstackaddr,
54680         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
54681         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
54682         (posix2001_functions): New variable.
54683         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
54684         otherwise.
54685
54686 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54687
54688         add missing include to parse-duration.c
54689         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
54690         * modules/parse-duration (Depends-on): Add xalloc.
54691
54692         fix sed script reading maint.mk
54693         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
54694         (syntax-check-rules): Use it.
54695
54696 2008-12-09  Bruno Haible  <bruno@clisp.org>
54697
54698         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
54699         MacOS X 10.4/PowerPC.
54700         Reported by Simon Josefsson.
54701
54702 2008-12-08  Jim Meyering  <meyering@redhat.com>
54703
54704         work around mingw's lack of some S_IF definitions
54705         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
54706         Reported by Simon Josefsson.
54707
54708 2008-12-08  Bruno Haible  <bruno@clisp.org>
54709
54710         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
54711         applied to variables. Needed on MacOS X 10.4/PowerPC.
54712         Reported by Simon Josefsson.
54713
54714 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
54715         and Eric Blake  <ebb9@byu.net>
54716
54717         assert: honor --enable-assert
54718         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
54719         order to honor --enable-assert, rather than treating it as a
54720         synonym for --disable-assert.
54721
54722 2008-12-08  Jim Meyering  <meyering@redhat.com>
54723
54724         * lib/posixtm.c: Remove now-useless declaration of mktime.
54725
54726         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
54727
54728 2008-12-07  Bruno Haible  <bruno@clisp.org>
54729
54730         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
54731         test_once): Mark functions as static.
54732         * tests/test-tls.c (test_tls): Likewise.
54733
54734 2008-12-07  Bruno Haible  <bruno@clisp.org>
54735
54736         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
54737         iconv_register_autodetect.
54738
54739 2008-12-07  Jim Meyering  <meyering@redhat.com>
54740
54741         posixtm.c: avoid a warning
54742         * lib/posixtm.c (posixtime): Don't initialize tm0.
54743         It's no longer needed to placate gcc4's -Wuninitialized,
54744         and the attempt to placate would elicit a new warning.
54745
54746         unicodeio.c: mark unused parameters
54747         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54748         (fallback_failure_callback): Likewise.
54749
54750 2008-12-07  Bruno Haible  <bruno@clisp.org>
54751
54752         * gnulib-tool (func_create_testdir): When building the tests
54753         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
54754         Reported by Simon Josefsson.
54755
54756 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54757
54758         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
54759
54760 2008-12-06  Bruno Haible  <bruno@clisp.org>
54761
54762         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
54763         Suggested by Eric Blake.
54764
54765 2008-12-06  Bruno Haible  <bruno@clisp.org>
54766
54767         Fix a c-stack test failure on MacOS X.
54768         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
54769         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
54770         handler for SIGBUS as well.
54771         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
54772         install a signal handler for SIGBUS as well.
54773         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
54774
54775 2008-12-06  Bruno Haible  <bruno@clisp.org>
54776
54777         Advocacy documentation.
54778         * doc/gnulib-intro.texi (Benefits): New section.
54779         * doc/gnulib.texi: Update.
54780
54781 2008-12-06  Bruno Haible  <bruno@clisp.org>
54782
54783         Document the 'manywarnings' module.
54784         * doc/manywarnings.texi: New file.
54785         * doc/gnulib.texi: Include it.
54786
54787 2008-12-05  Eric Blake  <ebb9@byu.net>
54788
54789         tests: silence some gcc warnings
54790         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
54791         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
54792         type mismatches.
54793
54794 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54795             Bruno Haible  <bruno@clisp.org>
54796
54797         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
54798
54799 2008-11-29  Jim Meyering  <meyering@redhat.com>
54800
54801         unicodeio.c: mark unused parameters
54802         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54803         (fallback_failure_callback): Likewise.
54804
54805         fts: fix a thinko
54806         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
54807         (set_stat_type): Return S_IF*-valued "type" directly.
54808         Prompted by James Youngman's spotting a related bug.
54809         Confirmed by further testing through find.
54810
54811         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
54812         * lib/fts.c (D_TYPE): Define.
54813         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
54814         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
54815         (s_ifmt_shift_bits): New function.
54816         (set_stat_type): New function.
54817         (fts_build): When not calling fts_stat, call set_stat_type
54818         to propagate dirent.d_type info to fts_read caller.
54819         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
54820         fts_statp->st_mode type information may be valid.
54821
54822 2008-11-28  Simon Josefsson  <simon@josefsson.org>
54823
54824         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
54825         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
54826         <sds@gnu.org>.
54827
54828 2008-11-20  Bruno Haible  <bruno@clisp.org>
54829
54830         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
54831         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
54832         INCLUDE_NEXT.
54833         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
54834         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
54835         * modules/math (Makefile.am): Substitute
54836         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
54837         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54838
54839 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
54840             Bruno Haible  <bruno@clisp.org>
54841
54842         * lib/stdint.in.h: Define all type macros so that their expansion is
54843         a single typedef'ed token. Fixes a compilation failure in Boost which
54844         does "using ::int8_t;".
54845
54846 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54847
54848         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
54849         gl_MANYWARN_ALL_GCC.
54850         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
54851         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
54852         * modules/manywarnings: New file.
54853         * MODULES.html.sh: Mention manywarnings module.
54854
54855 2008-11-18  Bruno Haible  <bruno@clisp.org>
54856
54857         * doc/gnulib-tool.texi (Unit tests): New section.
54858
54859 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54860
54861         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
54862         paths like 'lib/po/foo.po'.
54863
54864 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54865
54866         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
54867         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
54868
54869 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54870
54871         * m4/warnings.m4: Use CPPFLAGS to really check whether the
54872         parameter works.
54873
54874 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54875
54876         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
54877
54878 2008-11-17  Bruce Korb  <bkorb@gnu.org>
54879
54880         * modules/parse-duration-tests: New file.
54881         * tests/test-parse-duration.sh: New file.
54882         * tests/test-parse-duration.c: New file.
54883
54884         New module 'parse-duration'.
54885         * lib/parse-duration.h: New file.
54886         * lib/parse-duration.c: New file.
54887         * modules/parse-duration: New file.
54888
54889 2008-11-17  Bruno Haible  <bruno@clisp.org>
54890
54891         * tests/test-select-out.sh: Comment out the first pipe test.
54892         Reported by Simon Josefsson.
54893
54894 2008-11-17  Bruno Haible  <bruno@clisp.org>
54895
54896         * modules/getaddrinfo (Depends-on): Add servent, hostent.
54897         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
54898         gl_HOSTENT.
54899
54900 2008-11-17  Bruno Haible  <bruno@clisp.org>
54901
54902         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
54903         -lnetwork and -lnet. Needed for Haiku and BeOS.
54904
54905 2008-11-16  Bruno Haible  <bruno@clisp.org>
54906
54907         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
54908
54909 2008-11-16  Bruno Haible  <bruno@clisp.org>
54910
54911         Avoid test failure on Haiku.
54912         * tests/test-fsync.c: Include <errno.h>.
54913         (main): Don't require that fsync (0) fails.
54914
54915 2008-11-15  Bruno Haible  <bruno@clisp.org>
54916
54917         New module 'hostent'.
54918         * modules/hostent: New file.
54919         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
54920
54921 2008-11-15  Bruno Haible  <bruno@clisp.org>
54922
54923         New module 'servent'.
54924         * modules/servent: New file.
54925         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
54926
54927 2008-11-15  Bruno Haible  <bruno@clisp.org>
54928
54929         Avoid generating same test program with two different rules.
54930         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
54931         test-frexp to test-frexp-nolibm.
54932         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
54933         test-frexpl to test-frexpl-nolibm.
54934
54935 2008-11-15  Bruno Haible  <bruno@clisp.org>
54936
54937         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
54938         $(FREXPL_LIBM).
54939
54940 2008-11-15  Bruno Haible  <bruno@clisp.org>
54941
54942         * lib/netdb.in.h: Activate the definitions also when the system's
54943         <netdb.h> has 'struct addrinfo'.
54944         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
54945         EAI_OVERFLOW or AI_NUMERICSERV.
54946         * doc/posix-headers/netdb.texi: Document the problem.
54947
54948 2008-11-15  Bruno Haible  <bruno@clisp.org>
54949
54950         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
54951
54952         Make the 'sched' module work on platforms where <sched.h> exists but
54953         is incomplete (such as Haiku).
54954         * lib/sched.in.h; Include the system's <sched.h> if it exists.
54955         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
54956         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
54957         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
54958         HAVE_STRUCT_SCHED_PARAM.
54959         * modules/sched (Depends-on): Add include_next.
54960         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
54961         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
54962         * doc/posix-headers/sched.texi: Document the issue.
54963
54964 2008-11-13  Jim Meyering  <meyering@redhat.com>
54965
54966         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
54967         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
54968         test would fail due to the difference in the Report bugs to ...
54969         line.  The expected address is empty, "<>", while the actual
54970         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
54971
54972 2008-11-12  Bruno Haible  <bruno@clisp.org>
54973
54974         lstat: don't compile lstat.c on systems lacking lstat
54975         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
54976         which don't have lstat; this is handled by lib/sys_stat.in.h already.
54977         Reported by Daniel P. Berrange via Jim Meyering.
54978
54979 2008-11-12  Jim Meyering  <meyering@redhat.com>
54980
54981         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
54982
54983 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54984
54985         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
54986         instead.
54987
54988 2008-11-12  Bruno Haible  <bruno@clisp.org>
54989
54990         * lib/unicodeio.c: Include unistr.h.
54991         (utf8_wctomb): Remove function.
54992         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
54993
54994 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54995
54996         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
54997         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
54998         <bruno@clisp.org>.
54999         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
55000
55001 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55002
55003         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
55004         * doc/gnulib.texi: Add section for warnings.
55005
55006 2008-11-11  Bruno Haible  <bruno@clisp.org>
55007
55008         * lib/sockets.h: Add a comment.
55009
55010 2008-11-11  Karl Berry  <karl@gnu.org>
55011
55012         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
55013
55014 2008-11-11  Eric Blake  <ebb9@byu.net>
55015
55016         fdl.texi: avoid git symlinks
55017         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
55018
55019 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55020
55021         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
55022
55023 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55024
55025         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
55026         (gl_WARN_ADD): Substitute $2 if literal.
55027
55028 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55029
55030         * m4/warning.m4: Remove.
55031
55032 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55033
55034         * m4/warnings.m4: Almost complete rewrite. :-)
55035
55036 2008-11-10  Simon Josefsson  <simon@josefsson.org>
55037
55038         * modules/warnings: New module.
55039         * m4/warnings.m4: New file.
55040         * MODULES.html.sh: Mention warnings module.
55041         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
55042         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55043
55044 2008-11-10  Eric Blake  <ebb9@byu.net>
55045
55046         fdl.texi: make a symlink to the latest version
55047         * doc/standards.texi: Revert today's earlier change.
55048         * doc/fdl-1.2.texi: Rename from old fdl.texi...
55049         * doc/fdl.texi: ...and replace this with a symlink to the newer
55050         fdl-1.3.texi.
55051
55052 2008-11-10  Bruno Haible  <bruno@clisp.org>
55053
55054         * tests/test-select-fd.c (main): Accept the result file name as fourth
55055         argument.
55056         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
55057         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
55058
55059 2008-11-10  Bruno Haible  <bruno@clisp.org>
55060
55061         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
55062         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
55063         as autoconf-substituted macros.
55064         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
55065         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
55066         gl_NETDB_H_DEFAULTS. Set these variables.
55067         * modules/netdb (Makefile.am): Substitute these variables.
55068
55069 2008-11-10  Eric Blake  <ebb9@byu.net>
55070
55071         standards.texi: include correct file for FDL 1.3
55072         * doc/standards.texi (GNU Free Documentation License): Change
55073         include file to pull in FDL 1.3, not 1.2.
55074
55075         fdl.texi: revert accidental change to license
55076         * doc/fdl.texi: This is FDL 1.2, not 1.3.
55077
55078 2008-11-10  Bruno Haible  <bruno@clisp.org>
55079
55080         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
55081         cross-compiling guesses also when the native compile gives no result.
55082
55083 2008-11-10  Bruno Haible  <bruno@clisp.org>
55084
55085         * lib/spawni.c (__spawni): Force variable into the stack.
55086
55087 2008-11-10  Bruno Haible  <bruno@clisp.org>
55088
55089         Add support for Haiku.
55090         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
55091         glibc and BeOS, but also on Haiku.
55092         * lib/fpurge.c (fpurge): Likewise.
55093         * lib/freadable.c (freadable): Likewise.
55094         * lib/freadahead.c (freadahead): Likewise.
55095         * lib/freading.c (freading): Likewise.
55096         * lib/freadptr.c (freadptr): Likewise.
55097         * lib/freadseek.c (freadptrinc): Likewise.
55098         * lib/fseeko.c (rpl_fseeko): Likewise.
55099         * lib/fseterr.c (fseterr): Likewise.
55100         * lib/fwritable.c (fwritable): Likewise.
55101         * lib/fwriting.c (fwriting): Likewise.
55102         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
55103
55104 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55105
55106         * lib/config.charset: Treat Haiku like BeOS.
55107
55108 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55109
55110         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
55111         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
55112
55113 2008-11-08  Bruno Haible  <bruno@clisp.org>
55114
55115         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
55116         AC_CACHE_CHECK.
55117
55118 2008-11-08  Bruno Haible  <bruno@clisp.org>
55119
55120         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
55121
55122 2008-11-08  Bruno Haible  <bruno@clisp.org>
55123
55124         * tests/test-select-fd.c: New file.
55125         * tests/test-select-in.sh: New file.
55126         * tests/test-select-out.sh: New file.
55127         * tests/test-select-stdin.c: New file.
55128         * modules/select-tests (Files): Add the new files.
55129         (Depends-on): Add gettimeofday.
55130         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
55131         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
55132         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
55133
55134 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
55135             Bruno Haible  <bruno@clisp.org>
55136
55137         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
55138
55139 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
55140
55141         * build-aux/pmccabe2html: Added support for C++ source files.
55142
55143 2008-11-05  Ben Pfaff  <blp@gnu.org>
55144
55145         Fix lib/close.c build on Windows.
55146         * modules/close (Files): Add lib/w32sock.h.
55147
55148 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
55149
55150         Accept Bison's NEWS format.
55151         * build-aux/announce-gen (print_news_deltas): Tweak
55152         $re_prefix.
55153
55154 2008-11-04  Bruno Haible  <bruno@clisp.org>
55155
55156         * modules/random_r (Maintainer): Add glibc.
55157
55158 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55159
55160         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
55161         by karl@freefriends.org (Karl Berry).
55162         * doc/alloca.texi: Likewise.
55163         * doc/c-ctype.texi: Likewise.
55164         * doc/c-strcase.texi: Likewise.
55165         * doc/c-strcaseeq.texi: Likewise.
55166         * doc/c-strcasestr.texi: Likewise.
55167         * doc/c-strstr.texi: Likewise.
55168         * doc/c-strtod.texi: Likewise.
55169         * doc/c-strtold.texi: Likewise.
55170         * doc/ctime.texi: Likewise.
55171         * doc/error.texi: Likewise.
55172         * doc/fdl.texi: Likewise.
55173         * doc/gcd.texi: Likewise.
55174         * doc/getdate.texi: Likewise.
55175         * doc/gnulib-intro.texi: Likewise.
55176         * doc/gnulib-tool.texi: Likewise.
55177         * doc/gnulib.texi: Likewise.
55178         * doc/inet_ntoa.texi: Likewise.
55179         * doc/maintain.texi: Likewise.
55180         * doc/make-stds.texi: Likewise.
55181         * doc/quote.texi: Likewise.
55182         * doc/regexprops-generic.texi: Likewise.
55183         * doc/standards.texi: Likewise.
55184         * doc/verify.texi: Likewise.
55185         * doc/visibility.texi: Likewise.
55186         * doc/gnulib.texi (GNU Free Documentation License): Include
55187         fdl-1.3.texi instead of fdl.texi.
55188
55189 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55190
55191         * doc/fdl-1.3.texi: New file, from
55192         <http://www.gnu.org/licenses/fdl-1.3.texi>.
55193         * modules/fdl-1.3: Add.
55194         * MODULES.html.sh: Add fdl-1.3.
55195
55196 2008-11-03  Bruno Haible  <bruno@clisp.org>
55197
55198         Make determination of absolute name of header file work with AIX xlc.
55199         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
55200         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
55201         preprocessing.
55202         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55203         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55204
55205 2008-11-03  Simon Josefsson  <simon@josefsson.org>
55206
55207         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
55208         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
55209         <ludo@gnu.org>.
55210
55211 2008-11-02  Bruno Haible  <bruno@clisp.org>
55212
55213         Mark 'strpbrk' obsolete.
55214         * modules/strpbrk (Status, Notice): New sections.
55215         * modules/strtok_r (Depends-on): Add strpbrk.
55216
55217 2008-11-02  Bruno Haible  <bruno@clisp.org>
55218
55219         Mark 'strdup' obsolete.
55220         * modules/strdup (Status, Notice): New sections.
55221         * modules/findprog (Depends-on): Add strdup.
55222         * modules/getaddrinfo (Depends-on): Likewise.
55223         * modules/localename (Depends-on): Likewise.
55224         * modules/relocatable-lib (Depends-on): Likewise.
55225         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
55226         * modules/relocatable-prog (Depends-on): Likewise.
55227         * modules/trim (Depends-on): Likewise.
55228         * modules/unictype/gen-ctype (Depends-on): Likewise.
55229         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55230
55231 2008-11-02  Bruno Haible  <bruno@clisp.org>
55232
55233         Mark 'strcspn' obsolete.
55234         * modules/strcspn (Status, Notice): New sections.
55235
55236 2008-11-02  Bruno Haible  <bruno@clisp.org>
55237
55238         Mark 'rmdir' obsolete.
55239         * modules/rmdir (Status, Notice): New sections.
55240         * modules/clean-temp (Depends-on): Add rmdir.
55241         * modules/openat (Depends-on): Likewise.
55242
55243 2008-11-02  Bruno Haible  <bruno@clisp.org>
55244
55245         Mark 'raise' obsolete.
55246         * modules/raise (Status, Notice): New sections.
55247         (Include): Specify <signal.h>.
55248         * modules/stdio (Depends-on): Add raise.
55249         * modules/write (Depends-on): Likewise.
55250
55251 2008-11-02  Bruno Haible  <bruno@clisp.org>
55252
55253         Mark 'memset' obsolete.
55254         * modules/memset (Status, Notice): New sections.
55255
55256 2008-11-02  Bruno Haible  <bruno@clisp.org>
55257
55258         Mark 'memmove' obsolete.
55259         * modules/memmove (Status, Notice): New sections.
55260         * modules/argp (Depends-on): Add memmove.
55261         * modules/argz (Depends-on): Likewise.
55262         * modules/canonicalize (Depends-on): Likewise.
55263         * modules/canonicalize-lgpl (Depends-on): Likewise.
55264         * modules/fts (Depends-on): Likewise.
55265         * modules/getcwd (Depends-on): Likewise.
55266         * modules/human (Depends-on): Likewise.
55267         * modules/regex (Depends-on): Likewise.
55268         * modules/striconveh (Depends-on): Likewise.
55269         * modules/trim (Depends-on): Likewise.
55270         * modules/unistr/u8-move (Depends-on): Likewise.
55271         * modules/unistr/u16-move (Depends-on): Likewise.
55272         * modules/unistr/u32-move (Depends-on): Likewise.
55273
55274 2008-11-02  Bruno Haible  <bruno@clisp.org>
55275
55276         Mark 'memcpy' obsolete.
55277         * modules/memcpy (Status, Notice): New sections.
55278
55279 2008-11-02  Bruno Haible  <bruno@clisp.org>
55280
55281         Mark 'memcmp' obsolete.
55282         * modules/memcmp (Status, Notice): New sections.
55283         * modules/argmatch (Depends-on): Add memchr.
55284         * modules/backupfile (Depends-on): Likewise.
55285         * modules/c-strcasestr (Depends-on): Likewise.
55286         * modules/crypto/des (Depends-on): Likewise.
55287         * modules/csharpcomp (Depends-on): Likewise.
55288         * modules/fnmatch (Depends-on): Likewise.
55289         * modules/git-merge-changelog (Depends-on): Likewise.
55290         * modules/isnand (Depends-on): Likewise.
55291         * modules/isnand-nolibm (Depends-on): Likewise.
55292         * modules/isnanf (Depends-on): Likewise.
55293         * modules/isnanf-nolibm (Depends-on): Likewise.
55294         * modules/isnanl (Depends-on): Likewise.
55295         * modules/isnanl-nolibm (Depends-on): Likewise.
55296         * modules/mbchar (Depends-on): Likewise.
55297         * modules/memcoll (Depends-on): Likewise.
55298         * modules/quotearg (Depends-on): Likewise.
55299         * modules/regex (Depends-on): Likewise.
55300         * modules/relocatable-prog (Depends-on): Likewise.
55301         * modules/same (Depends-on): Likewise.
55302         * modules/signbit (Depends-on): Likewise.
55303         * modules/strcasestr-simple (Depends-on): Likewise.
55304         * modules/unictype/gen-ctype (Depends-on): Likewise.
55305         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55306         * modules/uniname/uniname (Depends-on): Likewise.
55307         * modules/unistr/u8-cmp (Depends-on): Likewise.
55308
55309 2008-11-02  Bruno Haible  <bruno@clisp.org>
55310
55311         Mark 'memchr' obsolete.
55312         * modules/memchr (Status, Notice): New sections.
55313         * modules/argp (Depends-on): Add memchr.
55314         * modules/base64 (Depends-on): Likewise.
55315         * modules/c-strcasestr (Depends-on): Likewise.
55316         * modules/chdir-long (Depends-on): Likewise.
55317         * modules/fnmatch (Depends-on): Likewise.
55318         * modules/getsubopt (Depends-on): Likewise.
55319         * modules/git-merge-changelog (Depends-on): Likewise.
55320         * modules/glob (Depends-on): Likewise.
55321         * modules/strcasestr-simple (Depends-on): Likewise.
55322         * modules/strnlen (Depends-on): Likewise.
55323
55324 2008-11-02  Bruno Haible  <bruno@clisp.org>
55325
55326         Mark 'atexit' obsolete.
55327         * modules/atexit (Status, Notice): New sections.
55328         * modules/chdir-long (Depends-on): Add atexit.
55329         * modules/wait-process (Depends-on): Likewise.
55330
55331 2008-11-02  Bruno Haible  <bruno@clisp.org>
55332
55333         * gnulib-tool: New option --with-obsolete.
55334         (func_usage): Document it.
55335         (func_modules_transitive_closure): Drop obsolete dependencies if
55336         incobsolete is not true.
55337         (func_import): Read and save the incobsolete variable to the cache.
55338
55339 2008-11-02  Bruno Haible  <bruno@clisp.org>
55340
55341         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55342         * gnulib-tool: New option --extract-status.
55343         (func_usage): Document it.
55344         (sed_extract_prog): Recognize it.
55345         (func_get_status): New function.
55346
55347 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55348
55349         * modules/sockets (License): Change from LGPL to LGPLv2+.
55350
55351 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55352
55353         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55354
55355 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55356
55357         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55358         Mention times and sys_times.
55359         * modules/sys_times, modules/sys_times-tests: New modules.
55360         * modules/times, modules/times-tests: Likewise
55361         * m4/sys_times_h.m4: New file.
55362         * lib/sys_times.in.h: Likewise
55363         * lib/times.c: Likewise.
55364         * tests/test-sys_times.c: Likewise.
55365         * tests/test-times.c: Likewise.
55366         * doc/posix-headers/sys_times.texi: Update.
55367         * doc/posix-functions/times.texi: Update.
55368
55369 2008-10-28  Jim Meyering  <meyering@redhat.com>
55370
55371         * modules/tempname (Depends-on): Add lstat.
55372
55373         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55374
55375 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55376
55377         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55378         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55379         using idiom used elsewhere in gnulib.
55380
55381 2008-10-27  Jim Meyering  <meyering@redhat.com>
55382
55383         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55384
55385 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55386
55387         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
55388         TESTS_ENVIRONMENT, for shell scripts that needs to call built
55389         programs.
55390         * tests/test-argp-2.sh: Use $EXEEXT when needed.
55391
55392 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55393
55394         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55395
55396 2008-10-27  Bruno Haible  <bruno@clisp.org>
55397
55398         * tests/test-lstat.c: Include <stdio.h>.
55399
55400 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55401
55402         * modules/lstat-tests: New module.
55403         * tests/test-lstat.c: New file.
55404
55405 2008-10-26  Jim Meyering  <meyering@redhat.com>
55406
55407         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55408
55409 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55410             Bruno Haible  <bruno@clisp.org>
55411
55412         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55413         * modules/configmake (Include): Add a note that the include must come
55414         after all system headers.
55415         * lib/javaversion.c: Include configmake.h after all other includes.
55416
55417 2008-10-26  Bruno Haible  <bruno@clisp.org>
55418
55419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55420         HAVE_STRUCT_RANDOM_DATA to 1.
55421         (gl_STDLIB_H): Simplify.
55422
55423 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55424
55425         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55426         substitute HAVE_STRUCT_RANDOM_DATA.
55427         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55428         random_data.
55429         * modules/stdlib (Makefile.am): Substitute
55430         HAVE_STRUCT_RANDOM_DATA.
55431
55432 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55433
55434         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55435         * doc/gnulib-intro.texi (Copyright): Likewise.
55436
55437 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55438
55439         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55440         findings.
55441
55442 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55443             Bruno Haible  <bruno@clisp.org>
55444
55445         * lib/unistd.in.h: Include <winsock2.h>.
55446         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55447         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55448         Provide dummy declarations.
55449         (gethostname): Override.
55450         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55451         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55452         gl_PREREQ_SYS_H_WINSOCK2.
55453         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55454         * doc/posix-functions/gethostname.texi: More details.
55455
55456 2008-10-25  Bruno Haible  <bruno@clisp.org>
55457
55458         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55459         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55460         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55461
55462         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55463         here ...
55464         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55465         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55466         gl_UNISTD_H_DEFAULTS.
55467
55468 2008-10-25  Eric Blake  <ebb9@byu.net>
55469
55470         signbit: avoid spurious compiler failure
55471         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55472         declarations inside function.
55473
55474 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55475             Bruno Haible  <bruno@clisp.org>
55476
55477         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
55478         * modules/random_r (Depends-on): Add stdint.
55479
55480 2008-10-24  Bruno Haible  <bruno@clisp.org>
55481
55482         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
55483         Eggert.
55484         * modules/strerror (License): Likewise.
55485
55486 2008-10-24  Jim Meyering  <meyering@redhat.com>
55487
55488         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
55489         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
55490
55491 2008-10-24  Eric Blake  <ebb9@byu.net>
55492
55493         getgroups: fix compilation when getgroups is available
55494         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
55495         but with <config.h> override of getgroups disabled.
55496
55497 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55498
55499         * doc/gnulib.texi (Header files): Add note about C++ problems.
55500         Explained by Bruno Haible <bruno@clisp.org>.
55501
55502 2008-10-23  Bruno Haible  <bruno@clisp.org>
55503
55504         Define a dummy SA_NODEFER macro on Interix.
55505         * lib/signal.in.h (SA_NODEFER): Define fallback.
55506         Reported by Aleksey Cheusov <cheusov@tut.by> via
55507         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
55508
55509 2008-10-23  Bruno Haible  <bruno@clisp.org>
55510
55511         * modules/freadahead (License): Change to LGPLv2+.
55512         Suggested by Simon Josefsson.
55513
55514 2008-10-23  Jim Meyering  <meyering@redhat.com>
55515
55516         random_r: new module
55517         * modules/random_r: New file.
55518         * m4/random_r.m4: New file.
55519         * lib/random_r.c: New file, from glibc.
55520         * modules/random_r-tests: New file.
55521         * tests/test-random_r.c: New file.
55522         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
55523          Declare.
55524         (RAND_MAX): Define.
55525         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
55526         * modules/stdlib: Substitute them, too.
55527         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
55528         * doc/glibc-functions/initstate_r.texi: Mention the new module.
55529         * doc/glibc-functions/random_r.texi: Likewise.
55530         * doc/glibc-functions/setstate_r.texi: Likewise.
55531         * doc/glibc-functions/srandom_r.texi: Likewise.
55532         * config/srclist.txt: Mention it.
55533
55534 2008-10-23  David Lutterkort  <lutter@redhat.com>
55535
55536         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
55537         link requirement
55538
55539 2008-10-23  Jim Meyering  <meyering@redhat.com>
55540
55541         selinux-h: mark parameters of stub functions as intentionally unused
55542         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
55543         * lib/se-context.in.h: Likewise.
55544
55545 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55546
55547         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
55548
55549 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55550
55551         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
55552
55553 2008-10-22  Eric Blake  <ebb9@byu.net>
55554
55555         glthread/thread: avoid compiler warning
55556         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
55557         Add unreachable abort to silence compiler.
55558
55559 2008-10-22  Eric Blake  <ebb9@byu.net>
55560
55561         netdb: also supply struct addrinfo for cygwin 1.5.x
55562         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
55563         older cygwin.
55564         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
55565         cygwin.
55566         * doc/posix-headers/netdb.texi (netdb.h): Document this.
55567
55568 2008-10-22  Bruno Haible  <bruno@clisp.org>
55569
55570         * users.txt: Update entry about pspp.
55571
55572 2008-10-21  Bruno Haible  <bruno@clisp.org>
55573
55574         Simplification.
55575         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
55576         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
55577
55578         Simplification.
55579         * lib/ioctl.c (ioctl): Don't undefine.
55580         * lib/socket.c (socket): Don't undefine.
55581
55582         Remove unused module indicator macros.
55583         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
55584         GNULIB_$1 as a C macro.
55585
55586         * doc/posix-functions/close.texi: Undo last change.
55587         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
55588         Windows platforms.
55589
55590 2008-10-21  Bruno Haible  <bruno@clisp.org>
55591
55592         Add gethostname() declaration to <unistd.h>.
55593         * lib/unistd.in.h (gethostname): New declaration.
55594         * lib/gethostname.c: Include <unistd.h>.
55595         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
55596         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
55597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
55598         and HAVE_GETHOSTNAME.
55599         * modules/gethostname (Depends-on): Add unistd.
55600         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55601         (Include): Specify <unistd.h>.
55602         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
55603         HAVE_GETHOSTNAME.
55604         * tests/test-gethostname.c: Include <unistd.h> first.
55605
55606 2008-10-21  Bruno Haible  <bruno@clisp.org>
55607
55608         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
55609         * modules/select-tests (Depends-on): Likewise.
55610         Reported by Simon Josefsson.
55611
55612 2008-10-21  Simon Josefsson  <simon@josefsson.org>
55613
55614         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
55615         * lib/accept.c: New file, based on winsock.c.
55616         * lib/bind.c: New file, based on winsock.c.
55617         * lib/connect.c: New file, based on winsock.c.
55618         * lib/getpeername.c: New file, based on winsock.c.
55619         * lib/getsockname.c: New file, based on winsock.c.
55620         * lib/getsockopt.c: New file, based on winsock.c.
55621         * lib/ioctl.c: New file, based on winsock.c.
55622         * lib/listen.c: New file, based on winsock.c.
55623         * lib/recv.c: New file, based on winsock.c.
55624         * lib/recvfrom.c: New file, based on winsock.c.
55625         * lib/send.c: New file, based on winsock.c.
55626         * lib/sendto.c: New file, based on winsock.c.
55627         * lib/setsockopt.c: New file, based on winsock.c.
55628         * lib/shutdown.c: New file, based on winsock.c.
55629         * lib/socket.c: New file, based on winsock.c.
55630         * lib/w32sock.h: New file, based on winsock.c.
55631         * lib/winsock.c: Remove file.
55632         * modules/accept: Likewise.
55633         * modules/bind: Likewise.
55634         * modules/connect: Likewise.
55635         * modules/getpeername: Likewise.
55636         * modules/getsockname: Likewise.
55637         * modules/getsockopt: Likewise.
55638         * modules/ioctl: Likewise.
55639         * modules/listen: Likewise.
55640         * modules/recv: Likewise.
55641         * modules/recvfrom: Likewise.
55642         * modules/send: Likewise.
55643         * modules/sendto: Likewise.
55644         * modules/setsockopt: Likewise.
55645         * modules/shutdown: Likewise.
55646         * modules/socket: Use socket.c instead of winsock.c.
55647         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
55648         * doc/posix-functions/accept.texi: Doc fix.
55649         * doc/posix-functions/bind.texi: Doc fix.
55650         * doc/posix-functions/close.texi: Doc fix.
55651         * doc/posix-functions/connect.texi: Doc fix.
55652         * doc/posix-functions/getpeername.texi: Doc fix.
55653         * doc/posix-functions/getsockname.texi: Doc fix.
55654         * doc/posix-functions/getsockopt.texi: Doc fix.
55655         * doc/posix-functions/ioctl.texi: Doc fix.
55656         * doc/posix-functions/listen.texi: Doc fix.
55657         * doc/posix-functions/recv.texi: Doc fix.
55658         * doc/posix-functions/recvfrom.texi: Doc fix.
55659         * doc/posix-functions/send.texi: Doc fix.
55660         * doc/posix-functions/sendto.texi: Doc fix.
55661         * doc/posix-functions/setsockopt.texi: Doc fix.
55662         * doc/posix-functions/shutdown.texi: Doc fix.
55663         * doc/posix-functions/socket.texi: Doc fix.
55664
55665 2008-10-20  Bruno Haible  <bruno@clisp.org>
55666
55667         Take into account the role of SIGABRT_COMPAT on Windows 2008.
55668         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
55669         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
55670         as an alias for SIGABRT.
55671         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
55672         (sigaction): Map it to SIGABRT.
55673         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
55674
55675 2008-10-20  Bruno Haible  <bruno@clisp.org>
55676
55677         * lib/fts.c: Don't include lstat.h.
55678         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
55679
55680         Move the lstat() declaration to <sys/stat.h>.
55681         * lib/lstat.h: Remove file.
55682         * lib/sys_stat.in.h: Add special invocation convention.
55683         (lstat): New declaration.
55684         * lib/lstat.c (orig_lstat): New function.
55685         (rpl_lstat): Use orig_lstat instead of lstat.
55686         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
55687         AC_C_INLINE. Set REPLACE_LSTAT.
55688         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
55689         and REPLACE_LSTAT.
55690         * modules/lstat (Files): Remove lib/lstat.h.
55691         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55692         (Include): Specify <sys/stat.h> instead of lstat.h.
55693         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
55694         REPLACE_LSTAT.
55695         * NEWS: Mention the change.
55696
55697 2008-10-20  Bruno Haible  <bruno@clisp.org>
55698
55699         * modules/posix_spawn-tests: New file.
55700         * tests/test-posix_spawn3.c: New file.
55701
55702 2008-10-20  Bruno Haible  <bruno@clisp.org>
55703
55704         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
55705         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55706         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
55707         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55708         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
55709
55710 2008-10-20  Bruno Haible  <bruno@clisp.org>
55711
55712         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
55713         of posix_spawn on AIX 5.3.
55714
55715 2008-10-20  Bruno Haible  <bruno@clisp.org>
55716
55717         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
55718
55719 2008-10-20  Bruno Haible  <bruno@clisp.org>
55720
55721         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
55722         of AC_LANG_PROGRAM.
55723
55724 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55725
55726         * lib/netdb.in.h: Don't define GNU specific constants until they
55727         are supported or needed.  Reported by Bruno Haible
55728         <bruno@clisp.org>.
55729
55730 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55731
55732         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
55733
55734 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55735
55736         * lib/getaddrinfo.h: Remove file.
55737         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
55738         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
55739         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
55740         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
55741         * modules/netdb: Substitute GNULIB_GETADDRINFO.
55742         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
55743         * tests/test-getaddrinfo.c: Likewise.
55744         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
55745         * NEWS: Mention change.
55746
55747 2008-10-19  Bruno Haible  <bruno@clisp.org>
55748
55749         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
55750
55751 2008-10-19  Bruno Haible  <bruno@clisp.org>
55752
55753         * lib/wait-process.c: Include simply <sys/wait.h>.
55754         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
55755         WIFSTOPPED): Remove fallback definitions.
55756         * modules/wait-process (Depends-on): Add sys_wait.
55757
55758         New module 'sys_wait'.
55759         * modules/sys_wait: New file.
55760         * lib/sys_wait.in.h: New file, partially copied from
55761         lib/wait-process.c.
55762         * m4/sys_wait_h.m4: New file.
55763         * doc/posix-headers/sys_wait.texi: Mention the new module.
55764
55765 2008-10-19  Bruno Haible  <bruno@clisp.org>
55766
55767         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
55768
55769 2008-10-19  Bruno Haible  <bruno@clisp.org>
55770
55771         Assume that waitpid() fills an 'int' status, not a 'union wait'.
55772         * lib/wait-process.c (WAIT_T): Remove type.
55773         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
55774         (wait_subprocess): Update.
55775
55776 2008-10-19  Bruno Haible  <bruno@clisp.org>
55777
55778         New module 'atoll'.
55779         * modules/atoll: New file.
55780         * lib/stdlib.in.h (atoll): New declaration.
55781         * lib/atoll.c: New file, from glibc with modifications.
55782         * m4/atoll.m4: New file.
55783         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
55784         HAVE_ATOLL.
55785         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
55786         * doc/posix-functions/atoll.texi: Mention the new module.
55787
55788 2008-10-19  Bruno Haible  <bruno@clisp.org>
55789
55790         Add strtoull() declaration to <stdlib.h>.
55791         * lib/stdlib.in.h (strtoull): New declaration.
55792         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55793         Set HAVE_STRTOULL.
55794         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
55795         HAVE_STRTOULL.
55796         * modules/strtoull (Depends-on): Add stdlib.
55797         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55798         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
55799         HAVE_STRTOULL.
55800
55801 2008-10-19  Bruno Haible  <bruno@clisp.org>
55802
55803         Add strtoll() declaration to <stdlib.h>.
55804         * lib/stdlib.in.h (strtoll): New declaration.
55805         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55806         Set HAVE_STRTOLL.
55807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
55808         HAVE_STRTOLL.
55809         * modules/strtoll (Depends-on): Add stdlib.
55810         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55811         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
55812
55813 2008-10-19  Bruno Haible  <bruno@clisp.org>
55814
55815         * modules/bcopy (Depends-on): Add strings.
55816         (Include): Specify <strings.h>.
55817
55818 2008-10-19  Bruno Haible  <bruno@clisp.org>
55819
55820         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
55821
55822 2008-10-19  Bruno Haible  <bruno@clisp.org>
55823
55824         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
55825         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
55826         mingw.
55827
55828 2008-10-19  Bruno Haible  <bruno@clisp.org>
55829
55830         * lib/atanl.c: Don't include isnanl.h.
55831         * lib/cosl.c: Likewise.
55832         * lib/ldexpl.c: Likewise.
55833         * lib/logl.c: Likewise.
55834         * lib/sinl.c: Likewise.
55835         * lib/sqrtl.c: Likewise.
55836         * lib/tanl.c: Likewise.
55837
55838         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
55839         * lib/isnanf.h: Remove file.
55840         * lib/isnand.h: Remove file.
55841         * lib/isnanl.h: Remove file.
55842         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
55843         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
55844         macros.
55845         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
55846         HAVE_ISNANF, don't define it as a C macro.
55847         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
55848         HAVE_ISNAND, don't define it as a C macro.
55849         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
55850         HAVE_ISNANL, don't define it as a C macro.
55851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
55852         HAVE_ISNAN[FDL].
55853         * modules/isnanf (Files): Remove lib/isnanf.h.
55854         (Depends-on): Add math.
55855         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55856         (Include): Specify <math.h> instead of isnanf.h.
55857         * modules/isnand (Files): Remove lib/isnand.h.
55858         (Depends-on): Add math.
55859         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55860         (Include): Specify <math.h> instead of isnand.h.
55861         * modules/isnanl (Files): Remove lib/isnanl.h.
55862         (Depends-on): Add math.
55863         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55864         (Include): Specify <math.h> instead of isnanl.h.
55865         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
55866         HAVE_ISNAN[FDL].
55867         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
55868         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
55869         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
55870         * NEWS: Mention the change.
55871
55872 2008-10-18  Bruno Haible  <bruno@clisp.org>
55873
55874         Add getusershell(), setusershell(), endusershell() declarations to
55875         <unistd.h>.
55876         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
55877         declarations.
55878         * lib/getusershell.c: Include unistd.h.
55879         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
55880         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55881         HAVE_GETUSERSHELL.
55882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
55883         and HAVE_GETUSERSHELL.
55884         * modules/getusershell (Depends-on): Add unistd, extensions.
55885         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55886         (Include): Specify <unistd.h>.
55887         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
55888         HAVE_GETUSERSHELL.
55889
55890 2008-10-18  Bruno Haible  <bruno@clisp.org>
55891
55892         Add a getloadavg() declaration to <stdlib.h>.
55893         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
55894         getloadavg declaration.
55895         (getloadavg): New declaration.
55896         * lib/getloadavg.c: Include <stdlib.h> first.
55897         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
55898         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
55899         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
55900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
55901         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55902         * modules/getloadavg (Depends-on): Add stdlib, extensions.
55903         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55904         (Include): Specify <stdlib.h>.
55905         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
55906         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55907
55908 2008-10-18  Bruno Haible  <bruno@clisp.org>
55909
55910         * lib/dirchownmod.c: Don't include lchmod.h.
55911
55912         Move the lchmod() declaration to <sys/stat.h>.
55913         * lib/lchmod.h: Remove file.
55914         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
55915         (lchmod): New declaration, moved here from lib/lchown.h.
55916         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
55917         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
55918         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
55919         and HAVE_LCHMOD.
55920         * modules/lchmod (Files): Remove lib/lchmod.h.
55921         (Depends-on): Add sys_stat, extensions.
55922         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55923         (Include): Specify <sys/stat.h> instead of lchmod.h.
55924         * modules/sys_stat (Depends-on): Add link-warning.
55925         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
55926         definition of GL_LINK_WARNING.
55927         * NEWS: Mention the change.
55928
55929 2008-10-18  Bruno Haible  <bruno@clisp.org>
55930
55931         * lib/fchdir.c: Don't include dirfd.h.
55932         * lib/fts.c: Likewise.
55933         * lib/getcwd.c: Likewise.
55934         * lib/glob.c: Likewise.
55935
55936         Move the dirfd() declaration to <dirent.h>.
55937         * lib/dirfd.h: Remove file.
55938         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
55939         (dirfd): New declaration.
55940         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
55941         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
55942         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
55943         HAVE_DECL_DIRFD.
55944         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
55945         HAVE_DECL_DIRFD.
55946         * modules/dirfd (Files): Remove lib/dirfd.h.
55947         (Depends-on): Add dirent, extensions.
55948         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
55949         (Include): Specify <dirent.h> instead of dirfd.h.
55950         * modules/dirent (Depends-on): Add link-warning.
55951         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
55952         definition of GL_LINK_WARNING.
55953         * NEWS: Mention the change.
55954
55955 2008-10-18  Bruno Haible  <bruno@clisp.org>
55956
55957         Move the euidaccess() declaration to <unistd.h>.
55958         * lib/euidaccess.h: Remove file.
55959         * lib/unistd.in.h (euidaccess): New declaration.
55960         * lib/euidaccess.c: Don't include euidaccess.h.
55961         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
55962         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
55963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
55964         and HAVE_EUIDACCESS.
55965         * modules/euidaccess (Files): Remove lib/euidaccess.h.
55966         (Depends-on): Add unistd.
55967         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55968         (Include): Specify <unistd.h> instead of euidaccess.h.
55969         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
55970         HAVE_EUIDACCESS.
55971         * NEWS: Mention the change.
55972
55973 2008-10-18  Bruno Haible  <bruno@clisp.org>
55974
55975         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
55976
55977         Move the getdomainname() declaration to <unistd.h>.
55978         * lib/getdomainname.h: Remove file.
55979         * lib/unistd.in.h (getdomainname): New declaration.
55980         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
55981         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
55982         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55983         HAVE_GETDOMAINNAME.
55984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55985         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
55986         * modules/getdomainname (Files): Remove lib/getdomainname.h.
55987         (Depends-on): Add unistd, extensions.
55988         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55989         (Includes): Specify <unistd.h> instead of getdomainname.h.
55990         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
55991         HAVE_GETDOMAINNAME.
55992         * NEWS: Mention the change.
55993
55994 2008-10-18  Bruno Haible  <bruno@clisp.org>
55995
55996         * modules/dirent: New file.
55997         * m4/dirent_h.m4: New file.
55998         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
55999         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
56000         * modules/fchdir (Files): Remove lib/dirent.in.h.
56001         (Depends-on): Add dirent.
56002         (Makefile.am): Move rules to modules/dirent.
56003         * doc/posix-headers/dirent.texi: Mention the new module.
56004
56005 2008-10-18  Bruno Haible  <bruno@clisp.org>
56006
56007         Avoid -Wunused-parameter warnings in public gnulib header files.
56008         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
56009         macro.
56010         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
56011
56012 2008-10-18  Bruno Haible  <bruno@clisp.org>
56013
56014         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
56015         * doc/glibc-functions/error.texi: Mention the module 'error'.
56016         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
56017         * doc/glibc-functions/getdomainname.texi: Mention the module
56018         'getdomainname'.
56019         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
56020         * doc/glibc-functions/getpagesize.texi: Mention the module
56021         'getpagesize'.
56022         * doc/glibc-functions/getusershell.texi: Mention the module
56023         'getusershell'.
56024         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
56025         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
56026         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
56027         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
56028         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
56029         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
56030         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
56031         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
56032         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
56033         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
56034         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
56035         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
56036         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
56037         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
56038
56039 2008-10-17  Bruno Haible  <bruno@clisp.org>
56040
56041         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
56042         HP-UX and IRIX, use -0.0L.
56043         * tests/test-ceill.c (minus_zero): Likewise.
56044         * tests/test-floorl.c (minus_zero): Likewise.
56045         * tests/test-frexpl.c (minus_zero): Likewise.
56046         * tests/test-isnan.c (minus_zerol): Likewise.
56047         * tests/test-isnanl.h (minus_zero): Likewise.
56048         * tests/test-ldexpl.c (minus_zero): Likewise.
56049         * tests/test-roundl.c (minus_zero): Likewise.
56050         * tests/test-signbit.c (minus_zerol): Likewise.
56051         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
56052         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
56053         * tests/test-truncl.c (minus_zero): Likewise.
56054         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
56055         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
56056         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
56057         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
56058
56059 2008-10-17  Bruno Haible  <bruno@clisp.org>
56060
56061         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
56062         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
56063         that it gets activated only for gcc >= 3.0.
56064         * lib/dirent.in.h: Likewise.
56065         * lib/errno.in.h: Likewise.
56066         * lib/fcntl.in.h: Likewise.
56067         * lib/float.in.h: Likewise.
56068         * lib/iconv.in.h: Likewise.
56069         * lib/inttypes.in.h: Likewise.
56070         * lib/locale.in.h: Likewise.
56071         * lib/math.in.h: Likewise.
56072         * lib/netdb.in.h: Likewise.
56073         * lib/netinet_in.in.h: Likewise.
56074         * lib/search.in.h: Likewise.
56075         * lib/signal.in.h: Likewise.
56076         * lib/spawn.in.h: Likewise.
56077         * lib/stdarg.in.h: Likewise.
56078         * lib/stdint.in.h: Likewise.
56079         * lib/stdio.in.h: Likewise.
56080         * lib/stdlib.in.h: Likewise.
56081         * lib/string.in.h: Likewise.
56082         * lib/strings.in.h: Likewise.
56083         * lib/sys_file.in.h: Likewise.
56084         * lib/sys_ioctl.in.h: Likewise.
56085         * lib/sys_select.in.h: Likewise.
56086         * lib/sys_socket.in.h: Likewise.
56087         * lib/sys_stat.in.h: Likewise.
56088         * lib/sys_time.in.h: Likewise.
56089         * lib/sysexits.in.h: Likewise.
56090         * lib/time.in.h: Likewise.
56091         * lib/unistd.in.h: Likewise.
56092         * lib/wchar.in.h: Likewise.
56093         * lib/wctype.in.h: Likewise.
56094         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56095
56096 2008-10-17  Jim Meyering  <meyering@redhat.com>
56097
56098         ignore-value: don't depend on inline module
56099         * modules/ignore-value (Depends-on): Remove 'inline'.
56100         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
56101         Suggestion from Bruno Haible.
56102
56103 2008-10-17  Bruno Haible  <bruno@clisp.org>
56104
56105         New implementation of condition variables for Win32.
56106         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
56107         (gl_linked_waitqueue_t): New type.
56108         (gl_cond_t): Use it.
56109         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
56110         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
56111         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
56112         (glthread_cond_init_func, glthread_cond_wait_func,
56113         glthread_cond_timedwait_func, glthread_cond_signal_func,
56114         glthread_cond_broadcast_func, glthread_cond_destroy_func):
56115         Reimplemented on the basis of gl_linked_waitqueue_t.
56116         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
56117         gl_waitqueue_t.
56118         (gl_rwlock_t): Update.
56119         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
56120
56121 2008-10-17  Simon Josefsson  <simon@josefsson.org>
56122
56123         * modules/recvfrom (Depends-on): Add dependency on getpeername.
56124         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56125
56126 2008-10-17  Jim Meyering  <meyering@redhat.com>
56127
56128         ignore-value: new module
56129         * modules/ignore-value: New file.
56130         * lib/ignore-value.h: New file.
56131         * MODULES.html.sh (Compiler warning management): New section,
56132         just for this module.  More to come.
56133
56134 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56135
56136         open-safer.c: avoid 'signed and unsigned in conditional...' warning
56137         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
56138         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
56139
56140 2008-10-16  Jim Meyering  <meyering@redhat.com>
56141
56142         openat-die.c: avoid 'no previous prototype' warning
56143         * lib/openat-die.c: Include "openat.h".
56144         Reported by Reuben Thomas <rrt@sc3d.org>.
56145
56146 2008-10-16  Simon Josefsson  <simon@josefsson.org>
56147
56148         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
56149         * lib/netdb.in.h: Fix typo.
56150         Reported by Bruno Haible  <bruno@clisp.org>
56151
56152         * lib/netdb.in.h: Include sys/socket.h for platforms without
56153         netdb.h, to get structures like hostent on MinGW.
56154         * modules/netdb (Depends-on): Add sys_socket.
56155
56156 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56157
56158         * modules/netdb, modules/netdb-tests: New file.
56159         * m4/netdb_h.m4: New file.
56160         * lib/netdb.in.h: Add, currently just an empty file pending
56161         definitions.
56162         * tests/test-netdb.c: New file.
56163         * doc/posix-headers/netdb.texi: Mention that we replace it if
56164         needed.
56165         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56166         netdb.
56167
56168 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56169
56170         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
56171         with code.
56172
56173 2008-10-13  Bruno Haible  <bruno@clisp.org>
56174
56175         * lib/glthread/cond.c (glthread_cond_wait_func,
56176         glthread_cond_timedwait_func): Add a comment.
56177
56178 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56179
56180         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
56181         * tests/test-select.c: Likewise,
56182
56183 2008-10-13  Bruno Haible  <bruno@clisp.org>
56184
56185         * lib/glthread/cond.c (glthread_cond_wait_func,
56186         glthread_cond_timedwait_func): Fix variable name.
56187         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56188
56189 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
56190
56191         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
56192         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
56193         struct sockaddr.sa_len.
56194         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
56195
56196 2008-10-13  Simon Josefsson  <simon@josefsson.org>
56197
56198         * build-aux/pmccabe2html: Add css and css_url parameters.
56199
56200 2008-10-12  Bruno Haible  <bruno@clisp.org>
56201
56202         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
56203         calling aclx_get.
56204         Reported by Rainer Tammer <tammer@tammer.net>.
56205
56206 2008-10-12  Bruno Haible  <bruno@clisp.org>
56207
56208         Use msvcrt aware primitives for creation/termination of Win32 threads.
56209         * lib/glthread/thread.c: Include <process.h>.
56210         (glthread_create_func): Use _beginthreadex instead of CreateThread.
56211         (wrapper_func): Update signature.
56212         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
56213
56214 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56215             Bruno Haible  <bruno@clisp.org>
56216
56217         Provide a Win32 implementation of the 'cond' module.
56218         * lib/glthread/cond.h [USE_WIN32]: New implementation.
56219         * lib/glthread/cond.c (glthread_cond_init_func,
56220         glthread_cond_wait_func, glthread_cond_timedwait_func,
56221         glthread_cond_signal_func, glthread_cond_broadcast_func,
56222         glthread_cond_destroy_func) [USE_WIN32]: New functions.
56223         * modules/cond (Dependencies): Add gettimeofday.
56224
56225 2008-10-11  Bruno Haible  <bruno@clisp.org>
56226
56227         Make sleep work on older versions of mingw.
56228         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
56229         only whether it exists.
56230         * doc/posix-functions/sleep.texi: Mention the problem with older
56231         versions of mingw.
56232
56233 2008-10-11  Bruno Haible  <bruno@clisp.org>
56234
56235         New module 'shutdown'.
56236         * modules/shutdown: New file.
56237         * lib/sys_socket.in.h (shutdown): New declaration.
56238         * lib/winsock.c (shutdown): New function.
56239         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
56240         GNULIB_SHUTDOWN.
56241         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
56242         * doc/posix-functions/shutdown.texi: Document the new module.
56243
56244 2008-10-11  Jim Meyering  <meyering@redhat.com>
56245
56246         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
56247
56248 2008-10-11  Bruno Haible  <bruno@clisp.org>
56249
56250         New module 'fclose'.
56251         * modules/fclose: New file.
56252         * lib/stdio.in.h (fclose): New declaration.
56253         * lib/fclose.c: New file.
56254         * m4/fclose.m4: New file.
56255         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
56256         REPLACE_FCLOSE.
56257         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
56258         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
56259         REPLACE_FCLOSE.
56260         * modules/close (Depends-on): fclose.
56261         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
56262
56263 2008-10-11  Bruno Haible  <bruno@clisp.org>
56264
56265         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
56266         set errno and don't call _close.
56267
56268 2008-10-10  Bruno Haible  <bruno@clisp.org>
56269
56270         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
56271         ACL, not afterwards. Fixes test failure on Cygwin.
56272
56273 2008-10-09  Ben Pfaff  <blp@gnu.org>
56274
56275         * build-aux/announce-gen: Fix gnulib version related part of usage
56276         message.  Die with a useful error message if no tarballs are
56277         found.
56278
56279 2008-10-10  Jim Meyering  <meyering@redhat.com>
56280
56281         bootstrap: use git's --depth=N option only if it's supported
56282         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
56283         recognize the --depth option.  Reported by Pádraig Brady.
56284
56285 2008-10-09  Bruno Haible  <bruno@clisp.org>
56286
56287         New module 'ioctl'.
56288         * modules/ioctl: New file.
56289         * lib/sys_socket.in.h (ioctl): Remove declaration.
56290         * lib/winsock.c: Include <sys/ioctl.h>.
56291         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
56292         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56293         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
56294         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
56295         * doc/posix-functions/ioctl.texi: Mention the new module.
56296
56297 2008-10-09  Bruno Haible  <bruno@clisp.org>
56298
56299         New module 'sys_ioctl'.
56300         * lib/sys_ioctl.in.h: New file.
56301         * m4/sys_ioctl_h.m4: New file.
56302         * modules/sys_ioctl: New file.
56303         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
56304
56305 2008-10-09  Bruno Haible  <bruno@clisp.org>
56306
56307         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
56308         * lib/winsock.c: Include <stdarg.h>.
56309         (rpl_ioctl): Change to second argument 'int' and then varargs.
56310
56311 2008-10-09  Bruno Haible  <bruno@clisp.org>
56312
56313         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
56314         when the sys_socket module is present and the system has <winsock2.h>.
56315
56316 2008-10-09  Bruno Haible  <bruno@clisp.org>
56317
56318         * doc/posix-functions/close.texi: Mention module 'close' instead of
56319         module 'sys_socket'.
56320
56321 2008-10-09  Bruno Haible  <bruno@clisp.org>
56322
56323         * doc/glibc-headers/sys_ioctl.texi: New file.
56324         * doc/gnulib.texi: Include it.
56325
56326 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56327             Bruno Haible  <bruno@clisp.org>
56328
56329         Combine the two replacements of 'close'.
56330         * lib/sys_socket.in.h (close): Define to a reminder to include
56331         <unistd.h>.
56332         (_gl_close_fd_maybe_socket): New declaration.
56333         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56334         * lib/winsock.c (close): Remove undefinition.
56335         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56336         needed for the gnulib module 'close'.
56337         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56338         define to an error symbol or to a warning, if suitable.
56339         * lib/close.c: Include <sys/socket.h>.
56340         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56341         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56342         UNISTD_H_HAVE_WINSOCK2_H.
56343         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56345         UNISTD_H_HAVE_WINSOCK2_H.
56346         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56347         (configure.ac): Set a module indicator.
56348         (Makefile.am): Substitute GNULIB_CLOSE.
56349         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56350         * modules/poll-tests (Depends-on): Add close.
56351         * modules/select-tests (Depends-on): Likewise.
56352
56353 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56354             Bruno Haible  <bruno@clisp.org>
56355
56356         New module 'close'.
56357         * modules/close: New file.
56358         * lib/unistd.in.h (close): Move declaration out of the
56359         FCHDIR_REPLACEMENT scope.
56360         (_gl_unregister_fd): New declaration.
56361         * lib/close.c: New file.
56362         * lib/fchdir.c (rpl_close): Remove function.
56363         * m4/close.m4: New file.
56364         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56365         close.
56366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56367         REPLACE_CLOSE.
56368         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56369         REPLACE_CLOSE.
56370         * modules/fchdir (Depends-on): Add close.
56371
56372 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56373             Bruno Haible  <bruno@clisp.org>
56374
56375         * lib/fcntl.in.h (open): Simplify conditionals.
56376         (_gl_register_fd): New declaration.
56377         * lib/fchdir.c (rpl_open): Remove function.
56378         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56379         also.
56380         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56381         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56382         open.
56383
56384 2008-10-09  Jim Meyering  <meyering@redhat.com>
56385
56386         GNUmakefile: use the more name-space-friendly "_version"
56387         * top/GNUmakefile (_dummy): Update.
56388         (_version): Rename from "version".
56389
56390 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56391             Bruno Haible  <bruno@clisp.org>
56392
56393         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56394         rpl_close.
56395         (_gl_register_fd): New function, extracted from rpl_open.
56396         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56397         (rpl_open, rpl_opendir): Use _gl_register_fd.
56398
56399 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56400
56401         Fix organization of 'open' replacement.
56402         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56403         (gl_FUNC_OPEN): Use it.
56404         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56405
56406 2008-10-08  Bruno Haible  <bruno@clisp.org>
56407
56408         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56409
56410 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56411
56412         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56413         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56414         listen).
56415
56416 2008-10-08  Eric Blake  <ebb9@byu.net>
56417
56418         GNUmakefile: add 'make version' target
56419         * top/GNUmakefile (_curr-ver): Split version update rules...
56420         (version): ...into a target.
56421
56422 2008-10-07  Bruno Haible  <bruno@clisp.org>
56423
56424         Use a more portable replacement expression for -0.0L.
56425         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56426         instead of -0.0L. Fix m4 quotation.
56427
56428         * tests/test-signbit.c: Include <float.h>.
56429         (minus_zero): New variable.
56430         (test_signbitl): Use minus_zero instead of -zero.
56431         * modules/signbit-tests (Depends-on): Add float.
56432
56433         * tests/test-ceill.c: Include <float.h>.
56434         (zero): Remove variable.
56435         (minus_zero): New variable.
56436         (main): Use minus_zero instead of -zero.
56437         * modules/ceill-tests (Depends-on): Add float.
56438
56439         * tests/test-floorl.c: Include <float.h>.
56440         (zero): Remove variable.
56441         (minus_zero): New variable.
56442         (main): Use minus_zero instead of -zero.
56443         * modules/floorl-tests (Depends-on): Add float.
56444
56445         * tests/test-roundl.c: Include <float.h>.
56446         (zero): Remove variable.
56447         (minus_zero): New variable.
56448         (main): Use minus_zero instead of -zero.
56449         * modules/roundl-tests (Depends-on): Add float.
56450
56451         * tests/test-truncl.c: Include <float.h>.
56452         (zero): Remove variable.
56453         (minus_zero): New variable.
56454         (main): Use minus_zero instead of -zero.
56455         * modules/truncl-tests (Depends-on): Add float.
56456
56457         * tests/test-frexpl.c (zero): Remove variable.
56458         (minus_zero): New variable.
56459         (main): Use minus_zero instead of -zero.
56460         * modules/frexpl-tests (Depends-on): Add float.
56461
56462         * tests/test-isnan.c (zerol): Remove variable.
56463         (minus_zerol): New variable.
56464         (test_long_double): Use minus_zerol instead of -zerol.
56465         * modules/isnan-tests (Depends-on): Add float.
56466
56467         * tests/test-isnanl.h (zero): Remove variable.
56468         (minus_zero): New variable.
56469         (main): Use minus_zero instead of -zero.
56470         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56471         * modules/isnanl-tests (Depends-on): Add float.
56472
56473         * tests/test-ldexpl.c (zero): Remove variable.
56474         (minus_zero): New variable.
56475         (main): Use minus_zero instead of -zero.
56476         * modules/ldexpl-tests (Depends-on): Add float.
56477
56478         * tests/test-snprintf-posix.h (zerol): Remove variable.
56479         (minus_zerol): New variable.
56480         (test_function): Use minus_zerol instead of -zerol.
56481         * modules/snprintf-posix-tests (Depends-on): Add float.
56482         * modules/vsnprintf-posix-tests (Depends-on): Add float.
56483
56484         * tests/test-sprintf-posix.h (zerol): Remove variable.
56485         (minus_zerol): New variable.
56486         (test_function): Use minus_zerol instead of -zerol.
56487         * modules/sprintf-posix-tests (Depends-on): Add float.
56488         * modules/vsprintf-posix-tests (Depends-on): Add float.
56489
56490         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
56491         (minus_zerol): New variable.
56492         (test_function): Use minus_zerol instead of -zerol.
56493         * modules/vasnprintf-posix-tests (Depends-on): Add float.
56494
56495         * tests/test-vasprintf-posix.c (zerol): Remove variable.
56496         (minus_zerol): New variable.
56497         (test_function): Use minus_zerol instead of -zerol.
56498         * modules/vasprintf-posix-tests (Depends-on): Add float.
56499
56500 2008-10-07  Simon Josefsson  <simon@josefsson.org>
56501
56502         * MODULES.html.sh (Support for building documentation): Mention
56503         pmccabe2html.  Sort entries.
56504
56505         Add pmccabe2html module, from gnupdf.
56506         * build-aux/pmccabe.css: New file.
56507         * build-aux/pmccabe2html: New file.
56508         * m4/pmccabe2html.m4: New file.
56509         * modules/pmccabe2html: New file.
56510
56511 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
56512
56513         flock: new module
56514         * MODULES.html.sh: Add to list of modules.
56515         * lib/flock.c: flock implementation for Windows and Unix systems
56516         which have fcntl.
56517         * doc/glibc-functions/flock.texi: Update documentation.
56518         * lib/sys_file.in.h: <sys/file.h> header file.
56519         * m4/flock.m4: M4 macros.
56520         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
56521         * modules/flock: flock module.
56522         * modules/flock-tests: flock tests module.
56523         * modules/sys_file: sys/file.h module.
56524         * tests/test-flock.c: test suite for flock.
56525
56526 2008-10-06  Jim Meyering  <meyering@redhat.com>
56527
56528         bootstrap: check for LT_INIT more portably still ;-)
56529         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
56530         Spotted by Bruno Haible.
56531
56532 2008-10-06  Eric Blake  <ebb9@byu.net>
56533
56534         test-signbit: avoid tripping Irix cc bug on -0.0L
56535         * tests/test-signbit.c (minus_zerol): Delete, and replace with
56536         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
56537         entire testsuite consistent and avoids an Irix 6.2 bug.
56538
56539 2008-10-05  Bruno Haible  <bruno@clisp.org>
56540             Jim Meyering  <jim@meyering.net>
56541
56542         Add an option for ignoring EPIPE during close_stdout.
56543         * lib/closeout.h: Include <stdbool.h>.
56544         (close_stdout_set_ignore_EPIPE): New declaration.
56545         * lib/closeout.c: Include <stdbool.h>.
56546         (ignore_EPIPE): New variable.
56547         (close_stdout_set_ignore_EPIPE): New function.
56548         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
56549         * lib/close-stream.c (close_stream): Mention the possible EPIPE
56550         failure.
56551         * modules/closeout (Depends-on): Add stdbool.
56552
56553 2008-10-05  Bruno Haible  <bruno@clisp.org>
56554
56555         * modules/accept: New file.
56556         * modules/bind: New file.
56557         * modules/connect: New file.
56558         * modules/getpeername: New file.
56559         * modules/getsockname: New file.
56560         * modules/getsockopt: New file.
56561         * modules/listen: New file.
56562         * modules/recv: New file.
56563         * modules/recvfrom: New file.
56564         * modules/send: New file.
56565         * modules/sendto: New file.
56566         * modules/setsockopt: New file.
56567         * modules/socket: New file.
56568         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
56569         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
56570         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
56571         the particular module is requested. Add a link warning when the
56572         particular module is not requested.
56573         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
56574         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
56575         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
56576         the particular module is requested.
56577         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
56578         gl_SYS_SOCKET_H_DEFAULTS): New macros.
56579         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
56580         * modules/sys_socket (Depends-on): Add link-warning.
56581         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
56582         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
56583         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
56584         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
56585         GL_LINK_WARNING.
56586         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
56587         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
56588         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
56589         * doc/posix-functions/getpeername.texi: Mention the new module
56590         'getpeername'.
56591         * doc/posix-functions/getsockname.texi: Mention the new module
56592         'getsockname'.
56593         * doc/posix-functions/getsockopt.texi: Mention the new module
56594         'getsockopt'.
56595         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
56596         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
56597         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
56598         * doc/posix-functions/send.texi: Mention the new module 'send'.
56599         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
56600         * doc/posix-functions/setsockopt.texi: Mention the new module
56601         'setsockopt'.
56602         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
56603         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
56604         listen, connect, accept.
56605         * modules/select-tests (Depends-on): Likewise.
56606
56607 2008-10-05  Bruno Haible  <bruno@clisp.org>
56608
56609         * lib/winsock.c (strerror): Remove unused #undef.
56610         (rpl_close): Remove unused local variable.
56611
56612         * modules/sys_socket (Depends-on); Add errno.
56613
56614 2008-10-05  Bruno Haible  <bruno@clisp.org>
56615
56616         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
56617         (select): Add a link warning when the 'select' module is not used.
56618         * modules/sys_select (Depends-on): Add link-warning.
56619         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
56620         Suggested by Paolo Bonzini.
56621
56622 2008-10-05  Jim Meyering  <meyering@redhat.com>
56623
56624         bootstrap: check for LT_INIT more portably
56625         * build-aux/bootstrap: Avoid using grep -E, since it's not
56626         portable enough.  Suggestion from Bruno Haible.
56627
56628 2008-10-05  Bruno Haible  <bruno@clisp.org>
56629
56630         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
56631         as being fixed by gnulib.
56632
56633 2008-10-05  Bruno Haible  <bruno@clisp.org>
56634
56635         * modules/select-tests: New file, mostly copied from
56636         modules/sys_select-tests.
56637         * tests/test-select.c: New file, mostly copied from
56638         tests/test-sys_select.c.
56639         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
56640         * modules/sys_select-tests (Depends-on): Remove all dependencies.
56641         (Makefile.am): Remove test_sys_select_LDADD.
56642
56643         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
56644         to an undefined symbol, for an error message.
56645         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
56646         (gl_SYS_SELECT_H_DEFAULTS): New macro.
56647         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
56648         winsock-select.c here.
56649         * modules/sys_select (Files): Remove lib/winsock-select.c.
56650         (Depends-on): Remove alloca.
56651         (Makefile.am): Substitute GNULIB_SELECT.
56652         * modules/select: New file.
56653         * doc/posix-functions/select.texi: Update.
56654
56655 2008-10-05  Bruno Haible  <bruno@clisp.org>
56656
56657         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
56658         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
56659         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
56660         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
56661         getdtablesize.
56662         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56663         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56664
56665 2008-10-05  Bruno Haible  <bruno@clisp.org>
56666
56667         * modules/getdtablesize-tests: New file.
56668         * tests/test-getdtablesize.c: New file.
56669
56670         New module 'getdtablesize'.
56671         * lib/unistd.in.h (getdtablesize): New declaration.
56672         * lib/getdtablesize.c: New file.
56673         * m4/getdtablesize.m4: New file.
56674         * modules/getdtablesize: New file.
56675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56676         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
56677         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
56678         HAVE_GETDTABLESIZE.
56679         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
56680
56681 2008-10-05  Bruno Haible  <bruno@clisp.org>
56682
56683         * modules/sched (Makefile.am): Fix typo.
56684         Reported by Simon Josefsson.
56685
56686 2008-10-05  Jim Meyering  <meyering@redhat.com>
56687
56688         bootstrap: check for LT_INIT, too
56689         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
56690         are deprecated.  Suggestion from Ralf Wildenhues.
56691
56692 2008-10-05  Bruno Haible  <bruno@clisp.org>
56693
56694         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
56695         overriding them by ours.
56696         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
56697
56698 2008-10-05  Jim Meyering  <meyering@redhat.com>
56699
56700         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
56701         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
56702         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
56703
56704 2008-10-04  Bruno Haible  <bruno@clisp.org>
56705
56706         * modules/dup2 (License): Change to LGPLv2+.
56707         * modules/sleep (License): Likewise.
56708         * modules/perror (License): Likewise.
56709         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
56710         Blake.
56711         * modules/signal (License): Likewise.
56712         * modules/sigprocmask (License): Likewise.
56713         * modules/raise (License): Change to LGPLv2+, with approval by Jim
56714         Meyering.
56715
56716 2008-10-04  Bruno Haible  <bruno@clisp.org>
56717
56718         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
56719         Reported by Rainer Tammer <tammer@tammer.net>.
56720
56721 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
56722             Bruno Haible  <bruno@clisp.org>
56723
56724         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
56725         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
56726         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
56727
56728 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
56729
56730         filevercmp: new module
56731         * lib/filevercmp.h: New function filevercmp comparing version strings.
56732         * lib/filevercmp.c: Implementation of filevercmp function.
56733         * modules/filevercmp: Module metadata.
56734         * tests/test-filevercmp.c: Unit test for new module.
56735         * modules/filevercmp-tests: Unit test metadata.
56736         * MODULES.html.sh: Add filevercmp module.
56737
56738 2008-10-03  Bruno Haible  <bruno@clisp.org>
56739
56740         * lib/c-ctype.h: Add comment.
56741         Reported by Jim Meyering.
56742
56743 2008-10-02  Bruno Haible  <bruno@clisp.org>
56744
56745         * modules/posix_spawn-internal (Depends-on): Add 'open'.
56746
56747 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56748
56749         * build-aux/bootstrap: Allow renaming bootstrap, and change the
56750         name of bootstrap.conf accordingly.
56751
56752 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56753
56754         * build-aux/bootstrap: Install git-merge-changelog configuration
56755         items into .gitconfig if needed.
56756
56757 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56758
56759         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
56760         git repository, and initialize/update it accordingly.
56761
56762 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
56763
56764         * modules/fsync-tests: New file.
56765         * tests/test-fsync.c: New file.
56766
56767         New module 'fsync'.
56768         * lib/fsync.c: New file.
56769         * m4/fsync.m4: New file.
56770         * modules/fsync: New file.
56771         * lib/unistd.in.h (fsync): New declaration.
56772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
56773         GNULIB_FSYNC and HAVE_FSYNC.
56774         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
56775         * MODULES.html.sh (posix_functions): Add fsync.
56776         * doc/posix-functions/fsync.texi: Mention the new module.
56777
56778 2008-10-02  Jim Meyering  <meyering@redhat.com>
56779
56780         fts.c: sync with similar code from coreutils' remove.c
56781         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
56782         Guard also with "#if defined __linux__", since for now at least,
56783         this code is Linux-kernel-specific.
56784
56785 2008-10-02  Jim Meyering  <meyering@redhat.com>
56786
56787         fts: bug fixes
56788         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
56789         Include <sys/vfs.h>, not <sys/statfs.h>.
56790
56791         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
56792         Include <sys/vfs.h>, not <sys/statfs.h>.
56793
56794 2008-10-01  Bruno Haible  <bruno@clisp.org>
56795
56796         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
56797         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
56798         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
56799         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
56800         * doc/posix-functions/posix_spawnp.texi: Likewise.
56801         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
56802         whether posix_spawn actually works.
56803         * m4/pipe.m4 (gl_PIPE): Likewise.
56804         * modules/execute (Files): Add m4/posix_spawn.m4.
56805         * modules/pipe (Files): Add m4/posix_spawn.m4.
56806         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
56807
56808 2008-10-01  Jim Meyering  <meyering@redhat.com>
56809
56810         remove trailing spaces
56811         * NEWS: Likewise.
56812         * lib/poll.c (poll): Likewise.
56813         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
56814         * lib/winsock.c (rpl_close): Likewise.
56815         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
56816         * modules/yield: Likewise.
56817         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
56818         * tests/test-sys_select.c (connect_to_socket): Likewise.
56819
56820         fts.c: adjust a new interface to be more generally useful
56821         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
56822         (fts_build): Adjust caller.
56823
56824 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56825
56826         * modules/cond-tests: New file.
56827         * tests/test-cond.c: New file.
56828
56829 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56830             Bruno Haible  <bruno@clisp.org>
56831
56832         * modules/cond (Dependencies): Add errno, time.
56833         * lib/glthread/cond.h: Include <time.h>.
56834         (gl_cond_define, gl_cond_define_initialized): Use the same definition
56835         across platforms.
56836
56837 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56838             Bruno Haible  <bruno@clisp.org>
56839
56840         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
56841
56842 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56843             Bruno Haible  <bruno@clisp.org>
56844
56845         * modules/tls-tests (Depends-on): Add thread, yield.
56846         (configure.ac): Remove all checks.
56847         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
56848         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56849         gl_thread_self): Remove definitions. Include glthread/thread.h and
56850         glthread/yield.h instead.
56851         (test_tls): Pass an additional NULL argument to gl_thread_join.
56852
56853 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56854             Bruno Haible  <bruno@clisp.org>
56855
56856         * modules/lock-tests (Depends-on): Add thread, yield.
56857         (configure.ac): Remove all checks.
56858         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
56859         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56860         gl_thread_self): Remove definitions. Include glthread/thread.h and
56861         glthread/yield.h instead.
56862         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
56863         additional NULL argument to gl_thread_join.
56864
56865 2008-09-30  Bruno Haible  <bruno@clisp.org>
56866
56867         Fix the Win32 implementation of the 'thread' module.
56868         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
56869         pointer type.
56870         (gl_thread_self): Invoke gl_thread_self_func.
56871         (gl_thread_self_func): New declaration.
56872         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
56873         (do_init_self_key, init_self_key): New functions.
56874         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
56875         Remove some fields.
56876         (running_threads, running_lock): Remove variables.
56877         (get_current_thread_handle): New function.
56878         (gl_thread_self_func, wrapper_func, glthread_create_func,
56879         glthread_join_func, gl_thread_exit_func): Largely rewritten and
56880         simplified.
56881
56882 2008-09-30  Bruno Haible  <bruno@clisp.org>
56883
56884         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
56885         files.
56886
56887 2008-09-30  Jim Meyering  <meyering@redhat.com>
56888
56889         fts.m4: correct the test for statfs.f_type
56890         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
56891         when checking for statfs.f_type.
56892
56893 2008-09-15  Simon Josefsson  <simon@josefsson.org>
56894
56895         tests: avoid some compiler warnings
56896         * tests/test-memchr.c (main): Pass NULL indirectly.
56897         * tests/test-getdate.c (main): Remove unused variable 'ret'.
56898
56899 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
56900
56901         getdate.y: disallow countable dayshifts like "4 yesterday ago"
56902         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
56903         exactly specified dayshifts.
56904         (dayshift): New rule.
56905         (rel): Add dayshift.
56906         (relative_time_table) [tomorrow, yesterday, today, now]:
56907         Use tDAY_SHIFT in place of tDAY_UNIT.
56908         * tests/test-getdate.c: Add tests for now-disallowed countable
56909         dayshifts, e.g., "4 yesterday ago".
56910
56911 2008-09-29  Bruno Haible  <bruno@clisp.org>
56912
56913         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
56914         * tests/test-posix_spawn1.in.sh: Renamed from
56915         tests/test-posix_spawn.in.sh.
56916         * tests/test-posix_spawn2.c: New file.
56917         * tests/test-posix_spawn2.in.sh: New file.
56918         * modules/posix_spawnp-tests (Files): Update.
56919         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
56920
56921 2008-09-29  Bruno Haible  <bruno@clisp.org>
56922
56923         Propagate effects of putenv/setenv/unsetenv to child processes.
56924         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
56925         * lib/pipe.c (create_pipe): Likewise.
56926
56927 2008-09-29  Bruno Haible  <bruno@clisp.org>
56928
56929         Enable use of shell scripts as executables in mingw.
56930         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
56931         run the program as a shell script.
56932         * lib/pipe.c (create_pipe): Likewise.
56933         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
56934         resulting array.
56935
56936 2008-09-29  Eric Blake  <ebb9@byu.net>
56937
56938         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
56939
56940 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
56941
56942         * doc/posix-functions/accept.texi: Update mingw problems.
56943         * doc/posix-functions/bind.texi: Update mingw problems.
56944         * doc/posix-functions/close.texi: Update mingw problems.
56945         * doc/posix-functions/connect.texi: Update mingw problems.
56946         * doc/posix-functions/getpeername.texi: Update mingw problems.
56947         * doc/posix-functions/getsockname.texi: Update mingw problems.
56948         * doc/posix-functions/getsockopt.texi: Update mingw problems.
56949         * doc/posix-functions/ioctl.texi: Update mingw problems.
56950         * doc/posix-functions/listen.texi: Update mingw problems.
56951         * doc/posix-functions/recv.texi: Update mingw problems.
56952         * doc/posix-functions/recvfrom.texi: Update mingw problems.
56953         * doc/posix-functions/select.texi: Update mingw problems.
56954         * doc/posix-functions/send.texi: Update mingw problems.
56955         * doc/posix-functions/sendto.texi: Update mingw problems.
56956         * doc/posix-functions/setsockopt.texi: Update mingw problems.
56957         * doc/posix-functions/socket.texi: Update mingw problems.
56958
56959 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
56960             Bruno Haible  <bruno@clisp.org>
56961
56962         * lib/sys_select.in.h: Include sys/time.h.
56963         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
56964         * modules/sys_select: Depend on sys_time.
56965         * tests/test-sys_select.c: Test that sys/select.h defines struct
56966         timeval fully.
56967
56968 2008-09-29  Bruno Haible  <bruno@clisp.org>
56969
56970         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
56971         * lib/sys_select.in.h: Likewise.
56972
56973 2008-09-29  Bruno Haible  <bruno@clisp.org>
56974
56975         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
56976
56977 2008-09-29  Bruno Haible  <bruno@clisp.org>
56978
56979         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
56980         Set LIBSOCKET instead of augmenting LIBS.
56981         * modules/sockets (Link): New section.
56982         * modules/sockets-tests (test_sockets_LDADD): New variable.
56983         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
56984         * modules/poll-tests (test_poll_LDADD): New variable.
56985         * NEWS: Document the change.
56986
56987 2008-09-29  Bruno Haible  <bruno@clisp.org>
56988
56989         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
56990         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
56991         ARPA_INET_H directly.
56992         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56993
56994 2008-09-28  Bruno Haible  <bruno@clisp.org>
56995
56996         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
56997         from gl_HEADER_SYS_SOCKET.
56998         (gl_HEADER_SYS_SOCKET): Invoke it.
56999         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57000
57001 2008-09-28  Bruno Haible  <bruno@clisp.org>
57002
57003         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
57004         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
57005         Needed on OSF/1 4.0.
57006
57007 2008-09-28  Bruno Haible  <bruno@clisp.org>
57008
57009         Override open more carefully.
57010         * lib/open.c (orig_open): New function.
57011         (rpl_open): Use orig_open instead of open.
57012         * lib/fcntl.in.h: Add special invocation convention.
57013         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
57014         (gl_FUNC_OPEN): Invoke it.
57015
57016         Override freopen more carefully.
57017         * lib/freopen.c (orig_freopen): New function.
57018         (rpl_freopen): Use orig_freopen instead of freopen.
57019         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
57020         (gl_FUNC_FREOPEN): Invoke it.
57021
57022         Override fopen more carefully.
57023         * lib/fopen.c (orig_fopen): New function.
57024         (rpl_fopen): Use orig_fopen instead of fopen.
57025         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
57026         (gl_FUNC_FOPEN): Invoke it.
57027         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
57028
57029 2008-09-28  Bruno Haible  <bruno@clisp.org>
57030
57031         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
57032         SIGPIPE.
57033
57034 2008-09-28  Bruno Haible  <bruno@clisp.org>
57035
57036         * tests/test-sigaction.c (handler, main): Disable the check whether
57037         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
57038         glibc systems with LinuxThreads.
57039
57040 2008-09-28  Bruno Haible  <bruno@clisp.org>
57041
57042         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
57043
57044         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
57045         with AIX xlc.
57046         * lib/fcntl.in.h (open): Likewise.
57047         Reported by Rainer Tammer <tammer@tammer.net>.
57048
57049 2008-09-28  Bruno Haible  <bruno@clisp.org>
57050
57051         * modules/posix_spawnp-tests: New file.
57052         * tests/test-posix_spawn.c: New file.
57053         * tests/test-posix_spawn.in.sh: New file.
57054
57055         New module 'posix_spawnp'.
57056         * modules/posix_spawnp: New file.
57057         * lib/spawnp.c: New file, from GNU libc with modifications.
57058         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
57059
57060         New module 'posix_spawn'.
57061         * modules/posix_spawn: New file.
57062         * lib/spawn.c: New file, from GNU libc with modifications.
57063         * doc/posix-functions/posix_spawn.texi: Mention the new module.
57064
57065         New module 'posix_spawnattr_destroy'.
57066         * modules/posix_spawnattr_destroy: New file.
57067         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
57068         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
57069         module.
57070
57071         New module 'posix_spawnattr_setsigmask'.
57072         * modules/posix_spawnattr_setsigmask: New file.
57073         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
57074         modifications.
57075         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
57076         new module.
57077
57078         New module 'posix_spawnattr_getsigmask'.
57079         * modules/posix_spawnattr_getsigmask: New file.
57080         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
57081         modifications.
57082         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
57083         new module.
57084
57085         New module 'posix_spawnattr_setsigdefault'.
57086         * modules/posix_spawnattr_setsigdefault: New file.
57087         * lib/spawnattr_setdefault.c: New file, from GNU libc with
57088         modifications.
57089         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
57090         new module.
57091
57092         New module 'posix_spawnattr_getsigdefault'.
57093         * modules/posix_spawnattr_getsigdefault: New file.
57094         * lib/spawnattr_getdefault.c: New file, from GNU libc with
57095         modifications.
57096         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
57097         new module.
57098
57099         New module 'posix_spawnattr_setschedpolicy'.
57100         * modules/posix_spawnattr_setschedpolicy: New file.
57101         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
57102         modifications.
57103         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
57104         new module.
57105
57106         New module 'posix_spawnattr_getschedpolicy'.
57107         * modules/posix_spawnattr_getschedpolicy: New file.
57108         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
57109         modifications.
57110         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
57111         new module.
57112
57113         New module 'posix_spawnattr_setschedparam'.
57114         * modules/posix_spawnattr_setschedparam: New file.
57115         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
57116         modifications.
57117         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
57118         new module.
57119
57120         New module 'posix_spawnattr_getschedparam'.
57121         * modules/posix_spawnattr_getschedparam: New file.
57122         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
57123         modifications.
57124         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
57125         new module.
57126
57127         New module 'posix_spawnattr_setpgroup'.
57128         * modules/posix_spawnattr_setpgroup: New file.
57129         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
57130         modifications.
57131         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
57132         module.
57133
57134         New module 'posix_spawnattr_getpgroup'.
57135         * modules/posix_spawnattr_getpgroup: New file.
57136         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
57137         modifications.
57138         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
57139         module.
57140
57141         New module 'posix_spawnattr_setflags'.
57142         * modules/posix_spawnattr_setflags: New file.
57143         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
57144         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
57145         module.
57146
57147         New module 'posix_spawnattr_getflags'.
57148         * modules/posix_spawnattr_getflags: New file.
57149         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
57150         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
57151         module.
57152
57153         New module 'posix_spawnattr_init'.
57154         * modules/posix_spawnattr_init: New file.
57155         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
57156         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
57157         module.
57158
57159         New module 'posix_spawn_file_actions_destroy'.
57160         * modules/posix_spawn_file_actions_destroy: New file.
57161         * lib/spawn_faction_destroy.c: New file, from GNU libc with
57162         modifications.
57163         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
57164         the new module.
57165
57166         New module 'posix_spawn_file_actions_addopen'.
57167         * modules/posix_spawn_file_actions_addopen: New file.
57168         * lib/spawn_faction_addopen.c: New file, from GNU libc with
57169         modifications.
57170         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
57171         the new module.
57172
57173         New module 'posix_spawn_file_actions_adddup2'.
57174         * modules/posix_spawn_file_actions_adddup2: New file.
57175         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
57176         modifications.
57177         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
57178         the new module.
57179
57180         New module 'posix_spawn_file_actions_addclose'.
57181         * modules/posix_spawn_file_actions_addclose: New file.
57182         * lib/spawn_faction_addclose.c: New file, from GNU libc with
57183         modifications.
57184         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
57185         the new module.
57186
57187         New module 'posix_spawn_file_actions_init'.
57188         * modules/posix_spawn_file_actions_init: New file.
57189         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
57190         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
57191         new module.
57192
57193         New module 'posix_spawn-internal'.
57194         * modules/posix_spawn-internal: New file.
57195         * lib/spawn_int.h: New file, from GNU libc with modifications.
57196         * lib/spawni.c: New file, from GNU libc with modifications.
57197         * m4/posix_spawn.m4: New file.
57198
57199         New module 'spawn'.
57200         * modules/spawn: New file.
57201         * lib/spawn.in.h: New file, from GNU libc with modifications.
57202         * m4/spawn_h.m4: New file.
57203         * doc/posix-headers/spawn.texi: Mention the new module.
57204
57205 2008-09-28  Bruno Haible  <bruno@clisp.org>
57206
57207         * modules/sched-tests: New file.
57208         * tests/test-sched.c: New file.
57209
57210         New module 'sched'.
57211         * modules/sched: New file.
57212         * lib/sched.in.h: New file.
57213         * m4/sched_h.m4: New file.
57214         * doc/posix-headers/sched.texi: Mention the new module.
57215
57216 2008-09-27  Eric Blake  <ebb9@byu.net>
57217
57218         Fix previous patch, and tweak references to $0.
57219         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
57220         (func_version, func_gnulib_dir): Don't call this program
57221         gnulib-tool.
57222         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
57223         with using $0 in function.
57224         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
57225         (func_fatal_error): Reuse the name the user invoked us with.
57226
57227 2008-09-27  Bruno Haible  <bruno@clisp.org>
57228
57229         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
57230         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
57231         (gl_ICONV_H): Not here.
57232         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
57233         instead of assigning ICONV_H directly.
57234
57235         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
57236         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
57237         WCHAR_H directly.
57238
57239 2008-09-27  Bruno Haible  <bruno@clisp.org>
57240
57241         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
57242         * modules/arpa_inet (Depends-on): Add link-warning.
57243         (Makefile.am): Insert the definition of GL_LINK-WARNING.
57244         * modules/unistd (Makefile.am): Likewise.
57245
57246 2008-09-26  Bruno Haible  <bruno@clisp.org>
57247
57248         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
57249         variables.
57250         (func_version): Essentially copied from gnulib-tool.
57251         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
57252         func_readlink): Copied from gnulib-tool.
57253
57254 2008-09-26  Bruno Haible  <bruno@clisp.org>
57255
57256         * gnulib-tool (func_version): Change directory to $gnulib_dir before
57257         invoking git-version-gen.
57258
57259 2008-09-26  Bruno Haible  <bruno@clisp.org>
57260
57261         * posix-modules: Update to directory names changed on 2008-01-19.
57262         Remove commas in output before splitting into words. No more need to
57263         avoid 'ftruncate' since 2007-02-19.
57264
57265 2008-09-26  Bruno Haible  <bruno@clisp.org>
57266
57267         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
57268
57269 2008-09-26  Bruno Haible  <bruno@clisp.org>
57270
57271         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
57272         * modules/fwriteerror (Depends-on): Add errno.
57273
57274 2008-09-26  Bruno Haible  <bruno@clisp.org>
57275
57276         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
57277         * tests/test-vc-list-files-cvs.sh: Likewise.
57278
57279 2008-09-26  Bruno Haible  <bruno@clisp.org>
57280
57281         * doc/posix-headers/sys_resource.texi: Reorder items.
57282
57283 2008-09-26  Jim Meyering  <meyering@redhat.com>
57284
57285         fts: tweak inode comparison function
57286         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
57287         inode numbers, as documented.
57288
57289         fts: sort dirent entries on inode number before traversing
57290         This avoids a quadratic, seek-related performance penalty when
57291         operating on a directory containing many entries (measurable at 10k;
57292         3.5 hours at 2 million entries with a cold cache) on certain types
57293         of file systems, including ext3 and ext4, but not tmpfs.
57294         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
57295         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
57296         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
57297         (fs_handles_readdir_ordered_dirents_efficiently): New function.
57298         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
57299         (fts_build): Set the stat.st_ino member from D_INO.
57300         If it is likely to be useful, sort dirent entries on inode number.
57301
57302         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
57303         and the struct statfs.f_type member.
57304         * modules/fts (Depends-on): Add d-ino.
57305
57306 2008-09-26  Bruno Haible  <bruno@clisp.org>
57307
57308         * modules/sigpipe-die (Depends-on): Add sigpipe.
57309
57310         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
57311         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
57312         and GNULIB_STDIO_H_SIGPIPE are set.
57313         * lib/stdio-write.c: New file.
57314         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
57315         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57316         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57317         REPLACE_STDIO_WRITE_FUNCS.
57318         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
57319         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57320         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57321         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57322         * modules/stdio (Files): Add lib/stdio-write.c.
57323         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57324         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57325         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57326         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57327         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57328         REPLACE_FPRINTF_POSIX.
57329         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57330         REPLACE_PRINTF_POSIX.
57331         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57332         REPLACE_VFPRINTF_POSIX.
57333         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57334         REPLACE_VPRINTF_POSIX.
57335         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57336         SIGPIPE issue.
57337         * doc/posix-functions/fputc.texi: Likewise.
57338         * doc/posix-functions/fputs.texi: Likewise.
57339         * doc/posix-functions/fwrite.texi: Likewise.
57340         * doc/posix-functions/printf.texi: Likewise.
57341         * doc/posix-functions/putc.texi: Likewise.
57342         * doc/posix-functions/putchar.texi: Likewise.
57343         * doc/posix-functions/puts.texi: Likewise.
57344         * doc/posix-functions/vfprintf.texi: Likewise.
57345         * doc/posix-functions/vprintf.texi: Likewise.
57346
57347         * modules/safe-write (Depends-on): Add write.
57348
57349         * modules/sigpipe-tests: New file.
57350         * tests/test-sigpipe.c: New file.
57351         * tests/test-sigpipe.sh: New file.
57352
57353         * modules/write: New file.
57354         * lib/unistd.in.h: Include <sys/types.h>.
57355         (write): New declaration.
57356         * lib/write.c: New file.
57357         * m4/write.m4: New file.
57358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57359         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57360         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57361         GNULIB_WRITE, REPLACE_WRITE.
57362         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57363         and the SIGPIPE issue.
57364
57365         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57366         (raise): New declaration.
57367         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57368         (ext_signal): New function.
57369         (rpl_raise): New function.
57370         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57371         GNULIB_SIGNAL_H_SIGPIPE.
57372         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57373         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57374
57375         * modules/sigpipe: New file.
57376         * m4/sigpipe.m4: New file.
57377
57378 2008-09-25  Derek Price  <derek@ximbiot.com>
57379             Bruno Haible  <bruno@clisp.org>
57380
57381         * gnulib-tool (func_import): Report all license incompatibilities, not
57382         just the first one.
57383
57384 2008-09-25  Bruno Haible  <bruno@clisp.org>
57385
57386         * gnulib-tool (func_import): When computing the edits, consider not
57387         only the Makefile.ams that exist but also those that will be generated.
57388
57389 2008-09-25  Simon Josefsson  <simon@josefsson.org>
57390
57391         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
57392         fixes gnulib-tool --test warning about duplicate dependency.
57393
57394 2008-09-25  Bruno Haible  <bruno@clisp.org>
57395
57396         * gnulib-tool: Don't ask the user to perform edits in the generated
57397         Makefile.ams.
57398         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57399         apply to the Makefile.am being generated.
57400         (func_emit_tests_Makefile_am): Execute edits that apply to the
57401         Makefile.am being generated.
57402         (func_import): Setup list of Makefile.am edits before emitting the
57403         Makefile.ams, not at the end.
57404         (func_create_testdir): Update.
57405         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57406
57407 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57408
57409         * gnulib-tool (func_import): Store the --tests-base option in the
57410         comment in gnulib-cache.m4.
57411
57412 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57413
57414         * NEWS: Document increased portability that sys_select now provides.
57415
57416         * lib/sys_select.in.h: Install select wrapper.
57417         * lib/sys_socket.in.h: Use more descriptive name when there is no
57418         select wrapper.
57419         * lib/winsock-select.c: New.
57420         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57421         Require gl_HEADER_SYS_SOCKET.
57422         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57423         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57424         * tests/test-sys_select.c: Add functional tests.
57425
57426 2008-09-24  Eric Blake  <ebb9@byu.net>
57427
57428         open, fopen: close fd leak in last patch
57429         * lib/open.c (rpl_open): Close fd before returning error.
57430         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57431         * doc/posix-functions/open.texi (open): Document that Irix also
57432         has the bug.
57433         * doc/posix-functions/fopen.texi (fopen): Likewise.
57434         Reported by Paolo Bonzini.
57435
57436 2008-09-24  Bruno Haible  <bruno@clisp.org>
57437
57438         Ensure that a filename ending in a slash cannot be used to access a
57439         non-directory.
57440         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57441         to check whether it's really a directory.
57442         * lib/fopen.c: Include fcntl.h, unistd.h.
57443         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57444         and fdopen().
57445         * modules/fopen (Depends-on): Add unistd.
57446         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57447         * tests/test-fopen.c (main): Likewise.
57448         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57449         * doc/posix-functions/fopen.texi: Likewise.
57450         Reported by Eric Blake.
57451
57452 2008-09-23  Eric Blake  <ebb9@byu.net>
57453
57454         c-stack: avoid compiler optimizations when provoking overflow
57455         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57456         recursion harder to optimize, to ensure a stack overflow occurs.
57457         * tests/test-c-stack.c (recurse): Likewise.
57458         Borrowed from libsigsegv.
57459
57460         c-stack: work around Irix sigaltstack bug
57461         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57462         whether sigaltstack uses wrong end of stack_t (copied in part from
57463         libsigsegv).
57464         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57465         Irix bug, without requiring an over-allocation.
57466         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57467         bug.
57468
57469         fopen: document mingw bug on directories
57470         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57471         not allowing a stream visiting a directory, even though reading
57472         from such a stream is not portable.
57473
57474 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57475
57476         * lib/poll.c: Rewrite.
57477         * modules/poll: Depend on alloca.
57478
57479 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57480
57481         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
57482         instead define prototypes for a full set of wrappers.  Ensure
57483         that Cygwin does not use the compatibility code, which is only
57484         for MinGW.
57485         * lib/winsock.c: New.
57486         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
57487         * modules/sys_socket: Add lib/winsock.c.
57488
57489         * modules/poll-tests: Add errno and perror.
57490         * tests/test-poll.c: Use ioctl, not ioctlsocket.
57491
57492 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57493
57494         * tests/test-poll.c: Downgrade minimum needed Winsock version.
57495
57496 2008-09-23  Bruno Haible  <bruno@clisp.org>
57497
57498         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
57499         * doc/glibc-functions/*: Likewise.
57500
57501 2008-09-23  Simon Josefsson  <simon@josefsson.org>
57502
57503         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
57504         success.
57505
57506 2008-09-22  Eric Blake  <ebb9@byu.net>
57507             Bruno Haible  <bruno@clisp.org>
57508
57509         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
57510         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
57511         supply %A but mishandle pseudo-NaN.
57512         Reported by Simon Josefsson.
57513
57514 2008-09-21  Bruno Haible  <bruno@clisp.org>
57515
57516         * tests/test-lock.c (main): Tweak skip message.
57517         * tests/test-tls.c (main): Likewise.
57518
57519 2008-09-21  Bruno Haible  <bruno@clisp.org>
57520
57521         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
57522         whether 'struct sigaction' has sa_sigaction here...
57523         (gl_PREREQ_SIG_HANDLER_H): ... not here.
57524         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
57525
57526 2008-09-21  Bruno Haible  <bruno@clisp.org>
57527
57528         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
57529         section.
57530         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
57531         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
57532         the new section.
57533         (Support for obsolete systems lacking POSIX:2001): New section.
57534         (String handling <string.h>): Move strdup to the new section.
57535         Suggested by Simon Josefsson and Paolo Bonzini.
57536
57537 2008-09-21  Bruno Haible  <bruno@clisp.org>
57538
57539         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
57540         exponents in %e and %g results on 'long double'. Needed for mingw's
57541         improved *printf functions.
57542         * tests/test-vasprintf-posix.c (test_function): Likewise.
57543         * tests/test-snprintf-posix.h (test_function): Likewise.
57544         * tests/test-sprintf-posix.h (test_function): Likewise.
57545         Reported by Eric Blake.
57546
57547 2008-09-21  Bruno Haible  <bruno@clisp.org>
57548
57549         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
57550         * tests/test-sprintf-posix.h (test_function): Likewise.
57551
57552 2008-09-21  Bruno Haible  <bruno@clisp.org>
57553
57554         * modules/getpass (Depends-on): Add strdup-posix.
57555
57556         New module 'strdup-posix'.
57557         * modules/strdup-posix: New file.
57558         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
57559         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
57560         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57561         REPLACE_STRDUP.
57562         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
57563         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
57564         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57565         strdup-posix.
57566
57567         * modules/strdup (Depends-on): Remove malloc-posix.
57568
57569 2008-09-20  Bruno Haible  <bruno@clisp.org>
57570
57571         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
57572         Wildenhues.
57573
57574 2008-09-20  Bruno Haible  <bruno@clisp.org>
57575
57576         Ensure that wint_t gets defined on IRIX 5.3.
57577         * lib/wchar.in.h (wint_t): Define if not defined by the system.
57578         * lib/wctype.in.h (wint_t): Likewise.
57579         (__wctype_wint_t): Remove type.
57580         (isw*): Use wint_t instead of __wctype_wint_t.
57581         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
57582         * modules/wchar (Files): Add m4/wint_t.m4.
57583         (Makefile.am): Substitute HAVE_WINT_T.
57584         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
57585         * tests/test-wctype.c: Check that wint_t is defined.
57586         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
57587         * doc/posix-headers/wctype.texi: Likewise.
57588         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57589
57590 2008-09-18  Bruno Haible  <bruno@clisp.org>
57591
57592         * gnulib-tool (func_exit): Update comment.
57593
57594 2008-09-18  Simon Josefsson  <simon@josefsson.org>
57595
57596         * modules/getaddrinfo (Depends-on): Remove strdup, this module
57597         assumes strdup exists and does not depend on strdup to return
57598         ENOMEM on out of memory conditions.
57599
57600 2008-09-18  Bruno Haible  <bruno@clisp.org>
57601
57602         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
57603         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
57604         digits for the exponent.
57605
57606 2008-09-18  Jim Meyering  <meyering@redhat.com>
57607             Bruno Haible  <bruno@clisp.org>
57608
57609         * lib/vasnprintf.c (decimal_point_char): Define also if
57610         NEED_PRINTF_INFINITE_LONG_DOUBLE.
57611
57612 2008-09-16  Bruno Haible  <bruno@clisp.org>
57613         and Eric Blake  <ebb9@byu.net>
57614
57615         vasnprintf: support Irix 5.3
57616         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
57617         that mishandle long double infinity.
57618         Reported by Tom G. Christensen.
57619
57620 2008-09-16  Bruno Haible  <bruno@clisp.org>
57621
57622         * doc/glibc-functions/scandir.texi: Mention the function is missing on
57623         Solaris 9.
57624         * doc/glibc-functions/alphasort.texi: Likewise.
57625         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
57626
57627 2008-09-16  Jim Meyering  <meyering@redhat.com>
57628
57629         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
57630         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
57631         a umask modification leak out of a subshell.  Otherwise, the
57632         opensolaris /bin/sh would be accepted and thus cause unwarranted
57633         failures in the coreutils test suite.
57634
57635 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
57636
57637         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
57638         to succeed.
57639
57640 2008-09-16  Jim Meyering  <meyering@redhat.com>
57641
57642         avoid spurious test failure when library is built without ACL support
57643         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
57644         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
57645         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
57646         * tests/test-copy-acl.sh: Likewise.
57647
57648 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57649
57650         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
57651         based on character occurrence counts.
57652
57653 2008-09-15  Eric Blake  <ebb9@byu.net>
57654
57655         tests: avoid some compiler warnings
57656         * tests/test-memchr.c (main): Pass NULL indirectly.
57657         * tests/test-closein.c (main): Avoid unused variable.
57658
57659 2008-09-15  Bruno Haible  <bruno@clisp.org>
57660
57661         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
57662         are missing on OpenBSD 4.0 individually.
57663         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57664
57665 2008-09-15  Bruno Haible  <bruno@clisp.org>
57666
57667         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
57668         * doc/posix-functions/strerror.texi: Mention also Cygwin.
57669         * doc/posix-functions/perror.texi: Likewise.
57670         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
57671         is missing.
57672         Reported by Eric Blake.
57673
57674         * lib/errno.in.h: Use replacement values >= 2000.
57675         Reported by Eric Blake.
57676
57677 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57678
57679         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
57680         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
57681         limit.
57682         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
57683         compareseq was aborted.
57684
57685 2008-09-14  Bruno Haible  <bruno@clisp.org>
57686
57687         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
57688         yvec_edit_count.
57689         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
57690         (fstrcmp_bounded): Simplify result computation accordingly.
57691
57692 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57693
57694         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
57695         (fstrcmp): Define in terms of fstrcmp_bounded.
57696         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
57697         lower_bound argument.
57698         Return quickly if the result is certainly < lower_bound.
57699         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
57700
57701 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57702
57703         * lib/diffseq.h (EARLY_ABORT): New macro.
57704         (compareseq): Change return type to bool. Return true when EARLY_ABORT
57705         evaluates to true.
57706
57707 2008-09-14  Bruno Haible  <bruno@clisp.org>
57708
57709         * modules/perror-tests: New file.
57710         * tests/test-perror.sh: New file.
57711         * tests/test-perror.c: New file.
57712
57713         New module 'perror'.
57714         * lib/stdio.in.h (perror): New declaration.
57715         * lib/perror.c: New file.
57716         * m4/perror.m4: New file.
57717         * modules/perror: New file.
57718         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
57719         * doc/posix-functions/perror.texi: Mention the perror module.
57720         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
57721         REPLACE_PERROR.
57722         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
57723         REPLACE_PERROR.
57724
57725 2008-09-14  Bruno Haible  <bruno@clisp.org>
57726
57727         * modules/stdio (Makefile.am): Reorder to match the order in
57728         lib/stdio.in.h.
57729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57730
57731 2008-09-13  Bruno Haible  <bruno@clisp.org>
57732
57733         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
57734
57735 2008-09-13  Bruno Haible  <bruno@clisp.org>
57736
57737         Extend strerror to cover the added errno values.
57738         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
57739         (rpl_strerror): Provide error messages for the added errno values and
57740         for the WSA* values.
57741         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
57742         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
57743         strerror.
57744         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
57745         * modules/strerror (Depends-on): Add errno.
57746         * doc/posix-functions/strerror.texi: Document the change.
57747         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
57748         and EOVERFLOW.
57749
57750 2008-09-13  Bruno Haible  <bruno@clisp.org>
57751
57752         * modules/EOVERFLOW: Remove file.
57753         * m4/eoverflow.m4: Remove file.
57754         * modules/EOVERFLOW-tests: Remove file.
57755         * tests/test-EOVERFLOW.c: Remove file.
57756         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
57757         * modules/ftell (Depends-on): Likewise.
57758         * modules/getdelim (Depends-on): Likewise.
57759         * modules/getugroups (Depends-on): Likewise.
57760         * modules/poll (Depends-on): Likewise.
57761         * modules/snprintf (Depends-on): Likewise.
57762         * modules/sprintf-posix (Depends-on): Likewise.
57763         * modules/vasnprintf (Depends-on): Likewise.
57764         * modules/vasprintf (Depends-on): Likewise.
57765         * modules/vfprintf-posix (Depends-on): Likewise.
57766         * modules/vsnprintf (Depends-on): Likewise.
57767         * modules/vsprintf-posix (Depends-on): Likewise.
57768         * modules/xvasprintf (Depends-on): Likewise.
57769         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57770         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
57771         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
57772         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
57773         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57774         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
57775         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
57776         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
57777         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57778         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
57779         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
57780         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
57781         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57782         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
57783         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
57784         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
57785         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57786         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
57787         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
57788         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
57789         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57790         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
57791         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
57792         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
57793         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
57794         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57795         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
57796         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
57797         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
57798         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
57799         * MODULES.html.sh: Remove EOVERFLOW.
57800         * NEWS: Mention the change.
57801
57802 2008-09-13  Bruno Haible  <bruno@clisp.org>
57803
57804         * modules/errno-tests: New file.
57805         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
57806
57807         * lib/errno.in.h: New file.
57808         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
57809         * modules/errno: New file.
57810         * doc/posix-headers/errno.texi: Update documentation.
57811         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
57812
57813 2008-09-13  Bruno Haible  <bruno@clisp.org>
57814
57815         * tests/test-poll.c: Use #if for native Windows, rather than testing
57816         __MSVCRT__.
57817
57818 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57819             Bruno Haible  <bruno@clisp.org>
57820
57821         * lib/glob.c: Don't include <pwd.h> on native Windows.
57822         (WINDOWS32): New macro.
57823         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
57824
57825 2008-09-13  Bruno Haible  <bruno@clisp.org>
57826
57827         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
57828         (ETIMEDOUT): Remove macro.
57829         (glthread_cond_timedwait_multithreaded): New declaration.
57830         (glthread_cond_timedwait): Use it.
57831         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
57832         (glthread_cond_timedwait_multithreaded): New function.
57833
57834 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57835
57836         * modules/poll-tests: Do not check for io.h.
57837         * tests/test-poll.c: Check for __MSVCRT__ instead.
57838
57839 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57840
57841         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
57842         * modules/poll-tests: Add inet_pton, stdbool, sockets.
57843         * tests/test-poll.c: Use them.  Use _pipe on Windows.
57844
57845 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57846
57847         * modules/poll-tests: New.
57848         * tests/test-poll.c: New.
57849
57850 2008-09-12  Eric Blake  <ebb9@byu.net>
57851
57852         frexp: test for NetBSD failure on -0.0
57853         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
57854         not all, bugs from NetBSD 3.0 have been fixed.
57855         * doc/posix-functions/frexp.texi (frexp): Document bug.
57856         Reported by Thomas Klausner.
57857
57858         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
57859         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
57860         literal -0.0.
57861         Reported by Jonathan C. Patschke <jp@centtech.com>.
57862
57863 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57864
57865         * lib/glthread/cond.h: Use dummy implementation also if
57866         USE_WIN32_THREADS.
57867
57868 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57869
57870         * modules/fnmatch-posix (License): Change to LGPLv2+.
57871         * modules/fnmatch-gnu (License): Likewise.
57872
57873 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57874
57875         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
57876
57877 2008-09-11  Jim Meyering  <meyering@redhat.com>
57878
57879         * users.txt: Add gtk-vnc.
57880
57881 2008-09-08  Simon Josefsson  <simon@josefsson.org>
57882
57883         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
57884         rotate amounts.
57885
57886         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
57887         required for 16-bit and 8-bit rotates.
57888         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
57889         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
57890         UINT8_MAX instead of hard-coded constants.
57891         Suggested by Paul Eggert.
57892
57893 2008-09-07  Bruno Haible  <bruno@clisp.org>
57894
57895         * tests/test-striconveh.c (main): Check behaviour when converting from
57896         UTF-7.
57897
57898         Make striconveh work better with stateful encodings.
57899         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
57900         that iconv does not increment the inptr when returning -1/EINVAL.
57901
57902 2008-09-07  Bruno Haible  <bruno@clisp.org>
57903
57904         * build-aux/config.rpath: Update according to libtool-2.2.6.
57905         * build-aux/config.libpath: Likewise.
57906
57907 2008-09-06  Bruno Haible  <bruno@clisp.org>
57908
57909         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
57910         * lib/freadptr.c (freadptr): Likewise.
57911         * lib/freadseek.c (freadptrinc): Likewise.
57912         Reported by Simon Josefsson.
57913
57914 2008-09-06  Bruno Haible  <bruno@clisp.org>
57915
57916         * modules/freadptr (License): Change to LGPLv2+.
57917         * modules/freadseek (License): Likewise.
57918         Suggested by Eric Blake.
57919
57920         * modules/memchr2 (License): Change to LGPLv2+.
57921         Approved by Eric Blake.
57922
57923 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57924             Bruno Haible  <bruno@clisp.org>
57925
57926         Make gnulib-tool work with native 'sed' on AIX.
57927         * gnulib-tool (sed_noop): New variable.
57928         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
57929         func_add_or_update, func_create_testdir): Use it to initialize sed
57930         script variables.
57931         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57932
57933 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
57934             Bruno Haible  <bruno@clisp.org>
57935
57936         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
57937         also works after #include directives.
57938
57939 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
57940
57941         getdate.y: reject an out-of-range timezone value
57942         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
57943         the range [-24...+24].  When specified with only one or two digits,
57944         * tests/test-getdate.c: Tests for the fix.
57945         * doc/getdate.texi: Document this change.
57946
57947 2008-09-03  Bruno Haible  <bruno@clisp.org>
57948
57949         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
57950
57951 2008-09-02  Simon Josefsson  <simon@josefsson.org>
57952
57953         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
57954         <bruce.korb@gmail.com> with ideas from Ben Pfaff
57955         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
57956         Blake <ebb9@byu.net>.
57957
57958         * tests/test-bitrotate.c: Add more test vectors.
57959
57960 2008-09-02  Eric Blake  <ebb9@byu.net>
57961
57962         vasnprintf-posix: handle large precision via %.*d
57963         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
57964         when handling it ourselves.
57965         * tests/test-vasnprintf-posix.c (test_function): Add test.
57966         * tests/test-snprintf-posix.h (test_function): Likewise.
57967         * tests/test-sprintf-posix.h (test_function): Likewise.
57968         * tests/test-vasprintf-posix.c (test_function): Likewise.
57969         Reported by Alain Guibert.
57970
57971 2008-09-01  Eric Blake  <ebb9@byu.net>
57972
57973         c-stack: make configure-time check more robust
57974         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
57975         successful sigaction call.
57976         Reported by Tom G. Christensen.
57977
57978 2008-09-01  Bruno Haible  <bruno@clisp.org>
57979
57980         New module 'findprog-lgpl'.
57981         * modules/findprog-lgpl: New file.
57982         * lib/findprog-lgpl.c: New file.
57983         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
57984         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
57985         to decide whether to use strdup or xstrdup, concatenated_filename or
57986         xconcatenated_filename.
57987
57988 2008-09-01  Bruno Haible  <bruno@clisp.org>
57989
57990         Split module 'concat-filename' into 'concat-filename' (LGPL) and
57991         'xconcat-filename' (GPL).
57992         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
57993         (License): Change to LGPLv2+.
57994         * modules/xconcat-filename: New file.
57995         * lib/concat-filename.h (concatenated_filename): Change specification.
57996         (xconcatenated_filename): New declaration.
57997         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
57998         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
57999         memory situations.
58000         * lib/xconcat-filename.c: New file.
58001         * NEWS: Mention the change.
58002         * lib/findprog.c: Include concat-filename.h, not filename.h.
58003         (find_in_path): Use xconcatenated_filename instead of
58004         concatenated_filename.
58005         * lib/javacomp.c: Include concat-filename.h, not filename.h.
58006         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58007         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58008         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58009         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
58010         instead of concatenated_filename.
58011         * lib/javaexec.c: Include concat-filename.h, not filename.h.
58012         (execute_java_class): Use xconcatenated_filename instead of
58013         concatenated_filename.
58014         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
58015         * modules/javacomp (Depends-on): Likewise.
58016         * modules/javaexec (Depends-on): Likewise.
58017
58018 2008-09-01  Bruno Haible  <bruno@clisp.org>
58019
58020         Split module 'filename' into 'filename' and 'concat-filename'.
58021         * modules/filename: Keep only lib/filename.h.
58022         (License): Change to LGPLv2+.
58023         * modules/concat-filename: New file, extracted from modules/filename.
58024         * lib/filename.h (concatenated_filename): Remove declaration.
58025         * lib/concat-filename.h: New file, extracted from lib/filename.h.
58026         * lib/concat-filename.c: Include concat-filename.h.
58027         * NEWS: Mention the change.
58028
58029 2008-09-01  Simon Josefsson  <simon@josefsson.org>
58030
58031         * lib/bitrotate.h (rotl8, rotr8): Add.
58032
58033         * modules/bitrotate (configure.ac): Need
58034         AC_REQUIRE([AC_C_INLINE]).
58035         (Description): Mention stdint.h.  Reported by Bruno Haible
58036         <bruno@clisp.org>.
58037
58038         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
58039         Paolo Bonzini <bonzini@gnu.org>.
58040
58041 2008-08-31  Bruno Haible  <bruno@clisp.org>
58042
58043         Assume Solaris specific bi-arch conventions on Solaris systems.
58044         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
58045         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
58046         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
58047         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
58048         like acl_libdirstem.
58049         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
58050         acl_libdirstem.
58051         * NEWS: Mention the change.
58052         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
58053
58054 2008-08-31  Jim Meyering  <meyering@redhat.com>
58055
58056         * lib/strftime.h: Add comments describing the two added arguments.
58057
58058         remove duplicate #include directives
58059         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
58060         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
58061
58062 2008-08-31  Bruno Haible  <bruno@clisp.org>
58063
58064         New module 'sigpipe-die'.
58065         * modules/sigpipe-die: New file.
58066         * lib/sigpipe-die.h: New file.
58067         * lib/sigpipe-die.c: New file.
58068         * MODULES.html.sh (Signal handling): Add sigpipe-die.
58069
58070 2008-08-31  Bruno Haible  <bruno@clisp.org>
58071
58072         Don't override previously installed signal handlers.
58073         * lib/fatal-signal.c (saved_sigactions): New variable.
58074         (uninstall_handlers): Reset the signal to the saved handler, not
58075         to SIG_DFL (except when ignored).
58076         (install_handlers): Save the previous handlers.
58077
58078 2008-08-30  Bruno Haible  <bruno@clisp.org>
58079
58080         * gnulib-tool (func_reset_sigpipe): New function.
58081         (func_get_automake_snippet, func_modules_transitive_closure,
58082         func_import): Invoke it before a join command that reads from stdin,
58083         to avoid "echo: write error: Broken pipe" error messages on stderr.
58084         Reported by Sam Steingold <sds@gnu.org>.
58085
58086 2008-08-30  Bruno Haible  <bruno@clisp.org>
58087
58088         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
58089         Code copied from m4/open.m4.
58090         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
58091         access and the filename ends in a slash. Code copied from lib/open.c.
58092         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
58093         * tests/test-fopen.c (main): Check against bug with trailing slash.
58094
58095 2008-08-29  Bruno Haible  <bruno@clisp.org>
58096
58097         Avoid some "gcc -pedantic" warnings.
58098         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
58099         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
58100         * lib/dirent.in.h: Likewise.
58101         * lib/fcntl.in.h: Likewise.
58102         * lib/float.in.h: Likewise.
58103         * lib/iconv.in.h: Likewise.
58104         * lib/inttypes.in.h: Likewise.
58105         * lib/locale.in.h: Likewise.
58106         * lib/math.in.h: Likewise.
58107         * lib/netinet_in.in.h: Likewise.
58108         * lib/search.in.h: Likewise.
58109         * lib/signal.in.h: Likewise.
58110         * lib/stdarg.in.h: Likewise.
58111         * lib/stdint.in.h: Likewise.
58112         * lib/stdio.in.h: Likewise.
58113         * lib/stdlib.in.h: Likewise.
58114         * lib/string.in.h: Likewise.
58115         * lib/strings.in.h: Likewise.
58116         * lib/sys_select.in.h: Likewise.
58117         * lib/sys_socket.in.h: Likewise.
58118         * lib/sys_stat.in.h: Likewise.
58119         * lib/sys_time.in.h: Likewise.
58120         * lib/sysexits.in.h: Likewise.
58121         * lib/time.in.h: Likewise.
58122         * lib/unistd.in.h: Likewise.
58123         * lib/wchar.in.h: Likewise.
58124         * lib/wctype.in.h: Likewise.
58125         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
58126         * modules/fchdir (Makefile.am): Likewise.
58127         * modules/fcntl (Makefile.am): Likewise.
58128         * modules/float (Makefile.am): Likewise.
58129         * modules/iconv_open (Makefile.am): Likewise.
58130         * modules/inttypes (Makefile.am): Likewise.
58131         * modules/locale (Makefile.am): Likewise.
58132         * modules/math (Makefile.am): Likewise.
58133         * modules/netinet_in (Makefile.am): Likewise.
58134         * modules/search (Makefile.am): Likewise.
58135         * modules/signal (Makefile.am): Likewise.
58136         * modules/stdarg (Makefile.am): Likewise.
58137         * modules/stdint (Makefile.am): Likewise.
58138         * modules/stdio (Makefile.am): Likewise.
58139         * modules/stdlib (Makefile.am): Likewise.
58140         * modules/string (Makefile.am): Likewise.
58141         * modules/strings (Makefile.am): Likewise.
58142         * modules/sys_select (Makefile.am): Likewise.
58143         * modules/sys_socket (Makefile.am): Likewise.
58144         * modules/sys_stat (Makefile.am): Likewise.
58145         * modules/sys_time (Makefile.am): Likewise.
58146         * modules/sysexits (Makefile.am): Likewise.
58147         * modules/time (Makefile.am): Likewise.
58148         * modules/unistd (Makefile.am): Likewise.
58149         * modules/wchar (Makefile.am): Likewise.
58150         * modules/wctype (Makefile.am): Likewise.
58151         Reported by Reuben Thomas <rrt@sc3d.org>.
58152
58153 2008-08-29  Bruno Haible  <bruno@clisp.org>
58154
58155         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
58156         any more.
58157
58158 2008-08-29  Simon Josefsson  <simon@josefsson.org>
58159
58160         * MODULES.html.sh (Misc): Add bitrotate.
58161
58162         * modules/bitrotate: New file.
58163
58164         * lib/bitrotate.h: New file.
58165
58166         * modules/bitrotate-tests: New file.
58167
58168         * tests/test-bitrotate.c: New file.
58169
58170         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
58171         on the bitrotate module.
58172
58173         * lib/arctwo.c: Use new bitrotate module.
58174
58175 2008-08-29  Jim Meyering  <meyering@redhat.com>
58176
58177         bootstrap: merge changes from coreutils
58178         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
58179         of copied files.  Remove a kludge, now that this is fixed.
58180         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
58181         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
58182         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
58183
58184 2008-08-29  Bruno Haible  <bruno@clisp.org>
58185
58186         * MODULES.html.sh: Remove --cvs-urls option.
58187
58188 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
58189
58190         maint.mk: adjust to file name change
58191         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
58192
58193 2008-08-28  Jim Meyering  <meyering@redhat.com>
58194
58195         * modules/getndelim2 (License): Relicense to LGPLv2+.
58196         Approved by Richard Stallman for the version of 1995, and by
58197         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
58198
58199 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
58200
58201         * lib/getdelim.c (flockfile, funlockfile): Make all of them
58202         dummy if one is not available.  Do not touch them if
58203         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
58204         (getc_maybe_unlocked): New.
58205         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
58206
58207 2008-08-26  Eric Blake  <ebb9@byu.net>
58208
58209         doc/INSTALL: resync from autoconf
58210         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
58211         (INSTALL_PRELUDE): Delete; this is done more efficiently by
58212         moving...
58213         * install.texi [!autoconf]: ...here.  Resync from autoconf.
58214         * INSTALL: Regenerate.
58215         * INSTALL.ISO: New file.
58216         * INSTALL.UTF-8: Likewise.
58217
58218 2008-08-26  Jim Meyering  <meyering@redhat.com>
58219
58220         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
58221         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
58222         these definitions conditional, so that they may be overridden, too.
58223
58224 2008-08-26  Bruno Haible  <bruno@clisp.org>
58225
58226         Generate INSTALL file variants with prettier quotes.
58227         * doc/Makefile (INSTALL_PRELUDE): New macro.
58228         (INSTALL): Use it.
58229         (INSTALL.ISO, INSTALL.UTF-8): New rules.
58230
58231 2008-08-26  Bruno Haible  <bruno@clisp.org>
58232
58233         Run makeinfo in an English locale.
58234         * doc/Makefile (MAKEINFO): New variable.
58235
58236 2008-08-26  Bruno Haible  <bruno@clisp.org>
58237
58238         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
58239         Suggested by Eric Blake.
58240
58241 2008-08-25  Bruno Haible  <bruno@clisp.org>
58242
58243         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
58244
58245 2008-08-25  Eric Blake  <ebb9@byu.net>
58246
58247         c-stack: test that stack overflow can be caught
58248         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
58249         that platform allows handling stack overflow; at least OS/2 EMX
58250         has sigaltstack, but crashes before transferring control to
58251         handler on stack overflow.
58252         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
58253         check for HAVE_STACK_OVERFLOW_HANDLING.
58254         Reported by Elbert Pol.
58255
58256 2008-08-25  Bruno Haible  <bruno@clisp.org>
58257
58258         * doc/posix-functions/strftime.texi: Fix description of strftime
58259         module.
58260
58261 2008-08-24  Bruno Haible  <bruno@clisp.org>
58262
58263         * tests/uniwidth/test-uc_width2.c: New file.
58264         * tests/uniwidth/test-uc_width2.sh: New file.
58265         * modules/uniwidth/width-tests (Files): Add the new files.
58266         (TESTS): Add uniwidth/test-uc_width2.sh.
58267         (TESTS_ENVIRONMENT): New variable.
58268         (check_PROGRAMS): Add test-uc_width2.
58269         (test_uc_width2_SOURCES): New variable.
58270
58271         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
58272         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
58273         not 0x00AB.
58274         Reported by Alexander V. Lukyanov <lav@netis.ru>.
58275
58276 2008-08-22  Eric Blake  <ebb9@byu.net>
58277
58278         test-lock, test-tls: mention why a test is skipped
58279         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
58280         skipped.
58281         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
58282
58283         count-one-bits: relax license
58284         * modules/count-one-bits (License): Relicense to LGPLv2+.
58285         Suggested by Ludovic Courtès, approved by Ben Pfaff.
58286
58287 2008-08-22  Andreas Schwab  <schwab@suse.de>
58288
58289         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
58290         Remove spurious space in assignment.
58291
58292 2008-08-21  Simon Josefsson  <simon@josefsson.org>
58293
58294         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
58295         Paul Eggert <eggert@CS.UCLA.EDU>.
58296
58297 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
58298
58299         * modules/gettext: Add m4/threadlib.m4.
58300
58301 2008-08-19  Eric Blake  <ebb9@byu.net>
58302
58303         test-c-stack: fix compilation failure on FreeBSD 5.0
58304         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
58305         headers before <sys/resource.h>.
58306         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
58307         the bug.
58308         Reported by Nelson H. F. Beebe.
58309
58310         strverscmp: migrate from "strverscmp.h" to <string.h>
58311         * modules/string (Makefile.am): Add new hooks.
58312         * modules/strverscmp (Files): Remove strverscmp.h.
58313         (Depends-on): Add string.
58314         (configure.ac): Add indicator.
58315         (Include): Mention new header.
58316         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
58317         defaults.
58318         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
58319         results.
58320         * lib/strverscmp.h: Delete.
58321         * lib/string.in.h (strverscmp): Provide declaration, when needed.
58322         * tests/test-strverscmp.c (includes): Adjust client.
58323         * lib/check-version.c (includes): Likewise.
58324         * NEWS: Document the change.
58325
58326         strverscmp: add unit test
58327         * modules/strverscmp-tests: New file.
58328         * tests/test-strverscmp.c: Likewise.
58329
58330 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58331
58332         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58333         regarding Windows crypto stuff, from Mono.
58334
58335 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58336
58337         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58338         if present, for intel RND.  Return error on failures.
58339
58340 2008-08-18  Ben Pfaff  <blp@gnu.org>
58341
58342         gitlog-to-changelog: give better diagnostic for failed pipe-open
58343         * build-aux/gitlog-to-changelog: Improve error message: suggest
58344         that the version of Git may be too old.
58345
58346 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58347
58348         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58349         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58350
58351 2008-08-18  Bruno Haible  <bruno@clisp.org>
58352
58353         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58354         pthread_in_use().
58355
58356 2008-08-18  Bruno Haible  <bruno@clisp.org>
58357
58358         * lib/glthread/threadlib.c: Include <pthread.h>.
58359
58360 2008-08-18  Bruno Haible  <bruno@clisp.org>
58361
58362         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58363         glthread_recursive_lock_* macros.
58364         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58365         Fix syntax error.
58366
58367 2008-08-18  Bruno Haible  <bruno@clisp.org>
58368
58369         * lib/glthread/thread.c: Avoid forcing a context switch right after
58370         thread creation.
58371
58372 2008-08-17  Bruno Haible  <bruno@clisp.org>
58373
58374         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58375         * lib/glthread/thread.h: Provide Win32 specific implementation.
58376         * modules/thread (Files): Add lib/glthread/thread.c.
58377         (Depends-on): Add lock.
58378         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58379
58380 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58381
58382         New module 'yield'.
58383         * modules/yield: New file.
58384         * lib/glthread/yield.h: New file.
58385         * m4/yield.m4: New file.
58386         * MODULES.html.sh (Multithreading): Add yield.
58387
58388 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58389
58390         New module 'thread'.
58391         * modules/thread: New file.
58392         * lib/glthread/thread.h: New file.
58393         * m4/thread.m4: New file.
58394         * MODULES.html.sh (Multithreading): Add thread.
58395
58396 2008-08-17  Bruno Haible  <bruno@clisp.org>
58397
58398         * lib/glthread/lock.h: Include <stdlib.h> always.
58399         * lib/glthread/tls.h: Likewise.
58400         * lib/glthread/cond.h: Likewise.
58401
58402 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58403
58404         New module 'cond'.
58405         * modules/cond: New file.
58406         * lib/glthread/cond.h: New file.
58407         * lib/glthread/cond.c: New file.
58408         * m4/cond.m4: New file.
58409         * MODULES.html.sh (Multithreading): Add cond.
58410
58411 2008-08-16  Eric Blake  <ebb9@byu.net>
58412
58413         c-stack: fix regression on Irix 5.3 from 2008-06-21
58414         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58415         sa_sigaction...
58416         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58417         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58418         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58419         * modules/signal (Makefile.am): Use the value.
58420         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58421         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58422         * doc/posix-headers/signal.texi (signal.h): Document this
58423         portability issue.
58424         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58425         Reported by Tom G. Christensen.
58426
58427 2008-08-17  Bruno Haible  <bruno@clisp.org>
58428
58429         New module 'threadlib'.
58430         * modules/threadlib: New file.
58431         * lib/glthread/threadlib.c: New file, extracted from
58432         lib/glthread/lock.c.
58433         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58434         functions.
58435         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58436         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58437         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58438         macros.
58439         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58440         (gl_DISABLE_THREADS): Remove macro.
58441         * modules/lock (Files): Remove build-aux/config.rpath.
58442         (Depends-on): Remove havelib. Add threadlib.
58443         (configure.ac-early): Remove section.
58444         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58445         * modules/tls (Depends-on): Remove lock. Add threadlib.
58446         (Link): New section, copied from threadlib.
58447         * MODULES.html.sh (Multithreading): Add threadlib.
58448
58449 2008-08-14  Bruno Haible  <bruno@clisp.org>
58450
58451         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58452         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58453         glthread_rwlock_unlock, glthread_rwlock_destroy,
58454         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58455         glthread_recursive_lock_destroy): Define as macros always.
58456         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58457         glthread_lock_lock.
58458         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58459         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58460         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58461         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58462         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58463         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58464         (glthread_recursive_lock_lock_func): Renamed from
58465         glthread_recursive_lock_lock.
58466         (glthread_recursive_lock_unlock_func): Renamed from
58467         glthread_recursive_lock_unlock.
58468         (glthread_recursive_lock_destroy_func): Renamed from
58469         glthread_recursive_lock_destroy.
58470
58471 2008-08-14  Bruno Haible  <bruno@clisp.org>
58472
58473         * lib/glthread/lock.h: Renamed from lib/lock.h.
58474         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58475         * lib/glthread/tls.h: Renamed from lib/tls.h.
58476         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
58477         * lib/fstrcmp.c: Update includes.
58478         * lib/strsignal.c: Update includes.
58479         * modules/lock (Files, Makefile.am): Update.
58480         (Include): Change to "glthread/lock.h".
58481         * modules/tls (Files, Makefile.am): Update.
58482         (Include): Change to "glthread/tls.h".
58483         * tests/test-lock.c: Update includes.
58484         * tests/test-tls.c: Update includes.
58485         * NEWS: Mention the renamed header files.
58486
58487 2008-08-11  Jim Meyering  <meyering@redhat.com>
58488
58489         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
58490
58491 2008-08-11  Eric Blake  <ebb9@byu.net>
58492
58493         test-c-stack: avoid C99-ism
58494         * tests/test-c-stack.c (main): Fix whitespace, move declaration
58495         before statement.
58496         Reported by Alain Guibert.
58497
58498 2008-08-10  Jim Meyering  <meyering@redhat.com>
58499
58500         ensure that return value of uinttostr et al are not ignored
58501         * lib/inttostr.h (__GNUC_PREREQ): Define.
58502         (__attribute_warn_unused_result__): Define.
58503         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
58504
58505 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
58506
58507         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
58508         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
58509
58510 2008-08-07  Jim Meyering  <meyering@redhat.com>
58511
58512         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
58513
58514         * modules/mkstemp (License): Relicense under LGPLv2+.
58515         * modules/tempname (License): Likewise.
58516
58517 2008-08-06  Bruno Haible  <bruno@clisp.org>
58518
58519         * lib/poll.c (poll): Further micro-optimization.
58520
58521 2008-08-06  Jim Meyering  <meyering@redhat.com>
58522
58523         inet_pton.c: use locale-independent tolower
58524         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
58525         (inet_pton6): Use c_tolower rather than tolower.
58526         * modules/inet_pton (Depends-on): Add c-ctype.
58527
58528 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
58529
58530         * lib/poll.c (poll): Avoid division when timeout is 0, cache
58531         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
58532
58533 2008-08-06  Jim Meyering  <meyering@redhat.com>
58534
58535         * modules/inet_pton (License): Relicense under LGPLv2+.
58536
58537 2008-08-03  Bruno Haible  <bruno@clisp.org>
58538
58539         Additional non-aborting API for lock and tls.
58540         * lib/lock.h: Include <errno.h>.
58541         (glthread_lock_init): New macro/function.
58542         (gl_lock_init): Define as wrapper around glthread_lock_init.
58543         (glthread_lock_lock): New macro/function.
58544         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
58545         (glthread_lock_unlock): New macro/function.
58546         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
58547         (glthread_lock_destroy): New macro/function.
58548         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
58549         (glthread_rwlock_init): New macro/function.
58550         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
58551         (glthread_rwlock_rdlock): New macro/function.
58552         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
58553         (glthread_rwlock_wrlock): New macro/function.
58554         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
58555         (glthread_rwlock_unlock): New macro/function.
58556         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
58557         (glthread_rwlock_destroy): New macro/function.
58558         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
58559         (glthread_recursive_lock_init): New macro/function.
58560         (gl_recursive_lock_init): Define as wrapper around
58561         glthread_recursive_lock_init.
58562         (glthread_recursive_lock_lock): New macro/function.
58563         (gl_recursive_lock_lock): Define as wrapper around
58564         glthread_recursive_lock_lock.
58565         (glthread_recursive_lock_unlock): New macro/function.
58566         (gl_recursive_lock_unlock): Define as wrapper around
58567         glthread_recursive_lock_unlock.
58568         (glthread_recursive_lock_destroy): New macro/function.
58569         (gl_recursive_lock_destroy): Define as wrapper around
58570         glthread_recursive_lock_destroy.
58571         (glthread_once): New macro/function.
58572         (gl_once): Define as wrapper around glthread_once.
58573         Update function declarations.
58574         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
58575         glthread_rwlock_init. Return error code.
58576         (glthread_rwlock_rdlock_multithreaded): Renamed from
58577         glthread_rwlock_rdlock. Return error code.
58578         (glthread_rwlock_wrlock_multithreaded): Renamed from
58579         glthread_rwlock_wrlock. Return error code.
58580         (glthread_rwlock_unlock_multithreaded): Renamed from
58581         glthread_rwlock_unlock. Return error code.
58582         (glthread_rwlock_destroy_multithreaded): Renamed from
58583         glthread_rwlock_destroy. Return error code.
58584         (glthread_recursive_lock_init_multithreaded): Renamed from
58585         glthread_recursive_lock_init. Return error code.
58586         (glthread_recursive_lock_lock_multithreaded): Renamed from
58587         glthread_recursive_lock_lock. Return error code.
58588         (glthread_recursive_lock_unlock_multithreaded): Renamed from
58589         glthread_recursive_lock_unlock. Return error code.
58590         (glthread_recursive_lock_destroy_multithreaded): Renamed from
58591         glthread_recursive_lock_destroy. Return error code.
58592         (glthread_once_call): Make static.
58593         (glthread_once_multithreaded): Renamed from glthread_once.
58594         * lib/tls.h: Include <errno.h>.
58595         (glthread_tls_key_init): New macro/function.
58596         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
58597         (glthread_tls_set): New macro/function.
58598         (gl_tls_set): Define as wrapper around glthread_tls_set.
58599         (glthread_tls_key_destroy): New macro/function.
58600         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
58601         Update function declarations.
58602         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
58603         glthread_tls_get.
58604         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58605
58606 2008-08-04  Eric Blake  <ebb9@byu.net>
58607
58608         gnumakefile: use space, not TAB, outside of targets
58609         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
58610
58611 2008-08-02  Jim Meyering  <meyering@redhat.com>
58612
58613         getdate.y: avoid locale-dependent date parsing failure
58614         In Turkish locales, getdate would fail to recognize keywords
58615         containing a lowercase "i".  The solution is not to rely on
58616         locale-sensitive case-conversion.
58617         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
58618         (lookup_word): Use c_toupper in place of toupper.
58619         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
58620         Reported by Vefa Bicakci <bicave@superonline.com> in
58621         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
58622         * modules/getdate (Depends-on): Add c-ctype.
58623
58624 2008-08-02  Bruno Haible  <bruno@clisp.org>
58625
58626         * gnulib-tool (func_import): When updating or creating a .gitignore
58627         file, prepend each added line with a slash, and ignore leading slashes
58628         from the existing lines.
58629         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58630
58631 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58632
58633         Portability fix for GNU make 3.79.1.
58634         * top/GNUmakefile: Avoid 'else COND', which older GNU make
58635         versions do not understand.
58636
58637 2008-08-01  Bruno Haible  <bruno@clisp.org>
58638
58639         Work around bug of HP-UX 10.20 cc with -0.0 literal.
58640         * tests/test-isnanf.h (zero): New variable.
58641         (main): Avoid literal -0.0f.
58642         * tests/test-isnand.h (zero): New variable.
58643         (main): Avoid literal -0.0.
58644         * tests/test-isnanl.h (zero): New variable.
58645         (main): Avoid literal -0.0L.
58646         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
58647         (test_float, test_double, test_long_double): Avoid literals -0.0f,
58648         -0.0, -0.0L.
58649         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
58650         (test_signbitd): Avoid literal -0.0.
58651         (test_signbitl): Avoid literal -0.0L.
58652         * tests/test-ceilf1.c (zero): New variable.
58653         (main): Avoid literal -0.0f.
58654         * tests/test-ceill.c (zero): New variable.
58655         (main): Avoid literal -0.0L.
58656         * tests/test-floorf1.c (zero): New variable.
58657         (main): Avoid literal -0.0f.
58658         * tests/test-floorl.c (zero): New variable.
58659         (main): Avoid literal -0.0L.
58660         * tests/test-roundf1.c (zero): New variable.
58661         (main): Avoid literal -0.0f.
58662         * tests/test-round1.c (zero): New variable.
58663         (main): Avoid literal -0.0.
58664         * tests/test-roundl.c (zero): New variable.
58665         (main): Avoid literal -0.0L.
58666         * tests/test-truncf1.c (zero): New variable.
58667         (main): Avoid literal -0.0f.
58668         * tests/test-trunc1.c (zero): New variable.
58669         (main): Avoid literal -0.0.
58670         * tests/test-truncl.c (zero): New variable.
58671         (main): Avoid literal -0.0L.
58672         * tests/test-frexp.c (zero): New variable.
58673         (main): Avoid literal -0.0.
58674         * tests/test-frexpl.c (zero): New variable.
58675         (main): Avoid literal -0.0L.
58676         * tests/test-ldexpl.c (zero): New variable.
58677         (main): Avoid literal -0.0L.
58678         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58679         (zerod, zerol): New variables.
58680         (test_function): Avoid literals -0.0, -0.0L.
58681         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58682         (zerod, zerol): New variables.
58683         (test_function): Avoid literals -0.0, -0.0L.
58684         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58685         (zerod, zerol): New variables.
58686         (test_function): Avoid literals -0.0, -0.0L.
58687         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58688         (zerod, zerol): New variables.
58689         (test_function): Avoid literals -0.0, -0.0L.
58690         * tests/test-strtod.c (zero): New variable.
58691         (main): Avoid literal -0.0.
58692         Reported by Jonathan C. Patschke <jp@centtech.com>.
58693
58694 2008-07-31  Jim Meyering  <meyering@redhat.com>
58695
58696         sha256.h: correct definition of SHA224_DIGEST_SIZE
58697         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
58698         Reported by Paulie Pena IV <paulie4@gmail.com>.
58699         Define as 224 / 8, rather than as a literal.
58700         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
58701         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
58702         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
58703
58704 2008-07-31  Bruno Haible  <bruno@clisp.org>
58705
58706         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
58707         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
58708         Reported by Jonathan Patschke <jp@centtech.com>.
58709
58710 2008-07-31  Bruno Haible  <bruno@clisp.org>
58711
58712         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
58713         Reported by Paolo Bonzini <bonzini@gnu.org>.
58714
58715 2008-07-30  Eric Blake  <ebb9@byu.net>
58716
58717         test-strtod: allow compilation without -lm
58718         * tests/test-strtod.c (main): Avoid link dependence on fabs.
58719         Reported by Dennis Clarke <blastwave@gmail.com>.
58720
58721 2008-07-28  Jim Meyering  <meyering@redhat.com>
58722
58723         bootstrap: work also when there are no .po files in po/
58724         * build-aux/bootstrap (update_po_files): Complete the change
58725         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
58726
58727 2008-07-27  Jim Meyering  <meyering@redhat.com>
58728
58729         * users.txt: Add zile.
58730
58731 2008-07-26  Ben Pfaff  <blp@gnu.org>
58732
58733         Add missing dependencies on new m4/exponent[fdl].m4 files.
58734         * modules/isnanf-nolibm: Add m4/exponentf.m4.
58735         * modules/isnand-nolibm: Add m4/exponentd.m4.
58736         * modules/isnanl-nolibm: Add m4/exponentl.m4.
58737         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
58738         m4/isnan[fdl].m4, because the macros actually used moved.
58739         Reported by Jim Meyering.
58740
58741 2008-07-14  Ben Pfaff  <blp@gnu.org>
58742
58743         Add isinf module.
58744         * lib/isinf.c: New file.
58745         * lib/math.in.h: Define isinf macro if we have decided to replace
58746         it.
58747         * m4/isinf.m4: New file.
58748         * m4/math_h.m4: Initialize and substitute variables for isinf
58749         module.
58750         * modules/isinf: New file.
58751         * modules/isinf-tests: New file.
58752         * modules/math: Add substitutions for new module.
58753         * tests/test-isinf.c: New file.
58754         * doc/posix-functions/isinf.texi: Mention new module.
58755         * MODULES.html.sh: Mention new module.
58756
58757 2008-07-14  Ben Pfaff  <blp@gnu.org>
58758
58759         Factor out some macros for use by additional modules.
58760         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
58761         exponentf.m4.
58762         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
58763         exponentd.m4.
58764         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
58765         file exponentl.m4.
58766         * m4/exponentf.m4: New file.
58767         * m4/exponentd.m4: New file.
58768         * m4/exponentl.m4: New file.
58769         * modules/isnanf: Use new file m4/exponentf.m4.
58770         * modules/isnand: Use new file m4/exponentd.m4.
58771         * modules/isnanl: Use new file m4/exponentl.m4.
58772
58773 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
58774
58775         mktime.c: normalize tp->tm_isdst value to -1/0/1.
58776         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
58777         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
58778         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
58779
58780         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
58781         readlink on platforms without PATH_MAX.
58782
58783 2008-07-21  Eric Blake  <ebb9@byu.net>
58784
58785         Warn, not fail, on stale version.
58786         * top/GNUmakefile (_curr-ver): Tone down previous patch.
58787
58788         Don't allow installation with stale devel version number.
58789         * top/GNUmakefile (_is-install-target): New macro.
58790         (_curr-ver): Forbid installation with stale version number.
58791
58792 2008-07-20  Bruno Haible  <bruno@clisp.org>
58793
58794         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
58795         TESTS_ENVIRONMENT.
58796         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
58797
58798 2008-07-20  Bruno Haible  <bruno@clisp.org>
58799
58800         * lib/c-stack.h (c_stack_action): Add documentation.
58801         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
58802
58803 2008-07-20  Bruno Haible  <bruno@clisp.org>
58804
58805         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
58806         * modules/readlink (License): Likewise.
58807
58808 2008-07-17  Eric Blake  <ebb9@byu.net>
58809
58810         * modules/c-stack (Link): Fix typo.
58811
58812         Make c-stack use libsigsegv, when available.
58813         * modules/c-stack (Depends-on): Add libsigsegv.
58814         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
58815         needed.
58816         * lib/c-stack.c (SIGSTKSZ): Define fallback.
58817         (segv_handler, overflow_handler, c_stack_action)
58818         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
58819         implementation when libsigsegv is available, but only when using
58820         the library is necessary.
58821         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
58822         comment, explaining why XSI check fails on Linux.
58823         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
58824         * tests/test-c-stack2.sh: Tweak skip message.
58825         * NEWS: Document new link-time requirements.
58826
58827 2008-07-16  Eric Blake  <ebb9@byu.net>
58828
58829         c-stack: Expose false positives when not using libsigsegv.
58830         * modules/c-stack-tests (Files): Expand test.
58831         * tests/test-c-stack.c (main): Add means to conditionally trigger
58832         non-overflow SIGSEGV.
58833         * tests/test-c-stack2.sh: New file.
58834
58835 2008-07-14  Bruno Haible  <bruno@clisp.org>
58836
58837         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
58838         Reported by Eric Blake.
58839
58840 2008-07-14  Sam Steingold  <sds@gnu.org>
58841             Bruno Haible  <bruno@clisp.org>
58842
58843         New module libsigsegv.
58844         * modules/libsigsegv: New file.
58845         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
58846         modifications.
58847         * MODULES.html.sh (Signal handling): New section.
58848
58849 2008-07-14  Bruno Haible  <bruno@clisp.org>
58850
58851         * modules/unictype/ctype-* (Description): Add the word "function".
58852         Improves the resulting doc in MODULES.html.
58853
58854 2008-07-12  Ben Pfaff  <blp@gnu.org>
58855
58856         Add longlong module.
58857         * modules/longlong: New file.
58858
58859 2008-07-12  Bruno Haible  <bruno@clisp.org>
58860
58861         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
58862         to empty.
58863
58864 2008-07-10  Ben Pfaff  <blp@gnu.org>
58865
58866         Add isnan module.
58867         * doc/posix-functions/isnan.texi: Mention new module.
58868         * lib/math.in.h: Define isnan macro if we have decided to replace
58869         it.
58870         * m4/isnan.m4: New file.
58871         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
58872         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
58873         also.
58874         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
58875         redundancy.
58876         * m4/math_h.m4: Initialize and substitute variables for isnan
58877         module.
58878         * modules/isnan: New file.
58879         * modules/isnan-tests: New file.
58880         * modules/math: Add substitutions for new module.
58881         * tests/test-isnan.c: New file.
58882         * MODULES.html.sh: Mention new module.
58883
58884 2008-07-10  Ben Pfaff  <blp@gnu.org>
58885
58886         Add isnanf module.
58887         * lib/isnanf.m4: New file.
58888         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
58889         (gl_HAVE_ISNANF_IN_LIBM): New macro.
58890         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
58891         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
58892         * modules/isnanf: New file.
58893         * modules/isnanf-tests: New file.
58894         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
58895         files.
58896         * tests/test-isnanf-nolibm.c: factored most of its contents into
58897         new file tests/test-isnanf.h.
58898         * tests/test-isnanf.h: New file.
58899         * tests/test-isnanf.c: New file.
58900         * MODULES.html.sh: Mention new module.
58901         * doc/glibc-functions/isnanf.texi: Mention new module.
58902
58903 2008-07-10  Ben Pfaff  <blp@gnu.org>
58904
58905         Add isnand module.
58906         * lib/isnand.h: New file.
58907         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
58908         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
58909         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
58910         functionality also.
58911         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
58912         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
58913         (gl_HAVE_ISNAND_IN_LIBM): New macro.
58914         * modules/isnand: New file.
58915         * modules/isnand-tests: New file.
58916         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
58917         files.
58918         * tests/test-isnand-nolibm.c: factored most of its contents into
58919         new file tests/test-isnand.h.
58920         * tests/test-isnand.h: New file.
58921         * tests/test-isnand.c: New file.
58922         * MODULES.html.sh: Mention new module.
58923
58924 2008-07-10  Ben Pfaff  <blp@gnu.org>
58925
58926         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
58927         * lib/isnand.h: Rename lib/isnand-nolibm.h.
58928         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
58929         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
58930         * modules/isnanf-nolibm: Update references to renamed files.
58931         * modules/isnand-nolibm: Likewise.
58932         * modules/isnanf-nolibm-tests: Likewise.
58933         * modules/isnand-nolibm-tests: Likewise.
58934         * lib/frexp.c: Likewise.
58935         * lib/isfinite.c: Likewise.
58936         * lib/signbitd.c: Likewise.
58937         * lib/signbitf.c: Likewise.
58938         * lib/vasnprintf.c: Likewise.
58939         * tests/test-ceilf1.c: Likewise.
58940         * tests/test-ceilf2.c: Likewise.
58941         * tests/test-floorf1.c: Likewise.
58942         * tests/test-floorf2.c: Likewise.
58943         * tests/test-frexp.c: Likewise.
58944         * tests/test-round1.c: Likewise.
58945         * tests/test-round2.c: Likewise.
58946         * tests/test-roundf1.c: Likewise.
58947         * tests/test-strtod.c: Likewise.
58948         * tests/test-trunc1.c: Likewise.
58949         * tests/test-trunc2.c: Likewise.
58950         * tests/test-truncf1.c: Likewise.
58951         * tests/test-truncf2.c: Likewise.
58952         * NEWS: Mention the renamed header files.
58953
58954 2008-07-11  Jim Meyering  <meyering@redhat.com>
58955
58956         vc-list-files: make the last-resort awk code more portable
58957         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
58958         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
58959         does not support it.
58960
58961 2008-07-10  Eric Blake  <ebb9@byu.net>
58962
58963         Work with tar's bootstrap.
58964         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
58965         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
58966         an m4 comment.
58967
58968 2008-07-09  Jim Meyering  <meyering@redhat.com>
58969
58970         posix-shell.m4: fix typo that made this test malfunction
58971         * m4/posix-shell.m4: Remove capitalization in variable name.
58972
58973 2008-07-08  Bruno Haible  <bruno@clisp.org>
58974
58975         * m4/onceonly.m4: Update comments.
58976         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58977
58978 2008-07-04  Jim Meyering  <meyering@redhat.com>
58979
58980         * users.txt: Add vc-dwim.
58981         (bison, coreutils): Use the gitweb URL.
58982
58983 2008-07-03  Jim Meyering  <meyering@redhat.com>
58984
58985         * users.txt: Add libffcall.  From Sam Steingold.
58986
58987 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
58988
58989         getdate.y: do not ignore TZ with relative day, month or year offset
58990         * lib/getdate.y (get_date): Move the tz-handling block to follow the
58991         relative-date-handling, since otherwise, the latter would clobber the
58992         sole output (an updated Start value) of the tz-handling block.
58993         * tests/test-getdate.c: Tests for the fix
58994
58995 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58996
58997         Recognize 'foo_LIBRARIES += libgnu.a'.
58998         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
58999         makefile snippet has already specified an installation location,
59000         also using '+='.
59001
59002 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
59003
59004         getdate.y: factor out common actions
59005         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
59006         Use them in place of open-coded actions.
59007
59008 2008-07-01  Simon Josefsson  <simon@josefsson.org>
59009
59010         Add self-test for getdate module.
59011         * modules/getdate-tests: New file.
59012         * tests/test-getdate.c: New file.
59013
59014 2008-06-29  Bruno Haible  <bruno@clisp.org>
59015
59016         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
59017         .gitignore.
59018         Reported by Sylvain Beucler <beuc@beuc.net>.
59019
59020 2008-06-29  Bruno Haible  <bruno@clisp.org>
59021
59022         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
59023         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
59024
59025 2008-06-29  Bruno Haible  <bruno@clisp.org>
59026
59027         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
59028         EXTRA_DIST.
59029         Reported by Sylvain Beucler <beuc@beuc.net>.
59030
59031 2008-06-26  Jim Meyering  <meyering@redhat.com>
59032
59033         make several modules depend on the "open" module
59034         This provides slightly increased consistency when opening-for-write
59035         the name of a non-directory spelled with a trailing slash.
59036         * modules/chdir-safer: Likewise.
59037         * modules/chown: Likewise.
59038         * modules/clean-temp: Likewise.
59039         * modules/copy-file: Likewise.
59040         * modules/fchdir: Likewise.
59041         * modules/fcntl-safer: Likewise.
59042         * modules/pipe: Likewise.
59043         * modules/utime: Likewise.
59044         Prompted by Eric Blake and Bruno Haible.
59045
59046 2008-06-24  Andreas Schwab  <schwab@suse.de>
59047
59048         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
59049         literals can be used as initializers for global variables.
59050
59051 2008-06-23  Eric Blake  <ebb9@byu.net>
59052
59053         Make gnulib-cache.m4 easier to diff.
59054         * gnulib-tool (func_import): Allow newlines when reading cached
59055         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
59056
59057 2008-06-23  Bruno Haible  <bruno@clisp.org>
59058
59059         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
59060         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
59061         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
59062         m4/signalblocking.m4.
59063         (gl_PREREQ_SIGACTION): Don't invoke it.
59064         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
59065         gl_PREREQ_SIG_HANDLER_H.
59066         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59067         Don't check for sigaction here.
59068
59069 2008-06-23  Bruno Haible  <bruno@clisp.org>
59070
59071         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
59072         (install_handlers): Don't set the SA_RESETHAND flag.
59073
59074 2008-06-23  Bruno Haible  <bruno@clisp.org>
59075
59076         * m4/sigaction.m4: Comment fixes.
59077         * lib/signal.in.h: Likewise.
59078
59079 2008-06-23  Eric Blake  <ebb9@byu.net>
59080
59081         Fix typo.
59082         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
59083
59084         Avoid SA_ namespace.
59085         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
59086         Reported by Ralf Wildenhues.
59087
59088         Avoid test failure due to SA_RESTORER.
59089         * tests/test-sigaction.c (SA_MASK): New macro.
59090         (main): Avoid failing due to extension flags being set.
59091         Reported by Jim Meyering.
59092
59093         Revert use of sig-handler.h in sigprocmask.c.
59094         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
59095         it requires the existence of struct sigaction.
59096         * lib/sigprocmask.c (handler_t): Restore typedef.
59097         (rpl_signal, old_handlers): Use local type.
59098
59099 2008-06-22  Bruno Haible  <bruno@clisp.org>
59100
59101         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
59102         conditionally.
59103         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59104
59105 2008-06-22  Bruno Haible  <bruno@clisp.org>
59106
59107         * doc/posix-functions/siginterrupt.texi: Move note.
59108
59109         * lib/signal.in.h (SA_RESTART): New macro.
59110         * lib/sigaction.c: Update comment.
59111
59112         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
59113
59114         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
59115         (gl_PREREQ_SIGPROCMASK): Invoke it.
59116         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
59117
59118         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
59119
59120         * lib/sigprocmask.c: Update a comment.
59121
59122 2008-06-21  Eric Blake  <ebb9@byu.net>
59123
59124         Use sigaction module rather than signal().
59125         * modules/c-stack (Depends-on): Add sigaction.
59126         * modules/fatal-signal (Depends-on): Likewise.
59127         * modules/nanosleep (Depends-on): Likewise.
59128         * modules/sigprocmask (Files): Add sig-handler.h.
59129         * modules/sigaction (Files): Likewise.
59130         * lib/sig-handler.h (get_handler): New file, suggested by Paul
59131         Eggert.
59132         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
59133         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
59134         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
59135         (init_fatal_signals): Likewise.
59136         * lib/nanosleep.c (rpl_nanosleep): Likewise.
59137         (siginterrupt): Delete fallback.
59138         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
59139         instead.
59140         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
59141         siginterrupt.
59142
59143         New module sigaction, for mingw.
59144         * modules/sigaction: New module...
59145         * modules/sigaction-tests: ...and its test.
59146         * m4/sigaction.m4: New file.
59147         * lib/sigaction.c: Likewise.
59148         * tests/test-sigaction.c: Likewise.
59149         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
59150         * modules/signal (Makefile.am): Likewise.
59151         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
59152         needed.
59153         * doc/posix-headers/signal.texi (signal.h): Mention provided
59154         types.
59155         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
59156         that sigaction is preferable.
59157         * doc/posix-functions/sigaction.texi (sigaction): Mention new
59158         module.
59159         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59160         sigaction.
59161
59162         Improve robustness of sigprocmask by overriding signal.
59163         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
59164         is in use.
59165         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
59166         (SIGKILL, SIGSTOP): Provide fallbacks.
59167         (rpl_signal): Implement.
59168         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
59169         signal can be called inside handlers.
59170
59171         Fix nanosleep module on mingw.
59172         * modules/nanosleep (Depends-on): Add sys_select.
59173         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
59174
59175         Fix licensing of sigprocmask.
59176         * modules/raise (License): Relicense as LGPL.
59177
59178 2008-06-21  Bruno Haible  <bruno@clisp.org>
59179
59180         * lib/propername.c (proper_name_utf8): Don't use the transliterated
59181         result if it contains question marks.
59182         Reported by Michael Geng <linux@michaelgeng.de>.
59183
59184 2008-06-19  Bruno Haible  <bruno@clisp.org>
59185
59186         Fix CVS-ism.
59187         * doc/gnulib.texi: Include updated-stamp.texi.
59188         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
59189         (updated-stamp.texi): New rule.
59190         (gnulib.info): Depend on it.
59191         * doc/.gitignore: Add updated-stamp.texi.
59192         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
59193
59194 2008-06-19  Bruno Haible  <bruno@clisp.org>
59195
59196         * doc/Makefile (gnulib.info): Update and simplify dependencies.
59197         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59198
59199 2008-06-19  Eric Blake  <ebb9@byu.net>
59200
59201         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
59202         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
59203         Reported by Stepan Kasal.
59204
59205 2008-06-18  Bruno Haible  <bruno@clisp.org>
59206
59207         * lib/fatal-signal.c (init_fatal_signals): Add comment.
59208         Reported by Eric Blake.
59209
59210 2008-06-18  Eric Blake  <ebb9@byu.net>
59211
59212         Work around cygwin 1.5.25 strsignal bug.
59213         * tests/test-strsignal.c: Allow for const char *.
59214         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
59215
59216 2008-06-18  Simon Josefsson  <simon@josefsson.org>
59217
59218         * users.txt: Update URL to article and add author/date
59219         information.
59220
59221 2008-06-17  Bruno Haible  <bruno@clisp.org>
59222
59223         New macro gl_DISABLE_THREADS.
59224         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
59225         if the user did not pass --enable-threads or --disable-threads option.
59226         (gl_DISABLE_THREADS): New macro.
59227         Reported by Eric Blake <ebb9@byu.net>.
59228
59229 2008-06-17  Bruno Haible  <bruno@clisp.org>
59230
59231         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
59232         when the macro ignores it.
59233         Based on a patch by Eric Blake <ebb9@byu.net>.
59234
59235 2008-06-17  Bruno Haible  <bruno@clisp.org>
59236
59237         * modules/tls (License): Change to LGPLv2+.
59238         Reported by Eric Blake.
59239
59240 2008-06-17  Eric Blake  <ebb9@byu.net>
59241
59242         Simplify c-stack prerequisites.
59243         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
59244         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
59245         no longer requires <ucontext.h> to exist.  Optimize setrlimit
59246         check.
59247         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
59248         <sys/resource.h>.
59249
59250         Move c-stack test into testsuite.
59251         * modules/c-stack-tests: New file.
59252         * lib/c-stack.c [DEBUG]: Move test program...
59253         * tests/test-c-stack.c: ...into this new file.  Skip rather than
59254         fail test if sigaltstack is lacking.
59255         * tests/test-c-stack.sh: New driver file.
59256
59257 2008-06-16  Eric Blake  <ebb9@byu.net>
59258
59259         Use raise module consistently.
59260         * modules/fatal-signal (Depends-on): Add raise.
59261         * modules/sigprocmask (Depends-on): Likewise.
59262         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
59263         * lib/sigprocmask.c (sigprocmask): Likewise.
59264         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59265         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
59266
59267         Fix compliance bug in sigpending.
59268         * lib/sigprocmask.c (sigpending): Return pending array via
59269         parameter, not return value.
59270
59271 2008-06-14  Eric Blake  <ebb9@byu.net>
59272
59273         Improve obstack-printf test code.
59274         * tests/test-obstack-printf.c (test_function): Fix comment, and
59275         simplify usage of obstack_* in macros.  Add a test for coverage.
59276         Reported by Bruno Haible.
59277
59278 2008-06-14  Bruno Haible  <bruno@clisp.org>
59279
59280         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
59281         array size as a constant, not as a const variable.
59282         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
59283         AC_USE_SYSTEM_EXTENSIONS.
59284         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
59285         Test whether the obstack_printf function actually exists.
59286         * modules/obstack-printf (Depends-on): Add extensions.
59287         (Include): Remove obstack.h.
59288         * modules/obstack-printf-posix (Depends-on): Add extensions.
59289         (Include): Remove obstack.h.
59290
59291 2008-06-13  Eric Blake  <ebb9@byu.net>
59292
59293         Add obstack-printf and obstack-printf-posix modules.
59294         * modules/obstack-printf: New file.
59295         * modules/obstack-printf-posix: Likewise.
59296         * MODULES.html.sh (Misc): Mention them.
59297         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
59298         Likewise.
59299         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
59300         Likewise.
59301         * modules/stdio (Makefile.am): Accomodate new modules.
59302         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59303         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
59304         Declare.
59305         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
59306         functions.
59307         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
59308         (gl_REPLACE_OBSTACK_PRINTF): New macros
59309         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
59310         * tests/test-obstack-printf.c: New file.
59311         * modules/obstack-printf-tests: Likewise.
59312         * modules/obstack-printf-posix-tests: Likewise.
59313
59314 2008-06-11  Bruno Haible  <bruno@clisp.org>
59315
59316         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
59317         * lib/open.c: Include errno.h.
59318         (open): Fail when attempting to write to a file that has a trailing
59319         slash.
59320         * tests/test-open.c (main): Test against trailing slash bug.
59321         * doc/posix-functions/open.texi: Mention the trailing slash bug.
59322
59323 2008-06-10  Bruno Haible  <bruno@clisp.org>
59324
59325         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59326         for $? to work inside the trap command, with various /bin/sh-s.
59327         * tests/test-vc-list-files-cvs.sh: Likewise.
59328
59329 2008-06-10  Bruno Haible  <bruno@clisp.org>
59330
59331         * lib/acl-internal.h: Don't include gettext.h here.
59332         * lib/set-mode-acl.c: Include gettext.h here.
59333         * lib/copy-acl.c: Likewise.
59334
59335 2008-06-10  Bruno Haible  <bruno@clisp.org>
59336
59337         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59338         * lib/wait-process.c (wait_subprocess): Likewise.
59339         * lib/execute.h (execute): Add termsigp argument.
59340         * lib/execute.c (execute): Likewise.
59341         * lib/csharpcomp.c (compile_csharp_using_pnet,
59342         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59343         * lib/csharpexec.c (execute_csharp_using_pnet,
59344         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59345         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59346         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59347         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59348         is_jikes_present): Update.
59349         * lib/javaexec.c (execute_java_class): Update.
59350         * lib/javaversion.c (execute_and_read_line): Update.
59351         * NEWS: Document the changes.
59352         Reported by Eric Blake.
59353
59354 2008-06-10  Eric Blake  <ebb9@byu.net>
59355
59356         Add missing include.
59357         * tests/test-strstr.c (includes): Add <signal.h>.
59358         * tests/test-strcasestr.c (includes): Likewise.
59359         * tests/test-memmem.c (includes): Likewise.
59360
59361 2008-06-10  Bruno Haible  <bruno@clisp.org>
59362
59363         * lib/wait-process.c (wait_subprocess): Add an assertion.
59364
59365 2008-06-10  Bruno Haible  <bruno@clisp.org>
59366
59367         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59368
59369 2008-06-10  Bruno Haible  <bruno@clisp.org>
59370
59371         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59372         using alarm().
59373         * tests/test-strcasestr.c (main): Likewise.
59374         * tests/test-strstr.c (main): Likewise.
59375
59376 2008-06-09  Bruno Haible  <bruno@clisp.org>
59377
59378         Work around the Solaris 10 ACE ACLs ABI change.
59379         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59380         declare if ACL_NO_TRIVIAL is present.
59381         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59382         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59383         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59384         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59385         define if ACL_NO_TRIVIAL is present.
59386         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
59387         and use the current ABI.
59388         (file_has_acl): Use same #if condition as elsewhere.
59389         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
59390         in use, and use the current ABI.
59391         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
59392         Reported by Jim Meyering.
59393
59394 2008-06-09  Eric Blake  <ebb9@byu.net>
59395
59396         Work around environments that (stupidly) ignore SIGALRM.
59397         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59398         before using alarm().
59399         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59400         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59401         Reported by Ian Beckwith <ianb@erislabs.net>.
59402
59403         Produce autobuild blurb earlier in log.
59404         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59405
59406 2008-06-09  Jim Meyering  <meyering@redhat.com>
59407         and Ondřej Vašík  <ovasik@redhat.com>
59408
59409         utimens.c: correct kernel bug work-around
59410         Ondřej Vašík found that the invalid return value of 280 indicates
59411         failure, not success, and the kernel bug we're trying to work
59412         around affects not just the utimensat call, but also the fallback
59413         futimens call.
59414         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59415         not success.
59416         [HAVE_FUTIMENS]: Use the same work-around, here.
59417
59418 2008-06-09  Jim Meyering  <meyering@redhat.com>
59419
59420         add more guards around definition of ACE_-related code
59421         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59422         ALLOW and ACE_OWNER are also defined.
59423
59424 2008-06-08  Bruno Haible  <bruno@clisp.org>
59425
59426         * lib/acl-internal.h: Add me as co-author.
59427         * lib/file-has-acl.c: Likewise.
59428         * lib/set-mode-acl.c: Likewise.
59429         * lib/copy-acl.c: Likewise.
59430
59431 2008-06-08  Bruno Haible  <bruno@clisp.org>
59432
59433         Add support for AIX ACLs.
59434         * lib/acl-internal.h (acl_nontrivial): New declaration.
59435         * lib/file-has-acl.c (acl_nontrivial): New function.
59436         (file_has_acl): Add implementation using AIX 4 ACL API.
59437         * lib/set-mode-acl.c (qset_acl): Likewise.
59438         * lib/copy-acl.c (qcopy_acl): Likewise.
59439
59440 2008-06-08  Bruno Haible  <bruno@clisp.org>
59441
59442         Add support for HP-UX ACLs.
59443         * lib/acl-internal.h (acl_nontrivial): New declaration.
59444         * lib/file-has-acl.c (acl_nontrivial): New function.
59445         (file_has_acl): Add implementation using HP-UX 11 ACL API.
59446         * lib/set-mode-acl.c (qset_acl): Likewise.
59447         * lib/copy-acl.c (qcopy_acl): Likewise.
59448
59449 2008-06-08  Bruno Haible  <bruno@clisp.org>
59450
59451         Add support for Cygwin ACLs.
59452         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59453         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59454         the chmod_or_fchmod call.
59455         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59456
59457 2008-06-08  Bruno Haible  <bruno@clisp.org>
59458
59459         Fix bug with setuid modes in Solaris 10+ code.
59460         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59461         succeeded, when the mode contains some special bits.
59462
59463 2008-06-08  Bruno Haible  <bruno@clisp.org>
59464
59465         Add support for Solaris 7..10 ACLs.
59466         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59467         declarations.
59468         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59469         functions.
59470         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59471         * lib/set-mode-acl.c (qset_acl): Likewise.
59472         * lib/copy-acl.c (qcopy_acl): Likewise.
59473
59474 2008-06-08  Bruno Haible  <bruno@clisp.org>
59475
59476         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
59477         declaration.
59478         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
59479         (acl_access_nontrivial): Remove MacOS X case.
59480         (file_has_acl): Use acl_extended_nontrivial.
59481         * lib/copy-acl.c (qcopy_acl): Likewise.
59482
59483 2008-06-08  Bruno Haible  <bruno@clisp.org>
59484
59485         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
59486
59487 2008-06-08  Jim Meyering  <meyering@redhat.com>
59488
59489         * modules/acl (Maintainer): Add Bruno Haible.
59490
59491 2008-06-07  Bruno Haible  <bruno@clisp.org>
59492
59493         Improve support for Tru64 ACLs.
59494         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
59495         ACL on OSF/1.
59496
59497 2008-06-07  Bruno Haible  <bruno@clisp.org>
59498
59499         Add support for MacOS X ACLs.
59500         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
59501         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
59502         * lib/set-mode-acl.c (qset_acl): Likewise.
59503         * lib/copy-acl.c (qcopy_acl): Likewise.
59504
59505 2008-06-07  Bruno Haible  <bruno@clisp.org>
59506
59507         Fix memory leak introduced on 2008-05-22.
59508         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
59509         use.
59510
59511 2008-06-07  Bruno Haible  <bruno@clisp.org>
59512
59513         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
59514         to construct an empty ACL.
59515
59516 2008-06-07  Bruno Haible  <bruno@clisp.org>
59517
59518         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
59519         precisely.
59520         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
59521
59522 2008-06-07  Bruno Haible  <bruno@clisp.org>
59523
59524         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
59525         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
59526
59527 2008-06-07  Bruno Haible  <bruno@clisp.org>
59528
59529         * doc/posix-functions/_setjmp.texi: Explain the use of this function
59530         regardless of POSIX.
59531         * doc/posix-functions/_longjmp.texi: Likewise.
59532         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
59533         SystemV platform in this case.
59534
59535 2008-06-06  Eric Blake  <ebb9@byu.net>
59536
59537         Document abort() bugs.
59538         * doc/posix-functions/abort.texi (abort): Mention anomalies.
59539
59540         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
59541         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
59542         sigsetjmp.
59543         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
59544         siglongjmp, but only as a macro.
59545         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
59546         is obsolete.
59547         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
59548
59549         Tweak documentation to cover cygwin argz bugs.
59550         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
59551         argz bug fix; no code change needed since no cygwin releases
59552         occurred between the last fix and the bug being tested.
59553         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
59554         module and recently fixed cygwin bugs.
59555         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
59556         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
59557         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
59558         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
59559         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
59560         Likewise.
59561         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
59562         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
59563         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
59564         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
59565         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
59566         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
59567         Likewise.
59568
59569         Avoid gcc warning on cygwin.
59570         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
59571         !ACL_NO_TRIVIAL]: Avoid unused variable.
59572
59573 2008-06-05  Eric Blake  <ebb9@byu.net>
59574
59575         Be tolerant of UNKNOWN version in gnulib-tool test dir.
59576         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
59577         git-version-gen fails to come up with a version.
59578         Reported by Simon Josefsson.
59579
59580 2008-06-05  Jim Meyering  <meyering@redhat.com>
59581             Paul Eggert  <eggert@cs.ucla.edu>
59582
59583         utimens.c: work around a probable Linux kernel bug
59584         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
59585         appears to be a kernel bug that causes utimensat to return 280
59586         instead of 0, indicating success.
59587
59588 2008-06-04  Bruno Haible  <bruno@clisp.org>
59589
59590         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
59591         2008-06-01 commit.
59592
59593 2008-06-04  Bruno Haible  <bruno@clisp.org>
59594
59595         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
59596         * lib/file-has-acl.c (acl_access_nontrivial): New function.
59597         (file_has_acl): Use it. Save errno afterwards.
59598         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
59599
59600 2008-06-03  Bruno Haible  <bruno@clisp.org>
59601
59602         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
59603         draft code. Simplify #ifs.
59604         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
59605         Put Solaris code after POSIX-draft code. Fix comments regarding
59606         Solaris 10, HP-UX. Mention Cygwin.
59607         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
59608
59609 2008-06-03  Eric Blake  <ebb9@byu.net>
59610
59611         Provide fallback for older kernels.
59612         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
59613         Provide runtime fallback if kernel lacks support.
59614         Reported by Mike Frysinger.
59615
59616 2008-06-02  Bruno Haible  <bruno@clisp.org>
59617
59618         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
59619         it exists.
59620
59621 2008-06-02  Bruno Haible  <bruno@clisp.org>
59622
59623         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
59624         * lib/copy-acl.c (qcopy_acl): Update comment.
59625
59626 2008-06-02  Bruno Haible  <bruno@clisp.org>
59627
59628         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
59629         like ACL APIs.
59630
59631 2008-06-02  Bruno Haible  <bruno@clisp.org>
59632
59633         * tests/test-file-has-acl.sh: Use different code for Cygwin.
59634         * tests/test-set-mode-acl.sh: Likewise.
59635         * tests/test-copy-acl.sh: Likewise.
59636         * tests/test-copy-file.sh: Likewise.
59637
59638 2008-06-02  Bruno Haible  <bruno@clisp.org>
59639
59640         * tests/test-file-has-acl.sh: Remove unused code.
59641
59642 2008-06-01  Bruno Haible  <bruno@clisp.org>
59643
59644         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
59645         (copy_acl): Just a wrapper around qcopy_acl that emits the error
59646         messages.
59647         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
59648
59649 2008-06-01  Bruno Haible  <bruno@clisp.org>
59650
59651         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
59652         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
59653         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
59654         APIs.
59655         * modules/acl-tests (configure.ac): Remove tests now contained in
59656         m4/acl.m4.
59657
59658 2008-06-02  Jim Meyering  <meyering@redhat.com>
59659
59660         announce-gen: use a better key-server host name
59661         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
59662         it may be more consistently reliable.  Suggested by Werner Koch
59663         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
59664
59665 2008-06-01  Bruno Haible  <bruno@clisp.org>
59666
59667         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
59668         Reported by Voroskoi Andras <voroskoi@gmail.com>.
59669
59670 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
59671
59672         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
59673
59674 2008-06-01  Bruno Haible  <bruno@clisp.org>
59675
59676         New ACL tests.
59677         * tests/test-file-has-acl.sh: New file.
59678         * tests/test-file-has-acl.c: New file.
59679         * tests/test-set-mode-acl.sh: New file.
59680         * tests/test-set-mode-acl.c: New file.
59681         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
59682         * tests/test-copy-acl.c: New file.
59683         * modules/acl-tests: New file, based on modules/copy-file-tests.
59684         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
59685         (Depends-on): Add acl-tests.
59686         (configure.ac): Remove checks.
59687         (Makefile.am): Don't create test-sameacls program here any more.
59688
59689 2008-06-01  Bruno Haible  <bruno@clisp.org>
59690
59691         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
59692         * tests/test-sameacls.c: Include progname.h.
59693         (main): Invoke set_program_name. Portability fixes for MacOS X,
59694         Solaris, HP-UX.
59695
59696 2008-06-01  Bruno Haible  <bruno@clisp.org>
59697
59698         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
59699         function.
59700         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
59701
59702 2008-06-01  Bruno Haible  <bruno@clisp.org>
59703
59704         * modules/rpmatch (Depends-on): Add strdup.
59705
59706 2008-06-01  Bruno Haible  <bruno@clisp.org>
59707
59708         * lib/pipe.c: Include unistd-safer.h.
59709         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
59710         * modules/pipe (Depends-on): Add unistd-safer.
59711
59712 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59713
59714         * modules/autobuild (configure.ac): Call AB_INIT.
59715
59716 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59717
59718         * tests/test-getaddrinfo.c: Don't print debug messages by default.
59719         Suggested by Bruno Haible <bruno@clisp.org>.
59720
59721 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59722
59723         * tests/test-base64.c: Cast size_t to unsigned long when invoking
59724         printf.  Use %lu instead of %d.  Reported by Bruno Haible
59725         <bruno@clisp.org>.
59726
59727 2008-05-29  Eric Blake  <ebb9@byu.net>
59728
59729         Prefer new POSIX 200x interfaces over futimesat.
59730         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
59731         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
59732         when available.
59733         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
59734
59735 2008-05-28  Bruno Haible  <bruno@clisp.org>
59736
59737         * modules/stpcpy (License): Change to LGPLv2+.
59738         Requested by David Lutterkort <dlutter@redhat.com>.
59739
59740 2008-05-27  Bruno Haible  <bruno@clisp.org>
59741
59742         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
59743         current mingw.
59744         Reported by Jose E. Marchesi <jemarch@gnu.org>.
59745
59746 2008-05-27  Bruno Haible  <bruno@clisp.org>
59747
59748         * modules/iconv_open (Link): New section, from module 'iconv'.
59749         * modules/striconv (Link): Likewise.
59750         * modules/striconveh (Link): Likewise.
59751         * modules/xstriconv (Link): Likewise.
59752         * modules/unicodeio (Link): Likewise.
59753         * modules/propername (Link): Likewise.
59754         Reported by Jim Meyering.
59755
59756 2008-05-26  Jim Meyering  <meyering@redhat.com>
59757
59758         sha256: do not artificially restrict buffer length to be < 2^32
59759         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
59760         uint32_t to size_t.
59761         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
59762         to match.
59763
59764         avoid unaligned access errors, e.g., on sparc
59765         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
59766         direct access through a possibly-unaligned uint64* pointer.
59767         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
59768         direct access through a possibly-unaligned uint32* pointer.
59769         Prompted by this patch from Tom "spot" Callaway:
59770         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
59771
59772         sha512.c: fix typo in comment
59773         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
59774
59775 2008-05-25  Bruno Haible  <bruno@clisp.org>
59776
59777         * lib/set-mode-acl.c: Renamed from lib/acl.c.
59778         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
59779         (Makefile.am): Update lib_SOURCES.
59780
59781 2008-05-25  Bruno Haible  <bruno@clisp.org>
59782
59783         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
59784
59785 2008-05-25  Jim Meyering  <meyering@redhat.com>
59786
59787         useless-if-before-free: freed expr may have white-space differences
59788         * build-aux/useless-if-before-free: Recognize cases in which the
59789         freed expression differs from the tested one in embedded white
59790         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
59791         $1 was used, so we can't make any regexp shy.  Improved tests now
59792         detect this.
59793
59794         useless-if-before-free: accept white space in the expression.
59795         * build-aux/useless-if-before-free: For now, any white space
59796         in the expression must be identical in the free argument.
59797
59798         useless-if-before-free: efficiency tweak
59799         * build-aux/useless-if-before-free: Make the expression-matching
59800         regexp "shy".
59801         Make the *outer* regexp shy, not the expr-matching one.
59802
59803         update code-in-comment to accept cast of free arg
59804         * build-aux/useless-if-before-free: Update regexp.
59805
59806 2008-05-25  Bruno Haible  <bruno@clisp.org>
59807
59808         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
59809         * modules/copy-file-tests (Files, Makefile.am): Update.
59810         * tests/test-copy-file.c (func_test_copy): Update.
59811
59812 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
59813
59814         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
59815
59816 2008-05-23  Bruno Haible  <bruno@clisp.org>
59817
59818         Improve support for ACLs on OSF/1.
59819         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
59820         Remove fallback for unknown flavors of ACLs.
59821
59822 2008-05-22  Bruno Haible  <bruno@clisp.org>
59823
59824         Add support for ACLs on OSF/1.
59825         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
59826         replacements.
59827         (acl_free_text): New macro fallback.
59828         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
59829         acl_free.
59830         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
59831         acl_free_text function. Require AC_C_INLINE.
59832
59833 2008-05-22  Bruno Haible  <bruno@clisp.org>
59834
59835         Make copy_acl work on MacOS X 10.5.
59836         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
59837         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
59838         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
59839         If MODE_INSIDE_ACL, don't assume that every system has the same text
59840         representation for ACLs as FreeBSD.
59841         * lib/copy-acl.c (copy_acl): Add support for platforms with
59842         !MODE_INSIDE_ACL.
59843         * lib/file-has-acl.c (file_has_acl): Likewise.
59844         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
59845         FreeBSD, MacOS X, or IRIX, respectively.
59846
59847 2008-05-22  Bruno Haible  <bruno@clisp.org>
59848
59849         * lib/acl.h: Don't include <sys/acl.h>.
59850         (GETACLCNT): Move fallback to lib/acl-internal.h.
59851         * lib/acl-internal.h: Include <sys/acl.h> here.
59852         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
59853
59854 2008-05-22  Bruno Haible  <bruno@clisp.org>
59855
59856         Split off copy_acl function to separate file.
59857         * lib/copy-acl.c: New file, extracted from lib/acl.c.
59858         * lib/acl.c (copy_acl): Moved function to separate file.
59859         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
59860         * modules/acl (Files): Add lib/copy-acl.c.
59861         (Makefiles.am): Augment lib_SOURCES.
59862
59863 2008-05-22  Bruno Haible  <bruno@clisp.org>
59864
59865         * modules/copy-file-tests: New file.
59866         * tests/test-copy-file.sh: New file.
59867         * tests/test-copy-file.c: New file.
59868         * tests/test-copy-file-sameacls.c: New file.
59869
59870 2008-05-22  Eric Blake  <ebb9@byu.net>
59871
59872         Avoid gcc warning.
59873         * tests/test-memcmp.c (main): Pass NULL indirectly.
59874
59875 2008-05-21  Bruno Haible  <bruno@clisp.org>
59876
59877         Add reference doc about ACLs.
59878         * doc/acl-resources.txt: New file.
59879         * doc/acl-cygwin.txt: New file.
59880
59881 2008-05-21  Bruno Haible  <bruno@clisp.org>
59882
59883         Avoid one more warning from gcc.
59884         * lib/vasnprintf.c (IF_LINT): Update comments.
59885         (VASNPRINTF): Use it also for the 'prefix' array initializer.
59886
59887 2008-05-21  Jim Meyering  <meyering@redhat.com>
59888
59889         avoid a warning from gcc
59890         * lib/vasnprintf.c (IF_LINT): Define.
59891         (scale10_round_decimal_long_double):
59892         Use it to avoid a "may be used uninitialized" warning.
59893         (scale10_round_decimal_double): Likewise.
59894
59895 2008-05-21  Simon Josefsson  <simon@josefsson.org>
59896
59897         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
59898         declared.
59899
59900 2008-05-20  Bruno Haible  <bruno@clisp.org>
59901
59902         * tests/test-memcmp.c (main): Test also the sign of the result. Test
59903         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
59904
59905 2008-05-20  Simon Josefsson  <simon@josefsson.org>
59906
59907         * modules/memcmp-tests: New file.
59908         * tests/test-memcmp.c: New file.
59909
59910 2008-05-19  Bruno Haible  <bruno@clisp.org>
59911
59912         * modules/propername (Notice, configure.ac): Put quoted "..." into
59913         --keyword option.
59914         * lib/propername.h: Update comments accordingly.
59915         Reported by Eric Blake.
59916
59917 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
59918
59919         * modules/getpass-gnu (Depends-on): Add fseeko.
59920
59921 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59922
59923         * modules/base64-tests: New file.
59924
59925 2008-05-19  Bo Borgerson <gigabo@gmail.com>
59926
59927         * lib/base64.c (base64_decode_ctx): If a decode context structure
59928         was passed in use it to ignore newlines.  If a context structure
59929         was _not_ passed in, continue to treat newlines as garbage (this
59930         is the historical behavior).  Formerly base64_decode.
59931         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59932         takes a decode context structure.
59933         * lib/base64.h (base64_decode): Macro for four-argument calls.
59934         (base64_decode_alloc): Likewise.
59935         * lib/base64.c (base64_decode_ctx): If a decode context structure
59936         was passed in use it to ignore newlines.  If a context structure
59937         was _not_ passed in, continue to treat newlines as garbage (this
59938         is the historical behavior).  Formerly base64_decode.
59939         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59940         takes a decode context structure.
59941         * lib/base64.h (base64_decode): Macro for four-argument calls.
59942         (base64_decode_alloc): Likewise.
59943
59944 2008-05-19  Jim Meyering  <meyering@redhat.com>
59945
59946         avoid a warning from gcc
59947         * lib/trim.c (IF_LINT): Define.
59948         (trim2): Use it to avoid a "may be used uninitialized" warning.
59949
59950         Fix doc typo.
59951         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
59952
59953 2008-05-19  Bruno Haible  <bruno@clisp.org>
59954
59955         * doc/glibc-functions/getpass.texi: Document limits of other
59956         implementations.
59957
59958 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59959             Bruno Haible <bruno@clisp.org>
59960
59961         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
59962
59963 2008-05-18  Bruno Haible  <bruno@clisp.org>
59964
59965         * modules/propername: New file, from GNU gettext.
59966         * lib/propername.h: New file, from GNU gettext.
59967         * lib/propername.c: New file, from GNU gettext.
59968         * MODULES.html.sh (Internationalization functions): Add propername.
59969
59970 2008-05-16  Jim Meyering  <meyering@redhat.com>
59971             Bruno Haible  <bruno@clisp.org>
59972
59973         Avoid some warnings from "gcc -Wshadow".
59974         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
59975
59976 2008-05-15  Eric Blake  <ebb9@byu.net>
59977
59978         Extend previous patch to cygwin 1.7.0.
59979         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
59980         fast implementation in cygwin >= 1.7.0.
59981         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59982         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59983
59984 2008-05-15  Bruno Haible  <bruno@clisp.org>
59985
59986         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
59987         implementation in glibc >= 2.9.
59988         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59989         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59990
59991 2008-05-15  Bruno Haible  <bruno@clisp.org>
59992
59993         * MODULES.html.sh (Internationalization functions): Remove linebreak.
59994         (Unicode string functions): Add unilbrk/*.
59995         Reported by Karl Berry.
59996
59997 2008-05-15  Eric Blake  <ebb9@byu.net>
59998
59999         Fix violation of <stdbool.h> replacement in regex.
60000         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
60001         * lib/regexec.c (re_search_internal): Likewise.
60002         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
60003
60004 2008-05-15  Jim Meyering  <meyering@redhat.com>
60005
60006         avoid distracting test output when git or cvs is not found
60007         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
60008         * tests/test-vc-list-files-git.sh: Likewise.
60009
60010 2008-05-15  Eric Blake  <ebb9@byu.net>
60011
60012         Glibc finally accepted the memmem speedup code, bugzilla #5514.
60013         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
60014         glibc version.
60015         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60016         * doc/posix-functions/strstr.texi (strstr): Likewise.
60017         * lib/str-two-way.h (MAX): Sychronize with glibc.
60018
60019 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
60020
60021         * lib/regcomp.c (optimize_utf8): Add a note on why we test
60022         opr.ctx_type.
60023         (calc_first): Initialize constraint field.
60024         (duplicate_node_closure): Use it instead of special casing ANCHORS.
60025         Fix grammar.
60026         (duplicate_node): Merge constraint field for all node types.
60027         (calc_eclosure_iter): Look at constraint field for all node types.
60028         * lib/regex_internal.c (create_cd_newstate): Don't look at
60029         opr.ctx_type.
60030
60031 2008-05-14  Bruno Haible  <bruno@clisp.org>
60032
60033         Help GCC to do better code generation.
60034         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
60035         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60036         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
60037         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
60038         Declare with attribute 'malloc' if supported.
60039
60040 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
60041
60042         use "echo STR|wc -c" rather than unportable "expr length STR"
60043         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
60044         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
60045
60046 2008-05-14  Jim Meyering  <meyering@redhat.com>
60047
60048         use dd ibs=$n count=1 ... rather than less-portable head -c$n
60049         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
60050         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
60051         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
60052         via Collin Lasse.
60053
60054 2008-05-14  Eric Blake  <ebb9@byu.net>
60055
60056         Avoid quadratic growth in gl_LIBSOURCES.
60057         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
60058         Suggested by Bruno Haible.
60059
60060         Test xmemdup0.
60061         * modules/xmemdup0-tests: New file.
60062         * tests/test-xmemdup0.c: Likewise.
60063
60064 2008-05-13  Eric Blake  <ebb9@byu.net>
60065
60066         Split xmemdup0 into its own module.
60067         * modules/xmemdup0: New file.
60068         * lib/xmemdup0.h: Likewise.
60069         * lib/xmemdup0.c: Likewise.
60070         * MODULES.html.sh (Memory management functions): Add xmemdup0.
60071         * lib/xalloc.h (xmemdup0): Remove.
60072         * lib/xmalloc.c (xmemdup0): Likewise.
60073
60074 2008-05-13  Eric Blake  <ebb9@byu.net>
60075             Bruno Haible  <bruno@clisp.org>
60076
60077         Reduce number of forks required during autoconf.
60078         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
60079         and gl_LIBSOURCES_DIR.
60080         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
60081         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
60082         m4_syscmd per file.
60083         <m4_foreach_w>: Move...
60084         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
60085
60086 2008-05-13  Eric Blake  <ebb9@byu.net>
60087
60088         * gnulib-tool: Fix various comment typos.
60089
60090 2008-05-12  Bruno Haible  <bruno@clisp.org>
60091
60092         Tailor the linebreaking algorithm.
60093         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
60094
60095 2008-05-12  Bruno Haible  <bruno@clisp.org>
60096
60097         Update to Unicode 5.0.0.
60098         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60099         LBP_JV, LBP_JT. Redistribute values.
60100         (unilbrk_table): Change size.
60101         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
60102         Unicode TR#14 rev. 22.
60103         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60104         LBP_JV, LBP_JT. Redistribute values.
60105         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
60106         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
60107         Update.
60108         * lib/unilbrk/lbrkprop1.h: Regenerated.
60109         * lib/unilbrk/lbrkprop2.h: Regenerated.
60110         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
60111         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
60112         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
60113         Likewise.
60114         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
60115         Likewise.
60116         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
60117         result.
60118         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60119         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60120         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60121         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
60122         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
60123         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
60124
60125 2008-05-11  Bruno Haible  <bruno@clisp.org>
60126
60127         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
60128
60129 2008-05-11  Bruno Haible  <bruno@clisp.org>
60130
60131         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
60132         * modules/unilbrk/gen-lbrk: New file.
60133
60134 2008-05-11  Bruno Haible  <bruno@clisp.org>
60135
60136         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
60137         * m4/sha512.m4 (gl_SHA512): Likewise.
60138
60139 2008-05-11  Jim Meyering  <meyering@redhat.com>
60140
60141         New modules: crypto/sha256, crypto/sha512 (from coreutils)
60142         * modules/crypto/sha256: New file.
60143         * modules/crypto/sha512: Likewise.
60144         * lib/sha256.c: Likewise.
60145         * lib/sha256.h: Likewise.
60146         * lib/sha512.c: Likewise.
60147         * lib/sha512.h: Likewise.
60148         * lib/u64.h: Likewise.
60149         * m4/sha256.m4: Likewise.
60150         * m4/sha512.m4: Likewise.
60151         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
60152
60153 2008-05-10  Bruno Haible  <bruno@clisp.org>
60154
60155         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
60156         (Input/Output <stdio.h>): Add xprintf.
60157         (Signal handling <signal.h>): Add strsignal.
60158         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
60159         (Core language properties): Add func.
60160         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
60161         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
60162         strings.
60163         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
60164         (Input/output): New section.
60165         (File system functions): Add openat-die, stat-macros.
60166         (Networking functions): Add sockets.
60167         (Unicode string functions): Add unictype/*.
60168         (Support for building libraries and executables): Add gperf.
60169         (Support for building documentation): Add agpl-3.0.
60170         (Misc): Add nocrash.
60171
60172 2008-05-10  Bruno Haible  <bruno@clisp.org>
60173
60174         * modules/unictype/gen-ctype: New file.
60175
60176 2008-05-10  Jim Meyering  <meyering@redhat.com>
60177
60178         Make chdir-safer.c more efficient on a system with no symlinks.
60179         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
60180         also if ELOOP is zero.  Suggested by Bruno Haible.
60181
60182         Make chdir-safer.c slightly safer.
60183         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
60184         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
60185
60186         Avoid compile failure on systems without ELOOP (like mingw).
60187         * lib/chdir-safer.c (ELOOP): Define if not already defined.
60188         Reported by Bruno Haible.
60189
60190 2008-05-10  Bruno Haible  <bruno@clisp.org>
60191
60192         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
60193         (is_utf8_encoding): Use a case-insensitive comparison.
60194         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
60195         streq.
60196
60197 2008-05-10  Bruno Haible  <bruno@clisp.org>
60198
60199         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
60200         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
60201         * lib/unilbrk/ulc-common.h (iconv_string_length,
60202         iconv_string_keeping_offsets): Remove declarations.
60203         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
60204         Don't include <iconv.h>, streq.h, xsize.h.
60205         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
60206         conversion.
60207         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
60208         <iconv.h>, streq.h, xsize.h.
60209         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
60210         conversion.
60211         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
60212         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
60213         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
60214         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
60215
60216 2008-05-10  Bruno Haible  <bruno@clisp.org>
60217
60218         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
60219         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
60220
60221         * modules/unilbrk/u32-width-linebreaks-tests: New file.
60222         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
60223
60224         * modules/unilbrk/u16-width-linebreaks-tests: New file.
60225         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
60226
60227         * modules/unilbrk/u8-width-linebreaks-tests: New file.
60228         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
60229
60230         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
60231         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
60232
60233         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
60234         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
60235
60236         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
60237         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
60238
60239         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
60240         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
60241
60242 2008-05-10  Bruno Haible  <bruno@clisp.org>
60243
60244         Split up 'linebreak' module.
60245         * lib/unilbrk.h: New file, based on lib/linebreak.h.
60246         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
60247         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
60248         modifications.
60249         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
60250         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
60251         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
60252         lib/linebreak.c.
60253         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
60254         lib/linebreak.c.
60255         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
60256         lib/linebreak.c.
60257         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
60258         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
60259         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
60260         lib/linebreak.c.
60261         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
60262         lib/linebreak.c.
60263         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
60264         lib/linebreak.c.
60265         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
60266         lib/linebreak.c.
60267         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
60268         lib/linebreak.c.
60269         * modules/unilbrk/base: New file.
60270         * modules/unilbrk/tables: New file.
60271         * modules/unilbrk/u8-possible-linebreaks: New file.
60272         * modules/unilbrk/u16-possible-linebreaks: New file.
60273         * modules/unilbrk/u32-possible-linebreaks: New file.
60274         * modules/unilbrk/ulc-common: New file.
60275         * modules/unilbrk/ulc-possible-linebreaks: New file.
60276         * modules/unilbrk/u8-width-linebreaks: New file.
60277         * modules/unilbrk/u16-width-linebreaks: New file.
60278         * modules/unilbrk/u32-width-linebreaks: New file.
60279         * modules/unilbrk/ulc-width-linebreaks: New file.
60280         * lib/linebreak.h: Remove file.
60281         * lib/linebreak.c: Remove file.
60282         * m4/linebreak.m4: Remove file.
60283         * modules/linebreak: Remove file.
60284         * NEWS: Mention the changes.
60285
60286 2008-05-09  Eric Blake  <ebb9@byu.net>
60287
60288         Add xmemdup0.
60289         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
60290         implementation.
60291         * lib/xmalloc.c (xmemdup0): New C implementation.
60292
60293 2008-05-08  Bruno Haible  <bruno@clisp.org>
60294
60295         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
60296
60297 2008-05-07  Eric Blake  <ebb9@byu.net>
60298
60299         Support cross-compilation of <wctype.h>.
60300         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
60301         AC_CACHE_CHECK.
60302
60303 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
60304
60305         * build-aux/vc-list-files: Add support for bzr.
60306
60307 2008-05-03  Jim Meyering  <meyering@redhat.com>
60308
60309         avoid failed assertion with tight malloc
60310         * tests/test-getndelim2.c: Correct an off-by-one assertion.
60311
60312 2008-05-03  Simon Josefsson  <simon@josefsson.org>
60313
60314         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
60315         are needed from arpa/inet.h.
60316         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
60317         Reported by Bruno Haible.
60318
60319 2008-05-02  Jim Meyering  <meyering@redhat.com>
60320
60321         avoid compilation error on FreeBSD 6
60322         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
60323
60324 2008-05-01  Jim Meyering  <meyering@redhat.com>
60325
60326         useless-if-before-free: correct --help's exit status description
60327         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60328         for one or more matches, etc.  Reported by Bruno Haible.
60329
60330         vc-list-files: make the stand-alone gnulib test work
60331         * modules/vc-list-files-tests (configure.ac):
60332         Define and AC_SUBST abs_aux_dir.
60333         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60334         $(abs_top_srcdir) to each script and having each of them
60335         duplicate the work of setting PATH, set PATH here, using
60336         the new variable, abs_aux_dir instead.
60337         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60338         * tests/test-vc-list-files-git.sh: Likewise.
60339         Reported by Bruno Haible.
60340
60341 2008-05-01  Bruno Haible  <bruno@clisp.org>
60342
60343         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60344         reallocation. Rename 'done' to 'found_delimiter'.
60345
60346 2008-05-01  Jim Meyering  <meyering@redhat.com>
60347
60348         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60349         * build-aux/vc-list-files: Use `...`, not $(...).
60350
60351 2008-04-30  Jim Meyering  <meyering@redhat.com>
60352
60353         add tests for vc-list-files
60354         * modules/vc-list-files-tests: New module.
60355         * tests/test-vc-list-files-cvs.sh: New file.
60356         * tests/test-vc-list-files-git.sh: New file.
60357
60358         avoid a warning from gcc
60359         * lib/getndelim2.c (IF_LINT): Define.
60360         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60361
60362         vc-list-files: work properly with build-aux/cvsu, too
60363         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60364         to all cvs-based clauses.
60365
60366         vc-list-files: work properly in the CVS+awk case, too
60367         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60368
60369         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60370         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60371         take more than one file argument, so .  Add quotes, just in case $dir
60372         ever contains a shell meta-character.  Prompted by Soren Hansen in
60373         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60374
60375 2008-04-29  Eric Blake  <ebb9@byu.net>
60376
60377         Optimize getndelim2 to use block operations when possible.
60378         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60379         freadseek, and memchr2.
60380         * lib/getndelim2.c (getndelim2): Use them for block reads.
60381
60382 2008-04-29  Bruno Haible  <bruno@clisp.org>
60383
60384         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60385         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60386         * modules/inet_ntop (Depends-on): Add extensions.
60387         * modules/inet_pton (Depends-on): Likewise.
60388         Reported by Simon Josefsson.
60389
60390 2008-04-29  Jim Meyering  <meyering@redhat.com>
60391
60392         When the is more than one match in a block, match all of them.
60393         * build-aux/useless-if-before-free: Iterate through each block
60394         until there are no more matches.
60395
60396         Fix broken useless-if-before-free script.
60397         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60398         the expression to match cast of argument to free-like function.
60399
60400 2008-04-29  Eric Blake  <ebb9@byu.net>
60401
60402         Use new header.
60403         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60404
60405 2008-04-29  Jim Meyering  <meyering@redhat.com>
60406
60407         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60408         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60409         by gnulib to exist and to declare e.g., inet_ntop.
60410         Don't include "inet_ntop.h", now removed.
60411
60412         * m4/arpa_inet_h.m4: Remove trailing blanks.
60413
60414 2008-04-29  Eric Blake  <ebb9@byu.net>
60415
60416         Silence valgrind on safe reads beyond potential array bounds.
60417         * lib/rawmemchr.valgrind: New file.
60418         * lib/strchrnul.valgrind: Likewise.
60419         * modules/rawmemchr (Files): Distribute new file.
60420         * modules/strchrnul (Files): Likewise.
60421         Suggested by Bruno Haible.
60422
60423 2008-04-29  Bruno Haible  <bruno@clisp.org>
60424
60425         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60426         (inet_ntop, inet_pton): Change portability warning's wording.
60427         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60428         Invoke gl_CHECK_NEXT_HEADERS.
60429         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60430         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60431         set ARPA_INET_H.
60432         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60433         * modules/arpa_inet (Description): No longer only for systems that
60434         lack it.
60435         (Depends-on): Add include_next.
60436         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60437         HAVE_ARPA_INET_H.
60438
60439 2008-04-29  Jim Meyering  <meyering@redhat.com>
60440
60441         * modules/mkdir (License): Re-license as LGPLv2+.
60442
60443 2008-04-29  Bruno Haible  <bruno@clisp.org>
60444
60445         * modules/rawmemchr (Maintainer): Set to Eric.
60446         * modules/strchrnul (Maintainer): Likewise.
60447
60448 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60449
60450         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60451         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60452
60453         * modules/arpa_inet (arpa/inet.h): Use them.
60454
60455 2008-04-28  Eric Blake  <ebb9@byu.net>
60456
60457         Test getndelim2.
60458         * modules/getndelim2-tests: New file.
60459         * tests/test-getndelim2.c: Likewise.
60460         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60461         stream.
60462         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60463
60464         * MODULES.html.sh: Document new module.
60465
60466 2008-04-20  Bruno Haible  <bruno@clisp.org>
60467
60468         * lib/c-stack.c (die): Use raise.
60469         * modules/c-stack (Depends-on): Add raise.
60470
60471 2008-04-28  Bruno Haible  <bruno@clisp.org>
60472
60473         Expect rpmatch to be declared.
60474         * lib/yesno.c (rpmatch): Remove declaration.
60475
60476         Declare rpmatch.
60477         * lib/stdlib.in.h (rpmatch): New declaration.
60478         * lib/rpmatch.c: Include <stdlib.h> first.
60479         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
60480         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
60481         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
60482         HAVE_RPMATCH.
60483         * modules/rpmatch (Depends-on): Add stdlib, extensions.
60484         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60485         (Include): Set to <stdlib.h>.
60486         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
60487         HAVE_RPMATCH.
60488         * NEWS: Document the change.
60489
60490 2008-04-28  Bruno Haible  <bruno@clisp.org>
60491
60492         Change rpmatch to use nl_langinfo when appropriate.
60493         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
60494         (N_): New macro.
60495         (localized_pattern): New function/macro.
60496         (try): Remove match, nomatch arguments. Copy the pattern into safe
60497         memory before caching it.
60498         (rpmatch): Use localized_pattern. Add translator comments.
60499         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
60500         Suggested by Eric Blake.
60501         * modules/rpmatch (Depends-on): Add stdbool.
60502
60503 2008-04-28  Eric Blake  <ebb9@byu.net>
60504
60505         Add rawmemchr module, matching glibc.
60506         * modules/string (Makefile.am): New indicator.
60507         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
60508         * lib/string.in.h (rawmemchr): Declare when appropriate.
60509         * modules/rawmemchr: New file.
60510         * m4/rawmemchr.m4: Likewise.
60511         * lib/rawmemchr.c: Likewise.
60512         * modules/rawmemchr-tests: Likewise.
60513         * tests/test-rawmemchr.c: Likewise.
60514         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
60515         module.
60516         * modules/strchrnul (Depends-on): Add rawmemchr.
60517         * lib/strchrnul.c (strchrnul): Optimize a corner case.
60518
60519         Whitespace cleanup.
60520         * tests/test-strchrnul.c: Reindent.
60521         * lib/strchrnul.c: Likewise.
60522
60523         Optimize and test strchrnul.
60524         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
60525         * modules/strchrnul-tests: New file.
60526         * tests/test-strchrnul.c: Likewise.
60527
60528         Remove intprops dependency.
60529         * modules/memchr (Depends-on): Remove intprops.
60530         * modules/memrchr (Depends-on): Likewise.
60531         * modules/memchr2 (Depends-on): Likewise.
60532         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
60533         * lib/memrchr.c (__memrchr): Likewise.
60534         * lib/memrchr2.c (memchr2): Likewise.
60535         Reported by Simon Josefsson.
60536
60537 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60538
60539         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
60540         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60541
60542 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60543
60544         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
60545
60546         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
60547
60548         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
60549
60550         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
60551         declarations.
60552         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
60553
60554         * m4/inet_pton.m4: Don't check for header files.
60555
60556         * m4/inet_ntop.m4: Don't check for header files.
60557
60558 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60559
60560         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
60561         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
60562         trigger for cygwin).
60563         Reported by Bruno Haible  <bruno@clisp.org>.
60564
60565 2008-04-28  Bruno Haible  <bruno@clisp.org>
60566
60567         * doc/posix-functions/strdup.texi: Mention mingw problem.
60568
60569 2008-04-27  Bruno Haible  <bruno@clisp.org>
60570
60571         * modules/stat-time-tests (Depends-on): Add sleep.
60572         * tests/test-stat-time.c (force_unlink): New function.
60573         (cleanup): Use it.
60574         (test_mtime): Remove the ctime related tests.
60575         (test_ctime): New function, containing the ctime related tests.
60576         (main): Call test_ctime, except on native Windows platforms.
60577
60578 2008-04-27  Bruno Haible  <bruno@clisp.org>
60579
60580         * lib/rpmatch.c (rpmatch): Add some comments.
60581         Reported by James Youngman <jay@gnu.org>.
60582
60583 2008-04-27  Bruno Haible  <bruno@clisp.org>
60584
60585         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
60586         quiet NaNs.
60587
60588 2008-04-27  Bruno Haible  <bruno@clisp.org>
60589
60590         Make test-yesno.sh work on mingw.
60591         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
60592         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
60593         (main): Set stdin to binary mode.
60594         * modules/yesno-tests (Depends-on): Add binary-io.
60595
60596 2008-04-27  Bruno Haible  <bruno@clisp.org>
60597
60598         Fix 'isfinite' on x86, x86_64, ia64 platforms.
60599         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
60600         argument that lie outside the IEEE 854 domain.
60601         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
60602         (gl_ISFINITE): Use it.
60603         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
60604
60605 2008-04-27  Bruno Haible  <bruno@clisp.org>
60606
60607         Allow local renaming in config.h.
60608         * lib/memrchr.c (memrchr): Don't undefine outside libc.
60609
60610 2008-04-27  Bruno Haible  <bruno@clisp.org>
60611
60612         * lib/memchr.c (__memchr): Change type of 'i'.
60613         * lib/memchr2.c (memchr2): Likewise.
60614
60615 2008-04-26  Eric Blake  <ebb9@byu.net>
60616         and Bruno Haible  <bruno@clisp.org>
60617
60618         Optimize and test memrchr.
60619         * modules/memrchr (Depends-on): Add intprops.
60620         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
60621         * modules/memrchr-tests: New file.
60622         * tests/test-memrchr.c: New file.
60623
60624 2008-04-26  Bruno Haible  <bruno@clisp.org>
60625
60626         Add tentative support for DragonFly BSD.
60627         * lib/stdio-impl.h: Add macros for DragonFly BSD.
60628         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
60629         fp.
60630         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60631         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
60632         * lib/fpurge.c (fpurge): Likewise.
60633         * lib/freadable.c (freaadable): Likewise.
60634         * lib/freadahead.c (freadahead): Likewise.
60635         * lib/freading.c (freading): Likewise.
60636         * lib/freadptr.c (freadptr): Likewise.
60637         * lib/freadseek.c (freadptrinc): Likewise.
60638         * lib/fseeko.c (fseeko): Likewise.
60639         * lib/fseterr.c (fseterr): Likewise.
60640         * lib/fwritable.c (fwritable): Likewise.
60641         * lib/fwriting.c (fwriting): Likewise.
60642
60643 2008-04-26  Bruno Haible  <bruno@clisp.org>
60644
60645         * lib/stdio-impl.h: New file.
60646         * lib/fbufmode.c: Include stdio-impl.h.
60647         (fbufmode): Use fp_, remove redundant #defines.
60648         * lib/fflush.c: Include stdio-impl.h.
60649         (clear_ungetc_buffer): Remove redundant #defines.
60650         * lib/fpurge.c: Include stdio-impl.h.
60651         (fpurge): Remove redundant #defines.
60652         * lib/freadable.c: Include stdio-impl.h.
60653         (freadable): Remove redundant #defines.
60654         * lib/freadahead.c: Include stdio-impl.h.
60655         (freadahead): Remove redundant #defines.
60656         * lib/freading.c: Include stdio-impl.h.
60657         (freading): Remove redundant #defines.
60658         * lib/freadptr.c: Include stdio-impl.h.
60659         (freadptr): Remove redundant #defines.
60660         * lib/freadseek.c: Include stdio-impl.h.
60661         (freadptrinc): Remove redundant #defines.
60662         * lib/fseeko.c: Include stdio-impl.h.
60663         (rpl_fseeko): Remove redundant #defines.
60664         * lib/fseterr.c: Include stdio-impl.h.
60665         (fseterr): Remove redundant #defines.
60666         * lib/fwritable.c: Include stdio-impl.h.
60667         (fwritable: Remove redundant #defines.
60668         * lib/fwriting.c: Include stdio-impl.h.
60669         (fwriting): Remove redundant #defines.
60670         * modules/fbufmode (Files): Add lib/stdio-impl.h.
60671         * modules/fflush (Files): Likewise.
60672         * modules/fpurge (Files): Likewise.
60673         * modules/freadable (Files): Likewise.
60674         * modules/freadahead (Files): Likewise.
60675         * modules/freading (Files): Likewise.
60676         * modules/freadptr (Files): Likewise.
60677         * modules/freadseek (Files): Likewise.
60678         * modules/fseeko (Files): Likewise.
60679         * modules/fseterr (Files): Likewise.
60680         * modules/fwritable (Files): Likewise.
60681         * modules/fwriting (Files): Likewise.
60682
60683 2008-04-26  Bruno Haible  <bruno@clisp.org>
60684
60685         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60686         restore_seek_optimization, update_fpos_cache): New functions, extracted
60687         from rpl_fflush.
60688         (rpl_fflush): Use them.
60689         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
60690         (gl_REPLACE_FFLUSH): Use it.
60691
60692 2008-04-26  Bruno Haible  <bruno@clisp.org>
60693
60694         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
60695         on Solaris.
60696         * tests/test-xstrtoimax.sh: Likewise.
60697         * tests/test-xstrtoumax.sh: Likewise.
60698         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60699
60700 2008-04-26  Bruno Haible  <bruno@clisp.org>
60701
60702         * modules/memchr-tests: New file.
60703         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
60704
60705 2008-04-26  Eric Blake  <ebb9@byu.net>
60706             Bruno Haible  <bruno@clisp.org>
60707
60708         * lib/memchr.c: Include intprops.h.
60709         (__memchr): Optimize parallel detection of matching bytes. Rename local
60710         variables. Add explanatory comments.
60711
60712 2008-04-26  Bruno Haible  <bruno@clisp.org>
60713
60714         Fix module 'memchr', broken since 2000-10-28.
60715         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
60716
60717 2008-04-26  Bruno Haible  <bruno@clisp.org>
60718
60719         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
60720         comments.
60721
60722 2008-04-25  Eric Blake  <ebb9@byu.net>
60723
60724         Use native fstatat on cygwin 1.7.0.
60725         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
60726         first.
60727
60728 2008-04-23  Eric Blake  <ebb9@byu.net>
60729
60730         Improve memchr2 performance.
60731         * lib/memchr2.c (memchr2): Further optimize parallel detection of
60732         NUL bytes.
60733         * modules/memchr2 (Depends-on): Use intprops.h.
60734
60735 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60736
60737         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
60738         an inline function instead of a CPP macro.  Patch by Ben Pfaff
60739         <blp@cs.stanford.edu>.
60740
60741 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60742
60743         * lib/arpa_inet.in.h: New file.
60744
60745         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
60746         (Makefile.am): Sed in substitute header file.
60747
60748         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
60749         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
60750
60751         * modules/inet_ntop (configure.ac): Use
60752         gl_ARPA_INET_MODULE_INDICATOR.
60753
60754         * modules/inet_pton (configure.ac): Use
60755         gl_ARPA_INET_MODULE_INDICATOR.
60756
60757 2008-04-22  Jim Meyering  <meyering@redhat.com>
60758
60759         * modules/verify (License): Re-license as LGPLv2+.
60760
60761 2008-04-22  Simon Josefsson  <simon@josefsson.org>
60762
60763         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
60764         parameter to void* as per POSIX standard (MinGW uses char*).
60765
60766 2008-04-21  Bruno Haible  <bruno@clisp.org>
60767
60768         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60769         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60770         Define to replacements if REPLACE_ISWCNTRL is 1.
60771         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
60772         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
60773         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
60774         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
60775         what it fixes.
60776         * doc/posix-functions/iswalpha.texi: Likewise.
60777         * doc/posix-functions/iswblank.texi: Likewise.
60778         * doc/posix-functions/iswcntrl.texi: Likewise.
60779         * doc/posix-functions/iswdigit.texi: Likewise.
60780         * doc/posix-functions/iswgraph.texi: Likewise.
60781         * doc/posix-functions/iswlower.texi: Likewise.
60782         * doc/posix-functions/iswprint.texi: Likewise.
60783         * doc/posix-functions/iswpunct.texi: Likewise.
60784         * doc/posix-functions/iswspace.texi: Likewise.
60785         * doc/posix-functions/iswupper.texi: Likewise.
60786         * doc/posix-functions/iswxdigit.texi: Likewise.
60787         Reported by Alain Guibert.
60788
60789 2008-04-21  Bruno Haible  <bruno@clisp.org>
60790
60791         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
60792         Patch by Alain Guibert.
60793
60794 2008-04-21  Bruno Haible  <bruno@clisp.org>
60795
60796         Fix test failures on mingw.
60797         * tests/test-xstrtol.c (print_no_progname): New function.
60798         (main): Install it in error_print_progname hook.
60799         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
60800         * tests/test-xstrtoimax.sh: Likewise.
60801         * tests/test-xstrtoumax.sh: Likewise.
60802
60803 2008-04-21  Bruno Haible  <bruno@clisp.org>
60804
60805         Fix test failure on mingw.
60806         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
60807
60808 2008-04-21  Bruno Haible  <bruno@clisp.org>
60809
60810         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
60811         Actually assign a value.
60812
60813 2008-04-20  Bruno Haible  <bruno@clisp.org>
60814
60815         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
60816         take 2.
60817         * lib/canonicalize.c (canonicalize_file_name): Elide if the
60818         'canonicalize-lgpl' module is also used.
60819         * lib/canonicalize-lgpl.c: Undo last change.
60820         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
60821
60822 2008-04-20  Bruno Haible  <bruno@clisp.org>
60823
60824         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
60825         config.h. Provide _mkdir based fallback for mingw.
60826         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
60827         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
60828         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
60829         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
60830         rather than defining mkdir in config.h.
60831         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
60832         (gl_SYS_STAT_H_DEFAULTS): New macro.
60833         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
60834         HAVE_IO_H any more.
60835         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
60836         HAVE_DECL_MKDIR and HAVE_IO_H.
60837
60838 2008-04-20  Bruno Haible  <bruno@clisp.org>
60839
60840         * lib/isapipe.c: Port to native Windows platforms.
60841
60842 2008-04-20  Bruno Haible  <bruno@clisp.org>
60843
60844         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
60845
60846 2008-04-21  Eric Blake  <ebb9@byu.net>
60847
60848         Work around preprocessors that don't handle UINTMAX_MAX.
60849         * lib/memchr2.c (memchr2): Avoid embedded #if.
60850         Reported by Alain Guibert, fix suggested by Bruno Haible.
60851
60852 2008-04-21  Simon Josefsson  <simon@josefsson.org>
60853
60854         * doc/posix-functions/strftime.texi (strftime): Explain better
60855         Windows incompatibility.  Suggested by Micah Cowan
60856         <micah@cowan.name>.
60857
60858 2008-04-20  Bruno Haible  <bruno@clisp.org>
60859
60860         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
60861         unistr/u8-mblen.
60862
60863 2008-04-20  Bruno Haible  <bruno@clisp.org>
60864
60865         Fix test failure on platforms with non-GNU iconv.
60866         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
60867         (U_TO_U8): Use it, rather than u16_to_u8.
60868         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
60869         units at the end of the input string.
60870         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
60871
60872 2008-04-20  Bruno Haible  <bruno@clisp.org>
60873
60874         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
60875         when the resulting length is 0.
60876         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
60877
60878 2008-04-20  Bruno Haible  <bruno@clisp.org>
60879
60880         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
60881         works.
60882         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
60883
60884 2008-04-20  Bruno Haible  <bruno@clisp.org>
60885
60886         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
60887         * modules/tsearch-tests (configure.ac): Test for initstate function.
60888
60889 2008-04-20  Bruno Haible  <bruno@clisp.org>
60890
60891         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
60892         for nlink_t if missing.
60893         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
60894
60895 2008-04-19  Bruno Haible  <bruno@clisp.org>
60896
60897         Work around snprintf bug on Linux libc5.
60898         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
60899         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60900         gl_SNPRINTF_SIZE1.
60901         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60902         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
60903         that test failed.
60904         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
60905         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
60906         * modules/snprintf (Files): Add m4/printf.m4.
60907         * modules/vsnprintf (Files): Likewise.
60908         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
60909         * doc/posix-functions/vsnprintf.texi: Likewise.
60910
60911 2008-04-19  Bruno Haible  <bruno@clisp.org>
60912
60913         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
60914         from 0.0058 to less than 10^-7.
60915
60916 2008-04-19  Bruno Haible  <bruno@clisp.org>
60917
60918         Fix rounding when a precision is given.
60919         * lib/vasnprintf.c (is_borderline): New function.
60920         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
60921         9...9x.
60922         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
60923         %e, %g.
60924         * tests/test-vasprintf-posix.c (test_function): Likewise.
60925         * tests/test-snprintf-posix.h (test_function): Likewise.
60926         * tests/test-sprintf-posix.h (test_function): Likewise.
60927         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
60928         * tests/test-printf-posix.h (test_function): Likewise.
60929         * tests/test-printf-posix.output: Update.
60930         Reported by John Darrington <john@darrington.wattle.id.au> via
60931         Ben Pfaff <blp@cs.stanford.edu>.
60932
60933 2008-04-18  Simon Josefsson  <simon@josefsson.org>
60934
60935         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
60936         Suggested by Bruno Haible <bruno@clisp.org>.
60937
60938 2008-04-17  Bruno Haible  <bruno@clisp.org>
60939
60940         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
60941         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
60942         implementation.
60943         Patch by Bruce Merry <bmerry@gmail.com>.
60944
60945 2008-04-17  Simon Josefsson  <simon@josefsson.org>
60946
60947         * doc/posix-functions/strftime.texi (strftime): Mention that %e
60948         doesn't work under Windows.
60949
60950 2008-04-16  Bruno Haible  <bruno@clisp.org>
60951
60952         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
60953         New macros.
60954         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
60955         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
60956         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
60957         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
60958         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
60959         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
60960         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
60961         macros.
60962         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
60963         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
60964         Northern Sotho, Uighur.
60965
60966 2008-04-16  Bruno Haible  <bruno@clisp.org>
60967
60968         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
60969         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
60970         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
60971         Reported by Daniel Bergström <daniel@octocode.com>.
60972
60973 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
60974             Bruno Haible  <bruno@clisp.org>
60975
60976         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
60977         function.
60978         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
60979         New functions, mostly extracted from gl_locale_name_default.
60980         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
60981
60982 2008-04-16  Eric Blake  <ebb9@byu.net>
60983
60984         Adjust strtod detection to catch glibc 2.7 bug.
60985         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
60986         Reported by John Gatewood Ham.
60987
60988 2008-04-16  Bruno Haible  <bruno@clisp.org>
60989
60990         Add tentative support for Linux libc5.
60991         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
60992         * lib/fpurge.c (fpurge): Likewise.
60993         * lib/freadable.c (freadable): Likewise.
60994         * lib/freadahead.c (freadahead): Likewise.
60995         * lib/freading.c (freading): Likewise.
60996         * lib/freadptr.c (freadptr): Likewise.
60997         * lib/freadseek.c (freadptrinc): Likewise.
60998         * lib/fseeko.c (rpl_fseeko): Likewise.
60999         * lib/fseterr.c (fseterr): Likewise.
61000         * lib/fwritable.c (fwritable): Likewise.
61001         * lib/fwriting.c (fwriting): Likewise.
61002         Reported by Alain Guibert <alguibert+bts@free.fr>.
61003
61004 2008-04-15  Bruno Haible  <bruno@clisp.org>
61005
61006         * modules/mathl (configure.ac): Define module indicator.
61007
61008 2008-04-15  Bruno Haible  <bruno@clisp.org>
61009
61010         * lib/logl.c (logl): Remove unused variables.
61011
61012 2008-04-15  Bruno Haible  <bruno@clisp.org>
61013
61014         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
61015         fails.
61016
61017 2008-04-15  Bruno Haible  <bruno@clisp.org>
61018
61019         * lib/trim.c (trim2): Fix argument of isspace() macro.
61020
61021 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
61022
61023         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
61024         to 0.
61025         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
61026
61027 2008-04-14  Bruno Haible  <bruno@clisp.org>
61028
61029         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
61030         AC_LANG_PROGRAM argument.
61031         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
61032         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
61033         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61034         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61035         * m4/math_h.m4 (gl_MATH_H): Likewise.
61036         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61037         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61038         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61039         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
61040         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61041         * m4/regex.m4 (gl_REGEX): Likewise.
61042         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
61043         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
61044         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61045         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
61046         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61047         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61048         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61049         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61050
61051 2008-04-14  Jim Meyering  <meyering@redhat.com>
61052
61053         test-strtod: fix typos: s/abs/fabs/
61054         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
61055
61056 2008-04-13  Bruno Haible  <bruno@clisp.org>
61057
61058         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
61059         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
61060         module is also used and while not building the reloc-wrapper.
61061
61062 2008-04-13  Bruno Haible  <bruno@clisp.org>
61063
61064         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
61065
61066 2008-04-13  Bruno Haible  <bruno@clisp.org>
61067
61068         Fix AIX compilation failure introduced on 2008-04-02.
61069         * tests/test-frexp.c (exp): Undefine before redefining.
61070         * tests/test-frexpl.c (exp): Likewise.
61071
61072 2008-04-13  Bruno Haible  <bruno@clisp.org>
61073
61074         Work around a HP-UX stdio bug.
61075         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
61076         * tests/test-ftello.c (main): Likewise.
61077         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
61078         * doc/posix-functions/ftello.texi: Likewise.
61079
61080 2008-04-13  Bruno Haible  <bruno@clisp.org>
61081
61082         Make test-signbit pass on HP-UX/hppa.
61083         * tests/test-signbit.c (minus_zerol): New variable.
61084         (test_signbitl): Use it.
61085
61086 2008-04-13  Bruno Haible  <bruno@clisp.org>
61087
61088         Make truncl work on OSF/1 4.0.
61089         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
61090         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61091         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61092         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
61093         HAVE_DECL_TRUNCL.
61094         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
61095         HAVE_DECL_TRUNCL.
61096         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
61097
61098 2008-04-13  Bruno Haible  <bruno@clisp.org>
61099
61100         * lib/unictype.h: Remove trailing comma from enumeration definitions.
61101
61102 2008-04-13  Bruno Haible  <bruno@clisp.org>
61103
61104         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
61105         expression, so as to avoid HP-UX 11 cc compiler bug.
61106
61107 2008-04-13  Bruno Haible  <bruno@clisp.org>
61108
61109         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
61110
61111 2008-04-13  Bruno Haible  <bruno@clisp.org>
61112
61113         * lib/git-merge-changelog.c: Remove empty declaration outside of
61114         functions.
61115
61116 2008-04-13  Bruno Haible  <bruno@clisp.org>
61117
61118         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
61119
61120 2008-04-13  Bruno Haible  <bruno@clisp.org>
61121
61122         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
61123         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
61124         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
61125         also if it exists but lacks definitions of the SHUT_* macros.
61126         * modules/sys_socket (Description): Update.
61127         Reported by Elbert Pol <e.pol@chello.nl>.
61128
61129 2008-04-13  Bruno Haible  <bruno@clisp.org>
61130
61131         * lib/localcharset.c (OS2): Don't redefine if already defined.
61132         Reported by Elbert Pol <e.pol@chello.nl>.
61133
61134 2008-04-13  Bruno Haible  <bruno@clisp.org>
61135
61136         * lib/binary-io.h [__EMX__]: Include <io.h>.
61137         Reported by Elbert Pol <e.pol@chello.nl>.
61138
61139 2008-04-12  Bruno Haible  <bruno@clisp.org>
61140
61141         * lib/fpucw.h: Enable the definitions also for x86_64.
61142         Needed for NetBSD/x86_64.
61143         Reported by Thomas Klausner <tk@giga.or.at>.
61144
61145 2008-04-12  Bruno Haible  <bruno@clisp.org>
61146
61147         * tests/test-strtod.c: Include isnand.h.
61148         (main): Use isnand instead of isnan.
61149         Reported by Jim Meyering.
61150
61151 2008-04-12  Bruno Haible  <bruno@clisp.org>
61152
61153         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
61154         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61155
61156 2008-04-12  Jim Meyering  <meyering@redhat.com>
61157
61158         * m4/math_h.m4 (gl_MATH_H): Fix typos.
61159
61160 2008-04-12  Bruno Haible  <bruno@clisp.org>
61161
61162         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
61163         Reported by Elbert Pol <e.pol@chello.nl>.
61164
61165 2008-04-12  Eric Blake  <ebb9@byu.net>
61166
61167         Work around Solaris 10 math.h bug.
61168         * m4/math_h.m4 (gl_MATH_H): Check for bug.
61169         (gl_MATH_H_DEFAULTS): Set up default.
61170         * modules/math (Makefile.am): Replace new indicators.
61171         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
61172         * tests/test-math.c (main): Test this.
61173         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
61174         * doc/posix-headers/math.texi (math.h): Mention bug.
61175         Reported by Nelson H. F. Beebe and Jim Meyering.
61176
61177 2008-04-11  Bruno Haible  <bruno@clisp.org>
61178
61179         Adapt to future versions of Apple GCC.
61180         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
61181         Reported by Peter O'Gorman <peter@pogma.com>.
61182
61183 2008-04-11  Bruno Haible  <bruno@clisp.org>
61184
61185         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
61186
61187 2008-04-11  Bruno Haible  <bruno@clisp.org>
61188
61189         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
61190
61191         * modules/getaddrinfo-tests (Makefile.am): Define
61192         test_getaddrinfo_LDADD.
61193
61194 2008-04-11  Bruno Haible  <bruno@clisp.org>
61195
61196         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
61197         (init): Fix syntax error.
61198         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
61199         is declared.
61200
61201 2008-04-11  Bruno Haible  <bruno@clisp.org>
61202
61203         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
61204         * modules/glob (Depends-on): Add stdbool.
61205
61206 2008-04-11  Bruno Haible  <bruno@clisp.org>
61207
61208         * lib/trim.c: Include <string.h>.
61209
61210 2008-04-11  Eric Blake  <ebb9@byu.net>
61211
61212         Avoid compile failure on OS/2.
61213         * lib/regex_internal.h (internal_function): Disable optimization
61214         on OS/2 (__EMX__), where it caused compiler error.
61215         Reported by Elbert Pol.
61216
61217 2008-04-11  Bruno Haible  <bruno@clisp.org>
61218
61219         Flush the standard error stream before aborting. Needed on mingw.
61220         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
61221         * tests/test-array_list.c (ASSERT): Likewise.
61222         * tests/test-array_oset.c (ASSERT): Likewise.
61223         * tests/test-avltree_list.c (ASSERT): Likewise.
61224         * tests/test-avltree_oset.c (ASSERT): Likewise.
61225         * tests/test-avltreehash_list.c (ASSERT): Likewise.
61226         * tests/test-binary-io.c (ASSERT): Likewise.
61227         * tests/test-byteswap.c (ASSERT): Likewise.
61228         * tests/test-c-ctype.c (ASSERT): Likewise.
61229         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
61230         * tests/test-c-strcasestr.c (ASSERT): Likewise.
61231         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
61232         * tests/test-c-strstr.c (ASSERT): Likewise.
61233         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
61234         * tests/test-canonicalize.c (ASSERT): Likewise.
61235         * tests/test-carray_list.c (ASSERT): Likewise.
61236         * tests/test-ceilf1.c (ASSERT): Likewise.
61237         * tests/test-ceilf2.c (ASSERT): Likewise.
61238         * tests/test-ceill.c (ASSERT): Likewise.
61239         * tests/test-count-one-bits.c (ASSERT): Likewise.
61240         * tests/test-fbufmode.c (ASSERT): Likewise.
61241         * tests/test-fflush2.c (ASSERT): Likewise.
61242         * tests/test-floorf1.c (ASSERT): Likewise.
61243         * tests/test-floorf2.c (ASSERT): Likewise.
61244         * tests/test-floorl.c (ASSERT): Likewise.
61245         * tests/test-fopen.c (ASSERT): Likewise.
61246         * tests/test-fpending.c (ASSERT): Likewise.
61247         * tests/test-fprintf-posix.c (ASSERT): Likewise.
61248         * tests/test-fpurge.c (ASSERT): Likewise.
61249         * tests/test-freadable.c (ASSERT): Likewise.
61250         * tests/test-freadahead.c (ASSERT): Likewise.
61251         * tests/test-freading.c (ASSERT): Likewise.
61252         * tests/test-freadptr.c (ASSERT): Likewise.
61253         * tests/test-freadptr2.c (ASSERT): Likewise.
61254         * tests/test-freadseek.c (ASSERT): Likewise.
61255         * tests/test-freopen.c (ASSERT): Likewise.
61256         * tests/test-frexp.c (ASSERT): Likewise.
61257         * tests/test-frexpl.c (ASSERT): Likewise.
61258         * tests/test-fseek.c (ASSERT): Likewise.
61259         * tests/test-fseeko.c (ASSERT): Likewise.
61260         * tests/test-fstrcmp.c (ASSERT): Likewise.
61261         * tests/test-ftell.c (ASSERT): Likewise.
61262         * tests/test-ftello.c (ASSERT): Likewise.
61263         * tests/test-func.c (ASSERT): Likewise.
61264         * tests/test-fwritable.c (ASSERT): Likewise.
61265         * tests/test-fwriting.c (ASSERT): Likewise.
61266         * tests/test-getdelim.c (ASSERT): Likewise.
61267         * tests/test-getline.c (ASSERT): Likewise.
61268         * tests/test-i-ring.c (ASSERT): Likewise.
61269         * tests/test-iconv-utf.c (ASSERT): Likewise.
61270         * tests/test-iconv.c (ASSERT): Likewise.
61271         * tests/test-isfinite.c (ASSERT): Likewise.
61272         * tests/test-isnand.c (ASSERT): Likewise.
61273         * tests/test-isnanf.c (ASSERT): Likewise.
61274         * tests/test-isnanl.h (ASSERT): Likewise.
61275         * tests/test-ldexpl.c (ASSERT): Likewise.
61276         * tests/test-linked_list.c (ASSERT): Likewise.
61277         * tests/test-linkedhash_list.c (ASSERT): Likewise.
61278         * tests/test-localename.c (ASSERT): Likewise.
61279         * tests/test-lseek.c (ASSERT): Likewise.
61280         * tests/test-mbscasecmp.c (ASSERT): Likewise.
61281         * tests/test-mbscasestr1.c (ASSERT): Likewise.
61282         * tests/test-mbscasestr2.c (ASSERT): Likewise.
61283         * tests/test-mbscasestr3.c (ASSERT): Likewise.
61284         * tests/test-mbscasestr4.c (ASSERT): Likewise.
61285         * tests/test-mbschr.c (ASSERT): Likewise.
61286         * tests/test-mbscspn.c (ASSERT): Likewise.
61287         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
61288         * tests/test-mbspbrk.c (ASSERT): Likewise.
61289         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
61290         * tests/test-mbsrchr.c (ASSERT): Likewise.
61291         * tests/test-mbsspn.c (ASSERT): Likewise.
61292         * tests/test-mbsstr1.c (ASSERT): Likewise.
61293         * tests/test-mbsstr2.c (ASSERT): Likewise.
61294         * tests/test-mbsstr3.c (ASSERT): Likewise.
61295         * tests/test-memchr2.c (ASSERT): Likewise.
61296         * tests/test-memmem.c (ASSERT): Likewise.
61297         * tests/test-open.c (ASSERT): Likewise.
61298         * tests/test-printf-frexp.c (ASSERT): Likewise.
61299         * tests/test-printf-frexpl.c (ASSERT): Likewise.
61300         * tests/test-printf-posix.c (ASSERT): Likewise.
61301         * tests/test-quotearg.c (ASSERT): Likewise.
61302         * tests/test-rbtree_list.c (ASSERT): Likewise.
61303         * tests/test-rbtree_oset.c (ASSERT): Likewise.
61304         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
61305         * tests/test-round1.c (ASSERT): Likewise.
61306         * tests/test-roundf1.c (ASSERT): Likewise.
61307         * tests/test-roundl.c (ASSERT): Likewise.
61308         * tests/test-signbit.c (ASSERT): Likewise.
61309         * tests/test-sleep.c (ASSERT): Likewise.
61310         * tests/test-snprintf-posix.c (ASSERT): Likewise.
61311         * tests/test-snprintf.c (ASSERT): Likewise.
61312         * tests/test-sprintf-posix.c (ASSERT): Likewise.
61313         * tests/test-stat-time.c (ASSERT): Likewise.
61314         * tests/test-strcasestr.c (ASSERT): Likewise.
61315         * tests/test-strerror.c (ASSERT): Likewise.
61316         * tests/test-striconv.c (ASSERT): Likewise.
61317         * tests/test-striconveh.c (ASSERT): Likewise.
61318         * tests/test-striconveha.c (ASSERT): Likewise.
61319         * tests/test-strsignal.c (ASSERT): Likewise.
61320         * tests/test-strstr.c (ASSERT): Likewise.
61321         * tests/test-strtod.c (ASSERT): Likewise.
61322         * tests/test-trunc1.c (ASSERT): Likewise.
61323         * tests/test-trunc2.c (ASSERT): Likewise.
61324         * tests/test-truncf1.c (ASSERT): Likewise.
61325         * tests/test-truncf2.c (ASSERT): Likewise.
61326         * tests/test-truncl.c (ASSERT): Likewise.
61327         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61328         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61329         * tests/test-vasnprintf.c (ASSERT): Likewise.
61330         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61331         * tests/test-vasprintf.c (ASSERT): Likewise.
61332         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61333         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61334         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61335         * tests/test-vsnprintf.c (ASSERT): Likewise.
61336         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61337         * tests/test-wcwidth.c (ASSERT): Likewise.
61338         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61339         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61340         * tests/test-xvasprintf.c (ASSERT): Likewise.
61341         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61342         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61343         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61344         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61345         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61346         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61347         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61348         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61349         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61350         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61351         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61352         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61353         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61354         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61355         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61356         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61357         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61358         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61359         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61360         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61361         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61362         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61363         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61364         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61365         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61366         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61367         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61368         * tests/unictype/test-combining.c (ASSERT): Likewise.
61369         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61370         * tests/unictype/test-digit.c (ASSERT): Likewise.
61371         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61372         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61373         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61374         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61375         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61376         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61377         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61378         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61379         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61380         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61381         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61382         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61383         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61384         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61385         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61386         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
61387         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
61388         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
61389         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
61390         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
61391         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
61392         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
61393         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61394         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61395         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61396         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61397         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61398         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61399         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61400         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61401         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61402         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61403         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61404         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61405         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61406         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61407         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61408         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61409         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61410         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61411         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61412         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61413         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61414         Reported by Eric Blake.
61415
61416 2008-04-11  Bruno Haible  <bruno@clisp.org>
61417
61418         * lib/wchar.in.h: Tweak comment.
61419
61420 2008-04-11  Bruno Haible  <bruno@clisp.org>
61421
61422         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61423         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61424         gl_COMMON.
61425         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61426
61427 2008-04-11  Bruno Haible  <bruno@clisp.org>
61428
61429         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61430
61431 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61432
61433         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61434         of attempting to use non-existing /dev/*random.  Based on patch
61435         from Adam Strzelecki <ono@java.pl> in
61436         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61437
61438 2008-04-08  Bruno Haible  <bruno@clisp.org>
61439
61440         Add tentative support for emx+gcc.
61441         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
61442         * lib/fpurge.c (fpurge): Likewise.
61443         * lib/freadable.c (freadable): Likewise.
61444         * lib/freadahead.c (freadahead): Likewise.
61445         * lib/freading.c (freading): Likewise.
61446         * lib/freadptr.c (freadptr): Likewise.
61447         * lib/freadseek.c (freadptrinc): Likewise.
61448         * lib/fseeko.c (rpl_fseeko): Likewise.
61449         * lib/fseterr.c (fseterr): Likewise.
61450         * lib/fwritable.c (fwritable): Likewise.
61451         * lib/fwriting.c (fwriting): Likewise.
61452         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61453
61454 2008-04-09  Eric Blake  <ebb9@byu.net>
61455
61456         Avoid some autoconf warnings.
61457         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61458         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61459         * m4/afs.m4 (gl_AFS): Likewise.
61460         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61461         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61462         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61463         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61464         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61465         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61466         (AC_CHECK_DECLS_ONCE): Likewise.
61467         Rename file...
61468         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61469         gnulib-tool requires autoconf 2.59 or better.
61470         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61471
61472 2008-04-08  Eric Blake  <ebb9@byu.net>
61473
61474         Use 'git describe --match' if present (added in git 1.5.5).
61475         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61476         if possible.
61477
61478 2008-04-08  Bruno Haible  <bruno@clisp.org>
61479
61480         Add tentative support for OpenServer.
61481         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
61482         _ptr, _cnt.
61483         * lib/fpurge.c (fpurge): Likewise.
61484         * lib/freadable.c (freadable): Likewise.
61485         * lib/freadahead.c (freadahead): Likewise.
61486         * lib/freading.c (freading): Likewise.
61487         * lib/freadptr.c (freadptr): Likewise.
61488         * lib/freadseek.c (freadptrinc): Likewise.
61489         * lib/fseeko.c (rpl_fseeko): Likewise.
61490         * lib/fseterr.c (fseterr): Likewise.
61491         * lib/fwritable.c (fwritable): Likewise.
61492         * lib/fwriting.c (fwriting): Likewise.
61493         Reported by Roger Cornelius <rac@tenzing.org> and
61494         Brian K. White <brian@aljex.com>.
61495
61496 2008-04-06  Jim Meyering  <meyering@redhat.com>
61497
61498         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
61499
61500 2008-04-06  Bruno Haible  <bruno@clisp.org>
61501
61502         Avoid possible error with non-ASCII bytes in UTF-8 locales.
61503         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
61504         * tests/test-printf-posix.sh: Likewise.
61505         * tests/test-vfprintf-posix.sh: Likewise.
61506         * tests/test-vprintf-posix.sh: Likewise.
61507         * tests/test-xprintf-posix.sh: Likewise.
61508
61509 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61510
61511         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
61512         hide error from 'ls', needed on OS/2.
61513         Report by Elbert Pol <elbert.pol@gmail.com>.
61514
61515 2008-04-04  Eric Blake  <ebb9@byu.net>
61516
61517         Make test-fseeko.c failures meaningful.
61518         * tests/test-fseeko.c: Print line number on failure.
61519         * tests/test-fseek.c: Likewise.
61520         Reported by Nelson H. F. Beebe.
61521
61522         Improve strtod bug detection check.
61523         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
61524         required for Solaris 10.
61525         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
61526
61527 2008-04-04  Bruno Haible  <bruno@clisp.org>
61528
61529         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
61530         by m4/setenv.m4.
61531
61532 2008-04-03  Eric Blake  <ebb9@byu.net>
61533
61534         Ensure sane .version contents.
61535         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
61536         version string.
61537         * build-aux/git-version-gen: Improve documentation.
61538
61539         Make GNU make output nicer.
61540         * top/GNUmakefile [!_have-Makefile]: Add dependency on
61541         MAKECMDGOALS to enforce message for all command line targets.  Set
61542         srcdir for use in maint.mk.
61543
61544         Another maintainer tweak.
61545         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
61546         a target that regenerates version.
61547
61548 2008-04-03  Jim Meyering  <meyering@redhat.com>
61549
61550         vc-list-files: don't cause coreutils "make po-check" failure
61551         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
61552
61553 2008-04-03  Eric Blake  <ebb9@byu.net>
61554
61555         Allow VPATH usage of vc-list-files.
61556         * build-aux/vc-list-files (scriptversion): Add timestamp.
61557         (options): Add --help, --version, -C.
61558         (CVS): Support installed cvsu.
61559
61560 2008-04-02  Bruno Haible  <bruno@clisp.org>
61561
61562         Avoid some "statement with no effect" warnings from gcc.
61563         * tests/test-wctype.c (main): Explicitly ignore unused values.
61564         Reported by Jim Meyering.
61565
61566 2008-04-02  Jim Meyering  <meyering@redhat.com>
61567
61568         Avoid some warnings from "gcc -Wshadow".
61569         * tests/test-frexp.c (exp): Define to a different identifier.
61570         * tests/test-frexpl.c (exp): Likewise.
61571
61572 2008-04-03  Jim Meyering  <meyering@redhat.com>
61573
61574         bootstrap: remove dangling *.[ch] symlinks from lib
61575         * build-aux/bootstrap [dangling symlink removal]: Move find's
61576         -depth option to precede all others, to avoid a warning.
61577         Remove *.[ch] files too, and from "$source_base" (usually lib/).
61578
61579 2008-04-02  Bruno Haible  <bruno@clisp.org>
61580
61581         Avoid some warnings from "gcc -Wshadow".
61582         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
61583         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
61584         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
61585         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
61586         Reported by Jim Meyering.
61587
61588 2008-04-01  Bruno Haible  <bruno@clisp.org>
61589
61590         Fix test to work on IRIX 6.5 with cc.
61591         * tests/test-math.c (numeric_equal): New function.
61592         (main): Use it.
61593
61594 2008-04-01  Bruno Haible  <bruno@clisp.org>
61595
61596         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
61597
61598 2008-04-01  Bruno Haible  <bruno@clisp.org>
61599
61600         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
61601         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61602         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
61603         (Depends-on): Remove math.
61604
61605         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
61606         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61607         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
61608         (Depends-on): Remove math.
61609
61610         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
61611         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61612         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
61613         (Depends-on): Remove math.
61614         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
61615         (Depends-on): Remove math.
61616
61617         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
61618         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61619         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
61620         (Depends-on): Remove math.
61621         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
61622         (Depends-on): Remove math.
61623
61624         * tests/test-round1.c: Include nan.h.
61625         (main): Use NaNd instead of NAN.
61626         * modules/round-tests (Files): Add tests/nan.h.
61627
61628         * tests/test-trunc1.c: Include nan.h.
61629         (main): Use NaNd instead of NAN.
61630         * modules/trunc-tests (Files): Add tests/nan.h.
61631
61632         * tests/test-roundf1.c: Include nan.h.
61633         (main): Use NaNf instead of NAN.
61634         * modules/roundf-tests (Files): Add tests/nan.h.
61635
61636         * tests/test-truncf1.c: Include nan.h.
61637         (main): Use NaNf instead of NAN.
61638         * modules/truncf-tests (Files): Add tests/nan.h.
61639
61640         * tests/test-ceilf1.c: Include nan.h.
61641         (main): Use NaNf instead of NAN.
61642         * modules/ceilf-tests (Files): Add tests/nan.h.
61643
61644         * tests/test-floorf1.c: Include nan.h.
61645         (main): Use NaNf instead of NAN.
61646         * modules/floorf-tests (Files): Add tests/nan.h.
61647
61648         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
61649         (main): Use NaNf instead of NAN.
61650         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
61651
61652         * tests/test-isnand.c: Include nan.h instead of <math.h>.
61653         (main): Use NaNd instead of NAN.
61654         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
61655
61656         * tests/test-frexp.c: Include nan.h.
61657         (main): Use NaNd instead of NAN.
61658         * modules/frexp-tests (Files): Add tests/nan.h.
61659
61660         * lib/isnan.c: Don't include <math.h>.
61661         (FUNC): Don't use NAN macro.
61662         * modules/isnand-nolibm (Depends-on): Remove math.
61663         * modules/isnanf-nolibm (Depends-on): Remove math.
61664         * modules/isnanl (Depends-on): Remove math.
61665         * modules/isnanl-nolibm (Depends-on): Remove math.
61666
61667         * tests/nan.h: New file.
61668
61669 2008-04-01  Eric Blake  <ebb9@byu.net>
61670
61671         Fix typos.
61672         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
61673         values to be the right type.
61674
61675         For now, cater to gnulib strtod inaccuracies.
61676         * tests/test-strtod.c (main): Allow 1-ulp error on expected
61677         fractional results.  While not as nice from a QoI perspective, it
61678         is a quicker patch than correctly implementing decimal to binary
61679         rounding.
61680
61681 2008-03-31  Eric Blake  <ebb9@byu.net>
61682
61683         Guarantee a definition of NAN.
61684         * lib/math.in.h (NAN): Define if missing.
61685         * tests/test-math.c (main): Test it.
61686         * doc/posix-headers/math.texi (math.h): Document this.
61687         * lib/isnan.c (rpl_isnand): Use it.
61688         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
61689         * tests/test-floorf1.c (NaN): Likewise.
61690         * tests/test-frexp.c (NaN): Likewise.
61691         * tests/test-isnand.c (NaN): Likewise.
61692         * tests/test-isnanf.c (NaN): Likewise.
61693         * tests/test-round1.c (NaN): Likewise.
61694         * tests/test-roundf1.c (NaN): Likewise.
61695         * tests/test-snprintf-posix.h (NaN): Likewise.
61696         * tests/test-sprintf-posix.h (NaN): Likewise.
61697         * tests/test-trunc1.c (NaN): Likewise.
61698         * tests/test-truncf1.c (NaN): Likewise.
61699         * tests/test-vasnprintf-posix.c (NaN): Likewise.
61700         * tests/test-vasprintf-posix.c (NaN): Likewise.
61701         * modules/isnand-nolibm (Depends-on): Add math.
61702         * modules/isnanf-nolibm (Depends-on): Likewise.
61703         * modules/isnanl (Depends-on): Likewise.
61704         * modules/isnanl-nolibm (Depends-on): Likewise.
61705         * modules/snprintf-posix-tests (Depends-on): Likewise.
61706         * modules/sprintf-posix-tests (Depends-on): Likewise.
61707         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
61708         * modules/vsprintf-posix-tests (Depends-on): Likewise.
61709         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
61710         * modules/vasprintf-posix-tests (Depends-on): Likewise.
61711
61712 2008-03-31  Bruno Haible  <bruno@clisp.org>
61713
61714         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
61715         * doc/posix-functions/strtod.texi: Likewise.
61716
61717 2008-03-31  Bruno Haible  <bruno@clisp.org>
61718
61719         * tests/test-strtod.c (main): Don't use C99 syntax.
61720
61721 2008-03-31  Bruno Haible  <bruno@clisp.org>
61722
61723         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
61724         Reported by Eric Blake.
61725
61726 2008-03-31  Jim Meyering  <meyering@redhat.com>
61727
61728         Don't compare actual signbit return values.
61729         * tests/test-strtod.c (main): Rather, compare only their
61730         zero/non-zero nature.
61731
61732 2008-03-31  Eric Blake  <ebb9@byu.net>
61733
61734         More strtod documentation.
61735         * doc/posix-functions/strtod.texi (strtod): Interpret more test
61736         failures as distinct bugs.
61737
61738 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61739
61740         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
61741         Problem reported by Erik Benada in
61742         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
61743
61744 2008-03-30  Bruno Haible  <bruno@clisp.org>
61745
61746         * tests/test-strtod.c: Add comments about which assertion fails on which
61747         platform.
61748         * doc/posix-functions/strtod.texi: Add info about many more platforms.
61749
61750 2008-03-30  Eric Blake  <ebb9@byu.net>
61751
61752         Test signbit behavior on zeros.
61753         * tests/test-signbit.c (test_signbitf): Add tests for zero.
61754         (test_signbitd, test_signbitl): Likewise.
61755
61756         More strtod touchups.
61757         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
61758         sign of negative underflow, for now.  Use .5, not .1.
61759         * doc/posix-functions/strtod.texi (strtod): Mention these
61760         limitations.
61761         Reported by Jim Meyering.
61762
61763 2008-03-30  Bruno Haible  <bruno@clisp.org>
61764
61765         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
61766         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
61767
61768 2008-03-30  Bruno Haible  <bruno@clisp.org>
61769
61770         Avoid failure when attempting to return empty iconv results on some
61771         platforms.
61772         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
61773         allocation, don't report ENOMEM when the resulting string is empty.
61774
61775 2008-03-30  Bruno Haible  <bruno@clisp.org>
61776
61777         Fix buffer overrun.
61778         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
61779         Don't consider the width for tmp_length. Check count against tmp_length
61780         before doing the padding. Ensure enough allocation during padding.
61781
61782 2008-03-30  Eric Blake  <ebb9@byu.net>
61783
61784         strtod touchups.
61785         * lib/strtod.c (strtod): Avoid compiler warnings.
61786         Reported by Jim Meyering.
61787
61788 2008-03-30  Bruno Haible  <bruno@clisp.org>
61789
61790         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
61791         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
61792         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
61793         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
61794         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
61795         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
61796         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
61797         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
61798
61799         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
61800         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
61801         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
61802         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
61803         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
61804         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
61805         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
61806         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
61807
61808         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
61809         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
61810         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
61811         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
61812         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
61813         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
61814         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
61815         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
61816
61817         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
61818         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
61819
61820         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
61821         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
61822
61823         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
61824         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
61825
61826         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
61827         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
61828         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
61829
61830         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
61831         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
61832         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
61833
61834         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
61835         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
61836         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
61837
61838         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
61839         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
61840         * modules/vasprintf (Depends-on): Add EOVERFLOW.
61841
61842         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
61843         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
61844         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
61845         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
61846         (Depends-on): Add EOVERFLOW.
61847         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
61848         (Depends-on): Add EOVERFLOW.
61849         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61850         (Depends-on): Add EOVERFLOW.
61851         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61852         (Depends-on): Add EOVERFLOW.
61853         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61854         (Depends-on): Add EOVERFLOW.
61855         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61856         (Depends-on): Add EOVERFLOW.
61857         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61858         (Depends-on): Add EOVERFLOW.
61859         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61860         (Depends-on): Add EOVERFLOW.
61861
61862         * lib/sprintf.c (EOVERFLOW): Remove fallback.
61863         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
61864         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
61865
61866         * lib/snprintf.c (EOVERFLOW): Remove fallback.
61867         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
61868         * modules/snprintf (Depends-on): Add EOVERFLOW.
61869
61870         * lib/poll.c (EOVERFLOW): Remove fallback.
61871         * modules/poll (Depends-on): Add EOVERFLOW.
61872
61873         * lib/getugroups.c (EOVERFLOW): Remove fallback.
61874         * modules/getugroups (Depends-on): Add EOVERFLOW.
61875
61876         * lib/getdelim.c (EOVERFLOW): Remove fallback.
61877         * modules/getdelim (Depends-on): Add EOVERFLOW.
61878
61879         * lib/ftell.c (EOVERFLOW): Remove fallback.
61880         * modules/ftell (Depends-on): Add EOVERFLOW.
61881
61882         * lib/fprintf.c (EOVERFLOW): Remove fallback.
61883         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
61884         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
61885
61886         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
61887
61888         * modules/EOVERFLOW-tests: New file.
61889         * tests/test-EOVERFLOW.c: New file.
61890
61891         * modules/EOVERFLOW: New file.
61892         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
61893
61894 2008-03-30  Bruno Haible  <bruno@clisp.org>
61895
61896         Fix bug introduced on 2007-06-10.
61897         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
61898         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
61899
61900 2008-03-30  Bruno Haible  <bruno@clisp.org>
61901
61902         Improve freadseek's efficiency after ungetc.
61903         * lib/freadseek.c: Include freadahead.h.
61904         (freadptrinc): New function, extracted from freadseek.
61905         (freadseek): Use it in a loop. Use freadahead to determine the number
61906         of loop iterations.
61907         * modules/freadseek (Depends-on): Add freadahead.
61908         (configure.ac): Require AC_C_INLINE.
61909
61910 2008-03-30  Bruno Haible  <bruno@clisp.org>
61911
61912         * lib/freadseek.c (freadseek): Don't ignore the return value of
61913         freadptr.
61914
61915 2008-03-29  Eric Blake  <ebb9@byu.net>
61916
61917         Add hex float support.
61918         * modules/strtod (Depends-on): Add c-ctype.
61919         (Link): Mention POW_LIB.
61920         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
61921         whitespace between 'e' and exponent.
61922         * tests/test-strtod.c (main): Enable hex float tests.
61923         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
61924         now provides.
61925
61926         Document various strtod bugs, with some fixes.
61927         * doc/posix-functions/strtod.texi (strtod): Document bugs with
61928         "-0x", "inf", "nan", and hex constants.
61929         * doc/posix-functions/atof.texi (atof): Likewise.
61930         * modules/stdlib (Makefile.am): Support strtod.
61931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
61932         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
61933         detect additional strtod bugs.
61934         * lib/stdlib.in.h (rpl_strtod): Add declarations.
61935         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
61936         bool where appropriate.  Parse 'inf' and 'nan'.
61937         * tests/test-strtod.c: New file.
61938         * modules/strtod (Depends-on): Add stdbool, stdlib.
61939         (configure.ac): Turn on module indicator.
61940         * modules/strtod-tests: New module.
61941
61942 2008-03-29  Eric Blake  <ebb9@byu.net>
61943
61944         Fix ftell on mingw.
61945         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
61946         * modules/ftell-tests (Depends-on): Add binary-io.
61947         * modules/ftello-tests (Depends-on): Likewise.
61948         * tests/test-ftell.c (main): Enhance test to cover behavior after
61949         ungetc.  Enforce binary mode.
61950         * tests/test-ftello.c (main): Likewise.
61951
61952         Pass test-freadseek on cygwin.
61953         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
61954         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
61955         ungetc buffer.
61956
61957         * tests/test-fflush2.c (main): Fix typo.
61958
61959 2008-03-29  Bruno Haible  <bruno@clisp.org>
61960
61961         * tests/test-fflush2.c (main): Temporarily disable the contents of
61962         this test.
61963         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
61964         Reported by Eric Blake.
61965
61966 2008-03-28  Simon Josefsson  <simon@josefsson.org>
61967
61968         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
61969         (GC_SHA224_DIGEST_SIZE): Add.
61970
61971         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
61972         (gc_hash_digest_length): Likewise.
61973         (gc_hash_buffer): Likewise.
61974
61975 2008-03-25  Bruno Haible  <bruno@clisp.org>
61976
61977         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
61978         detail which gettext release to use.
61979         Reported by Simon Josefsson.
61980
61981 2008-03-26  Jim Meyering  <meyering@redhat.com>
61982
61983         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
61984         * modules/gnumakefile (clean-GNUmakefile): Also, use
61985         test ... && ... || : syntax rather than if-then ... fi.
61986
61987         gnumakefile: Don't double-quote-expand $(VPATH) value.
61988         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
61989
61990 2008-03-24  Eric Blake  <ebb9@byu.net>
61991
61992         Alter GNUmakefile to install into top directory.
61993         * modules/maintainer-makefile: Split, and add dependency...
61994         * modules/gnumakefile: to this new module.
61995         * build-aux/GNUmakefile: Move...
61996         * top/GNUmakefile: ...here.
61997         * build-aux/maint.mk: Move...
61998         * top/maint.mk: ...here.
61999         * MODULES.html.sh (Support for maintaining...): Document new
62000         module.
62001
62002 2008-03-23  Bruno Haible  <bruno@clisp.org>
62003
62004         * gnulib-tool: New options --vc-files, --no-vc-files.
62005         (func_usage): Document them.
62006         (vc_files): New variable.
62007         (func_import): Consider vc_files.
62008         (func_create_testdir): Set vc_files to empty.
62009         Suggested by Jim Meyering and Karl Berry.
62010
62011 2008-03-23  Bruno Haible  <bruno@clisp.org>
62012
62013         Fix regex compilation error on HP-UX 11.
62014         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
62015         * modules/regex (Files): Add m4/mbstate_t.m4.
62016         Reported by Ton Voon <ton.voon@altinity.com>.
62017
62018 2008-03-23  Bruno Haible  <bruno@clisp.org>
62019
62020         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
62021
62022 2008-03-23  Eric Blake  <ebb9@byu.net>
62023             Bruno Haible  <bruno@clisp.org>
62024
62025         Install files from top/ in the destination directory.
62026         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62027         augmentation also for the files from top/.
62028         (func_import, func_create_testdir): Rewrite file names:
62029         top/filename -> filename.
62030
62031 2008-03-23  Bruno Haible  <bruno@clisp.org>
62032
62033         Tweak "gnulib --version" output.
62034         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
62035
62036 2008-03-23  Bruno Haible  <bruno@clisp.org>
62037
62038         Tweak "gnulib --version" output.
62039         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
62040         rather than contents of ChangeLog, when possible.
62041
62042 2008-03-21  Eric Blake  <ebb9@byu.net>
62043
62044         More --version tweaks.
62045         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
62046         date of last ChangeLog entry.
62047
62048 2008-03-21  Jim Meyering  <meyering@redhat.com>
62049
62050         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
62051
62052 2008-03-20  Eric Blake  <ebb9@byu.net>
62053
62054         VPATH fix.
62055         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
62056
62057 2008-03-20  Simon Josefsson  <simon@josefsson.org>
62058
62059         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
62060         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
62061
62062 2008-03-20  Eric Blake  <ebb9@byu.net>
62063
62064         Sync GNUmakefile with coreutils.
62065         * build-aux/GNUmakefile (have-Makefile): Rename...
62066         (_have-Makefile): ...to this, for namespace consideration.
62067         (GNUmakefile.cfg): Include, if present.
62068         (_autoreconf): Define a default.
62069         (_is-dist-target): New rule for rebuilds to pick up intra-release
62070         version.
62071         (maint-cfg.mk): Rename...
62072         (cfg.mk): ...to this.
62073
62074 2008-03-18  Jim Meyering  <meyering@redhat.com>
62075
62076         New script and module: mktempd
62077         * MODULES.html.sh (maint+release support): Add mktempd.
62078         * build-aux/mktempd: New file.
62079         * modules/mktempd: New file.
62080
62081 2008-03-15  Jim Meyering  <meyering@redhat.com>
62082
62083         Undo last change.
62084         * lib/sha1.c, lib/md5.c: 63 != ~63.
62085         Reported by Andreas Schwab.
62086
62087         sha1.c, md5.c: Hoist a redundant expression.
62088         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
62089         "ctx->buflen" only once, before calling *_process_block.
62090         * lib/md5.c (md5_process_bytes): Likewise.
62091
62092 2008-03-14  Eric Blake  <ebb9@byu.net>
62093
62094         Bump copyright year in files generated by gnulib-tool.
62095         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
62096         gnulib-tool, rather than hard-coding it.
62097
62098         Fix 'gnulib-tool --version' output to work with git.
62099         * gnulib-tool (func_gnulib_dir): New function, extracted from...
62100         (startup): ...here.
62101         (func_version): Use it to invoke git-version-gen, rather than
62102         relying on CVS keyword expansion.  Modernize wording.
62103         (cvsdatestamp, last_checkin_date, version): Kill unused
62104         variables.
62105
62106 2008-03-12  Jim Meyering  <meyering@redhat.com>
62107
62108         Recognize optional cast of the argument to free.
62109         * build-aux/useless-if-before-free: Update regexps.
62110
62111         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
62112
62113 2008-03-11  Bruno Haible  <bruno@clisp.org>
62114
62115         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
62116         by a single package.
62117         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
62118         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
62119         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
62120         Reported by Sam Steingold <sds@gnu.org>.
62121
62122 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62123
62124         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
62125         repositories.
62126
62127 2008-03-11  Bruno Haible  <bruno@clisp.org>
62128
62129         Avoid conflicts between local macro definitions.
62130         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62131         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
62132
62133 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
62134             Bruno Haible  <bruno@clisp.org>
62135
62136         Make va_copy work with some version of xlc on AIX 5.1.
62137         * lib/stdarg.in.h: New file.
62138         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
62139         On AIX, use a <stdarg.h> file substitute.
62140         * modules/stdarg (Files): Add lib/stdarg.in.h.
62141         (Depends-on): Add include_next.
62142         (Makefile.am): Build a stdarg.h substitute if requested.
62143         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
62144
62145 2008-03-10  Bruno Haible  <bruno@clisp.org>
62146
62147         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
62148         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62149         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62150
62151 2008-03-10  Bruno Haible  <bruno@clisp.org>
62152
62153         * modules/stdlib (Depends-on): Add include_next, remove
62154         absolute-header.
62155
62156 2008-03-09  Bruno Haible  <bruno@clisp.org>
62157
62158         * lib/freadahead.h (freadahead): Document more precisely.
62159         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
62160         the sum of both buffer sizes.
62161         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
62162         * NEWS: Document the change.
62163
62164 2008-03-09  Bruno Haible  <bruno@clisp.org>
62165
62166         Extend freadptr to return also the buffer size.
62167         * lib/freadptr.h (freadptr): Add sizep argument.
62168         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
62169         (freadptr): Add sizep argument. Determine buffer size like freadahead
62170         does.
62171         * tests/test-freadptr.c: Don't include freadahead.h.
62172         (main): Adapt for new calling convention of freadptr.
62173         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
62174         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
62175         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
62176         tests/test-freadptr2.sh.
62177         (Depends): Remove freadahead.
62178         (TESTS): Add test-freadptr2.sh.
62179         (check_PROGRAMS): Add test-freadptr2.
62180
62181 2008-03-09  Bruno Haible  <bruno@clisp.org>
62182
62183         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
62184         Report and solution by Simon Josefsson.
62185
62186 2008-03-06  Bruno Haible  <bruno@clisp.org>
62187
62188         Make fflush after ungetc work on BSD platforms.
62189         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
62190         * tests/test-fflush2.c: New file.
62191         * tests/test-fflush2.sh: New file.
62192         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
62193         tests/test-fflush2.c.
62194         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
62195         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
62196
62197 2008-03-06  Eric Blake  <ebb9@byu.net>
62198
62199         Likewise for ftello.
62200         * modules/ftello (Dependencies): Add extensions.
62201         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
62202
62203 2008-03-06  Bruno Haible  <bruno@clisp.org>
62204
62205         * modules/fseeko (Dependencies): Add extensions.
62206         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
62207         Needed on glibc systems.
62208
62209 2008-03-06  Bruno Haible  <bruno@clisp.org>
62210
62211         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
62212         email address.
62213         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62214
62215 2008-03-06  Bruno Haible  <bruno@clisp.org>
62216
62217         * users.txt: Add libgnupdf.
62218
62219 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62220
62221         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
62222         (Header File Substitutes, Function Substitutes,
62223         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
62224         (Build robot for gnulib): Fix typo.
62225
62226 2008-03-06  Bruno Haible  <bruno@clisp.org>
62227
62228         * doc/gnulib-tool.texi (VCS Issues): Small updates.
62229         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62230
62231 2008-03-06  Bruno Haible  <bruno@clisp.org>
62232
62233         * doc/func.texi: New file, extracted from doc/gnulib.texi.
62234         * doc/gnulib.texi: Include it.
62235
62236 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62237
62238         * modules/func (License): Change license to unlimited; there was
62239         no LGPL parts in the module anyway.
62240
62241 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62242
62243         * modules/__func__: Renamed to modules/func.
62244         * modules/__func__-tests: Renamed to modules/func-tests.
62245         * tests/test-__func__.c: Renamed to tests/test-func.c.
62246         * m4/__func__.m4: Renamed to m4/func.m4.
62247         * doc/gnulib.texi (__func__): Section renamed to func.
62248         Suggested by Eric Blake <ebb9@byu.net>.
62249
62250 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62251
62252         * doc/gnulib.texi (__func__): Use C99 terminology when talking
62253         about __func__.  Make example self-contained.  Suggested by Eric
62254         Blake <ebb9@byu.net>.
62255
62256         * tests/test-__func__.c (main): Avoid extraneous () around __func.
62257         Suggested by Eric Blake <ebb9@byu.net>.
62258
62259 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62260
62261         * modules/__func__: New file.
62262         * modules/__func__-tests: New file.
62263         * tests/test-__func__.c: New file.
62264         * m4/__func__.m4: New file.
62265         * doc/gnulib.texi (__func__): Document __func__ module.
62266
62267 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62268
62269         * modules/byteswap (License): Re-license as LGPLv2+.
62270
62271 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62272
62273         * doc/Makefile: Add pdf target.
62274
62275 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62276
62277         * modules/inline (License): Use 'unlimited', since there are only
62278         *.m4 files in this module.
62279
62280 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62281             Bruno Haible  <bruno@clisp.org>
62282
62283         Add support for HP C 7.1 on OpenVMS 8.3.
62284         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
62285
62286 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62287
62288         Update VMS specifics.
62289         * lib/getopt.c [VMS]: Remove include of unixlib.h.
62290
62291 2008-03-02  Jim Meyering  <meyering@redhat.com>
62292
62293         Remove the last dependency on the "free" module.
62294         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
62295         Reported by Bob Proulx.
62296
62297         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
62298
62299         Remove useless "if" tests before free.  Deprecate "free" module.
62300         * doc/posix-functions/free.texi: Mention that this
62301         module is no longer useful.
62302         * modules/free (Notice): Say this module is obsolete.
62303         * modules/readutmp (Depends-on): Remove free.
62304         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
62305         * lib/putenv.c (putenv): Likewise.
62306         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
62307         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
62308         * tests/test-c-strcasestr.c (main): Likewise.
62309         * tests/test-c-strstr.c (main): Likewise.
62310         * tests/test-mbscasestr1.c (main): Likewise.
62311         * tests/test-mbscasestr2.c (main): Likewise.
62312         * tests/test-mbsstr1.c (main): Likewise.
62313         * tests/test-mbsstr2.c (main): Likewise.
62314         * tests/test-memmem.c (main): Likewise.
62315         * tests/test-strcasestr.c (main): Likewise.
62316         * tests/test-striconv.c (main): Likewise.
62317         * tests/test-striconveh.c (main): Likewise.
62318         * tests/test-striconveha.c (main): Likewise.
62319         * tests/test-strstr.c (main): Likewise.
62320
62321         * build-aux/git-version-gen: Adjust a comment and the Usage string.
62322
62323         bootstrap: sync from coreutils again
62324         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62325
62326 2008-03-01  Jim Meyering  <meyering@redhat.com>
62327
62328         bootstrap: sync from coreutils
62329         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62330         also when the target doesn't exist.
62331
62332 2008-03-01  Eric Blake  <ebb9@byu.net>
62333
62334         Fix bugs in last patch.
62335         * lib/memchr2.c (memchr2): Fix typo.
62336         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62337         extension.
62338         Reported by Bruce Korb.
62339
62340         New module 'memchr2'.
62341         * modules/memchr2: New file.
62342         * modules/memchr2-tests: Likewise.
62343         * lib/memchr2.h: Likewise.
62344         * lib/memchr2.c: Likewise, based on memchr.c.
62345         * tests/test-memchr2.c: New test.
62346         * MODULES.html.sh (String handling): Add memchr2.
62347
62348 2008-02-29  Bruno Haible  <bruno@clisp.org>
62349
62350         * modules/freadseek-tests: New file.
62351         * tests/test-freadseek.sh: New file.
62352         * tests/test-freadseek.c: New file.
62353
62354         New module 'freadseek'.
62355         * modules/freadseek: New file.
62356         * lib/freadseek.h: New file.
62357         * lib/freadseek.c: New file.
62358         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62359
62360 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62361
62362         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62363         wydawca.
62364
62365         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62366         program_invocation_name and program_invocation_short_name are
62367         present.
62368
62369 2008-02-28  Bruno Haible  <bruno@clisp.org>
62370
62371         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62372         * tests/test-freadptr.sh: Also test non-seekable stdin.
62373
62374 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62375
62376         * build-aux/bootstrap (source_base, m4_base)
62377         (doc_base, tests_base): New variables.
62378         (gnulib_tool_options): Do not hardcode base directories, use
62379         the above variables instead.
62380
62381 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62382
62383         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62384
62385 2008-02-28  Bruno Haible  <bruno@clisp.org>
62386
62387         * modules/freadptr-tests: New file.
62388         * tests/test-freadptr.sh: New file.
62389         * tests/test-freadptr.c: New file.
62390
62391         New module 'freadptr'.
62392         * modules/freadptr: New file.
62393         * lib/freadptr.h: New file.
62394         * lib/freadptr.c: New file.
62395         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62396
62397 2008-02-26  Karl Berry  <karl@freefriends.org>
62398
62399         Sync from Libtool:
62400         * libltdl/argz.c (argz_add, argz_count): New functions.
62401         * libltdl/argz.in.h: Declare them.
62402         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62403
62404 2008-02-22  Bruno Haible  <bruno@clisp.org>
62405
62406         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62407         is a pointer type.  Needed for HP-UX 10.
62408         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62409         * doc/posix-functions/gmtime_r.texi: Likewise.
62410         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62411
62412 2008-02-24  Bruno Haible  <bruno@clisp.org>
62413
62414         * modules/environ-tests: New file.
62415         * tests/test-environ.c: New file.
62416
62417         New module 'environ'.
62418         * modules/environ: New file.
62419         * lib/unistd.in.h (environ): New declaration.
62420         * m4/environ.m4: New file.
62421         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62422         after use.
62423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62424         HAVE_DECL_ENVIRON.
62425         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62426         HAVE_DECL_ENVIRON.
62427         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62428         wrong claim that 'environ' is missing on some systems.
62429         * modules/execute (Depends-on): Add environ.
62430         * lib/execute.c (environ): Remove fallback declaration.
62431         * modules/pipe (Depends-on): Add environ.
62432         * lib/pipe.c (environ): Remove fallback declaration.
62433         * modules/setenv (Depends-on): Add environ.
62434         * lib/setenv.c (environ): Remove fallback declaration.
62435         * modules/unsetenv (Depends-on): Add environ.
62436         * lib/unsetenv.c (environ): Remove fallback declaration.
62437         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62438         m4/environ.m4.
62439         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62440         (gl_PREREQ_UNSETENV): Likewise.
62441
62442 2008-02-24  Bruno Haible  <bruno@clisp.org>
62443
62444         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62445
62446 2008-02-20  Bob Proulx  <bob@proulx.com>
62447
62448         Enable use of older two part flavor 'git describe'.
62449         * build-aux/git-version-gen: If using the older two part flavor of
62450         git version then recreate the third part now present in the
62451         newer three part flavor of git describe.
62452
62453 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62454
62455         * lib/fts.c (fts_build): Typo correction to comment.
62456
62457 2008-02-17  Bruno Haible  <bruno@clisp.org>
62458
62459         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62460         generating no-op conflicts.
62461
62462 2008-02-17  Bruno Haible  <bruno@clisp.org>
62463
62464         Speed up by 10%.
62465         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62466         result_entries, rather than an index-based loop.
62467
62468 2008-02-17  Bruno Haible  <bruno@clisp.org>
62469
62470         Speed up by 25%.
62471         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62472         'hashcode_cached'.
62473         (entry_create): New function.
62474         (entry_hashcode): Use the cached hashcode if possible.
62475         (read_changelog_file, try_split_merged_entry): Use entry_create.
62476
62477 2008-02-17  Bruno Haible  <bruno@clisp.org>
62478
62479         Speed up from O(n^2) to O(n) for long ChangeLog files.
62480         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
62481         (read_changelog_file): Change implementation of entries_reversed list
62482         to rbtreehash.
62483         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
62484
62485 2008-02-17  Bruno Haible  <bruno@clisp.org>
62486
62487         New option --split-merged-entry.
62488         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
62489         (find_paragraph_end, try_split_merged_entry): New functions.
62490         (long_options): Add option --split-merged-entry.
62491         (usage): Document option --split-merged-entry.
62492         (main): Implement option --split-merged-entry.
62493         Reported by Eric Blake.
62494
62495 2008-02-17  Bruno Haible  <bruno@clisp.org>
62496
62497         * lib/git-merge-changelog.c: Include c-strstr.h.
62498         (main): Support the "git pull --rebase" situation.
62499         * modules/git-merge-changelog (Depends-on): Add c-strstr.
62500         Reported by Eric Blake.
62501
62502 2008-02-16  Eric Blake  <ebb9@byu.net>
62503
62504         Avoid doubling \ in common case of "c-maybe" quoting style.
62505         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
62506         eliding outer quotes.
62507         * lib/quotearg.h: Document this.
62508         * tests/test-quotearg.c (result_strings, inputs, results_g)
62509         (flag_results, locale_results): Test it by adding a new string to
62510         each test group.
62511         (compare_strings): Test new string.
62512
62513 2008-02-13  Eric Blake  <ebb9@byu.net>
62514
62515         Avoid trigraph quoting in default output.
62516         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
62517         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
62518         unless explicitly requested.
62519         * tests/test-quotearg.c (flag_results, main): Add additional tests.
62520
62521 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
62522
62523         Don't rely on signed integer overflowing to negative value.
62524         * lib/getugroups.c (getugroups): Include <limits.h>.
62525         Instead, compare against INT_MAX, and increment only if the test passes.
62526
62527 2008-02-13  Jim Meyering  <meyering@redhat.com>
62528         and Eric Blake  <ebb9@byu.net>
62529
62530         Avoid shadowing warning and compile errors on Linux.
62531         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
62532         forwarding macros on Linux.
62533         (dcgettext): Define a stub, for Linux.
62534         (results_g, main): Avoid warnings.
62535
62536 2008-02-12  Eric Blake  <ebb9@byu.net>
62537
62538         Silence warning in last patch.
62539         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
62540
62541         Quotearg part 4: add tests, fix c-maybe colon quoting.
62542         * lib/quotearg.h: Improve documentation.
62543         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
62544         escapes when adding outer quotes.  When quoting trigraphs, use
62545         valid C notation.  When quoting NUL, omit extra characters if next
62546         character is not digit.  Alter prototype.
62547         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
62548         callers.
62549         * modules/quotearg-tests: New module.
62550         * tests/test-quotearg.c: New test.
62551
62552 2008-02-07  Eric Blake  <ebb9@byu.net>
62553
62554         Quotearg part 3: add flag to control outer quote elision.
62555         * lib/quotearg.h (c_maybe_quoting_style): New style.
62556         (enum quoting_flags): Better documentation of flags.
62557         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
62558         c-maybe style.
62559         (quotearg_buffer_restyled): Handle new flag to elide outer
62560         quotes.
62561
62562         Quotearg part 2: add flag that can control NUL elision.
62563         * lib/quotearg.h (set_quoting_flags): New prototype.
62564         * lib/quotearg.c (struct quoting_options): Add flag field.
62565         (set_quoting_flags): New function.
62566         (quotearg_buffer_restyled): Add flags parameter.
62567         (quotearg_alloc_mem): Set the flag if length cannot be returned.
62568         (quotearg_n_options): Set the flag, since length cannot be
62569         returned.
62570         (quoting_options_from_style): Default flags correctly.
62571
62572         Quotearg part 1: more wrappers, restore quotearg_char state.
62573         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
62574         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
62575         (quotearg_colon_mem): New wrappers.
62576         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
62577         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
62578         functions.
62579         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
62580         (quotearg_colon_mem): New functions.
62581
62582 2008-02-11  Bruno Haible  <bruno@clisp.org>
62583
62584         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
62585         library in the current directory: it does not work with parallel make.
62586         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62587
62588 2008-02-11  Bruno Haible  <bruno@clisp.org>
62589
62590         * .gitattributes: New file.
62591
62592 2008-02-11  Jim Meyering  <meyering@redhat.com>
62593
62594         useless-if-before-free: Fix reversed exit values.
62595         * build-aux/useless-if-before-free: Use correct values
62596         for EXIT_MATCH and EXIT_NO_MATCH.
62597
62598         * build-aux/useless-if-before-free: Close stdout carefully.
62599
62600 2008-02-10  Bruno Haible  <bruno@clisp.org>
62601
62602         New module 'git-merge-changelog'.
62603         * modules/git-merge-changelog: New file.
62604         * lib/git-merge-changelog.c: New file.
62605
62606 2008-02-10  Jim Meyering  <meyering@redhat.com>
62607
62608         useless-if-before-free: New option: --list (-l).
62609
62610         useless-if-before-free: Don't exit immediately upon open failure.
62611         * build-aux/useless-if-before-free: Exit 2 for errors.
62612         Upon failure to open a file, don't exit immediately.
62613         Rather, just warn and continue with any remaining files.
62614
62615 2008-02-10  Bruno Haible  <bruno@clisp.org>
62616
62617         New abstract list operation 'node_set_value'.
62618         * lib/gl_list.h (gl_list_node_set_value): New function.
62619         (struct gl_list_implementation): New field node_set_value.
62620         * lib/gl_list.c (gl_list_node_set_value): New function.
62621         * lib/gl_array_list.c (gl_array_node_set_value): New function.
62622         (gl_array_list_implementation): Update.
62623         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
62624         (gl_carray_list_implementation): Update.
62625         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
62626         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62627         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62628         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
62629         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62630         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62631         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62632         Update.
62633         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62634         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
62635         (gl_sublist_list_implementation): Update.
62636
62637 2008-02-10  Bruno Haible  <bruno@clisp.org>
62638
62639         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
62640         Needed when ELEMENT is #defined to 'some_type *'.
62641
62642 2008-02-10  Jim Meyering  <meyering@redhat.com>
62643
62644         New script and module: useless-if-before-free
62645         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
62646         * build-aux/useless-if-before-free: New file.
62647         * modules/useless-if-before-free: New file.
62648
62649         * build-aux/gitlog-to-changelog: Use committer date, not author date.
62650
62651         xstrtol_error: Fix typo.
62652         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
62653         s/exit_failure/exit_status/.
62654
62655 2008-02-09  Jim Meyering  <meyering@redhat.com>
62656
62657         New script and module: gitlog-to-changelog
62658         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
62659         * modules/gitlog-to-changelog: New file.
62660         * build-aux/gitlog-to-changelog: New file.
62661
62662 2008-02-08  Jim Meyering  <meyering@redhat.com>
62663
62664         Avoid two "parameter unused" warnings.
62665         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
62666         Mark "st" as used.
62667
62668         Use "git COMMAND", not "git-COMMAND".
62669         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
62670         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
62671         * build-aux/git-version-gen: Use "git status", not "git-status".
62672
62673 2008-02-07  Bruno Haible  <bruno@clisp.org>
62674
62675         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
62676         Avoids a crash on Windows Vista.
62677         Reported by Adam Strzelecki <ono@java.pl> via
62678         Simon Josefsson <simon@josefsson.org>.
62679
62680 2008-02-06  Bruno Haible  <bruno@clisp.org>
62681
62682         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
62683         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
62684         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
62685         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
62686         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62687         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62688         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
62689         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
62690         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62691         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62692         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62693         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62694         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62695         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62696         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62697         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
62698         left-adjust flag.
62699         * tests/test-snprintf-posix.h (test_function): Likewise.
62700         * tests/test-sprintf-posix.h (test_function): Likewise.
62701         * tests/test-vasprintf-posix.c (test_function): Likewise.
62702         * doc/posix-functions/fprintf.texi: Update.
62703         * doc/posix-functions/printf.texi: Update.
62704         * doc/posix-functions/snprintf.texi: Update.
62705         * doc/posix-functions/sprintf.texi: Update.
62706         * doc/posix-functions/vfprintf.texi: Update.
62707         * doc/posix-functions/vprintf.texi: Update.
62708         * doc/posix-functions/vsnprintf.texi: Update.
62709         * doc/posix-functions/vsprintf.texi: Update.
62710         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62711
62712 2008-02-06  Bruno Haible  <bruno@clisp.org>
62713
62714         Fix bug introduced on 2008-01-26.
62715         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
62716
62717 2008-02-06  Bruno Haible  <bruno@clisp.org>
62718
62719         Fix bug introduced on 2007-06-10.
62720         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
62721         !NEED_PRINTF_FLAG_ZERO.
62722
62723 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
62724
62725         getloadavg: use libperfstat on AIX5
62726         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
62727
62728 2008-02-03  Bruno Haible  <bruno@clisp.org>
62729
62730         * lib/diffseq.h: Add comments about required #includes.
62731         Reported by Michael Biggs <gnulib@doubleplum.net>.
62732
62733 2008-02-01  Bruno Haible  <bruno@clisp.org>
62734
62735         * users.txt: Add gnuit.
62736
62737 2008-01-31  Bruno Haible  <bruno@clisp.org>
62738
62739         * lib/md4.c (set_uint32): Mark as inline.
62740         * lib/md5.c (set_uint32): Likewise.
62741         * lib/sha1.c (set_uint32): Likewise.
62742         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
62743         * m4/md5.m4 (gl_MD5): Likewise.
62744         * m4/sha1.m4 (gl_SHA1): Likewise.
62745
62746 2008-01-31  Jim Meyering  <meyering@redhat.com>
62747
62748         Use "sizeof VAR", rather than a literal "4".
62749         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
62750         * lib/md4.c (md4_read_ctx): Likewise.
62751         * lib/sha1.c (sha1_read_ctx): Likewise.
62752
62753 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62754
62755         * tests/test-sha1.c: New file, based on test-md5.c.
62756
62757         * modules/crypto/sha1-tests: New file.
62758
62759 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62760
62761         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
62762
62763 2008-01-31  Jim Meyering  <meyering@redhat.com>
62764
62765         Prefer "sizeof v" over the equivalent "4".
62766         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
62767         * lib/md5.c (set_uint32): Likewise.
62768         * lib/sha1.c (set_uint32): Likewise.
62769
62770 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62771
62772         * lib/sha1.c (set_uint32): Mark function as static.
62773
62774 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62775
62776         md2: clarify comments to say that alignment is not required.
62777         * lib/md2.h: Remove warning about alignment in comment.
62778         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
62779         never been required.
62780
62781 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62782
62783         md4: adapt alignment constraint fix from sha1.
62784         * lib/md4.c (set_uint32): New function, from sha1.c
62785         (md4_read_ctx): Use it.
62786         (md4_finish_ctx): Doc fix.
62787         * lib/md4.h: Doc fix.
62788
62789 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62790
62791         md5: adapt alignment constraint fix from sha1.
62792         * lib/md5.c (set_uint32): New function, from sha1.c
62793         (md5_read_ctx): Use it.
62794         (md5_finish_ctx): Doc fix.
62795         * lib/md5.h: Doc fix.
62796
62797 2008-01-30  Peter Palfrader  <weasel@debian.org>
62798
62799         sha1: remove the result buffer alignment constraint
62800         * lib/sha1.c (set_uint32): New function.
62801         (sha1_read_ctx): Rewrite to remove the result buffer alignment
62802         constraint.
62803         (sha1_finish_ctx): Remove comment warning about alignment constraint.
62804         * lib/sha1.h: Likewise.
62805
62806 2008-01-30  Andreas Schwab  <schwab@suse.de>
62807             Bruno Haible  <bruno@clisp.org>
62808
62809         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
62810         correct definition of LDBL_MIN_EXP.
62811
62812 2008-01-30  Karl Berry  <karl@gnu.org>
62813
62814         * config/srclist-update: try to preserve x bit on updates.
62815         * config/srclistvars.sh: update for karl.
62816
62817 2008-01-29  Jim Meyering  <meyering@redhat.com>
62818
62819         vasnprintf.c: Avoid warning about unused label
62820         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
62821         "overflow" label definition and associated code with the
62822         same cpp condition that guards the sole use of that label.
62823
62824 2008-01-26  Bruno Haible  <bruno@clisp.org>
62825
62826         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
62827         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
62828         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
62829         * lib/isnanl-nolibm.h (isnanl): Likewise.
62830         Reported by Paul Eggert <eggert@cs.ucla.edu>.
62831
62832 2008-01-26  Bruno Haible  <bruno@clisp.org>
62833
62834         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
62835         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
62836
62837 2008-01-26  Bruno Haible  <bruno@clisp.org>
62838
62839         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
62840         GCC >= 4.0 built-in.
62841         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
62842
62843 2008-01-26  Bruno Haible  <bruno@clisp.org>
62844
62845         Rename isnan, applicable to 'double' only, to isnand.
62846         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
62847         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
62848         (configure.ac): Update.
62849         (Include): Replace "isnan.h" with "isnand.h".
62850         * m4/isnand.m4: Renamed from m4/isnan.m4.
62851         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
62852         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
62853         instead of isnan.c.
62854         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
62855         instead of HAVE_ISNAN_IN_LIBC.
62856         (isnand): Renamed from isnan.
62857         * lib/isnand.c: New file.
62858         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
62859         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
62860         (Makefile.am): Update.
62861         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
62862         Include isnand.h instead of isnan.h.
62863         (main): Test isnand instead of isnan.
62864         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
62865         isnan-nolibm.
62866         * modules/frexp (Depends-on): Likewise.
62867         * modules/frexp-tests (Depends-on): Likewise.
62868         * modules/frexp-nolibm (Depends-on): Likewise.
62869         * modules/frexp-nolibm-tests (Depends-on): Likewise.
62870         * modules/isfinite (Depends-on): Likewise.
62871         * modules/round-tests (Depends-on): Likewise.
62872         * modules/signbit (Depends-on): Likewise.
62873         * modules/signbit-tests (Depends-on): Likewise.
62874         * modules/snprintf-posix (Depends-on): Likewise.
62875         * modules/sprintf-posix (Depends-on): Likewise.
62876         * modules/trunc-tests (Depends-on): Likewise.
62877         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62878         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62879         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62880         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62881         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62882         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62883         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62884         * modules/vasnprintf-posix (Depends-on): Likewise.
62885         * modules/vasprintf-posix (Depends-on): Likewise.
62886         * modules/vfprintf-posix (Depends-on): Likewise.
62887         * modules/vsnprintf-posix (Depends-on): Likewise.
62888         * modules/vsprintf-posix (Depends-on): Likewise.
62889         * lib/frexp.c: Include isnand.h instead of isnan.h.
62890         (ISNAN): Set to isnand instead of isnan.
62891         * lib/isfinite.c: Include isnand.h instead of isnan.h.
62892         (gl_isfinited): Use isnand instead of isnan.
62893         * lib/signbitd.c: Include isnand.h instead of isnan.h.
62894         (gl_signbitd): Use isnand instead of isnan.
62895         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
62896         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
62897         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
62898         (main): Use isnand instead of isnan.
62899         * tests/test-round1.c: Include isnand.h.
62900         (main): Use isnand instead of isnan.
62901         * tests/test-round2.c: Include isnand.h instead of isnan.h.
62902         (ISNAN): Set to isnand instead of isnan.
62903         * tests/test-trunc1.c: Include isnand.h.
62904         (main): Use isnand instead of isnan.
62905         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
62906         (equal): Use isnand instead of isnan.
62907         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
62908         isnand-nolibm.
62909         * NEWS: Mention the change.
62910
62911 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62912             Bruno Haible  <bruno@clisp.org>
62913
62914         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
62915         the GCC builtins for signbits are present and set
62916         REPLACE_SIGNBIT_USING_GCC if so.
62917         * lib/math.in.h (signbit): Define using GCC builtins if
62918         REPLACE_SIGNBIT_USING_GCC is set.
62919         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
62920         REPLACE_SIGNBIT_USING_GCC.
62921         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
62922
62923 2008-01-25  Jim Meyering  <meyering@redhat.com>
62924
62925         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
62926         * lib/poll.c: Include <config.h>, not "config.h".
62927         * tests/test-getaddrinfo.c: Likewise.
62928
62929 2008-01-25  Simon Josefsson  <simon@josefsson.org>
62930
62931         * modules/sockets-tests: New file.
62932
62933 2008-01-24  Simon Josefsson  <simon@josefsson.org>
62934
62935         * modules/sockets: New module, can be used to call WSA_Startup and
62936         WSA_Cleanup when needed.
62937
62938         * lib/sockets.h, lib/sockets.c: New files.
62939
62940         * m4/sockets.m4: New file.
62941
62942         * tests/test-sockets.c: New file.
62943
62944 2008-01-19  Bruno Haible  <bruno@clisp.org>
62945
62946         * doc/posix-headers: Renamed from doc/headers.
62947         * doc/posix-functions: Renamed from doc/functions.
62948         * doc/gnulib.texi: Update.
62949
62950 2008-01-19  Bruno Haible  <bruno@clisp.org>
62951
62952         * doc/glibc-functions/strcasestr.texi: Include contents of
62953         doc/functions/strcasestr.texi, fixing the list of platforms.
62954         * doc/functions/strcasestr.texi: Remove file.
62955
62956 2008-01-19  Bruno Haible  <bruno@clisp.org>
62957
62958         * doc/glibc-functions/memmem.texi: Include contents of
62959         doc/functions/memmem.texi.
62960         * doc/functions/memmem.texi: Remove file.
62961
62962 2008-01-18  Bruno Haible  <bruno@clisp.org>
62963
62964         * doc/glibc-functions/*.texi: New files.
62965         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
62966         to use the new files.
62967
62968 2008-01-17  Bruno Haible  <bruno@clisp.org>
62969
62970         * tests/test-gethostname.c (main): Fix printf statement.
62971
62972 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62973
62974         * modules/gethostname-tests: New file.
62975
62976         * tests/test-gethostname.c: New file.
62977
62978 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62979
62980         * lib/gethostname.c: Include string.h unconditionally, strncpy is
62981         used by the UNAME case.  Reported by Bruno Haible
62982         <bruno@clisp.org>.
62983
62984 2008-01-17  Eric Blake  <ebb9@byu.net>
62985
62986         Convert c-strcasestr to be more efficient.
62987         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
62988         (Depends-on): Add c-strcase, remove malloca, strnlen.
62989         * tests/test-c-strcasestr.c (main): Enhance test.
62990         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
62991
62992 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62993
62994         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
62995         Use it in creating po/Makevars.
62996
62997 2008-01-15  Simon Josefsson  <simon@josefsson.org>
62998
62999         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
63000         Applications that requires it should initialize libgcrypt
63001         manually.
63002
63003 2008-01-16  Simon Josefsson  <simon@josefsson.org>
63004
63005         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
63006
63007 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
63008
63009         Fix problem with getdate on mingw32 reported by Simon Josefsson
63010         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
63011         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
63012         tzname", when deciding whether to declare tzname.
63013         * lib/strftime.c (tzname): Likewise.
63014
63015 2008-01-15  Bruno Haible  <bruno@clisp.org>
63016
63017         Work around a MacOS X 10.5 bug in frexpl().
63018         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
63019         * doc/functions/frexpl.texi: Document the bug.
63020         Reported by Elias Pipping <pipping@gentoo.org>.
63021
63022 2008-01-14  Eric Blake  <ebb9@byu.net>
63023
63024         Touch up previous patch.
63025         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
63026         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
63027
63028         Convert strcasestr module to use Two-Way algorithm.
63029         * modules/strcasestr-simple: New module, based on the old
63030         strcasestr, but with Two-Way rather than KMP.
63031         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
63032         * lib/string.in.h (rpl_strcasestr): Declare.
63033         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
63034         performance.
63035         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
63036         * modules/string (Makefile.am): Support strcasestr.
63037         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63038         * modules/strcasestr-tests (Depends-on): Check for alarm.
63039         * tests/test-strcasestr.c: Augment test.
63040         * lib/str-two-way.h: Clean up stray macro.
63041         * NEWS: Document new module.
63042         * MODULES.html.sh (string handling): Likewise.
63043         * doc/functions/strcasestr.texi: New file.
63044         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
63045         here, since it is not a POSIX function.
63046
63047 2008-01-14  Colin Watson  <cjwatson@debian.org>
63048             Bruno Haible  <bruno@clisp.org>
63049
63050         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
63051         works fine; if not, set REPLACE_STRSIGNAL.
63052         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
63053         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63054         REPLACE_STRSIGNAL.
63055         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
63056         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
63057         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
63058
63059 2008-01-14  Bruno Haible  <bruno@clisp.org>
63060
63061         * modules/strsignal (Include): Change to <string.h>.
63062
63063 2008-01-14  Colin Watson  <cjwatson@debian.org>
63064
63065         * modules/argp (Notice): Add a notice recommending to change
63066         XGETTEXT_OPTIONS.
63067         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
63068
63069 2008-01-13  Colin Watson  <cjwatson@debian.org>
63070
63071         * modules/strsignal-tests: New file.
63072         * tests/test-strsignal.c: New file.
63073
63074         * lib/strsignal.c: New file, from glibc with modifications.
63075         * lib/siglist.h: New file, from glibc with modifications.
63076         * lib/string.in.h (strsignal): New declaration.
63077         * m4/strsignal.m4: New file.
63078         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63079         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
63080         * modules/strsignal: New file.
63081         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
63082         HAVE_DECL_STRSIGNAL.
63083
63084 2008-01-13  Bruno Haible  <bruno@clisp.org>
63085
63086         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
63087         locale encoding is not ASCII. Needed for OpenBSD 4.0.
63088         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63089         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63090
63091 2008-01-13  Bruno Haible  <bruno@clisp.org>
63092
63093         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
63094         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
63095         * lib/argp.h (__attribute__): Likewise.
63096         * lib/c-stack.c (__attribute__): Likewise.
63097         * lib/error.h (__attribute__): Likewise.
63098         * lib/fts.c (__attribute__): Likewise.
63099         * lib/openat.h (__attribute__): Likewise.
63100         * lib/stdio.in.h (__attribute__): Likewise.
63101         * lib/string.in.h (__attribute__): Likewise.
63102         * lib/utimens.c (__attribute__): Likewise.
63103         * lib/vasnprintf.h (__attribute__): Likewise.
63104         * lib/xalloc.h (__attribute__): Likewise.
63105         * lib/xprintf.h (__attribute__): Likewise.
63106         * lib/xstrtol.h (__attribute__): Likewise.
63107         * lib/xvasprintf.h (__attribute__): Likewise.
63108
63109 2008-01-12  Bruno Haible  <bruno@clisp.org>
63110
63111         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
63112         * doc/glibc-headers/a.out.texi: New file.
63113         * doc/glibc-headers/aliases.texi: New file.
63114         * doc/glibc-headers/alloca.texi: New file.
63115         * doc/glibc-headers/ar.texi: New file.
63116         * doc/glibc-headers/argp.texi: New file.
63117         * doc/glibc-headers/argz.texi: New file.
63118         * doc/glibc-headers/byteswap.texi: New file.
63119         * doc/glibc-headers/crypt.texi: New file.
63120         * doc/glibc-headers/endian.texi: New file.
63121         * doc/glibc-headers/envz.texi: New file.
63122         * doc/glibc-headers/err.texi: New file.
63123         * doc/glibc-headers/error.texi: New file.
63124         * doc/glibc-headers/execinfo.texi: New file.
63125         * doc/glibc-headers/fpu_control.texi: New file.
63126         * doc/glibc-headers/fstab.texi: New file.
63127         * doc/glibc-headers/fts.texi: New file.
63128         * doc/glibc-headers/getopt.texi: New file.
63129         * doc/glibc-headers/ieee754.texi: New file.
63130         * doc/glibc-headers/ifaddrs.texi: New file.
63131         * doc/glibc-headers/libintl.texi: New file.
63132         * doc/glibc-headers/mcheck.texi: New file.
63133         * doc/glibc-headers/mntent.texi: New file.
63134         * doc/glibc-headers/obstack.texi: New file.
63135         * doc/glibc-headers/paths.texi: New file.
63136         * doc/glibc-headers/printf.texi: New file.
63137         * doc/glibc-headers/pty.texi: New file.
63138         * doc/glibc-headers/resolv.texi: New file.
63139         * doc/glibc-headers/shadow.texi: New file.
63140         * doc/glibc-headers/sysexits.texi: New file.
63141         * doc/glibc-headers/ttyent.texi: New file.
63142
63143 2008-01-12  Jim Meyering  <meyering@redhat.com>
63144
63145         announce-gen: emit Gnulib's git-based version string.
63146         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
63147         New option --gnulib-version=V, where V is expected to be
63148         the output of running git describe in the gnulib directory.
63149         (get_tool_versions): Request feedback on xdelta.  I suspect it's
63150         not useful, and plan to stop publishing an xdelta file with each
63151         coreutils release.
63152
63153         * build-aux/announce-gen: Also check for lzma-compressed files.
63154
63155 2008-01-11  Bruno Haible  <bruno@clisp.org>
63156
63157         * tests/test-memmem.c (main): Increase maximum allowed time.
63158         * tests/test-strstr.c (main): Likewise.
63159
63160 2008-01-11  Bruno Haible  <bruno@clisp.org>
63161
63162         * doc/functions/memmem.texi: Add more precisions about platforms.
63163         * doc/functions/strstr.texi: Likewise.
63164
63165 2008-01-10  Eric Blake  <ebb9@byu.net>
63166
63167         * m4/strstr.m4: Delete cruft from copy-n-paste.
63168         Reported by Bruno Haible.
63169
63170 2008-01-10  Bruno Haible  <bruno@clisp.org>
63171
63172         Make c-strstr rely on strstr.
63173         * lib/c-strstr.c: Don't include str-kmp.h.
63174         (c_strstr): Define in terms of strstr.
63175         * modules/c-strstr (Files): Remove lib/str-kmp.h.
63176         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
63177
63178 2008-01-10  Bruno Haible  <bruno@clisp.org>
63179
63180         * doc/gnulib.texi (String Functions in C Locale): New section.
63181         * doc/c-ctype.texi: New file.
63182         * doc/c-strcase.texi: New file.
63183         * doc/c-strcaseeq.texi: New file.
63184         * doc/c-strcasestr.texi: New file.
63185         * doc/c-strstr.texi: New file.
63186         * doc/c-strtod.texi: New file.
63187         * doc/c-strtold.texi: New file.
63188
63189 2008-01-10  Eric Blake  <ebb9@byu.net>
63190
63191         * lib/relocatable.h: Fix a comment.
63192
63193 2008-01-10  Eric Blake  <ebb9@byu.net>
63194
63195         Share two-way algorithm.
63196         * lib/str-two-way.h: New file, merged from...
63197         * lib/memmem.c: ...here...
63198         * lib/strstr.c: ...and here.
63199         * modules/memmem (Files): Use it.
63200         * modules/strstr (Files): Likewise.
63201
63202         Avoid quadratic strstr implementations.
63203         * lib/strstr.c: New file.
63204         * m4/strstr.m4: Likewise.
63205         * modules/strstr: Likewise.
63206         * modules/strstr-tests: Likewise.
63207         * tests/test-strstr.c: Likewise.
63208         * lib/string.in.h (rpl_strstr): Declare.
63209         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
63210         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
63211         * modules/string (Makefile.am): Likewise.
63212         * MODULES.html.sh (string handling): Mention new module.
63213         * doc/functions/strstr.texi (strstr): Document the bug.
63214
63215 2008-01-10  Bruno Haible  <bruno@clisp.org>
63216
63217         * lib/relocatable.h (relocate): State whether result is freshly
63218         allocated or not.
63219         * lib/relocatable.c (relocate): Return a freshly allocated string
63220         instead of a pointer to a privately held string.
63221         Reported by Sylvain Beucler <beuc@gnu.org>.
63222
63223 2008-01-10  Colin Watson  <cjwatson@debian.org>
63224
63225         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
63226         s/S_ISNLK/S_ISLNK/.
63227
63228 2008-01-09  Bruno Haible  <bruno@clisp.org>
63229
63230         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
63231         and other files.
63232         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
63233         if it's only a guess.
63234         * modules/memmem: Simplify by depending on memmem-simple.
63235
63236 2008-01-09  Bruno Haible  <bruno@clisp.org>
63237
63238         Work around OpenBSD 4.0 tdelete() bug.
63239         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
63240         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
63241         macros and don't redefine the enum values.
63242         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
63243         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
63244         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
63245
63246 2008-01-09  Bruno Haible  <bruno@clisp.org>
63247
63248         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
63249         (main): Don't perform the tests if setlocale did not install a UTF-8
63250         locale. Needed on OpenBSD 4.0.
63251         * modules/wcwidth-tests (Depends-on): Add localcharset.
63252
63253 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63254
63255         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
63256         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
63257         * NEWS: announce this.
63258         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
63259
63260 2008-01-09  Simon Josefsson  <simon@josefsson.org>
63261         and Eric Blake  <ebb9@byu.net>
63262
63263         Add memmem-simple module.
63264         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
63265         (gl_FUNC_MEMMEM): Separate performance from presence checks.
63266         * modules/memmem-simple: New file.
63267         * modules/memmem (Description): Tweak.
63268         * MODULES.html.sh (string handling): Mention new module.
63269         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
63270         addressed by memmem-simple.
63271         * NEWS: Document the difference.
63272
63273 2008-01-09  Eric Blake  <ebb9@byu.net>
63274
63275         Give gcc some memmem optimization hints.
63276         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
63277         (strcasestr): Declare as pure.
63278         * modules/memmem (Maintainer): Claim my implementation.
63279
63280 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63281
63282         Support AIX 6.1 and higher.
63283         * build-aux/config.libpath: Likewise.
63284         * build-aux/config.rpath: Likewise.
63285
63286 2008-01-08  Jim Meyering  <meyering@redhat.com>
63287             Bruno Haible  <bruno@clisp.org>
63288
63289         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
63290         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
63291         Reported by Peter Fales in
63292         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
63293
63294 2008-01-08  Bruno Haible  <bruno@clisp.org>
63295
63296         * modules/unictype/category-of (Depends-on): Add
63297         unictype/category-none.
63298         * modules/unictype/category-and-tests (Depends-on): Add
63299         unictype/category-{L,N,Lu,Nd}.
63300         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
63301         * modules/unictype/category-or-tests (Depends-on): Add
63302         unictype/category-{L,N}.
63303         * modules/unictype/category-name-tests (Depends-on): Add
63304         unictype/category-{Z,Nl}.
63305         Reported by Simon Josefsson.
63306
63307 2008-01-08  Bruno Haible  <bruno@clisp.org>
63308
63309         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
63310         convention better.
63311         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
63312         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
63313         Reported by Peter Miller <millerp@canb.auug.org.au>.
63314
63315 2008-01-08  Eric Blake  <ebb9@byu.net>
63316
63317         Rewrite memmem to guarantee linear complexity without malloc.
63318         * lib/memmem.c (memmem): Use Two-Way rather than
63319         Knuth-Morris-Pratt, to allow O(1) space usage.
63320         (critical_factorization, two_way_short_needle)
63321         (two_way_long_needle): New functions.
63322         (knuth_morris_pratt): Delete.
63323         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63324         Add stdint.
63325         * tests/test-memmem.c (main): Add tests for periodic needle and
63326         sublinear performance.
63327         * doc/functions/memmem.texi (memmem): Document other deficiencies
63328         in cygwin and older glibc.
63329
63330 2008-01-08  Bruno Haible  <bruno@clisp.org>
63331
63332         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63333         augmentation.
63334
63335 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63336
63337         Add a configure time option: --disable-acl.
63338         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63339         AC_ARG_ENABLE(acl).
63340
63341 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63342
63343         * tests/test-localename.c: Don't include obsolete "setenv.h".
63344
63345         * modules/localename-tests (Depends-on): Need unsetenv.
63346
63347 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63348
63349         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63350
63351 2008-01-06  Colin Watson  <cjwatson@debian.org>
63352
63353         * users.txt: Add man-db.
63354
63355 2008-01-07  Bruno Haible  <bruno@clisp.org>
63356
63357         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63358         previous section name.
63359
63360 2008-01-07  Bruno Haible  <bruno@clisp.org>
63361
63362         * lib/progname.c (set_program_name): Don't strip off a leading
63363         "lt-" prefix outside a .libs directory.
63364         Suggested by Paul Eggert.
63365
63366 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63367             Bruno Haible  <bruno@clisp.org>
63368
63369         Improve memory cleanup in 'relocatable' module.
63370         * lib/relocatable.h (compute_curr_prefix): Change return type to
63371         'char *'.
63372         * lib/relocatable.c (compute_curr_prefix): Change return type to
63373         'char *'. Free curr_installdir after use.
63374         (relocate): Free curr_prefix_better after use.
63375         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63376
63377 2008-01-01  Bruno Haible  <bruno@clisp.org>
63378
63379         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63380         failure on older glibc systems.
63381         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63382
63383 2008-01-05  Eric Blake  <ebb9@byu.net>
63384
63385         Avoid quadratic system memmem.
63386         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
63387         Reported by Ralf Wildenhues.
63388
63389         Fix memmem test for mingw.
63390         * modules/memmem-tests (configure.ac): Check for alarm.
63391         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
63392         it.
63393         * doc/functions/memmem.texi: New file.
63394         * doc/gnulib.texi (Function Substitutes): Add memmem.
63395         Reported by Bruno Haible.
63396
63397 2008-01-04  Bruno Haible  <bruno@clisp.org>
63398
63399         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63400         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63401         gl_HEADER_STRING_H_DEFAULTS.
63402
63403 2008-01-04  Eric Blake  <ebb9@byu.net>
63404
63405         Shorten duration of memmem test.
63406         * tests/test-memmem.c (main): Use alarm to declare failure if test
63407         is taking too long.
63408         Reported by Ralf Wildenhues.
63409
63410 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63411
63412         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63413         string, needed by strerror.
63414
63415 2008-01-03  Colin Watson  <cjwatson@debian.org>
63416             Bruno Haible  <bruno@clisp.org>
63417
63418         * doc/gnulib-tool.texi (Localization): New section.
63419
63420 2008-01-02  Bruno Haible  <bruno@clisp.org>
63421
63422         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63423         variables to 'unsigned char *' type.
63424         Reported by Paul Eggert.
63425
63426 2008-01-02  Jim Meyering  <jim@meyering.net>
63427
63428         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63429
63430 2007-12-31  Jim Meyering  <jim@meyering.net>
63431
63432         Avoid use of private FTS type name.
63433         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63434
63435 2007-12-30  Karl Berry  <karl@gnu.org>
63436
63437         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63438         work around defect in Texinfo and/or the standalone Info browser.
63439
63440 2007-12-30  Bruno Haible  <bruno@clisp.org>
63441
63442         Unify 5 copies of the KMP code.
63443         * lib/str-kmp.h: New file.
63444         * lib/c-strcasestr.c: Include str-kmp.h.
63445         (knuth_morris_pratt): Remove function.
63446         (c_strcasestr): Update.
63447         * lib/c-strstr.c: Include str-kmp.h.
63448         (knuth_morris_pratt): Remove function.
63449         (c_strcasestr): Update.
63450         * lib/mbscasestr.c: Include str-kmp.h.
63451         (knuth_morris_pratt_unibyte): Remove function.
63452         * lib/mbsstr.c: Include str-kmp.h.
63453         (knuth_morris_pratt_unibyte): Remove function.
63454         * lib/strcasestr.c: Include str-kmp.h.
63455         (knuth_morris_pratt): Remove function.
63456         (strcasestr): Update.
63457         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63458         * modules/c-strstr (Files): Likewise.
63459         * modules/mbscasestr (Files): Likewise.
63460         * modules/mbsstr (Files): Likewise.
63461         * modules/strcasestr (Files): Likewise.
63462         Suggested by Paul Eggert.
63463
63464 2007-12-30  Bruno Haible  <bruno@clisp.org>
63465
63466         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63467         defined.
63468
63469 2007-12-30  Bruno Haible  <bruno@clisp.org>
63470
63471         * lib/xmalloca.h: Include xalloc.h.
63472         (xnmalloca): New macro.
63473
63474 2007-12-30  Bruno Haible  <bruno@clisp.org>
63475
63476         * lib/malloca.h (nmalloca): New macro.
63477         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
63478         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
63479         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
63480         knuth_morris_pratt_multibyte): Likewise.
63481         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
63482         knuth_morris_pratt_multibyte): Likewise.
63483         * lib/memmem.c (knuth_morris_pratt): Likewise.
63484         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
63485
63486 2007-12-25  Bruno Haible  <bruno@clisp.org>
63487
63488         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
63489         * lib/glob.c: Don't include openat.h.
63490         (link_exists2_p): Add back the code that deals with the
63491         !GLOB_ALTDIRFUNC case.
63492         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
63493         let it do the filename concatenation.
63494         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
63495         * modules/glob (Depends-on): Remove openat.
63496
63497 2007-12-31  Bruno Haible  <bruno@clisp.org>
63498
63499         * modules/dirfd (License): Change to LGPLv2+.
63500         Approved by Jim Meyering.
63501
63502 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63503
63504         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
63505         when multiplying M by sizeof (size_t).
63506
63507 2007-12-10  Martin Lambers  <marlam@marlam.de>
63508
63509         Override getpagesize on mingw.
63510         * lib/getpagesize.c: New file.
63511         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
63512         * modules/getpagesize (Files): Add lib/getpagesize.c.
63513         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
63514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63515         REPLACE_GETPAGESIZE.
63516         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
63517
63518 2007-12-25  Bruno Haible  <bruno@clisp.org>
63519
63520         * modules/localcharset (Notice): New field.
63521         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
63522         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
63523
63524 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63525             Bruno Haible  <bruno@clisp.org>
63526
63527         Avoid using the syntax symbol() in formatted documentation.
63528         * MODULES.html.sh (func_module): When replacing symbol() with a
63529         hyperlink, remove the parentheses. Show an error if some remain.
63530         Recognize and render the '...' syntax.
63531         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
63532         Rework. Add paragraph about GCC's inlining.
63533         * doc/alloca.texi: Likewise.
63534         * doc/error.texi: Remove parentheses from symbol reference.
63535         * doc/gnulib-intro.texi: Likewise.
63536         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
63537         * modules/fnmatch (Description): Reword to say "the ... function".
63538         * modules/full-read (Description): Likewise.
63539         * modules/full-write (Description): Likewise.
63540         * modules/safe-read (Description): Likewise.
63541         * modules/safe-write (Description): Likewise.
63542         * modules/strchrnul (Description): Likewise.
63543         * modules/trim (Description): Likewise.
63544         * modules/error (Description): Remove parentheses from symbol
63545         references.
63546         * modules/verror (Description): Likewise.
63547         Reported by Karl Berry.
63548
63549 2007-12-25  Bruno Haible  <bruno@clisp.org>
63550
63551         Fixup after 2007-10-16 commit.
63552         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
63553
63554 2007-12-24  Bruno Haible  <bruno@clisp.org>
63555
63556         Make --enable-relocatable work with DESTDIR.
63557         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
63558         to compute installdir from destprog.
63559         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
63560         also set the RELOC_DESTDIR variable.
63561         Reported by Левашев Иван <octagram@bluebottle.com>.
63562
63563 2007-12-24  Bruno Haible  <bruno@clisp.org>
63564
63565         Fix link error due to xalloc_die().
63566         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
63567         of xreadlink.
63568         * lib/relocwrapper.c: Update comments.
63569         * build-aux/install-reloc: Remove xreadlink.c from file list.
63570         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
63571         xreadlink.c.
63572         Reported by Левашев Иван <octagram@bluebottle.com>.
63573
63574 2007-12-24  Bruno Haible  <bruno@clisp.org>
63575
63576         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
63577         * lib/setenv.h: Remove file.
63578         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
63579         lib/setenv.h.
63580         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
63581         (Depends-on): Add stdlib.
63582         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
63583         gl_FUNC_UNSETENV.
63584         (Include): Replace setenv.h with <stdlib.h>.
63585         * modules/unsetenv: New file.
63586         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
63587         * lib/unsetenv.c: Include <stdlib.h> first.
63588         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
63589         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
63590         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
63591         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
63592         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
63593         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
63595         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63596         * doc/functions/unsetenv.texi: Update.
63597         * modules/xsetenv (Depends-on): Add unsetenv.
63598         * modules/getdate (Depends-on): Likewise.
63599         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
63600         * lib/xsetenv.c: Don't include setenv.h.
63601         * lib/getdate.y: Likewise.
63602         * lib/relocwrapper.c: Likewise.
63603         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
63604         (Depends-on): Add stdlib.
63605         * NEWS: Mention the changes.
63606         Reported by Левашев Иван <octagram@bluebottle.com>.
63607
63608 2007-12-23  Bruno Haible  <bruno@clisp.org>
63609
63610         * lib/memmem.c (memmem): Use lowercase variable names. Tab
63611         indentation.
63612
63613 2007-12-23  Bruno Haible  <bruno@clisp.org>
63614
63615         * lib/c-strcasestr.c: Add more comments.
63616         * lib/c-strstr.c: Likewise.
63617         * lib/mbscasestr.c: Likewise.
63618         * lib/mbsstr.c: Likewise.
63619         * lib/strcasestr.c: Likewise.
63620         * lib/memmem.c: Likewise.
63621
63622 2007-12-23  Bruno Haible  <bruno@clisp.org>
63623
63624         * tests/test-memmem.c: Include <string.h> first.
63625
63626 2007-12-22  Bruno Haible  <bruno@clisp.org>
63627
63628         * gnulib-tool (func_create_testdir): Change $auxdir while generating
63629         the contents of $testsbase.
63630         Reported by Ralf Wildenhues.
63631
63632 2007-12-22  Bruno Haible  <bruno@clisp.org>
63633
63634         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
63635         two variables local_ldadd_before, local_ldadd_last.
63636
63637 2007-12-20  Eric Blake  <ebb9@byu.net>
63638
63639         Work around circular library issue when cross-compiling.
63640         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
63641         that progname.o does not need to pull in rpl_memcmp.
63642
63643 2007-12-19  Eric Blake  <ebb9@byu.net>
63644
63645         Fix memmem to avoid O(n^2) worst-case complexity.
63646         * lib/memmem.c (knuth_morris_pratt): New function.
63647         (memmem): Use it if first few naive iterations fail.
63648         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
63649         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
63650         * modules/memchr (License): Likewise.
63651         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
63652         malloca.
63653         * tests/test-memmem.c: Rewrite, borrowing ideas from
63654         test-mbsstr1.c; the old version wouldn't even compile!
63655         * modules/memmem-tests: New file.
63656         * lib/string.in.h (rpl_memmem): Add declaration.
63657         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
63658         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
63659         REPLACE_MEMMEM.
63660
63661 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63662
63663         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
63664         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
63665         before any system include files, and undef after them all.  This
63666         should fix a problem on VMS reported by John E. Malmberg in
63667         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
63668
63669 2007-12-17  Eric Blake  <ebb9@byu.net>
63670
63671         Revert addition of verify, for BSD/OS.
63672         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
63673         can't handle large files, for the sake of obsolete platforms.
63674         * modules/fseeko (Depends-on): Remove verify.
63675         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
63676         * doc/functions/ftello.texi (ftello): Likewise.
63677         * doc/functions/fgetpos.texi (fgetpos): Likewise.
63678         Reported by Larry Jones.
63679
63680 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
63681
63682         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
63683         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
63684
63685 2007-12-17  Jim Meyering  <meyering@redhat.com>
63686
63687         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
63688         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
63689         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
63690         * modules/getcwd (Depends-on): Add openat.
63691         Reported by Petr Salinger.
63692
63693 2007-12-17  Bruno Haible  <bruno@clisp.org>
63694
63695         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
63696         avoid a segmentation fault of the configure test on x86_64 systems.
63697
63698 2007-12-15  Jim Meyering  <meyering@redhat.com>
63699
63700         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
63701
63702 2007-12-13  Eric Blake  <ebb9@byu.net>
63703
63704         Another fseek test.
63705         * tests/test-fseek.c (main): Also test ungetc handling.
63706         * tests/test-fseeko.c (main): Likewise.
63707         * modules/fseeko (Depends-on): Add verify.
63708         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
63709         large.
63710         Reported by Larry Jones.
63711
63712         Fix fseeko on mingw.
63713         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
63714         seek.
63715
63716         Beef up fseek tests.
63717         * tests/test-fseek.c (main): Also test eof handling.
63718         * tests/test-fseeko.c (main): Likewise.
63719         Reported by Larry Jones.
63720
63721 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
63722
63723         Fix fseeko on BSD-based platforms.
63724         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
63725         successful seek.
63726
63727 2007-12-12  Eric Blake  <ebb9@byu.net>
63728
63729         Allow circular dependency of separate libtests.a
63730         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
63731         when use_libtests.
63732
63733 2007-12-11  Eric Blake  <ebb9@byu.net>
63734
63735         Fix bug with -0.0L in previous patch.
63736         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
63737         * tests/test-isnan.c (main): Also test on zeroes.
63738         * tests/test-isnanf.c (main): Likewise.
63739         * tests/test-isnanl.h (main): Likewise.
63740
63741         Detect pseudo-denormals on x86 even when cross-compiling.
63742         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
63743         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
63744         invalid bit patterns that happen to satisfy ==.
63745
63746         Avoid link failures with separate libtests.a.
63747         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
63748         last, to satisfy circular dependencies.
63749
63750 2007-12-11  Eric Blake  <ebb9@byu.net>
63751         and Bruno Haible  <bruno@clisp.org>
63752
63753         Fix OpenBSD 4.0 <float.h> handling of long double.
63754         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
63755         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
63756         * doc/headers/float.texi (float.h): Document OpenBSD bug.
63757
63758 2007-12-11  Jim Meyering  <meyering@redhat.com>
63759
63760         * users.txt: Add libvirt.
63761
63762         Support versions of autoconf prior to 2.59c.
63763         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
63764         if it is not already defined.
63765
63766 2007-12-09  Bruno Haible  <bruno@clisp.org>
63767
63768         Let 'gnulib-tool --import' collect sources needed for the tests in
63769         tests/ rather than in lib/.
63770         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
63771         argument. If true, add rules to generate libtests.a, and put libtests.a
63772         into $(LDADD). Consider source files in subdirectories and set
63773         uses_subdirs.
63774         (func_emit_initmacro_start, func_emit_initmacro_end,
63775         func_emit_initmacro_done): Pass all arguments explicitly.
63776         (func_import): Determine two module lists main_modules,
63777         testsrelated_modules. Determine use_libtests. Determine two variables
63778         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
63779         instead of just sed_transform_lib_file. Determine two variables
63780         main_files and testsrelated_files. Compute 'files' as the union of
63781         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
63782         func_add_or_update. In the generated gnulib-comp.m4, collect the
63783         object files for tests/ in different variables than those for lib/.
63784         Substitute LIBTESTS_LIBDEPS.
63785         (func_create_testdir): Combine the uses_subdirs results from
63786         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
63787
63788 2007-12-09  Bruno Haible  <bruno@clisp.org>
63789
63790         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
63791         the build-aux directory.
63792
63793 2007-12-09  Bruno Haible  <bruno@clisp.org>
63794
63795         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
63796         introduced on 2006-09-09.
63797
63798 2007-12-07  Jim Meyering  <meyering@redhat.com>
63799
63800         Let these macros work also with autoconf-2.59.
63801         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
63802         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
63803         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63804
63805 2007-12-06  Jim Meyering  <meyering@redhat.com>
63806
63807         Avoid a configure-time syntax error in gl_FUNC_ACL.
63808         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
63809         function in each branch, before testing the cache variable.
63810
63811 2007-12-04  Eric Blake  <ebb9@byu.net>
63812
63813         Make scripts executable.
63814         * build-aux/config.guess: Add execute permissions.
63815         * build-aux/config.sub: Likewise.
63816         * build-aux/gendocs.sh: Likewise.
63817
63818         Fix frexp on mingw.
63819         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
63820         cross-compiling.
63821         * doc/functions/frexp.texi (frexp): Document the bug.
63822
63823         Make cygwin fseeko check more reliable.
63824         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
63825         version numbers, rather than unrelated feature check.
63826         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
63827         * doc/functions/ftello.texi (ftello): Likewise.
63828         Reported by Bruno Haible.
63829
63830         * m4/strerror.m4: Bump version number.
63831
63832 2007-12-03  Bruno Haible  <bruno@clisp.org>
63833
63834         * doc/functions/mprotect.texi: Mention the mingw problem.
63835
63836 2007-12-03  Eric Blake  <ebb9@byu.net>
63837
63838         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
63839         REPLACE_STRERROR is initialized before this macro.
63840
63841 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63842
63843         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
63844         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
63845         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
63846         put -lsec in even for programs other than 'ls'.  This fixes a problem
63847         for gettext reported by Bruno Haible in
63848         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
63849         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
63850         Add support for Solaris 10.  This isn't efficient, but should get the
63851         job done for now.
63852
63853 2007-12-03  James Youngman  <jay@gnu.org>
63854
63855         * doc/regexprops-generic.texi: change "an close-group" to "a
63856         close-group" and "illegal" to "not allowed".
63857
63858 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63859
63860         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
63861         pr_byname.h. Needed for the rare case when the maintainer has done
63862         "make maintainer-clean" in the source directory and then attempts a
63863         build outside the source directory.
63864         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
63865         scripts_byname.h.
63866
63867 2007-12-02  Martin Lambers <marlam@marlam.de>
63868             Bruno Haible  <bruno@clisp.org>
63869
63870         * lib/getpagesize.h: Remove file.
63871         * lib/unistd.in.h: Include declaration of getpagesize here.
63872         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
63873         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
63874         HAVE_SYS_PARAM_H.
63875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
63876         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63877         * modules/getpagesize (Files): Remove lib/getpagesize.h.
63878         (Depends-on): Add unistd.
63879         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63880         (Include): Use <unistd.h> instead of getpagesize.h.
63881         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
63882         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63883         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
63884         gl_GETPAGESIZE invocation, already handled by module dependency.
63885         * lib/pagealign_alloc.c: Don't include getpagesize.h.
63886
63887 2007-12-02  Bruno Haible  <bruno@clisp.org>
63888
63889         * modules/strings-tests: New file.
63890         * tests/test-strings.c: New file.
63891
63892         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
63893         * lib/strings.in.h: New file.
63894         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
63895         * m4/strings_h.m4: New file.
63896         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
63897         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
63898         * modules/strings: New file.
63899         * modules/string (Makefile.am): Update.
63900         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
63901         Reported by Karl Berry.
63902
63903 2007-12-01  Eric Blake  <ebb9@byu.net>
63904
63905         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
63906         accommodate fix in cygwin 1.5.25.
63907
63908 2007-12-01  Jim Meyering  <meyering@redhat.com>
63909
63910         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
63911         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
63912         that would inhibit utf8-optimization of a regexp containing line-
63913         or buffer-anchors, e.g., `^', `$'.
63914
63915 2007-11-30  Bruno Haible  <bruno@clisp.org>
63916
63917         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
63918         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
63919         glthread_recursive_lock_init.
63920         * lib/lock.c (glthread_recursive_lock_init)
63921         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
63922         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63923
63924 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
63925
63926         New function qset_acl, like set_acl but with syscall semantics.
63927         * lib/acl.h (qset_acl): New decl.
63928         * lib/acl.c (qset_acl): New function.
63929         (set_acl): Use new function.  Use more-consistent diagnostics.
63930
63931 2007-11-28  Jim Meyering  <meyering@redhat.com>
63932
63933         * modules/physmem (License): Change from GPL to LGPLv2+.
63934
63935 2007-11-26  Bruno Haible  <bruno@clisp.org>
63936
63937         * lib/vasnprintf.c (decode_long_double): Don't abort if the
63938         'long double' type has excess precision.
63939         Reported by Jim Meyering in
63940         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
63941
63942 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63943
63944         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
63945         Sync from <http://gnu.org/licenses>.
63946         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
63947         with license text from same location.
63948         * doc/maintain.texi, doc/standards.texi:  Sync from
63949         <http://savannah.gnu.org/projects/gnustandards>.
63950
63951 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
63952         and Jim Meyering  <meyering@redhat.com>
63953
63954         Adjust getdate' grammar to accept a slightly more regular language.
63955         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
63956         Before, the former was rejected.
63957         * lib/getdate.y (digits_to_date_time): New function, factored
63958         out of ...
63959         (number): ...here.  Just call digits_to_date_time.
63960         (hybrid): New non-terminal to handle an <unsigned number,
63961         signed relative offset> sequence consistently.
63962
63963 2007-11-18  Jim Meyering  <meyering@redhat.com>
63964
63965         Pull my changes from coreutils:
63966         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
63967         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
63968         use of $gnulib_tool_option_extras, so that it's separated from the
63969         preceding argument.
63970
63971         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
63972         * build-aux/bootstrap (cp_mark_as_generated): Create any required
63973         parent destination directories before copying a file into place.
63974
63975 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63976
63977         bootstrap: work also with 4-argument variant of AC_INIT
63978         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
63979
63980 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63981
63982         Port test-getaddrinfo to Solaris.
63983         Problem reported by Bruno Haible in
63984         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
63985         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
63986         explanation of setting 'hints'.
63987         Don't reject an implementation merely because it returns EAI_SERVICE.
63988         (EAI_SERVICE): Define to 0 if not defined.
63989
63990 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63991
63992         The license of gnu-make and posix-shell is now "GPLed build tool".
63993         * modules/gnu-make (License): Likewise.
63994         * modules/posix-shell (License): Likewise.
63995
63996         New module posix-shell, for determining a POSIX shell
63997         or perhaps something that is close enough to a POSIX shell.
63998         * m4/posix-shell.m4: New file.
63999         * modules/posix-shell: New file.
64000
64001         * MODULES.html.sh: Mention new module.
64002
64003         New module gnu-make, for determining whether we're using GNU Make.
64004         * m4/gnu-make.m4: New file.
64005         * modules/gnu-make: New file.
64006         * MODULES.html.sh: Mention new module.
64007
64008 2007-11-14  Jim Meyering  <meyering@redhat.com>
64009
64010         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
64011         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
64012         use this macro to create a function _definition_.
64013         Remove useless "#undef ARGMATCH_DIE".
64014
64015 2007-11-14  Bruno Haible  <bruno@clisp.org>
64016
64017         * lib/config.charset: Update for OpenBSD 4.1.
64018         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
64019
64020 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
64021
64022         Document 64-bit #if problems in stdint.texi.
64023         * doc/headers/stdint.texi (stdint.h): Mention problems with
64024         64-bit-#if, and how to work around them.
64025
64026         Don't insist on 'long long int' support in the preprocessor.  It
64027         breaks too many things.  For example, PRIdMAX still uses a 'long
64028         long int' format with the latest Sun compiler, even though
64029         HAVE_LONG_LONG_INT isn't defined due to that compiler's
64030         preprocessor problem.  This causes the latest coreutils to dump
64031         core on Solaris 10 sparc with the Sun C compiler.
64032         Instead, fix the 2007-10-16 problem in a different way, by evaluating
64033         the troublesome expressions at configure-time, not at #if-time.
64034         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
64035         preprocessor.
64036         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
64037         compile-time C checks, done at 'configure'-time.
64038         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
64039         * modules/inttypes (Makefile): Substitute the new symbols that
64040         gl_INTTYPES_H now generates.
64041         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
64042
64043 2007-11-12  Bruno Haible  <bruno@clisp.org>
64044
64045         Tests for Unicode character classification functions.
64046
64047         * modules/unictype/bidicategory-byname-tests: New file.
64048         * modules/unictype/bidicategory-name-tests: New file.
64049         * modules/unictype/bidicategory-of-tests: New file.
64050         * modules/unictype/bidicategory-test-tests: New file.
64051         * modules/unictype/block-list-tests: New file.
64052         * modules/unictype/block-of-tests: New file.
64053         * modules/unictype/block-test-tests: New file.
64054         * modules/unictype/category-C-tests: New file.
64055         * modules/unictype/category-Cc-tests: New file.
64056         * modules/unictype/category-Cf-tests: New file.
64057         * modules/unictype/category-Cn-tests: New file.
64058         * modules/unictype/category-Co-tests: New file.
64059         * modules/unictype/category-Cs-tests: New file.
64060         * modules/unictype/category-L-tests: New file.
64061         * modules/unictype/category-Ll-tests: New file.
64062         * modules/unictype/category-Lm-tests: New file.
64063         * modules/unictype/category-Lo-tests: New file.
64064         * modules/unictype/category-Lt-tests: New file.
64065         * modules/unictype/category-Lu-tests: New file.
64066         * modules/unictype/category-M-tests: New file.
64067         * modules/unictype/category-Mc-tests: New file.
64068         * modules/unictype/category-Me-tests: New file.
64069         * modules/unictype/category-Mn-tests: New file.
64070         * modules/unictype/category-N-tests: New file.
64071         * modules/unictype/category-Nd-tests: New file.
64072         * modules/unictype/category-Nl-tests: New file.
64073         * modules/unictype/category-No-tests: New file.
64074         * modules/unictype/category-P-tests: New file.
64075         * modules/unictype/category-Pc-tests: New file.
64076         * modules/unictype/category-Pd-tests: New file.
64077         * modules/unictype/category-Pe-tests: New file.
64078         * modules/unictype/category-Pf-tests: New file.
64079         * modules/unictype/category-Pi-tests: New file.
64080         * modules/unictype/category-Po-tests: New file.
64081         * modules/unictype/category-Ps-tests: New file.
64082         * modules/unictype/category-S-tests: New file.
64083         * modules/unictype/category-Sc-tests: New file.
64084         * modules/unictype/category-Sk-tests: New file.
64085         * modules/unictype/category-Sm-tests: New file.
64086         * modules/unictype/category-So-tests: New file.
64087         * modules/unictype/category-Z-tests: New file.
64088         * modules/unictype/category-Zl-tests: New file.
64089         * modules/unictype/category-Zp-tests: New file.
64090         * modules/unictype/category-Zs-tests: New file.
64091         * modules/unictype/category-and-not-tests: New file.
64092         * modules/unictype/category-and-tests: New file.
64093         * modules/unictype/category-byname-tests: New file.
64094         * modules/unictype/category-name-tests: New file.
64095         * modules/unictype/category-none-tests: New file.
64096         * modules/unictype/category-of-tests: New file.
64097         * modules/unictype/category-or-tests: New file.
64098         * modules/unictype/category-test-withtable-tests: New file.
64099         * modules/unictype/combining-class-tests: New file.
64100         * modules/unictype/ctype-alnum-tests: New file.
64101         * modules/unictype/ctype-alpha-tests: New file.
64102         * modules/unictype/ctype-blank-tests: New file.
64103         * modules/unictype/ctype-cntrl-tests: New file.
64104         * modules/unictype/ctype-digit-tests: New file.
64105         * modules/unictype/ctype-graph-tests: New file.
64106         * modules/unictype/ctype-lower-tests: New file.
64107         * modules/unictype/ctype-print-tests: New file.
64108         * modules/unictype/ctype-punct-tests: New file.
64109         * modules/unictype/ctype-space-tests: New file.
64110         * modules/unictype/ctype-upper-tests: New file.
64111         * modules/unictype/ctype-xdigit-tests: New file.
64112         * modules/unictype/decimal-digit-tests: New file.
64113         * modules/unictype/digit-tests: New file.
64114         * modules/unictype/mirror-tests: New file.
64115         * modules/unictype/numeric-tests: New file.
64116         * modules/unictype/property-alphabetic-tests: New file.
64117         * modules/unictype/property-ascii-hex-digit-tests: New file.
64118         * modules/unictype/property-bidi-arabic-digit-tests: New file.
64119         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
64120         * modules/unictype/property-bidi-block-separator-tests: New file.
64121         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
64122         * modules/unictype/property-bidi-common-separator-tests: New file.
64123         * modules/unictype/property-bidi-control-tests: New file.
64124         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
64125         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
64126         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
64127         * modules/unictype/property-bidi-european-digit-tests: New file.
64128         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
64129         * modules/unictype/property-bidi-left-to-right-tests: New file.
64130         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
64131         * modules/unictype/property-bidi-other-neutral-tests: New file.
64132         * modules/unictype/property-bidi-pdf-tests: New file.
64133         * modules/unictype/property-bidi-segment-separator-tests: New file.
64134         * modules/unictype/property-bidi-whitespace-tests: New file.
64135         * modules/unictype/property-byname-tests: New file.
64136         * modules/unictype/property-combining-tests: New file.
64137         * modules/unictype/property-composite-tests: New file.
64138         * modules/unictype/property-currency-symbol-tests: New file.
64139         * modules/unictype/property-dash-tests: New file.
64140         * modules/unictype/property-decimal-digit-tests: New file.
64141         * modules/unictype/property-default-ignorable-code-point-tests: New file.
64142         * modules/unictype/property-deprecated-tests: New file.
64143         * modules/unictype/property-diacritic-tests: New file.
64144         * modules/unictype/property-extender-tests: New file.
64145         * modules/unictype/property-format-control-tests: New file.
64146         * modules/unictype/property-grapheme-base-tests: New file.
64147         * modules/unictype/property-grapheme-extend-tests: New file.
64148         * modules/unictype/property-grapheme-link-tests: New file.
64149         * modules/unictype/property-hex-digit-tests: New file.
64150         * modules/unictype/property-hyphen-tests: New file.
64151         * modules/unictype/property-id-continue-tests: New file.
64152         * modules/unictype/property-id-start-tests: New file.
64153         * modules/unictype/property-ideographic-tests: New file.
64154         * modules/unictype/property-ids-binary-operator-tests: New file.
64155         * modules/unictype/property-ids-trinary-operator-tests: New file.
64156         * modules/unictype/property-ignorable-control-tests: New file.
64157         * modules/unictype/property-iso-control-tests: New file.
64158         * modules/unictype/property-join-control-tests: New file.
64159         * modules/unictype/property-left-of-pair-tests: New file.
64160         * modules/unictype/property-line-separator-tests: New file.
64161         * modules/unictype/property-logical-order-exception-tests: New file.
64162         * modules/unictype/property-lowercase-tests: New file.
64163         * modules/unictype/property-math-tests: New file.
64164         * modules/unictype/property-non-break-tests: New file.
64165         * modules/unictype/property-not-a-character-tests: New file.
64166         * modules/unictype/property-numeric-tests: New file.
64167         * modules/unictype/property-other-alphabetic-tests: New file.
64168         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
64169         * modules/unictype/property-other-grapheme-extend-tests: New file.
64170         * modules/unictype/property-other-id-continue-tests: New file.
64171         * modules/unictype/property-other-id-start-tests: New file.
64172         * modules/unictype/property-other-lowercase-tests: New file.
64173         * modules/unictype/property-other-math-tests: New file.
64174         * modules/unictype/property-other-uppercase-tests: New file.
64175         * modules/unictype/property-paired-punctuation-tests: New file.
64176         * modules/unictype/property-paragraph-separator-tests: New file.
64177         * modules/unictype/property-pattern-syntax-tests: New file.
64178         * modules/unictype/property-pattern-white-space-tests: New file.
64179         * modules/unictype/property-private-use-tests: New file.
64180         * modules/unictype/property-punctuation-tests: New file.
64181         * modules/unictype/property-quotation-mark-tests: New file.
64182         * modules/unictype/property-radical-tests: New file.
64183         * modules/unictype/property-sentence-terminal-tests: New file.
64184         * modules/unictype/property-soft-dotted-tests: New file.
64185         * modules/unictype/property-space-tests: New file.
64186         * modules/unictype/property-terminal-punctuation-tests: New file.
64187         * modules/unictype/property-test-tests: New file.
64188         * modules/unictype/property-titlecase-tests: New file.
64189         * modules/unictype/property-unassigned-code-value-tests: New file.
64190         * modules/unictype/property-unified-ideograph-tests: New file.
64191         * modules/unictype/property-uppercase-tests: New file.
64192         * modules/unictype/property-variation-selector-tests: New file.
64193         * modules/unictype/property-white-space-tests: New file.
64194         * modules/unictype/property-xid-continue-tests: New file.
64195         * modules/unictype/property-xid-start-tests: New file.
64196         * modules/unictype/property-zero-width-tests: New file.
64197         * modules/unictype/scripts-tests: New file.
64198         * modules/unictype/syntax-c-ident-tests: New file.
64199         * modules/unictype/syntax-c-whitespace-tests: New file.
64200         * modules/unictype/syntax-java-ident-tests: New file.
64201         * modules/unictype/syntax-java-whitespace-tests: New file.
64202         * tests/unictype/test-bidi_byname.c: New file.
64203         * tests/unictype/test-bidi_name.c: New file.
64204         * tests/unictype/test-bidi_of.c: New file.
64205         * tests/unictype/test-bidi_test.c: New file.
64206         * tests/unictype/test-block_list.c: New file.
64207         * tests/unictype/test-block_of.c: New file.
64208         * tests/unictype/test-block_test.c: New file.
64209         * tests/unictype/test-categ_and.c: New file.
64210         * tests/unictype/test-categ_and_not.c: New file.
64211         * tests/unictype/test-categ_byname.c: New file.
64212         * tests/unictype/test-categ_name.c: New file.
64213         * tests/unictype/test-categ_none.c: New file.
64214         * tests/unictype/test-categ_of.c: New file.
64215         * tests/unictype/test-categ_or.c: New file.
64216         * tests/unictype/test-categ_test_withtable.c: New file.
64217         * tests/unictype/test-combining.c: New file.
64218         * tests/unictype/test-decdigit.c: New file.
64219         * tests/unictype/test-digit.c: New file.
64220         * tests/unictype/test-mirror.c: New file.
64221         * tests/unictype/test-numeric.c: New file.
64222         * tests/unictype/test-pr_byname.c: New file.
64223         * tests/unictype/test-pr_test.c: New file.
64224         * tests/unictype/test-predicate-part1.h: New file.
64225         * tests/unictype/test-predicate-part2.h: New file.
64226         * tests/unictype/test-scripts.c: New file.
64227         * tests/unictype/test-sy_c_ident.c: New file.
64228         * tests/unictype/test-sy_java_ident.c: New file.
64229
64230         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
64231         for Unicode 5.0.0.
64232         * tests/unictype/test-categ_Cc.c: Likewise.
64233         * tests/unictype/test-categ_Cf.c: Likewise.
64234         * tests/unictype/test-categ_Cn.c: Likewise.
64235         * tests/unictype/test-categ_Co.c: Likewise.
64236         * tests/unictype/test-categ_Cs.c: Likewise.
64237         * tests/unictype/test-categ_L.c: Likewise.
64238         * tests/unictype/test-categ_Ll.c: Likewise.
64239         * tests/unictype/test-categ_Lm.c: Likewise.
64240         * tests/unictype/test-categ_Lo.c: Likewise.
64241         * tests/unictype/test-categ_Lt.c: Likewise.
64242         * tests/unictype/test-categ_Lu.c: Likewise.
64243         * tests/unictype/test-categ_M.c: Likewise.
64244         * tests/unictype/test-categ_Mc.c: Likewise.
64245         * tests/unictype/test-categ_Me.c: Likewise.
64246         * tests/unictype/test-categ_Mn.c: Likewise.
64247         * tests/unictype/test-categ_N.c: Likewise.
64248         * tests/unictype/test-categ_Nd.c: Likewise.
64249         * tests/unictype/test-categ_Nl.c: Likewise.
64250         * tests/unictype/test-categ_No.c: Likewise.
64251         * tests/unictype/test-categ_P.c: Likewise.
64252         * tests/unictype/test-categ_Pc.c: Likewise.
64253         * tests/unictype/test-categ_Pd.c: Likewise.
64254         * tests/unictype/test-categ_Pe.c: Likewise.
64255         * tests/unictype/test-categ_Pf.c: Likewise.
64256         * tests/unictype/test-categ_Pi.c: Likewise.
64257         * tests/unictype/test-categ_Po.c: Likewise.
64258         * tests/unictype/test-categ_Ps.c: Likewise.
64259         * tests/unictype/test-categ_S.c: Likewise.
64260         * tests/unictype/test-categ_Sc.c: Likewise.
64261         * tests/unictype/test-categ_Sk.c: Likewise.
64262         * tests/unictype/test-categ_Sm.c: Likewise.
64263         * tests/unictype/test-categ_So.c: Likewise.
64264         * tests/unictype/test-categ_Z.c: Likewise.
64265         * tests/unictype/test-categ_Zl.c: Likewise.
64266         * tests/unictype/test-categ_Zp.c: Likewise.
64267         * tests/unictype/test-categ_Zs.c: Likewise.
64268         * tests/unictype/test-ctype_alnum.c: Likewise.
64269         * tests/unictype/test-ctype_alpha.c: Likewise.
64270         * tests/unictype/test-ctype_blank.c: Likewise.
64271         * tests/unictype/test-ctype_cntrl.c: Likewise.
64272         * tests/unictype/test-ctype_digit.c: Likewise.
64273         * tests/unictype/test-ctype_graph.c: Likewise.
64274         * tests/unictype/test-ctype_lower.c: Likewise.
64275         * tests/unictype/test-ctype_print.c: Likewise.
64276         * tests/unictype/test-ctype_punct.c: Likewise.
64277         * tests/unictype/test-ctype_space.c: Likewise.
64278         * tests/unictype/test-ctype_upper.c: Likewise.
64279         * tests/unictype/test-ctype_xdigit.c: Likewise.
64280         * tests/unictype/test-decdigit.h: Likewise.
64281         * tests/unictype/test-digit.h: Likewise.
64282         * tests/unictype/test-numeric.h: Likewise.
64283         * tests/unictype/test-pr_alphabetic.c: Likewise.
64284         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
64285         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
64286         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
64287         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
64288         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
64289         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
64290         * tests/unictype/test-pr_bidi_control.c: Likewise.
64291         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
64292         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
64293         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
64294         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
64295         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
64296         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
64297         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
64298         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
64299         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
64300         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
64301         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
64302         * tests/unictype/test-pr_combining.c: Likewise.
64303         * tests/unictype/test-pr_composite.c: Likewise.
64304         * tests/unictype/test-pr_currency_symbol.c: Likewise.
64305         * tests/unictype/test-pr_dash.c: Likewise.
64306         * tests/unictype/test-pr_decimal_digit.c: Likewise.
64307         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
64308         * tests/unictype/test-pr_deprecated.c: Likewise.
64309         * tests/unictype/test-pr_diacritic.c: Likewise.
64310         * tests/unictype/test-pr_extender.c: Likewise.
64311         * tests/unictype/test-pr_format_control.c: Likewise.
64312         * tests/unictype/test-pr_grapheme_base.c: Likewise.
64313         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
64314         * tests/unictype/test-pr_grapheme_link.c: Likewise.
64315         * tests/unictype/test-pr_hex_digit.c: Likewise.
64316         * tests/unictype/test-pr_hyphen.c: Likewise.
64317         * tests/unictype/test-pr_id_continue.c: Likewise.
64318         * tests/unictype/test-pr_id_start.c: Likewise.
64319         * tests/unictype/test-pr_ideographic.c: Likewise.
64320         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
64321         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
64322         * tests/unictype/test-pr_ignorable_control.c: Likewise.
64323         * tests/unictype/test-pr_iso_control.c: Likewise.
64324         * tests/unictype/test-pr_join_control.c: Likewise.
64325         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64326         * tests/unictype/test-pr_line_separator.c: Likewise.
64327         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64328         * tests/unictype/test-pr_lowercase.c: Likewise.
64329         * tests/unictype/test-pr_math.c: Likewise.
64330         * tests/unictype/test-pr_non_break.c: Likewise.
64331         * tests/unictype/test-pr_not_a_character.c: Likewise.
64332         * tests/unictype/test-pr_numeric.c: Likewise.
64333         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64334         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64335         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64336         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64337         * tests/unictype/test-pr_other_id_start.c: Likewise.
64338         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64339         * tests/unictype/test-pr_other_math.c: Likewise.
64340         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64341         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64342         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64343         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64344         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64345         * tests/unictype/test-pr_private_use.c: Likewise.
64346         * tests/unictype/test-pr_punctuation.c: Likewise.
64347         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64348         * tests/unictype/test-pr_radical.c: Likewise.
64349         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64350         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64351         * tests/unictype/test-pr_space.c: Likewise.
64352         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64353         * tests/unictype/test-pr_titlecase.c: Likewise.
64354         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64355         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64356         * tests/unictype/test-pr_uppercase.c: Likewise.
64357         * tests/unictype/test-pr_variation_selector.c: Likewise.
64358         * tests/unictype/test-pr_white_space.c: Likewise.
64359         * tests/unictype/test-pr_xid_continue.c: Likewise.
64360         * tests/unictype/test-pr_xid_start.c: Likewise.
64361         * tests/unictype/test-pr_zero_width.c: Likewise.
64362         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64363         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64364
64365 2007-11-12  Bruno Haible  <bruno@clisp.org>
64366
64367         Unicode character classification functions.
64368         * lib/unictype.h: New file.
64369         * modules/unictype/base: New file.
64370         * modules/unictype/category-L: New file.
64371         * modules/unictype/category-Lu: New file.
64372         * modules/unictype/category-Ll: New file.
64373         * modules/unictype/category-Lt: New file.
64374         * modules/unictype/category-Lm: New file.
64375         * modules/unictype/category-Lo: New file.
64376         * modules/unictype/category-M: New file.
64377         * modules/unictype/category-Mn: New file.
64378         * modules/unictype/category-Mc: New file.
64379         * modules/unictype/category-Me: New file.
64380         * modules/unictype/category-N: New file.
64381         * modules/unictype/category-Nd: New file.
64382         * modules/unictype/category-Nl: New file.
64383         * modules/unictype/category-No: New file.
64384         * modules/unictype/category-P: New file.
64385         * modules/unictype/category-Pc: New file.
64386         * modules/unictype/category-Pd: New file.
64387         * modules/unictype/category-Ps: New file.
64388         * modules/unictype/category-Pe: New file.
64389         * modules/unictype/category-Pi: New file.
64390         * modules/unictype/category-Pf: New file.
64391         * modules/unictype/category-Po: New file.
64392         * modules/unictype/category-S: New file.
64393         * modules/unictype/category-Sm: New file.
64394         * modules/unictype/category-Sc: New file.
64395         * modules/unictype/category-Sk: New file.
64396         * modules/unictype/category-So: New file.
64397         * modules/unictype/category-Z: New file.
64398         * modules/unictype/category-Zs: New file.
64399         * modules/unictype/category-Zl: New file.
64400         * modules/unictype/category-Zp: New file.
64401         * modules/unictype/category-C: New file.
64402         * modules/unictype/category-Cc: New file.
64403         * modules/unictype/category-Cf: New file.
64404         * modules/unictype/category-Cs: New file.
64405         * modules/unictype/category-Co: New file.
64406         * modules/unictype/category-Cn: New file.
64407         * modules/unictype/category-or: New file.
64408         * modules/unictype/category-of: New file.
64409         * modules/unictype/category-test: New file.
64410         * modules/unictype/category-test-withtable: New file.
64411         * modules/unictype/category-byname: New file.
64412         * modules/unictype/category-none: New file.
64413         * modules/unictype/category-and: New file.
64414         * modules/unictype/category-and-not: New file.
64415         * modules/unictype/category-name: New file.
64416         * modules/unictype/combining-class: New file.
64417         * modules/unictype/category-all: New file.
64418         * modules/unictype/bidicategory-all: New file.
64419         * modules/unictype/bidicategory-byname: New file.
64420         * modules/unictype/bidicategory-name: New file.
64421         * modules/unictype/bidicategory-of: New file.
64422         * modules/unictype/bidicategory-test: New file.
64423         * modules/unictype/decimal-digit: New file.
64424         * modules/unictype/digit: New file.
64425         * modules/unictype/numeric: New file.
64426         * modules/unictype/mirror: New file.
64427         * modules/unictype/property-white-space: New file.
64428         * modules/unictype/property-alphabetic: New file.
64429         * modules/unictype/property-other-alphabetic: New file.
64430         * modules/unictype/property-not-a-character: New file.
64431         * modules/unictype/property-default-ignorable-code-point: New file.
64432         * modules/unictype/property-other-default-ignorable-code-point: New
64433         file.
64434         * modules/unictype/property-deprecated: New file.
64435         * modules/unictype/property-logical-order-exception: New file.
64436         * modules/unictype/property-variation-selector: New file.
64437         * modules/unictype/property-private-use: New file.
64438         * modules/unictype/property-unassigned-code-value: New file.
64439         * modules/unictype/property-uppercase: New file.
64440         * modules/unictype/property-other-uppercase: New file.
64441         * modules/unictype/property-lowercase: New file.
64442         * modules/unictype/property-other-lowercase: New file.
64443         * modules/unictype/property-titlecase: New file.
64444         * modules/unictype/property-soft-dotted: New file.
64445         * modules/unictype/property-id-start: New file.
64446         * modules/unictype/property-other-id-start: New file.
64447         * modules/unictype/property-id-continue: New file.
64448         * modules/unictype/property-other-id-continue: New file.
64449         * modules/unictype/property-xid-start: New file.
64450         * modules/unictype/property-xid-continue: New file.
64451         * modules/unictype/property-pattern-white-space: New file.
64452         * modules/unictype/property-pattern-syntax: New file.
64453         * modules/unictype/property-join-control: New file.
64454         * modules/unictype/property-grapheme-base: New file.
64455         * modules/unictype/property-grapheme-extend: New file.
64456         * modules/unictype/property-other-grapheme-extend: New file.
64457         * modules/unictype/property-grapheme-link: New file.
64458         * modules/unictype/property-bidi-control: New file.
64459         * modules/unictype/property-bidi-left-to-right: New file.
64460         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64461         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64462         * modules/unictype/property-bidi-european-digit: New file.
64463         * modules/unictype/property-bidi-eur-num-separator: New file.
64464         * modules/unictype/property-bidi-eur-num-terminator: New file.
64465         * modules/unictype/property-bidi-arabic-digit: New file.
64466         * modules/unictype/property-bidi-common-separator: New file.
64467         * modules/unictype/property-bidi-block-separator: New file.
64468         * modules/unictype/property-bidi-segment-separator: New file.
64469         * modules/unictype/property-bidi-whitespace: New file.
64470         * modules/unictype/property-bidi-non-spacing-mark: New file.
64471         * modules/unictype/property-bidi-boundary-neutral: New file.
64472         * modules/unictype/property-bidi-pdf: New file.
64473         * modules/unictype/property-bidi-embedding-or-override: New file.
64474         * modules/unictype/property-bidi-other-neutral: New file.
64475         * modules/unictype/property-hex-digit: New file.
64476         * modules/unictype/property-ascii-hex-digit: New file.
64477         * modules/unictype/property-ideographic: New file.
64478         * modules/unictype/property-unified-ideograph: New file.
64479         * modules/unictype/property-radical: New file.
64480         * modules/unictype/property-ids-binary-operator: New file.
64481         * modules/unictype/property-ids-trinary-operator: New file.
64482         * modules/unictype/property-zero-width: New file.
64483         * modules/unictype/property-space: New file.
64484         * modules/unictype/property-non-break: New file.
64485         * modules/unictype/property-iso-control: New file.
64486         * modules/unictype/property-format-control: New file.
64487         * modules/unictype/property-dash: New file.
64488         * modules/unictype/property-hyphen: New file.
64489         * modules/unictype/property-punctuation: New file.
64490         * modules/unictype/property-line-separator: New file.
64491         * modules/unictype/property-paragraph-separator: New file.
64492         * modules/unictype/property-quotation-mark: New file.
64493         * modules/unictype/property-sentence-terminal: New file.
64494         * modules/unictype/property-terminal-punctuation: New file.
64495         * modules/unictype/property-currency-symbol: New file.
64496         * modules/unictype/property-math: New file.
64497         * modules/unictype/property-other-math: New file.
64498         * modules/unictype/property-paired-punctuation: New file.
64499         * modules/unictype/property-left-of-pair: New file.
64500         * modules/unictype/property-combining: New file.
64501         * modules/unictype/property-composite: New file.
64502         * modules/unictype/property-decimal-digit: New file.
64503         * modules/unictype/property-numeric: New file.
64504         * modules/unictype/property-diacritic: New file.
64505         * modules/unictype/property-extender: New file.
64506         * modules/unictype/property-ignorable-control: New file.
64507         * modules/unictype/property-test: New file.
64508         * modules/unictype/property-byname: New file.
64509         * modules/unictype/property-all: New file.
64510         * modules/unictype/scripts: New file.
64511         * modules/unictype/scripts-all: New file.
64512         * modules/unictype/block-of: New file.
64513         * modules/unictype/block-test: New file.
64514         * modules/unictype/block-list: New file.
64515         * modules/unictype/block-all: New file.
64516         * modules/unictype/syntax-c-whitespace: New file.
64517         * modules/unictype/syntax-java-whitespace: New file.
64518         * modules/unictype/syntax-c-ident: New file.
64519         * modules/unictype/syntax-java-ident: New file.
64520         * modules/unictype/ctype-alnum: New file.
64521         * modules/unictype/ctype-alpha: New file.
64522         * modules/unictype/ctype-cntrl: New file.
64523         * modules/unictype/ctype-digit: New file.
64524         * modules/unictype/ctype-graph: New file.
64525         * modules/unictype/ctype-lower: New file.
64526         * modules/unictype/ctype-print: New file.
64527         * modules/unictype/ctype-punct: New file.
64528         * modules/unictype/ctype-space: New file.
64529         * modules/unictype/ctype-upper: New file.
64530         * modules/unictype/ctype-xdigit: New file.
64531         * modules/unictype/ctype-blank: New file.
64532         * lib/unictype/bidi_byname.c: New file.
64533         * lib/unictype/bidi_name.c: New file.
64534         * lib/unictype/bidi_of.c: New file.
64535         * lib/unictype/bidi_test.c: New file.
64536         * lib/unictype/bitmap.h: New file.
64537         * lib/unictype/block_test.c: New file.
64538         * lib/unictype/blocks.c: New file.
64539         * lib/unictype/categ_C.c: New file.
64540         * lib/unictype/categ_Cc.c: New file.
64541         * lib/unictype/categ_Cf.c: New file.
64542         * lib/unictype/categ_Cn.c: New file.
64543         * lib/unictype/categ_Co.c: New file.
64544         * lib/unictype/categ_Cs.c: New file.
64545         * lib/unictype/categ_L.c: New file.
64546         * lib/unictype/categ_Ll.c: New file.
64547         * lib/unictype/categ_Lm.c: New file.
64548         * lib/unictype/categ_Lo.c: New file.
64549         * lib/unictype/categ_Lt.c: New file.
64550         * lib/unictype/categ_Lu.c: New file.
64551         * lib/unictype/categ_M.c: New file.
64552         * lib/unictype/categ_Mc.c: New file.
64553         * lib/unictype/categ_Me.c: New file.
64554         * lib/unictype/categ_Mn.c: New file.
64555         * lib/unictype/categ_N.c: New file.
64556         * lib/unictype/categ_Nd.c: New file.
64557         * lib/unictype/categ_Nl.c: New file.
64558         * lib/unictype/categ_No.c: New file.
64559         * lib/unictype/categ_P.c: New file.
64560         * lib/unictype/categ_Pc.c: New file.
64561         * lib/unictype/categ_Pd.c: New file.
64562         * lib/unictype/categ_Pe.c: New file.
64563         * lib/unictype/categ_Pf.c: New file.
64564         * lib/unictype/categ_Pi.c: New file.
64565         * lib/unictype/categ_Po.c: New file.
64566         * lib/unictype/categ_Ps.c: New file.
64567         * lib/unictype/categ_S.c: New file.
64568         * lib/unictype/categ_Sc.c: New file.
64569         * lib/unictype/categ_Sk.c: New file.
64570         * lib/unictype/categ_Sm.c: New file.
64571         * lib/unictype/categ_So.c: New file.
64572         * lib/unictype/categ_Z.c: New file.
64573         * lib/unictype/categ_Zl.c: New file.
64574         * lib/unictype/categ_Zp.c: New file.
64575         * lib/unictype/categ_Zs.c: New file.
64576         * lib/unictype/categ_and.c: New file.
64577         * lib/unictype/categ_and_not.c: New file.
64578         * lib/unictype/categ_byname.c: New file.
64579         * lib/unictype/categ_name.c: New file.
64580         * lib/unictype/categ_none.c: New file.
64581         * lib/unictype/categ_of.c: New file.
64582         * lib/unictype/categ_or.c: New file.
64583         * lib/unictype/categ_test.c: New file.
64584         * lib/unictype/combining.c: New file.
64585         * lib/unictype/ctype_alnum.c: New file.
64586         * lib/unictype/ctype_alpha.c: New file.
64587         * lib/unictype/ctype_blank.c: New file.
64588         * lib/unictype/ctype_cntrl.c: New file.
64589         * lib/unictype/ctype_digit.c: New file.
64590         * lib/unictype/ctype_graph.c: New file.
64591         * lib/unictype/ctype_lower.c: New file.
64592         * lib/unictype/ctype_print.c: New file.
64593         * lib/unictype/ctype_punct.c: New file.
64594         * lib/unictype/ctype_space.c: New file.
64595         * lib/unictype/ctype_upper.c: New file.
64596         * lib/unictype/ctype_xdigit.c: New file.
64597         * lib/unictype/decdigit.c: New file.
64598         * lib/unictype/digit.c: New file.
64599         * lib/unictype/identsyntaxmap.h: New file.
64600         * lib/unictype/mirror.c: New file.
64601         * lib/unictype/numeric.c: New file.
64602         * lib/unictype/pr_alphabetic.c: New file.
64603         * lib/unictype/pr_ascii_hex_digit.c: New file.
64604         * lib/unictype/pr_bidi_arabic_digit.c: New file.
64605         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
64606         * lib/unictype/pr_bidi_block_separator.c: New file.
64607         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
64608         * lib/unictype/pr_bidi_common_separator.c: New file.
64609         * lib/unictype/pr_bidi_control.c: New file.
64610         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
64611         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
64612         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
64613         * lib/unictype/pr_bidi_european_digit.c: New file.
64614         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
64615         * lib/unictype/pr_bidi_left_to_right.c: New file.
64616         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
64617         * lib/unictype/pr_bidi_other_neutral.c: New file.
64618         * lib/unictype/pr_bidi_pdf.c: New file.
64619         * lib/unictype/pr_bidi_segment_separator.c: New file.
64620         * lib/unictype/pr_bidi_whitespace.c: New file.
64621         * lib/unictype/pr_byname.c: New file.
64622         * lib/unictype/pr_byname.gperf: New file.
64623         * lib/unictype/pr_combining.c: New file.
64624         * lib/unictype/pr_composite.c: New file.
64625         * lib/unictype/pr_currency_symbol.c: New file.
64626         * lib/unictype/pr_dash.c: New file.
64627         * lib/unictype/pr_decimal_digit.c: New file.
64628         * lib/unictype/pr_default_ignorable_code_point.c: New file.
64629         * lib/unictype/pr_deprecated.c: New file.
64630         * lib/unictype/pr_diacritic.c: New file.
64631         * lib/unictype/pr_extender.c: New file.
64632         * lib/unictype/pr_format_control.c: New file.
64633         * lib/unictype/pr_grapheme_base.c: New file.
64634         * lib/unictype/pr_grapheme_extend.c: New file.
64635         * lib/unictype/pr_grapheme_link.c: New file.
64636         * lib/unictype/pr_hex_digit.c: New file.
64637         * lib/unictype/pr_hyphen.c: New file.
64638         * lib/unictype/pr_id_continue.c: New file.
64639         * lib/unictype/pr_id_start.c: New file.
64640         * lib/unictype/pr_ideographic.c: New file.
64641         * lib/unictype/pr_ids_binary_operator.c: New file.
64642         * lib/unictype/pr_ids_trinary_operator.c: New file.
64643         * lib/unictype/pr_ignorable_control.c: New file.
64644         * lib/unictype/pr_iso_control.c: New file.
64645         * lib/unictype/pr_join_control.c: New file.
64646         * lib/unictype/pr_left_of_pair.c: New file.
64647         * lib/unictype/pr_line_separator.c: New file.
64648         * lib/unictype/pr_logical_order_exception.c: New file.
64649         * lib/unictype/pr_lowercase.c: New file.
64650         * lib/unictype/pr_math.c: New file.
64651         * lib/unictype/pr_non_break.c: New file.
64652         * lib/unictype/pr_not_a_character.c: New file.
64653         * lib/unictype/pr_numeric.c: New file.
64654         * lib/unictype/pr_other_alphabetic.c: New file.
64655         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
64656         * lib/unictype/pr_other_grapheme_extend.c: New file.
64657         * lib/unictype/pr_other_id_continue.c: New file.
64658         * lib/unictype/pr_other_id_start.c: New file.
64659         * lib/unictype/pr_other_lowercase.c: New file.
64660         * lib/unictype/pr_other_math.c: New file.
64661         * lib/unictype/pr_other_uppercase.c: New file.
64662         * lib/unictype/pr_paired_punctuation.c: New file.
64663         * lib/unictype/pr_paragraph_separator.c: New file.
64664         * lib/unictype/pr_pattern_syntax.c: New file.
64665         * lib/unictype/pr_pattern_white_space.c: New file.
64666         * lib/unictype/pr_private_use.c: New file.
64667         * lib/unictype/pr_punctuation.c: New file.
64668         * lib/unictype/pr_quotation_mark.c: New file.
64669         * lib/unictype/pr_radical.c: New file.
64670         * lib/unictype/pr_sentence_terminal.c: New file.
64671         * lib/unictype/pr_soft_dotted.c: New file.
64672         * lib/unictype/pr_space.c: New file.
64673         * lib/unictype/pr_terminal_punctuation.c: New file.
64674         * lib/unictype/pr_test.c: New file.
64675         * lib/unictype/pr_titlecase.c: New file.
64676         * lib/unictype/pr_unassigned_code_value.c: New file.
64677         * lib/unictype/pr_unified_ideograph.c: New file.
64678         * lib/unictype/pr_uppercase.c: New file.
64679         * lib/unictype/pr_variation_selector.c: New file.
64680         * lib/unictype/pr_white_space.c: New file.
64681         * lib/unictype/pr_xid_continue.c: New file.
64682         * lib/unictype/pr_xid_start.c: New file.
64683         * lib/unictype/pr_zero_width.c: New file.
64684         * lib/unictype/scripts.c: New file.
64685         * lib/unictype/sy_c_ident.c: New file.
64686         * lib/unictype/sy_c_whitespace.c: New file.
64687         * lib/unictype/sy_java_ident.c: New file.
64688         * lib/unictype/sy_java_whitespace.c: New file.
64689
64690         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
64691         Unicode 5.0.0.
64692         * lib/unictype/blocks.h: Likewise.
64693         * lib/unictype/categ_C.h: Likewise.
64694         * lib/unictype/categ_Cc.h: Likewise.
64695         * lib/unictype/categ_Cf.h: Likewise.
64696         * lib/unictype/categ_Cn.h: Likewise.
64697         * lib/unictype/categ_Co.h: Likewise.
64698         * lib/unictype/categ_Cs.h: Likewise.
64699         * lib/unictype/categ_L.h: Likewise.
64700         * lib/unictype/categ_Ll.h: Likewise.
64701         * lib/unictype/categ_Lm.h: Likewise.
64702         * lib/unictype/categ_Lo.h: Likewise.
64703         * lib/unictype/categ_Lt.h: Likewise.
64704         * lib/unictype/categ_Lu.h: Likewise.
64705         * lib/unictype/categ_M.h: Likewise.
64706         * lib/unictype/categ_Mc.h: Likewise.
64707         * lib/unictype/categ_Me.h: Likewise.
64708         * lib/unictype/categ_Mn.h: Likewise.
64709         * lib/unictype/categ_N.h: Likewise.
64710         * lib/unictype/categ_Nd.h: Likewise.
64711         * lib/unictype/categ_Nl.h: Likewise.
64712         * lib/unictype/categ_No.h: Likewise.
64713         * lib/unictype/categ_P.h: Likewise.
64714         * lib/unictype/categ_Pc.h: Likewise.
64715         * lib/unictype/categ_Pd.h: Likewise.
64716         * lib/unictype/categ_Pe.h: Likewise.
64717         * lib/unictype/categ_Pf.h: Likewise.
64718         * lib/unictype/categ_Pi.h: Likewise.
64719         * lib/unictype/categ_Po.h: Likewise.
64720         * lib/unictype/categ_Ps.h: Likewise.
64721         * lib/unictype/categ_S.h: Likewise.
64722         * lib/unictype/categ_Sc.h: Likewise.
64723         * lib/unictype/categ_Sk.h: Likewise.
64724         * lib/unictype/categ_Sm.h: Likewise.
64725         * lib/unictype/categ_So.h: Likewise.
64726         * lib/unictype/categ_Z.h: Likewise.
64727         * lib/unictype/categ_Zl.h: Likewise.
64728         * lib/unictype/categ_Zp.h: Likewise.
64729         * lib/unictype/categ_Zs.h: Likewise.
64730         * lib/unictype/categ_of.h: Likewise.
64731         * lib/unictype/combining.h: Likewise.
64732         * lib/unictype/ctype_alnum.h: Likewise.
64733         * lib/unictype/ctype_alpha.h: Likewise.
64734         * lib/unictype/ctype_blank.h: Likewise.
64735         * lib/unictype/ctype_cntrl.h: Likewise.
64736         * lib/unictype/ctype_digit.h: Likewise.
64737         * lib/unictype/ctype_graph.h: Likewise.
64738         * lib/unictype/ctype_lower.h: Likewise.
64739         * lib/unictype/ctype_print.h: Likewise.
64740         * lib/unictype/ctype_punct.h: Likewise.
64741         * lib/unictype/ctype_space.h: Likewise.
64742         * lib/unictype/ctype_upper.h: Likewise.
64743         * lib/unictype/ctype_xdigit.h: Likewise.
64744         * lib/unictype/decdigit.h: Likewise.
64745         * lib/unictype/digit.h: Likewise.
64746         * lib/unictype/mirror.h: Likewise.
64747         * lib/unictype/numeric.h: Likewise.
64748         * lib/unictype/pr_alphabetic.h: Likewise.
64749         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
64750         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
64751         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
64752         * lib/unictype/pr_bidi_block_separator.h: Likewise.
64753         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
64754         * lib/unictype/pr_bidi_common_separator.h: Likewise.
64755         * lib/unictype/pr_bidi_control.h: Likewise.
64756         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
64757         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
64758         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
64759         * lib/unictype/pr_bidi_european_digit.h: Likewise.
64760         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
64761         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
64762         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
64763         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
64764         * lib/unictype/pr_bidi_pdf.h: Likewise.
64765         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
64766         * lib/unictype/pr_bidi_whitespace.h: Likewise.
64767         * lib/unictype/pr_combining.h: Likewise.
64768         * lib/unictype/pr_composite.h: Likewise.
64769         * lib/unictype/pr_currency_symbol.h: Likewise.
64770         * lib/unictype/pr_dash.h: Likewise.
64771         * lib/unictype/pr_decimal_digit.h: Likewise.
64772         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
64773         * lib/unictype/pr_deprecated.h: Likewise.
64774         * lib/unictype/pr_diacritic.h: Likewise.
64775         * lib/unictype/pr_extender.h: Likewise.
64776         * lib/unictype/pr_format_control.h: Likewise.
64777         * lib/unictype/pr_grapheme_base.h: Likewise.
64778         * lib/unictype/pr_grapheme_extend.h: Likewise.
64779         * lib/unictype/pr_grapheme_link.h: Likewise.
64780         * lib/unictype/pr_hex_digit.h: Likewise.
64781         * lib/unictype/pr_hyphen.h: Likewise.
64782         * lib/unictype/pr_id_continue.h: Likewise.
64783         * lib/unictype/pr_id_start.h: Likewise.
64784         * lib/unictype/pr_ideographic.h: Likewise.
64785         * lib/unictype/pr_ids_binary_operator.h: Likewise.
64786         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
64787         * lib/unictype/pr_ignorable_control.h: Likewise.
64788         * lib/unictype/pr_iso_control.h: Likewise.
64789         * lib/unictype/pr_join_control.h: Likewise.
64790         * lib/unictype/pr_left_of_pair.h: Likewise.
64791         * lib/unictype/pr_line_separator.h: Likewise.
64792         * lib/unictype/pr_logical_order_exception.h: Likewise.
64793         * lib/unictype/pr_lowercase.h: Likewise.
64794         * lib/unictype/pr_math.h: Likewise.
64795         * lib/unictype/pr_non_break.h: Likewise.
64796         * lib/unictype/pr_not_a_character.h: Likewise.
64797         * lib/unictype/pr_numeric.h: Likewise.
64798         * lib/unictype/pr_other_alphabetic.h: Likewise.
64799         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
64800         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
64801         * lib/unictype/pr_other_id_continue.h: Likewise.
64802         * lib/unictype/pr_other_id_start.h: Likewise.
64803         * lib/unictype/pr_other_lowercase.h: Likewise.
64804         * lib/unictype/pr_other_math.h: Likewise.
64805         * lib/unictype/pr_other_uppercase.h: Likewise.
64806         * lib/unictype/pr_paired_punctuation.h: Likewise.
64807         * lib/unictype/pr_paragraph_separator.h: Likewise.
64808         * lib/unictype/pr_pattern_syntax.h: Likewise.
64809         * lib/unictype/pr_pattern_white_space.h: Likewise.
64810         * lib/unictype/pr_private_use.h: Likewise.
64811         * lib/unictype/pr_punctuation.h: Likewise.
64812         * lib/unictype/pr_quotation_mark.h: Likewise.
64813         * lib/unictype/pr_radical.h: Likewise.
64814         * lib/unictype/pr_sentence_terminal.h: Likewise.
64815         * lib/unictype/pr_soft_dotted.h: Likewise.
64816         * lib/unictype/pr_space.h: Likewise.
64817         * lib/unictype/pr_terminal_punctuation.h: Likewise.
64818         * lib/unictype/pr_titlecase.h: Likewise.
64819         * lib/unictype/pr_unassigned_code_value.h: Likewise.
64820         * lib/unictype/pr_unified_ideograph.h: Likewise.
64821         * lib/unictype/pr_uppercase.h: Likewise.
64822         * lib/unictype/pr_variation_selector.h: Likewise.
64823         * lib/unictype/pr_white_space.h: Likewise.
64824         * lib/unictype/pr_xid_continue.h: Likewise.
64825         * lib/unictype/pr_xid_start.h: Likewise.
64826         * lib/unictype/pr_zero_width.h: Likewise.
64827         * lib/unictype/scripts.h: Likewise.
64828         * lib/unictype/scripts_byname.gperf: Likewise.
64829         * lib/unictype/sy_c_ident.h: Likewise.
64830         * lib/unictype/sy_c_whitespace.h: Likewise.
64831         * lib/unictype/sy_java_ident.h: Likewise.
64832         * lib/unictype/sy_java_whitespace.h: Likewise.
64833
64834         * lib/unictype/Makefile: New file.
64835         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
64836         glibc.
64837         * lib/unictype/3level.h: New file, copied from glibc.
64838         * lib/unictype/3levelbit.h: New file.
64839
64840 2007-11-11  Bruno Haible  <bruno@clisp.org>
64841
64842         * modules/gperf: New file.
64843         * modules/iconv_open (Depends-on): Add it.
64844         (Makefile.am): Remove the GPERF definition.
64845
64846 2007-11-11  Bruno Haible  <bruno@clisp.org>
64847
64848         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
64849         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
64850
64851 2007-11-11  Bruno Haible  <bruno@clisp.org>
64852
64853         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
64854         (usage): Remove function.
64855
64856 2007-11-11  Bruno Haible  <bruno@clisp.org>
64857
64858         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
64859         gl_FUNC_CEILF_LIBS.
64860         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
64861         gl_FUNC_CEIL_LIBS.
64862         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
64863         gl_FUNC_CEILL_LIBS.
64864         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
64865         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
64866         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
64867
64868 2007-11-11  Bruno Haible  <bruno@clisp.org>
64869
64870         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
64871         roundf were declared but do not exist on functions.
64872         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
64873         roundl were declared but do not exist on functions.
64874         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
64875         HAVE_FLOORL_AND_CEILL, respectively.
64876         Needed for Sun C on Solaris 10.
64877
64878 2007-11-11  Bruno Haible  <bruno@clisp.org>
64879
64880         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
64881         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
64882         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
64883         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
64884         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
64885         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
64886         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
64887         HAVE_DECL_ROUNDF.
64888         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
64889         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
64890         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
64891         of HAVE_DECL_ROUND*.
64892         * modules/math (Makefile.am): Update.
64893
64894 2007-11-10  Bruno Haible  <bruno@clisp.org>
64895
64896         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
64897         ptrdiff_t as m4/intl.m4.
64898
64899 2007-11-10  Jim Meyering  <meyering@redhat.com>
64900
64901         Avoid link failure for the argmatch test.
64902         * tests/test-argmatch.c (usage): Define function to avoid a link
64903         failure: argmatch_die requires a usage function.
64904
64905 2007-11-09  Bruno Haible  <bruno@clisp.org>
64906
64907         * doc/functions/snprintf.texi: Mention BeOS deficiency.
64908         * doc/functions/vsnprintf.texi: Likewise.
64909         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
64910         with a size argument < 2.
64911
64912 2007-11-09  Bruno Haible  <bruno@clisp.org>
64913
64914         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
64915         buffer. Fixes an inefficiency introduced on 2007-11-03.
64916
64917 2007-11-09  Bruno Haible  <bruno@clisp.org>
64918
64919         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
64920         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
64921
64922 2007-11-08  Jim Meyering  <meyering@redhat.com>
64923
64924         Change cache variable name prefix "jm_" to "gl_" everywhere.
64925         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
64926         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
64927         * m4/uptime.m4: s/gl_/jm_/
64928
64929 2007-11-07  Bruno Haible  <bruno@clisp.org>
64930
64931         Update to GNU gettext 0.17.
64932         * m4/intl.m4: Update to GNU gettext 0.17.
64933         * m4/po.m4: Likewise.
64934         * modules/gettext (Files): Remove m4/ulonglong.m4.
64935         (configure.ac): Require gettext infrastructure from version 0.17.
64936
64937 2007-11-06  Bruno Haible  <bruno@clisp.org>
64938
64939         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
64940         symbolic values are not defined in a public header.
64941         * lib/freadable.c (freadable) [QNX]: Likewise.
64942         * lib/freadahead.c (freadahead) [QNX]: Likewise.
64943         * lib/freading.c (freading) [QNX]: Likewise.
64944         * lib/fseterr.c (fseterr) [QNX]: Likewise.
64945         * lib/fwritable.c (fwritable) [QNX]: Likewise.
64946         * lib/fwriting.c (fwriting) [QNX]: Likewise.
64947         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
64948         Reported by Alain Magloire.
64949
64950         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
64951
64952 2007-11-05  Bruno Haible  <bruno@clisp.org>
64953
64954         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
64955         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
64956         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
64957         Reported by Eric Blake.
64958
64959 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64960             Bruno Haible  <bruno@clisp.org>
64961
64962         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
64963         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
64964         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
64965         (malloc): Undefine also before including <stdlib.h>.
64966         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
64967         Needed on OSF/1 4.0.
64968
64969 2007-11-05  Jim Meyering  <meyering@redhat.com>
64970
64971         git-version-gen: sync from coreutils.
64972         * build-aux/git-version-gen: Add comments.
64973         Change the first '-' to '.' in the snapshot version string,
64974         e.g., 6.9-377-08144 -> 6.9.377-08144
64975         Remove first parameter.
64976         Don't declare a version "-dirty" merely because a time
64977         stamp has changed.
64978
64979 2007-11-04  Bruno Haible  <bruno@clisp.org>
64980
64981         * lib/lock.h: Protect all macro definitions containing an 'if'
64982         statement through a "do { ... } while (0)".
64983         * lib/tls.h: Likewise.
64984
64985 2007-11-04  Bruno Haible  <bruno@clisp.org>
64986
64987         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
64988
64989 2007-11-04  Bruno Haible  <bruno@clisp.org>
64990
64991         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
64992         * modules/fprintf-posix (Depends-on): Add nocrash.
64993         * modules/snprintf-posix (Depends-on): Likewise.
64994         * modules/sprintf-posix (Depends-on): Likewise.
64995         * modules/vasnprintf-posix (Depends-on): Likewise.
64996         * modules/vasprintf-posix (Depends-on): Likewise.
64997         * modules/vfprintf-posix (Depends-on): Likewise.
64998         * modules/vsnprintf-posix (Depends-on): Likewise.
64999         * modules/vsprintf-posix (Depends-on): Likewise.
65000         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
65001         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65002         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65003         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65004         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65005         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65006         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65007
65008 2007-11-04  Bruno Haible  <bruno@clisp.org>
65009
65010         * modules/nocrash: New file.
65011         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
65012         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
65013
65014 2007-11-04  Bruno Haible  <bruno@clisp.org>
65015
65016         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
65017         precision handling.
65018         * tests/test-vasprintf-posix.c (test_function): Likewise.
65019         * tests/test-snprintf-posix.h (test_function): Likewise.
65020         * tests/test-sprintf-posix.h (test_function): Likewise.
65021
65022         Fix *printf behaviour for large precisions on mingw and BeOS.
65023         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
65024         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
65025         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
65026         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65027         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65028         gl_PRINTF_PRECISION and test its result. Invoke
65029         gl_PREREQ_VASNPRINTF_PRECISION.
65030         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65031         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65032         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65033         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65034         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65035         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65036         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65037         * doc/functions/fprintf.texi: Update.
65038         * doc/functions/printf.texi: Update.
65039         * doc/functions/snprintf.texi: Update.
65040         * doc/functions/sprintf.texi: Update.
65041         * doc/functions/vfprintf.texi: Update.
65042         * doc/functions/vprintf.texi: Update.
65043         * doc/functions/vsnprintf.texi: Update.
65044         * doc/functions/vsprintf.texi: Update.
65045
65046 2007-11-04  Bruno Haible  <bruno@clisp.org>
65047
65048         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
65049
65050 2007-11-04  Bruno Haible  <bruno@clisp.org>
65051
65052         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
65053         Reported by Sylvain Beucler <beuc@gnu.org>.
65054
65055 2007-11-03  Bruno Haible  <bruno@clisp.org>
65056
65057         * tests/test-fprintf-posix2.sh: New file.
65058         * tests/test-fprintf-posix2.c: New file.
65059         * modules/fprintf-posix-tests (Files): Add them.
65060         (TESTS): Add test-fprintf-posix2.sh.
65061         (configure.ac): Check for getrlimit and setrlimit.
65062         (check_PROGRAMS): Add test-fprintf-posix2.
65063
65064         * tests/test-printf-posix2.sh: New file.
65065         * tests/test-printf-posix2.c: New file.
65066         * modules/printf-posix-tests (Files): Add them.
65067         (TESTS): Add test-printf-posix2.sh.
65068         (configure.ac): Check for getrlimit and setrlimit.
65069         (check_PROGRAMS): Add test-printf-posix2.
65070
65071         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
65072         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
65073         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
65074         (decode_double): New function, copied from decode_long_double.
65075         (scale10_round_decimal_decoded): New function, extracted from
65076         scale10_round_decimal_long_double.
65077         (scale10_round_decimal_long_double): Use it.
65078         (scale10_round_decimal_double): New function.
65079         (floorlog10): New function.
65080         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
65081         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
65082         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65083         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65084         gl_PRINTF_ENOMEM and test its result. Invoke
65085         gl_PREREQ_VASNPRINTF_ENOMEM.
65086         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65087         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65088         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65089         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65090         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65091         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65092         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65093         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
65094         * modules/snprintf-posix (Depends-on): Likewise.
65095         * modules/sprintf-posix (Depends-on): Likewise.
65096         * modules/vasnprintf-posix (Depends-on): Likewise.
65097         * modules/vasprintf-posix (Depends-on): Likewise.
65098         * modules/vfprintf-posix (Depends-on): Likewise.
65099         * modules/vsnprintf-posix (Depends-on): Likewise.
65100         * modules/vsprintf-posix (Depends-on): Likewise.
65101         * doc/functions/fprintf.texi: Update.
65102         * doc/functions/printf.texi: Update.
65103         * doc/functions/snprintf.texi: Update.
65104         * doc/functions/sprintf.texi: Update.
65105         * doc/functions/vfprintf.texi: Update.
65106         * doc/functions/vprintf.texi: Update.
65107         * doc/functions/vsnprintf.texi: Update.
65108         * doc/functions/vsprintf.texi: Update.
65109
65110 2007-11-03  Bruno Haible  <bruno@clisp.org>
65111
65112         * modules/frexp-nolibm-tests: New file.
65113
65114         * modules/frexp-nolibm: New file.
65115         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
65116
65117 2007-11-03  Bruno Haible  <bruno@clisp.org>
65118
65119         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
65120         value is C99 compliant.
65121         Needed for OSF/1 5.1.
65122
65123 2007-11-03  Bruno Haible  <bruno@clisp.org>
65124
65125         Fix out-of-memory handling of vasnprintf.
65126         * lib/printf-parse.c: Include <errno.h>.
65127         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
65128         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
65129         is already set.
65130
65131 2007-11-02  Eric Blake  <ebb9@byu.net>
65132
65133         Fix tests on cygwin.
65134         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
65135
65136 2007-11-01  Bruno Haible  <bruno@clisp.org>
65137
65138         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
65139         warning.
65140         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
65141         needed for POSIX compatibility.
65142
65143 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65144
65145         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
65146         for compatibility with GNU.
65147
65148 2007-11-01  Bruno Haible  <bruno@clisp.org>
65149
65150         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
65151         (putenv): Renamed from rpl_putenv. Change argument type from
65152         'const char *' to 'char *'.
65153         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
65154         of defining putenv in config.h, just set REPLACE_PUTENV.
65155         * modules/putenv (Depends-on): Add stdlib.
65156         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65157         (Include): Use <stdlib.h>.
65158         * lib/stdlib.in.h (putenv): New declaration.
65159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
65160         REPLACE_PUTENV.
65161         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
65162         REPLACE_PUTENV.
65163         Needed for MacOS X 10.5.0.
65164         Reported by Peter O'Gorman <peter@pogma.com>.
65165
65166 2007-11-01  Jim Meyering  <meyering@redhat.com>
65167
65168         Treat an empty date string exactly like "0".
65169         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
65170         if the remaining date string (to be parsed) is empty, use "0".
65171         Reported by Mischa Molhoek and discussed in this thread:
65172         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
65173
65174 2007-10-31  Bruno Haible  <bruno@clisp.org>
65175
65176         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
65177         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
65178         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
65179         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
65180         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
65181         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
65182
65183 2007-10-31  Bruno Haible  <bruno@clisp.org>
65184
65185         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
65186         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
65187         (AC_TYPE_LONG_LONG_INT): Use it.
65188         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
65189         it as well.
65190         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
65191         to m4/longlong.m4.
65192         * modules/stdint (Files): Remove m4/ulonglong.m4.
65193         * modules/strtoull (Files): Use m4/longlong.m4 instead of
65194         m4/ulonglong.m4.
65195         * modules/strtoumax (Files): Likewise.
65196
65197 2007-10-30  Bruno Haible  <bruno@clisp.org>
65198
65199         * modules/xvasprintf-posix: New file.
65200         Suggested by Eric Blake.
65201
65202 2007-10-30  Bruno Haible  <bruno@clisp.org>
65203
65204         * modules/xprintf-posix-tests: New file.
65205         * tests/test-xprintf-posix.sh: New file.
65206         * tests/test-xprintf-posix.c: New file.
65207         * tests/test-xfprintf-posix.c: New file.
65208
65209         * modules/xprintf-posix: New file.
65210
65211 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65212
65213         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
65214         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
65215         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
65216
65217 2007-10-29  Bruno Haible  <bruno@clisp.org>
65218
65219         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
65220         contain the special marker '_cv_'.
65221         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65222         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65223         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65224         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65225         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65226         Reported by Ralf Wildenhues.
65227
65228 2007-10-29  Bruno Haible  <bruno@clisp.org>
65229
65230         * gnulib-tool (func_import): When --lgpl is not specified, set
65231         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
65232         GPLv3.
65233         Reported by Simon Josefsson.
65234
65235 2007-10-28  Bruno Haible  <bruno@clisp.org>
65236
65237         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
65238         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
65239         HAVE_DECL_ISFINITE.
65240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65241         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
65242         HAVE_DECL_ISFINITE.
65243
65244 2007-10-28  Bruno Haible  <bruno@clisp.org>
65245
65246         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
65247         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
65248
65249 2007-10-28  Bruno Haible  <bruno@clisp.org>
65250
65251         Fix link errors with Sun C 5.0 on Solaris 10.
65252         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
65253         function is declared but not present in the compiler's libm.
65254         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65255         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
65256         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
65257         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
65258         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
65259         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
65260         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
65261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65262         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
65263         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
65264         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
65265         HAVE_DECL_FLOORL.
65266
65267 2007-10-28  Bruno Haible  <bruno@clisp.org>
65268
65269         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
65270         gl_FUNC_FLOORL. Cache the result.
65271         (gl_FUNC_FLOORL): Use it.
65272         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
65273         gl_FUNC_CEILL. Cache the result.
65274         (gl_FUNC_CEILL): Use it.
65275
65276         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
65277         gl_FUNC_FLOOR. Cache the result.
65278         (gl_FUNC_FLOOR): Use it.
65279         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
65280         gl_FUNC_CEIL. Cache the result.
65281         (gl_FUNC_CEIL): Use it.
65282
65283         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
65284         gl_FUNC_FLOORF. Cache the result.
65285         (gl_FUNC_FLOORF): Use it.
65286         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
65287         gl_FUNC_CEILF. Cache the result.
65288         (gl_FUNC_CEILF): Use it.
65289
65290 2007-10-28  Bruno Haible  <bruno@clisp.org>
65291
65292         * gnulib-tool: Allow specifying the LGPL version number through
65293         --lgpl=2 or --lgpl=3.
65294         (func_usage): Document --lgpl with argument.
65295         Handle --lgpl=... arguments.
65296         (func_import): Recognize also gl_LGPL calls with an argument. When
65297         --lgpl=2 is used and the module's license is just LGPL, report an
65298         error. Set sed_transform_lib_file according to the lgpl variable. In
65299         the generated files, use --lgpl or gl_LGPL invocations with argument,
65300         if necessary.
65301         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
65302         an LGPv2+ license.
65303         * doc/gnulib-tool.texi (Modified imports): Update explanation of
65304         gl_LGPL macro.
65305
65306 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65307             Bruno Haible  <bruno@clisp.org>
65308
65309         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
65310         (u16_uctomb_aux): Likewise.
65311         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
65312         !HAVE_INLINE.
65313         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
65314
65315 2007-10-28  Bruno Haible  <bruno@clisp.org>
65316
65317         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
65318         Invoke AM_GETTEXT_OPTION if it exists.
65319         * modules/vasprintf: Likewise.
65320         * modules/verror: Likewise.
65321         * modules/xprintf: Likewise.
65322         * modules/xvasprintf: Likewise.
65323
65324 2007-10-27  Ben Pfaff  <blp@gnu.org>
65325
65326         * lib/math.in.h: Define isfinite macro and prototypes for
65327         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65328         implementations.
65329         * m4/math_h.m4: New substitutions for isfinite module.
65330         * lib/isfinite.c: New file.
65331         * m4/isfinite.m4: New file.
65332         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65333         * modules/isfinite: New file.
65334         * modules/isfinite-tests: New file.
65335         * tests/tests-isfinite.c: New file.
65336         * doc/functions/isfinite.texi: Mention isfinite module.
65337         * MODULES.html.sh: Mention new module.
65338
65339 2007-10-27  Ben Pfaff  <blp@gnu.org>
65340
65341         Ralf Wildenhues reported that Tru64 4.0D declares the round
65342         functions but does not have definitions.
65343         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65344         cannot be found in any library, set the output variable to
65345         "missing" instead of "".
65346         * m4/round.m4: Also use our substitute if we cannot find round in
65347         any library, even if it is declared.
65348         * m4/roundf.m4: Likewise for roundf.
65349         * m4/roundl.m4: Likewise for roundl.
65350         * lib/math.in.h: Undefine roundf, round, roundl before defining
65351         their replacements, to allow for hypothetical systems where these
65352         may be defined as macros but not available in libraries.
65353
65354 2007-10-27  Bruno Haible  <bruno@clisp.org>
65355
65356         * doc/gnulib.texi: Invoke @firstparagraphindent.
65357         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65358         changes in gnulib.
65359         (Source changes): New section.
65360
65361 2007-10-26  Bruno Haible  <bruno@clisp.org>
65362
65363         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65364         borrowed from autoconf.
65365
65366 2007-10-26  Bruno Haible  <bruno@clisp.org>
65367
65368         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65369         strerror returned the empty string. Needed on HP-UX 11.00.
65370
65371 2007-10-24  Micah Cowan  <micah@cowan.name>
65372
65373         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65374         * build-aux/bootstrap: Remove support for now-unnecessary option,
65375         --cvs-user, and envvars CVS_USER, CVS_RSH.
65376
65377 2007-10-24  Jim Meyering  <meyering@redhat.com>
65378
65379         Avoid diagnostics from sha1sum when there is no cached checksum.
65380         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65381         if the po.s1 file hasn't been created yet.
65382
65383         * build-aux/bootstrap: Sync from coreutils:
65384         2007-10-24  Jim Meyering  <meyering@redhat.com>
65385         Get gnulib from the git repository, not from an obsolete cvs one.
65386         * build-aux/bootstrap: Suggestion from Micah Cowan.
65387         2007-10-04  Jim Meyering  <jim@meyering.net>
65388         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
65389         (update_po_files): Work also when there are no .po files in po/.
65390
65391 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65392
65393         * README: Append ".git" to git and cg examples.
65394         Problem reported by Benoit Sigoure.
65395
65396 2007-10-23  Micah Cowan  <micah@cowan.name>
65397
65398         * users.txt: Add wget.
65399
65400 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65401
65402         Fix linking of some unistdio tests on FreeBSD.
65403         * modules/unistdio/u16-vsnprintf-tests
65404         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65405         * modules/unistdio/u16-vsprintf-tests
65406         (test_u16_vsnprintf1_LDADD): Likewise.
65407         * modules/unistdio/u32-vsnprintf-tests
65408         (test_u32_vsnprintf1_LDADD): Likewise.
65409         * modules/unistdio/u32-vsprintf-tests
65410         (test_u32_vsprintf1_LDADD): Likewise.
65411         * modules/unistdio/u8-vsnprintf-tests
65412         (test_u8_vsnprintf1_LDADD): Likewise.
65413         * modules/unistdio/u8-vsprintf-tests
65414         (test_u8_vsprintf1_LDADD): Likewise.
65415         * modules/unistdio/ulc-vsnprintf-tests
65416         (test_ulc_vsnprintf1_LDADD): Likewise.
65417         * modules/unistdio/ulc-vsprintf-tests
65418         (test_ulc_vsprintf1_LDADD): Likewise.
65419
65420         Fix linking of some uniconv tests on FreeBSD.
65421         * modules/uniconv/u16-conv-from-enc-tests
65422         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65423         * modules/uniconv/u16-conv-to-enc-tests
65424         (test_u16_conv_to_enc_LDADD): Likewise.
65425         * modules/uniconv/u16-strconv-from-enc-tests
65426         (test_u16_strconv_from_enc_LDADD): Likewise.
65427         * modules/uniconv/u16-strconv-to-enc-tests
65428         (test_u16_strconv_to_enc_LDADD): Likewise.
65429         * modules/uniconv/u32-conv-from-enc-tests
65430         (test_u32_conv_from_enc_LDADD): Likewise.
65431         * modules/uniconv/u32-conv-to-enc-tests
65432         (test_u32_conv_to_enc_LDADD): Likewise.
65433         * modules/uniconv/u32-strconv-from-enc-tests
65434         (test_u32_strconv_from_enc_LDADD): Likewise.
65435         * modules/uniconv/u32-strconv-to-enc-tests
65436         (test_u32_strconv_to_enc_LDADD): Likewise.
65437         * modules/uniconv/u8-conv-from-enc-tests
65438         (test_u8_conv_from_enc_LDADD): Likewise.
65439         * modules/uniconv/u8-conv-to-enc-tests
65440         (test_u8_conv_to_enc_LDADD): Likewise.
65441         * modules/uniconv/u8-strconv-from-enc-tests
65442         (test_u8_strconv_from_enc_LDADD): Likewise.
65443         * modules/uniconv/u8-strconv-to-enc-tests
65444         (test_u8_strconv_to_enc_LDADD): Likewise.
65445
65446 2007-10-22  Bruno Haible  <bruno@clisp.org>
65447
65448         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65449         size.
65450
65451 2007-10-22  Eric Blake  <ebb9@byu.net>
65452
65453         Tweak x*printf documentation.
65454         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65455         variable name and comments.
65456         Suggested by Bruno Haible.
65457
65458 2007-10-22  Bruno Haible  <bruno@clisp.org>
65459
65460         * lib/acl.c (copy_acl): Fix file name in comment.
65461
65462 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65463
65464         Fix Tru64 problem with stdbool.h.
65465         * lib/stdbool.in.h (false, true):
65466         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65467         Don't declare as an enum in this situation; it runs afoul of Tru64.
65468         Problem reported by Steven M. Schweda in
65469         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65470
65471 2007-10-22  Eric Blake  <ebb9@byu.net>
65472
65473         Also wrap vf?printf.
65474         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65475         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65476         (xvprintf, xvfprintf): New functions.
65477
65478 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65479
65480         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
65481         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
65482
65483         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
65484         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
65485
65486 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65487
65488         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
65489         by Bruno Haible.
65490
65491 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65492
65493         * lib/getloadavg.c
65494         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
65495         Undef `sys' after including sys/table.h, for Tru64 4.0D.
65496
65497         * tests/test-i-ring.c: Work for C89.
65498
65499 2007-10-22  Bruno Haible  <bruno@clisp.org>
65500
65501         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
65502         -1u, in preprocessor expression, so that we don't test for the bug
65503         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
65504         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
65505
65506 2007-10-22  Eric Blake  <ebb9@byu.net>
65507
65508         * tests/test-yesno.sh: Silence stderr during test.
65509
65510 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65511
65512         * modules/crypto/gc-camellia: New file.
65513
65514         * m4/gc-camellia.m4: New file.
65515
65516         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
65517
65518         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
65519
65520 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65521
65522         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
65523         --help to stdout.  Reported by sms@antinode.org (Steven
65524         M. Schweda).
65525
65526 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65527
65528         * users.txt: Fix link to libksba.
65529
65530 2007-10-21  Ben Pfaff  <blp@gnu.org>
65531
65532         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
65533         round.c roundf implementation that depends on floorf and ceilf to
65534         be tested unconditionally.
65535
65536 2007-10-21  Ben Pfaff  <blp@gnu.org>
65537
65538         * m4/check-libm-func.m4: Removed.
65539         * m4/check-math-lib.m4: New file.
65540         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
65541         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
65542         definition and lack of AC_LIBOBJ([roundf]).
65543         * m4/roundl.m4: Ditto, and similarly for roundl.
65544         * modules/round: Reference new m4 file.
65545         * modules/roundf: Ditto.
65546         * modules/roundl: Ditto.
65547         * tests/test-round2.c (main): Use ROUND instead of round.
65548         Bug report from Bruno Haible.
65549
65550 2007-10-21  Bruno Haible  <bruno@clisp.org>
65551
65552         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
65553         context.
65554
65555 2007-10-21  Bruno Haible  <bruno@clisp.org>
65556
65557         * tests/test-wcwidth.c (main): Allow negative result for some control
65558         characters.
65559
65560         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
65561         Needed on OSF/1 5.1.
65562
65563 2007-10-21  Bruno Haible  <bruno@clisp.org>
65564
65565         * tests/test-floorf1.c: Include isnanf.h.
65566         (main): Use isnanf() instead of isnan().
65567         * tests/test-ceilf1.c: Include isnanf.h.
65568         (main): Use isnanf() instead of isnan().
65569         * tests/test-truncf1.c: Include isnanf.h.
65570         (main): Use isnanf() instead of isnan().
65571         * tests/test-roundf1.c: Include isnanf.h.
65572         (main): Use isnanf() instead of isnan().
65573
65574 2007-10-21  Eric Blake  <ebb9@byu.net>
65575
65576         * users.txt: Update URL for m4.
65577
65578 2007-10-21  Bruno Haible  <bruno@clisp.org>
65579
65580         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
65581
65582 2007-10-21  Bruno Haible  <bruno@clisp.org>
65583
65584         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
65585         Git's management files if the CVS files are not present.
65586
65587 2007-10-20  Bruno Haible  <bruno@clisp.org>
65588
65589         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
65590         gcc-3.4.x.
65591
65592 2007-10-20  Ben Pfaff  <blp@gnu.org>
65593
65594         * lib/math.in.h: Declare round, roundf, roundl if we are providing
65595         implementations.
65596         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
65597         * lib/round.c: New file.
65598         * lib/roundf.c: New file.
65599         * lib/roundl.c: New file.
65600         * m4/round.m4: New file.
65601         * m4/roundf.m4: New file.
65602         * m4/roundl.m4: New file.
65603         * m4/check-libm-func-m4: New file.
65604         * modules/math: Replace round, roundf, roundl related @VARS@ in
65605         math.in.h.
65606         * modules/round: New file.
65607         * modules/round-tests: New file.
65608         * modules/roundf: New file.
65609         * modules/roundf-tests: New file.
65610         * modules/roundl: New file.
65611         * modules/roundl-tests: New file.
65612         * tests/test-round1.c: New file.
65613         * tests/test-round2.c: New file.
65614         * tests/test-roundf1.c: New file.
65615         * tests/test-roundf2.c: New file.
65616         * tests/test-roundl.c: New file.
65617         * doc/functions/round.texi: Mention round module.
65618         * doc/functions/roundf.texi: Mention roundf module.
65619         * doc/functions/roundl.texi: Mention roundl module.
65620         * MODULES.html.sh: Mention new modules.
65621         Thanks to Bruno Haible for suggestions.
65622
65623 2007-10-20  Jim Meyering  <meyering@redhat.com>
65624
65625         * lib/xprintf.c: Include <config.h> unconditionally.
65626
65627         Change xprintf's license to GPL.
65628         * modules/xprintf (License): s/LGPL/GPL/, since this module
65629         depends on modules (exit and exitfail) which are GPL.
65630         Suggestion from Bruno Haible.
65631
65632         xprintf fixes.
65633         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
65634         Use a clearer diagnostic.
65635         Patch from Bruno Haible.
65636
65637 2007-10-20  Bruno Haible  <bruno@clisp.org>
65638
65639         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
65640         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
65641         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65642
65643 2007-10-20  Bruno Haible  <bruno@clisp.org>
65644
65645         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
65646         precision in the comparison result > x - 1 or similar.
65647         * tests/test-ceilf2.c (correct_result_p): Likewise.
65648         * tests/test-truncf2.c (correct_result_p): Likewise.
65649         * tests/test-trunc2.c (correct_result_p): Likewise.
65650         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65651
65652 2007-10-20  Bruno Haible  <bruno@clisp.org>
65653
65654         * modules/ceil: New file.
65655         * m4/ceil.m4: New file.
65656         * doc/functions/ceil.texi: Mention the 'ceil' module.
65657
65658 2007-10-20  Bruno Haible  <bruno@clisp.org>
65659
65660         * modules/floor: New file.
65661         * m4/floor.m4: New file.
65662         * doc/functions/floor.texi: Mention the 'floor' module.
65663
65664 2007-10-20  Bruno Haible  <bruno@clisp.org>
65665
65666         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
65667         of %a.
65668         * modules/floorf-tests (Depends-on): Likewise.
65669         * modules/truncf-tests (Depends-on): Likewise.
65670         * modules/trunc-tests (Depends-on): Likewise.
65671         Reported by Ben Pfaff.
65672
65673 2007-10-19  Jim Meyering  <meyering@redhat.com>
65674
65675         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
65676         Don't bother testing specific errno values.  Just test ferror.
65677
65678         New module: xprintf
65679         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
65680
65681 2007-10-19  Bruno Haible  <bruno@clisp.org>
65682
65683         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
65684         syntax.
65685         * modules/javaexec (Makefile.am): Likewise.
65686         * modules/relocatable-prog (Makefile.am): Likewise.
65687         Suggested by Jim Meyering.
65688
65689 2007-10-18  Bruno Haible  <bruno@clisp.org>
65690
65691         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
65692         Reported by Jim Meyering.
65693
65694 2007-10-18  Eric Blake  <ebb9@byu.net>
65695
65696         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
65697
65698 2007-10-18  Bruno Haible  <bruno@clisp.org>
65699
65700         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
65701         the format string into writable memory. Needed in Fortify conditions.
65702
65703 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
65704             Bruno Haible  <bruno@clisp.org>
65705
65706         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
65707         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
65708         * modules/trim (Depends-on): Add mbchar.
65709         (configure.ac): Add gl_FUNC_MBRTOWC.
65710         (Makefile.am): Augment lib_SOURCES.
65711
65712 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65713
65714         Modify glob.c to use fstatat and dirfd, to simplify it.
65715         Suggested by Eric Blake.
65716         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
65717         Don't include <stdbool.h>; not used.
65718         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
65719         (link_exists_p): Simplify implementation, since we can now assume
65720         dirfd and fstatat.
65721         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
65722
65723 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65724
65725         * gnulib-tool (func_get_dependencies): Fix sed script to
65726         match only tests.
65727
65728 2007-10-17  Bruno Haible  <bruno@clisp.org>
65729
65730         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
65731         allow locale names without encoding suffix.
65732         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
65733         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65734
65735 2007-10-16  Bruno Haible  <bruno@clisp.org>
65736
65737         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
65738         * lib/getgroups.c (getgroups): Likewise.
65739         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
65740
65741 2007-10-16  Bruno Haible  <bruno@clisp.org>
65742
65743         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
65744         * modules/malloc-posix (License): Likewise.
65745         * modules/realloc-posix (License): Likewise.
65746         * modules/calloc-posix (License): Likewise.
65747         * modules/intprops (License): Change from GPL to LGPL, with
65748         Paul Eggert's approval.
65749
65750 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65751
65752         Merge glibc changes into lib/glob.c.
65753
65754         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
65755         2007-10-15 04:59:03 UTC.  Here are the changes:
65756
65757         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
65758
65759         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
65760
65761         * lib/glob.c: Add some branch prediction throughout.
65762
65763         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
65764
65765         [BZ #5103]
65766         * lib/glob.c (glob): Recognize patterns starting \/.
65767
65768         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
65769
65770         [BZ #3996]
65771         * lib/glob.c (attribute_hidden): Define if not defined.
65772         (glob): Unescape dirname, filename or username when needed and not
65773         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
65774         is NULL.  Handle unescaped [ in pattern without closing ].
65775         Don't pass GLOB_CHECK down to recursive glob for directories.
65776         (__glob_pattern_type): New function.
65777         (__glob_pattern_p): Implement using __glob_pattern_type.
65778         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
65779         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
65780         Remove unreachable code.
65781
65782         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
65783
65784         * lib/glob.c (glob_in_dir): Add some comments and asserts to
65785         explain why there are no leaks.
65786
65787         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
65788
65789         [BZ #3253]
65790         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
65791         time, rather allocate increasingly bigger arrays of pointers, if
65792         possible with alloca, if too large with malloc.
65793
65794 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65795
65796         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
65797         Problem reported by H.Merijn Brand in
65798         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
65799         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
65800         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65801
65802 2007-10-15  Bruno Haible  <bruno@clisp.org>
65803
65804         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
65805         with explicit rpl_ prefix.
65806         * lib/fopen.c (fopen): Likewise.
65807         * lib/freopen.c (freopen): Likewise.
65808         * lib/iconv.c (iconv): Likewise.
65809         * lib/iconv_close.c (iconv_close): Likewise.
65810
65811 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65812
65813         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
65814
65815 2007-10-15  Bruno Haible  <bruno@clisp.org>
65816
65817         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
65818         <stddef.h> instead of <stdlib.h> since we only need NULL.
65819         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65820
65821 2007-10-15  Bruno Haible  <bruno@clisp.org>
65822
65823         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
65824         Replace paragraph talking about LIBOBJS.
65825         Reported by Colin Watson <cjwatson@debian.org>.
65826
65827 2007-10-15  Bruno Haible  <bruno@clisp.org>
65828
65829         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
65830         <stdlib.h> before using NULL.
65831
65832 2007-10-15  Simon Josefsson  <simon@josefsson.org>
65833
65834         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
65835         Reported by Albert Chin <china@thewrittenword.com>.
65836
65837 2007-10-14  Bruno Haible  <bruno@clisp.org>
65838
65839         * modules/iconv_open-utf-tests: New file.
65840         * tests/test-iconv-utf.c: New file.
65841
65842         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
65843         * modules/iconv_open-utf: New file.
65844         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
65845         (iconv, iconv_close): New declarations.
65846         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
65847         be defined.
65848         (iconv_open): Add special handling of conversion between UTF-8 and
65849         UTF-{16,32}{BE,LE}.
65850         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
65851         * lib/iconv_close.c: New file.
65852         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
65853         gl_FUNC_ICONV_OPEN.
65854         (gl_FUNC_ICONV_OPEN): Use it.
65855         (gl_FUNC_ICONV_OPEN_UTF): New macro.
65856         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
65857         and REPLACE_ICONV_UTF.
65858         * modules/iconv_open (Depends-on): Add c-strcase.
65859         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
65860         ICONV_CONST.
65861         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
65862
65863 2007-10-13  Albert Chin  <china@thewrittenword.com>
65864             Bruno Haible  <bruno@clisp.org>
65865
65866         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
65867         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
65868
65869 2007-10-13  Bruno Haible  <bruno@clisp.org>
65870
65871         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
65872         defined, use the ISO C99 inline semantics.
65873         * lib/argp.h (ARGP_EI): Likewise.
65874
65875 2007-10-13  Bruno Haible  <bruno@clisp.org>
65876
65877         Handle 'inline' change in gcc 4.3.0.
65878         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
65879         argp_fmtstream_write, argp_fmtstream_set_lmargin,
65880         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
65881         argp_fmtstream_point): Disable 'extern' declaration if the function
65882         definition is going to be provided inline.
65883         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
65884         semantics, not the ISO C99 inline semantics.
65885         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
65886         'extern' declaration if the function definition is going to be provided
65887         inline.
65888         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
65889         the GNU C inline semantics, not the ISO C99 inline semantics. With
65890         GCC 4.2, avoid a warning.
65891
65892 2007-10-13  Bruno Haible  <bruno@clisp.org>
65893
65894         * lib/freading.h (freading): Enable the use of __freading for
65895         glibc >= 2.7.
65896         * lib/freading.c (freading): Likewise.
65897
65898 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65899
65900         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
65901         "warning: C99 inline functions are not supported; using GNU89".
65902
65903 2007-10-12  Bruno Haible  <bruno@clisp.org>
65904
65905         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
65906         of 2.
65907         * tests/test-ceilf2.c: New file.
65908         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
65909
65910         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
65911         * modules/ceilf-tests: Update.
65912
65913 2007-10-12  Bruno Haible  <bruno@clisp.org>
65914
65915         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
65916         of 2.
65917         * tests/test-floorf2.c: New file.
65918         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
65919
65920         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
65921         * modules/floorf-tests: Update.
65922
65923 2007-10-12  Bruno Haible  <bruno@clisp.org>
65924
65925         * tests/test-trunc2.c: New file.
65926         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
65927
65928         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
65929         * modules/trunc-tests: Update.
65930
65931 2007-10-12  Bruno Haible  <bruno@clisp.org>
65932
65933         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
65934         of 2.
65935         * tests/test-truncf2.c: New file.
65936         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
65937
65938         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
65939         * modules/truncf-tests: Update.
65940
65941 2007-10-11  Eric Blake  <ebb9@byu.net>
65942
65943         Don't claim strerror is broken on Interix.
65944         * doc/functions/strerror.texi (strerror): Known broken systems are
65945         now Solaris 8, and not Interix.
65946         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
65947         Interix on cross-compile.
65948         Reported by Martin Koeppe in
65949         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
65950
65951 2007-10-11  Bruno Haible  <bruno@clisp.org>
65952
65953         * modules/i-ring-tests: New file.
65954         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
65955         instead of assert.
65956
65957 2007-10-11  Bruno Haible  <bruno@clisp.org>
65958
65959         * modules/filenamecat-tests: New file.
65960         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
65961         * lib/filenamecat.c: Remove test code.
65962
65963 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65964
65965         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
65966
65967         * lib/strerror.c: Include <string.h> always, to test interface,
65968         and to remove the need for the dummy.
65969         Include intprops.h to compute width instead of doing it ourselves
65970         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
65971         (strerror): Define it to return NULL if there's no system strerror.
65972         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
65973         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
65974         ancient pre-strerror Unix systems well any more.  Saying "unknown
65975         system error" is enough.
65976         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
65977         simpler strerror.c implementation.
65978         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
65979         Simplify the tests to reflect the simpler strerror implementation.
65980         * modules/strerror (Depends-on): Add intprops.
65981
65982 2007-10-09  Eric Blake  <ebb9@byu.net>
65983
65984         Silence test-fpending.
65985         * modules/fpending-tests (Files): Add wrapper script.
65986         * tests/test-fpending.sh: New file.
65987
65988 2007-10-09  Bruno Haible  <bruno@clisp.org>
65989
65990         * MODULES.html.sh (func_module): Don't create a hyperlink for
65991         function names like 'printf_frexp'.
65992         (Misc): Add crc, memxor.
65993         (Characteristics of floating types): New section.
65994         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
65995         isnanf-nolibm, signbit, trunc, truncf, truncl.
65996         (Enhancements for ISO C 99 functions): New subsection Input/output.
65997         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
65998         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
65999         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
66000         (Compatibility checks for POSIX:2001 functions): Add clock-time.
66001         (Enhancements for POSIX:2001 functions): Add chdir-long.
66002         (File system functions): Add areadlink, chdir-safer, read-file.
66003         Remove cycle-check.
66004         (File system as inode set): New section.
66005         (Date and time): Add gethrxtime.
66006         (Multithreading): Add openmp.
66007         (Internationalization functions): Add localename.
66008         (Unicode string functions): Add unistr/u*-mbsnlen.
66009         (Support for maintaining and releasing projects): Add git-version-gen.
66010         (Lone files): Remove directories.
66011
66012 2007-10-08  Ben Pfaff  <blp@gnu.org>
66013
66014         * lib/xmalloca.h: Fix typo in comment.
66015
66016 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66017
66018         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
66019         when avoiding problems with integer overflow.  Use a portable test
66020         instead.
66021
66022 2007-10-08  Simon Josefsson  <simon@josefsson.org>
66023
66024         * modules/dummy (License): Change to LGPLv2+.
66025         * modules/float (License): Likewise
66026         * modules/realloc (License): Likewise
66027         * modules/stdlib (License): Likewise
66028
66029 2007-10-07  Bruno Haible  <bruno@clisp.org>
66030
66031         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
66032         * floor.c (TWO_MANT_DIG): Likewise.
66033         * ceil.c (TWO_MANT_DIG): Likewise.
66034         Reported by Ben Pfaff.
66035
66036 2007-10-07  Bruno Haible  <bruno@clisp.org>
66037
66038         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
66039         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
66040         * lib/frexp.c (FUNC): Likewise.
66041         * lib/printf-frexp.h (printf_frexp): Likewise.
66042         * lib/printf-frexpl.h (printf_frexpl): Likewise.
66043         * lib/printf-frexp.c (FUNC): Likewise.
66044         Suggested by Jim Meyering.
66045
66046 2007-10-07  Jim Meyering  <meyering@redhat.com>
66047
66048         Make xnanosleep's integer overflow test more robust.
66049         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
66050         so that gcc-4.3.0 doesn't optimize away this test for overflow.
66051
66052 2007-10-07  Bruno Haible  <bruno@clisp.org>
66053
66054         * NEWS: Mention the license change.
66055
66056         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
66057         abbreviations in the modules files.
66058
66059         Change copyright notice from GPLv2+ to GPLv3+.
66060         * README: Change copyright notice.
66061         * MODULES.html.sh: Likewise.
66062         * build-aux/bootstrap.conf: Likewise.
66063         * build-aux/config.libpath: Likewise.
66064         * build-aux/csharpcomp.sh.in: Likewise.
66065         * build-aux/csharpexec.sh.in: Likewise.
66066         * build-aux/install-reloc: Likewise.
66067         * build-aux/javacomp.sh.in: Likewise.
66068         * build-aux/javaexec.sh.in: Likewise.
66069         * build-aux/ldd.sh.in: Likewise.
66070         * build-aux/reloc-ldflags: Likewise.
66071         * build-aux/relocatable.sh.in: Likewise.
66072         * build-aux/x-to-1.in: Likewise.
66073         * check-module: Likewise.
66074         * config/srclistvars.sh: Likewise.
66075         * gnulib-tool: Likewise.
66076         * lib/acl-internal.h: Likewise.
66077         * lib/acl.c: Likewise.
66078         * lib/acl.h: Likewise.
66079         * lib/acl_entries.c: Likewise.
66080         * lib/areadlink-with-size.c: Likewise.
66081         * lib/areadlink.c: Likewise.
66082         * lib/areadlink.h: Likewise.
66083         * lib/argmatch.c: Likewise.
66084         * lib/argmatch.h: Likewise.
66085         * lib/argp-ba.c: Likewise.
66086         * lib/argp-eexst.c: Likewise.
66087         * lib/argp-fmtstream.c: Likewise.
66088         * lib/argp-fmtstream.h: Likewise.
66089         * lib/argp-fs-xinl.c: Likewise.
66090         * lib/argp-help.c: Likewise.
66091         * lib/argp-namefrob.h: Likewise.
66092         * lib/argp-parse.c: Likewise.
66093         * lib/argp-pin.c: Likewise.
66094         * lib/argp-pv.c: Likewise.
66095         * lib/argp-pvh.c: Likewise.
66096         * lib/argp-xinl.c: Likewise.
66097         * lib/argp.h: Likewise.
66098         * lib/at-func.c: Likewise.
66099         * lib/atanl.c: Likewise.
66100         * lib/backupfile.c: Likewise.
66101         * lib/backupfile.h: Likewise.
66102         * lib/basename.c: Likewise.
66103         * lib/binary-io.h: Likewise.
66104         * lib/byteswap.in.h: Likewise.
66105         * lib/c-stack.c: Likewise.
66106         * lib/c-stack.h: Likewise.
66107         * lib/c-strcasestr.c: Likewise.
66108         * lib/c-strcasestr.h: Likewise.
66109         * lib/c-strstr.c: Likewise.
66110         * lib/c-strstr.h: Likewise.
66111         * lib/c-strtod.c: Likewise.
66112         * lib/calloc.c: Likewise.
66113         * lib/canon-host.c: Likewise.
66114         * lib/canon-host.h: Likewise.
66115         * lib/canonicalize-lgpl.c: Likewise.
66116         * lib/canonicalize.c: Likewise.
66117         * lib/canonicalize.h: Likewise.
66118         * lib/ceil.c: Likewise.
66119         * lib/ceilf.c: Likewise.
66120         * lib/ceill.c: Likewise.
66121         * lib/chdir-long.c: Likewise.
66122         * lib/chdir-long.h: Likewise.
66123         * lib/chdir-safer.c: Likewise.
66124         * lib/chdir-safer.h: Likewise.
66125         * lib/chown.c: Likewise.
66126         * lib/classpath.c: Likewise.
66127         * lib/classpath.h: Likewise.
66128         * lib/clean-temp.c: Likewise.
66129         * lib/clean-temp.h: Likewise.
66130         * lib/cloexec.c: Likewise.
66131         * lib/close-stream.c: Likewise.
66132         * lib/closein.c: Likewise.
66133         * lib/closein.h: Likewise.
66134         * lib/closeout.c: Likewise.
66135         * lib/closeout.h: Likewise.
66136         * lib/concat-filename.c: Likewise.
66137         * lib/copy-file.c: Likewise.
66138         * lib/copy-file.h: Likewise.
66139         * lib/count-one-bits.h: Likewise.
66140         * lib/crc.c: Likewise.
66141         * lib/crc.h: Likewise.
66142         * lib/creat-safer.c: Likewise.
66143         * lib/csharpcomp.c: Likewise.
66144         * lib/csharpcomp.h: Likewise.
66145         * lib/csharpexec.c: Likewise.
66146         * lib/csharpexec.h: Likewise.
66147         * lib/cycle-check.c: Likewise.
66148         * lib/cycle-check.h: Likewise.
66149         * lib/diacrit.c: Likewise.
66150         * lib/diacrit.h: Likewise.
66151         * lib/diffseq.h: Likewise.
66152         * lib/dirchownmod.c: Likewise.
66153         * lib/dirent.in.h: Likewise.
66154         * lib/dirfd.c: Likewise.
66155         * lib/dirfd.h: Likewise.
66156         * lib/dirname.c: Likewise.
66157         * lib/dirname.h: Likewise.
66158         * lib/dummy.c: Likewise.
66159         * lib/dup-safer.c: Likewise.
66160         * lib/dup2.c: Likewise.
66161         * lib/eealloc.h: Likewise.
66162         * lib/error.c: Likewise.
66163         * lib/error.h: Likewise.
66164         * lib/euidaccess.c: Likewise.
66165         * lib/exclude.c: Likewise.
66166         * lib/exclude.h: Likewise.
66167         * lib/execute.c: Likewise.
66168         * lib/execute.h: Likewise.
66169         * lib/exitfail.c: Likewise.
66170         * lib/exitfail.h: Likewise.
66171         * lib/expl.c: Likewise.
66172         * lib/fatal-signal.c: Likewise.
66173         * lib/fatal-signal.h: Likewise.
66174         * lib/fbufmode.c: Likewise.
66175         * lib/fbufmode.h: Likewise.
66176         * lib/fchdir.c: Likewise.
66177         * lib/fchmodat.c: Likewise.
66178         * lib/fchownat.c: Likewise.
66179         * lib/fcntl--.h: Likewise.
66180         * lib/fcntl-safer.h: Likewise.
66181         * lib/fcntl.in.h: Likewise.
66182         * lib/fd-safer.c: Likewise.
66183         * lib/fflush.c: Likewise.
66184         * lib/file-has-acl.c: Likewise.
66185         * lib/file-set.c: Likewise.
66186         * lib/file-type.c: Likewise.
66187         * lib/file-type.h: Likewise.
66188         * lib/fileblocks.c: Likewise.
66189         * lib/filemode.c: Likewise.
66190         * lib/filemode.h: Likewise.
66191         * lib/filename.h: Likewise.
66192         * lib/filenamecat.c: Likewise.
66193         * lib/filenamecat.h: Likewise.
66194         * lib/findprog.c: Likewise.
66195         * lib/findprog.h: Likewise.
66196         * lib/float.in.h: Likewise.
66197         * lib/floor.c: Likewise.
66198         * lib/floorf.c: Likewise.
66199         * lib/floorl.c: Likewise.
66200         * lib/fopen-safer.c: Likewise.
66201         * lib/fopen.c: Likewise.
66202         * lib/fpending.c: Likewise.
66203         * lib/fpending.h: Likewise.
66204         * lib/fprintf.c: Likewise.
66205         * lib/fprintftime.h: Likewise.
66206         * lib/fpucw.h: Likewise.
66207         * lib/fpurge.c: Likewise.
66208         * lib/fpurge.h: Likewise.
66209         * lib/freadable.c: Likewise.
66210         * lib/freadable.h: Likewise.
66211         * lib/freadahead.c: Likewise.
66212         * lib/freadahead.h: Likewise.
66213         * lib/freading.c: Likewise.
66214         * lib/freading.h: Likewise.
66215         * lib/free.c: Likewise.
66216         * lib/freopen.c: Likewise.
66217         * lib/frexp.c: Likewise.
66218         * lib/frexpl.c: Likewise.
66219         * lib/fseek.c: Likewise.
66220         * lib/fseterr.c: Likewise.
66221         * lib/fseterr.h: Likewise.
66222         * lib/fstatat.c: Likewise.
66223         * lib/fstrcmp.c: Likewise.
66224         * lib/fstrcmp.h: Likewise.
66225         * lib/fsusage.c: Likewise.
66226         * lib/fsusage.h: Likewise.
66227         * lib/ftell.c: Likewise.
66228         * lib/ftello.c: Likewise.
66229         * lib/fts-cycle.c: Likewise.
66230         * lib/fts.c: Likewise.
66231         * lib/fts_.h: Likewise.
66232         * lib/full-read.c: Likewise.
66233         * lib/full-read.h: Likewise.
66234         * lib/full-write.c: Likewise.
66235         * lib/full-write.h: Likewise.
66236         * lib/fwritable.c: Likewise.
66237         * lib/fwritable.h: Likewise.
66238         * lib/fwriteerror.c: Likewise.
66239         * lib/fwriteerror.h: Likewise.
66240         * lib/fwriting.c: Likewise.
66241         * lib/fwriting.h: Likewise.
66242         * lib/gcd.c: Likewise.
66243         * lib/gcd.h: Likewise.
66244         * lib/getcwd.c: Likewise.
66245         * lib/getdate.h: Likewise.
66246         * lib/getdate.y: Likewise.
66247         * lib/getdomainname.c: Likewise.
66248         * lib/getdomainname.h: Likewise.
66249         * lib/getgroups.c: Likewise.
66250         * lib/gethostname.c: Likewise.
66251         * lib/gethrxtime.c: Likewise.
66252         * lib/gethrxtime.h: Likewise.
66253         * lib/getloadavg.c: Likewise.
66254         * lib/getndelim2.c: Likewise.
66255         * lib/getndelim2.h: Likewise.
66256         * lib/getnline.c: Likewise.
66257         * lib/getnline.h: Likewise.
66258         * lib/getopt.c: Likewise.
66259         * lib/getopt.in.h: Likewise.
66260         * lib/getopt1.c: Likewise.
66261         * lib/getopt_int.h: Likewise.
66262         * lib/getpagesize.h: Likewise.
66263         * lib/getsubopt.c: Likewise.
66264         * lib/gettime.c: Likewise.
66265         * lib/getugroups.c: Likewise.
66266         * lib/getugroups.h: Likewise.
66267         * lib/getusershell.c: Likewise.
66268         * lib/gl_anyavltree_list1.h: Likewise.
66269         * lib/gl_anyavltree_list2.h: Likewise.
66270         * lib/gl_anyhash_list1.h: Likewise.
66271         * lib/gl_anyhash_list2.h: Likewise.
66272         * lib/gl_anylinked_list1.h: Likewise.
66273         * lib/gl_anylinked_list2.h: Likewise.
66274         * lib/gl_anyrbtree_list1.h: Likewise.
66275         * lib/gl_anyrbtree_list2.h: Likewise.
66276         * lib/gl_anytree_list1.h: Likewise.
66277         * lib/gl_anytree_list2.h: Likewise.
66278         * lib/gl_anytree_oset.h: Likewise.
66279         * lib/gl_anytreehash_list1.h: Likewise.
66280         * lib/gl_anytreehash_list2.h: Likewise.
66281         * lib/gl_array_list.c: Likewise.
66282         * lib/gl_array_list.h: Likewise.
66283         * lib/gl_array_oset.c: Likewise.
66284         * lib/gl_array_oset.h: Likewise.
66285         * lib/gl_avltree_list.c: Likewise.
66286         * lib/gl_avltree_list.h: Likewise.
66287         * lib/gl_avltree_oset.c: Likewise.
66288         * lib/gl_avltree_oset.h: Likewise.
66289         * lib/gl_avltreehash_list.c: Likewise.
66290         * lib/gl_avltreehash_list.h: Likewise.
66291         * lib/gl_carray_list.c: Likewise.
66292         * lib/gl_carray_list.h: Likewise.
66293         * lib/gl_linked_list.c: Likewise.
66294         * lib/gl_linked_list.h: Likewise.
66295         * lib/gl_linkedhash_list.c: Likewise.
66296         * lib/gl_linkedhash_list.h: Likewise.
66297         * lib/gl_list.c: Likewise.
66298         * lib/gl_list.h: Likewise.
66299         * lib/gl_oset.c: Likewise.
66300         * lib/gl_oset.h: Likewise.
66301         * lib/gl_rbtree_list.c: Likewise.
66302         * lib/gl_rbtree_list.h: Likewise.
66303         * lib/gl_rbtree_oset.c: Likewise.
66304         * lib/gl_rbtree_oset.h: Likewise.
66305         * lib/gl_rbtreehash_list.c: Likewise.
66306         * lib/gl_rbtreehash_list.h: Likewise.
66307         * lib/gl_sublist.c: Likewise.
66308         * lib/gl_sublist.h: Likewise.
66309         * lib/group-member.c: Likewise.
66310         * lib/group-member.h: Likewise.
66311         * lib/hard-locale.c: Likewise.
66312         * lib/hard-locale.h: Likewise.
66313         * lib/hash-pjw.c: Likewise.
66314         * lib/hash-pjw.h: Likewise.
66315         * lib/hash-triple.c: Likewise.
66316         * lib/hash.c: Likewise.
66317         * lib/hash.h: Likewise.
66318         * lib/human.c: Likewise.
66319         * lib/human.h: Likewise.
66320         * lib/i-ring.c: Likewise.
66321         * lib/i-ring.h: Likewise.
66322         * lib/idcache.c: Likewise.
66323         * lib/imaxabs.c: Likewise.
66324         * lib/imaxdiv.c: Likewise.
66325         * lib/inet_pton.c: Likewise.
66326         * lib/inet_pton.h: Likewise.
66327         * lib/intprops.h: Likewise.
66328         * lib/inttostr.c: Likewise.
66329         * lib/inttostr.h: Likewise.
66330         * lib/inttypes.in.h: Likewise.
66331         * lib/isapipe.c: Likewise.
66332         * lib/isdir.c: Likewise.
66333         * lib/isnan.c: Likewise.
66334         * lib/isnan.h: Likewise.
66335         * lib/isnanf.c: Likewise.
66336         * lib/isnanf.h: Likewise.
66337         * lib/isnanl-nolibm.h: Likewise.
66338         * lib/isnanl.c: Likewise.
66339         * lib/isnanl.h: Likewise.
66340         * lib/javacomp.c: Likewise.
66341         * lib/javacomp.h: Likewise.
66342         * lib/javaexec.c: Likewise.
66343         * lib/javaexec.h: Likewise.
66344         * lib/javaversion.c: Likewise.
66345         * lib/javaversion.h: Likewise.
66346         * lib/javaversion.java: Likewise.
66347         * lib/lbrkprop.h: Likewise.
66348         * lib/lchmod.h: Likewise.
66349         * lib/lchown.c: Likewise.
66350         * lib/ldexpl.c: Likewise.
66351         * lib/linebreak.c: Likewise.
66352         * lib/linebreak.h: Likewise.
66353         * lib/linebuffer.c: Likewise.
66354         * lib/linebuffer.h: Likewise.
66355         * lib/locale.in.h: Likewise.
66356         * lib/logl.c: Likewise.
66357         * lib/long-options.c: Likewise.
66358         * lib/long-options.h: Likewise.
66359         * lib/lstat.c: Likewise.
66360         * lib/lstat.h: Likewise.
66361         * lib/math.in.h: Likewise.
66362         * lib/mbchar.c: Likewise.
66363         * lib/mbchar.h: Likewise.
66364         * lib/mbfile.h: Likewise.
66365         * lib/mbiter.h: Likewise.
66366         * lib/mbscasecmp.c: Likewise.
66367         * lib/mbscasestr.c: Likewise.
66368         * lib/mbschr.c: Likewise.
66369         * lib/mbscspn.c: Likewise.
66370         * lib/mbslen.c: Likewise.
66371         * lib/mbsncasecmp.c: Likewise.
66372         * lib/mbsnlen.c: Likewise.
66373         * lib/mbspbrk.c: Likewise.
66374         * lib/mbspcasecmp.c: Likewise.
66375         * lib/mbsrchr.c: Likewise.
66376         * lib/mbssep.c: Likewise.
66377         * lib/mbsspn.c: Likewise.
66378         * lib/mbsstr.c: Likewise.
66379         * lib/mbstok_r.c: Likewise.
66380         * lib/mbswidth.c: Likewise.
66381         * lib/mbswidth.h: Likewise.
66382         * lib/mbuiter.h: Likewise.
66383         * lib/memcasecmp.c: Likewise.
66384         * lib/memcasecmp.h: Likewise.
66385         * lib/memchr.c: Likewise.
66386         * lib/memcmp.c: Likewise.
66387         * lib/memcoll.c: Likewise.
66388         * lib/memcoll.h: Likewise.
66389         * lib/memcpy.c: Likewise.
66390         * lib/memrchr.c: Likewise.
66391         * lib/mkancesdirs.c: Likewise.
66392         * lib/mkdir-p.c: Likewise.
66393         * lib/mkdir-p.h: Likewise.
66394         * lib/mkdir.c: Likewise.
66395         * lib/mkdirat.c: Likewise.
66396         * lib/mkdtemp.c: Likewise.
66397         * lib/mkstemp-safer.c: Likewise.
66398         * lib/mkstemp.c: Likewise.
66399         * lib/modechange.c: Likewise.
66400         * lib/modechange.h: Likewise.
66401         * lib/mountlist.c: Likewise.
66402         * lib/mountlist.h: Likewise.
66403         * lib/mpsort.c: Likewise.
66404         * lib/nanosleep.c: Likewise.
66405         * lib/obstack.c: Likewise.
66406         * lib/obstack.h: Likewise.
66407         * lib/open-safer.c: Likewise.
66408         * lib/open.c: Likewise.
66409         * lib/openat-die.c: Likewise.
66410         * lib/openat-priv.h: Likewise.
66411         * lib/openat-proc.c: Likewise.
66412         * lib/openat.c: Likewise.
66413         * lib/openat.h: Likewise.
66414         * lib/pagealign_alloc.c: Likewise.
66415         * lib/pagealign_alloc.h: Likewise.
66416         * lib/physmem.c: Likewise.
66417         * lib/physmem.h: Likewise.
66418         * lib/pipe-safer.c: Likewise.
66419         * lib/pipe.c: Likewise.
66420         * lib/pipe.h: Likewise.
66421         * lib/posixtm.c: Likewise.
66422         * lib/posixtm.h: Likewise.
66423         * lib/posixver.c: Likewise.
66424         * lib/printf-frexp.c: Likewise.
66425         * lib/printf-frexp.h: Likewise.
66426         * lib/printf-frexpl.c: Likewise.
66427         * lib/printf-frexpl.h: Likewise.
66428         * lib/printf.c: Likewise.
66429         * lib/progname.c: Likewise.
66430         * lib/progname.h: Likewise.
66431         * lib/progreloc.c: Likewise.
66432         * lib/putenv.c: Likewise.
66433         * lib/quote.c: Likewise.
66434         * lib/quote.h: Likewise.
66435         * lib/quotearg.c: Likewise.
66436         * lib/quotearg.h: Likewise.
66437         * lib/raise.c: Likewise.
66438         * lib/readline.c: Likewise.
66439         * lib/readline.h: Likewise.
66440         * lib/readlink.c: Likewise.
66441         * lib/readtokens.c: Likewise.
66442         * lib/readtokens.h: Likewise.
66443         * lib/readtokens0.c: Likewise.
66444         * lib/readtokens0.h: Likewise.
66445         * lib/readutmp.c: Likewise.
66446         * lib/readutmp.h: Likewise.
66447         * lib/realloc.c: Likewise.
66448         * lib/relocwrapper.c: Likewise.
66449         * lib/rename-dest-slash.c: Likewise.
66450         * lib/rename.c: Likewise.
66451         * lib/rmdir.c: Likewise.
66452         * lib/rpmatch.c: Likewise.
66453         * lib/safe-read.c: Likewise.
66454         * lib/safe-read.h: Likewise.
66455         * lib/safe-write.c: Likewise.
66456         * lib/safe-write.h: Likewise.
66457         * lib/same-inode.h: Likewise.
66458         * lib/same.c: Likewise.
66459         * lib/same.h: Likewise.
66460         * lib/save-cwd.c: Likewise.
66461         * lib/save-cwd.h: Likewise.
66462         * lib/savedir.c: Likewise.
66463         * lib/savedir.h: Likewise.
66464         * lib/savewd.c: Likewise.
66465         * lib/savewd.h: Likewise.
66466         * lib/search.in.h: Likewise.
66467         * lib/setenv.c: Likewise.
66468         * lib/setenv.h: Likewise.
66469         * lib/settime.c: Likewise.
66470         * lib/sh-quote.c: Likewise.
66471         * lib/sh-quote.h: Likewise.
66472         * lib/sig2str.c: Likewise.
66473         * lib/sig2str.h: Likewise.
66474         * lib/signal.in.h: Likewise.
66475         * lib/signbitd.c: Likewise.
66476         * lib/signbitf.c: Likewise.
66477         * lib/signbitl.c: Likewise.
66478         * lib/sigprocmask.c: Likewise.
66479         * lib/sincosl.c: Likewise.
66480         * lib/sleep.c: Likewise.
66481         * lib/sprintf.c: Likewise.
66482         * lib/sqrtl.c: Likewise.
66483         * lib/stat-time.h: Likewise.
66484         * lib/stdio--.h: Likewise.
66485         * lib/stdio-safer.h: Likewise.
66486         * lib/stdlib--.h: Likewise.
66487         * lib/stdlib-safer.h: Likewise.
66488         * lib/stdlib.in.h: Likewise.
66489         * lib/stpcpy.c: Likewise.
66490         * lib/stpncpy.c: Likewise.
66491         * lib/strchrnul.c: Likewise.
66492         * lib/strcspn.c: Likewise.
66493         * lib/strerror.c: Likewise.
66494         * lib/strftime.c: Likewise.
66495         * lib/strftime.h: Likewise.
66496         * lib/striconveh.c: Likewise.
66497         * lib/striconveh.h: Likewise.
66498         * lib/striconveha.c: Likewise.
66499         * lib/striconveha.h: Likewise.
66500         * lib/stripslash.c: Likewise.
66501         * lib/strnlen1.c: Likewise.
66502         * lib/strnlen1.h: Likewise.
66503         * lib/strtod.c: Likewise.
66504         * lib/strtoimax.c: Likewise.
66505         * lib/strtok_r.c: Likewise.
66506         * lib/strtol.c: Likewise.
66507         * lib/strtoll.c: Likewise.
66508         * lib/strtoul.c: Likewise.
66509         * lib/strtoull.c: Likewise.
66510         * lib/sysexits.in.h: Likewise.
66511         * lib/tempname.c: Likewise.
66512         * lib/tempname.h: Likewise.
66513         * lib/timespec.h: Likewise.
66514         * lib/tls.c: Likewise.
66515         * lib/tls.h: Likewise.
66516         * lib/tmpdir.c: Likewise.
66517         * lib/tmpdir.h: Likewise.
66518         * lib/tmpfile-safer.c: Likewise.
66519         * lib/tmpfile.c: Likewise.
66520         * lib/trigl.c: Likewise.
66521         * lib/trigl.h: Likewise.
66522         * lib/trim.c: Likewise.
66523         * lib/trim.h: Likewise.
66524         * lib/trunc.c: Likewise.
66525         * lib/truncf.c: Likewise.
66526         * lib/truncl.c: Likewise.
66527         * lib/tsearch.c: Likewise.
66528         * lib/unicodeio.c: Likewise.
66529         * lib/unicodeio.h: Likewise.
66530         * lib/unistd--.h: Likewise.
66531         * lib/unistd-safer.h: Likewise.
66532         * lib/unistdio/ulc-fprintf.c: Likewise.
66533         * lib/unistdio/ulc-vfprintf.c: Likewise.
66534         * lib/unlinkdir.c: Likewise.
66535         * lib/unlinkdir.h: Likewise.
66536         * lib/unlocked-io.h: Likewise.
66537         * lib/unsetenv.c: Likewise.
66538         * lib/userspec.c: Likewise.
66539         * lib/utime.c: Likewise.
66540         * lib/utimecmp.c: Likewise.
66541         * lib/utimecmp.h: Likewise.
66542         * lib/utimens.c: Likewise.
66543         * lib/verify.h: Likewise.
66544         * lib/verror.c: Likewise.
66545         * lib/verror.h: Likewise.
66546         * lib/version-etc-fsf.c: Likewise.
66547         * lib/version-etc.c: Likewise.
66548         * lib/version-etc.h: Likewise.
66549         * lib/vfprintf.c: Likewise.
66550         * lib/vprintf.c: Likewise.
66551         * lib/vsprintf.c: Likewise.
66552         * lib/w32spawn.h: Likewise.
66553         * lib/wait-process.c: Likewise.
66554         * lib/wait-process.h: Likewise.
66555         * lib/wcwidth.c: Likewise.
66556         * lib/write-any-file.c: Likewise.
66557         * lib/xalloc-die.c: Likewise.
66558         * lib/xalloc.h: Likewise.
66559         * lib/xasprintf.c: Likewise.
66560         * lib/xgetcwd.c: Likewise.
66561         * lib/xgetcwd.h: Likewise.
66562         * lib/xgetdomainname.c: Likewise.
66563         * lib/xgetdomainname.h: Likewise.
66564         * lib/xgethostname.c: Likewise.
66565         * lib/xmalloc.c: Likewise.
66566         * lib/xmalloca.c: Likewise.
66567         * lib/xmalloca.h: Likewise.
66568         * lib/xmemcoll.c: Likewise.
66569         * lib/xnanosleep.c: Likewise.
66570         * lib/xreadlink.c: Likewise.
66571         * lib/xreadlink.h: Likewise.
66572         * lib/xsetenv.c: Likewise.
66573         * lib/xsetenv.h: Likewise.
66574         * lib/xstriconv.c: Likewise.
66575         * lib/xstriconv.h: Likewise.
66576         * lib/xstrndup.c: Likewise.
66577         * lib/xstrndup.h: Likewise.
66578         * lib/xstrtod.c: Likewise.
66579         * lib/xstrtod.h: Likewise.
66580         * lib/xstrtol-error.c: Likewise.
66581         * lib/xstrtol.c: Likewise.
66582         * lib/xstrtol.h: Likewise.
66583         * lib/xtime.h: Likewise.
66584         * lib/xvasprintf.c: Likewise.
66585         * lib/xvasprintf.h: Likewise.
66586         * lib/yesno.c: Likewise.
66587         * lib/yesno.h: Likewise.
66588         * posix-modules: Likewise.
66589         * tests/test-alloca-opt.c: Likewise.
66590         * tests/test-arcfour.c: Likewise.
66591         * tests/test-arctwo.c: Likewise.
66592         * tests/test-argmatch.c: Likewise.
66593         * tests/test-argp-2.sh: Likewise.
66594         * tests/test-argp.c: Likewise.
66595         * tests/test-arpa_inet.c: Likewise.
66596         * tests/test-array_list.c: Likewise.
66597         * tests/test-array_oset.c: Likewise.
66598         * tests/test-atexit.c: Likewise.
66599         * tests/test-avltree_list.c: Likewise.
66600         * tests/test-avltree_oset.c: Likewise.
66601         * tests/test-avltreehash_list.c: Likewise.
66602         * tests/test-base64.c: Likewise.
66603         * tests/test-binary-io.c: Likewise.
66604         * tests/test-byteswap.c: Likewise.
66605         * tests/test-c-ctype.c: Likewise.
66606         * tests/test-c-strcasecmp.c: Likewise.
66607         * tests/test-c-strcasestr.c: Likewise.
66608         * tests/test-c-strncasecmp.c: Likewise.
66609         * tests/test-c-strstr.c: Likewise.
66610         * tests/test-canonicalize-lgpl.c: Likewise.
66611         * tests/test-canonicalize.c: Likewise.
66612         * tests/test-carray_list.c: Likewise.
66613         * tests/test-ceilf.c: Likewise.
66614         * tests/test-ceill.c: Likewise.
66615         * tests/test-count-one-bits.c: Likewise.
66616         * tests/test-crc.c: Likewise.
66617         * tests/test-dirname.c: Likewise.
66618         * tests/test-fbufmode.c: Likewise.
66619         * tests/test-fcntl.c: Likewise.
66620         * tests/test-fflush.c: Likewise.
66621         * tests/test-floorf.c: Likewise.
66622         * tests/test-floorl.c: Likewise.
66623         * tests/test-fopen.c: Likewise.
66624         * tests/test-fprintf-posix.c: Likewise.
66625         * tests/test-fprintf-posix.h: Likewise.
66626         * tests/test-fpurge.c: Likewise.
66627         * tests/test-freadable.c: Likewise.
66628         * tests/test-freadahead.c: Likewise.
66629         * tests/test-freading.c: Likewise.
66630         * tests/test-freopen.c: Likewise.
66631         * tests/test-frexp.c: Likewise.
66632         * tests/test-frexpl.c: Likewise.
66633         * tests/test-fseek.c: Likewise.
66634         * tests/test-fseeko.c: Likewise.
66635         * tests/test-fseterr.c: Likewise.
66636         * tests/test-fstrcmp.c: Likewise.
66637         * tests/test-ftell.c: Likewise.
66638         * tests/test-ftello.c: Likewise.
66639         * tests/test-fwritable.c: Likewise.
66640         * tests/test-fwriting.c: Likewise.
66641         * tests/test-getaddrinfo.c: Likewise.
66642         * tests/test-getpass.c: Likewise.
66643         * tests/test-gettimeofday.c: Likewise.
66644         * tests/test-hmac-md5.c: Likewise.
66645         * tests/test-hmac-sha1.c: Likewise.
66646         * tests/test-iconv.c: Likewise.
66647         * tests/test-iconvme.c: Likewise.
66648         * tests/test-inttypes.c: Likewise.
66649         * tests/test-isnan.c: Likewise.
66650         * tests/test-isnanf.c: Likewise.
66651         * tests/test-isnanl-nolibm.c: Likewise.
66652         * tests/test-isnanl.c: Likewise.
66653         * tests/test-isnanl.h: Likewise.
66654         * tests/test-ldexpl.c: Likewise.
66655         * tests/test-linked_list.c: Likewise.
66656         * tests/test-linkedhash_list.c: Likewise.
66657         * tests/test-locale.c: Likewise.
66658         * tests/test-localename.c: Likewise.
66659         * tests/test-lock.c: Likewise.
66660         * tests/test-lseek.c: Likewise.
66661         * tests/test-malloca.c: Likewise.
66662         * tests/test-math.c: Likewise.
66663         * tests/test-mbscasecmp.c: Likewise.
66664         * tests/test-mbscasestr1.c: Likewise.
66665         * tests/test-mbscasestr2.c: Likewise.
66666         * tests/test-mbscasestr3.c: Likewise.
66667         * tests/test-mbscasestr4.c: Likewise.
66668         * tests/test-mbschr.c: Likewise.
66669         * tests/test-mbscspn.c: Likewise.
66670         * tests/test-mbsncasecmp.c: Likewise.
66671         * tests/test-mbspbrk.c: Likewise.
66672         * tests/test-mbspcasecmp.c: Likewise.
66673         * tests/test-mbsrchr.c: Likewise.
66674         * tests/test-mbsspn.c: Likewise.
66675         * tests/test-mbsstr1.c: Likewise.
66676         * tests/test-mbsstr2.c: Likewise.
66677         * tests/test-mbsstr3.c: Likewise.
66678         * tests/test-md5.c: Likewise.
66679         * tests/test-memmem.c: Likewise.
66680         * tests/test-netinet_in.c: Likewise.
66681         * tests/test-open.c: Likewise.
66682         * tests/test-printf-frexp.c: Likewise.
66683         * tests/test-printf-frexpl.c: Likewise.
66684         * tests/test-printf-posix.c: Likewise.
66685         * tests/test-printf-posix.h: Likewise.
66686         * tests/test-rbtree_list.c: Likewise.
66687         * tests/test-rbtree_oset.c: Likewise.
66688         * tests/test-rbtreehash_list.c: Likewise.
66689         * tests/test-read-file.c: Likewise.
66690         * tests/test-rijndael.c: Likewise.
66691         * tests/test-search.c: Likewise.
66692         * tests/test-signbit.c: Likewise.
66693         * tests/test-sleep.c: Likewise.
66694         * tests/test-snprintf-posix.c: Likewise.
66695         * tests/test-snprintf-posix.h: Likewise.
66696         * tests/test-snprintf.c: Likewise.
66697         * tests/test-sprintf-posix.c: Likewise.
66698         * tests/test-sprintf-posix.h: Likewise.
66699         * tests/test-stat-time.c: Likewise.
66700         * tests/test-stdbool.c: Likewise.
66701         * tests/test-stdint.c: Likewise.
66702         * tests/test-stdio.c: Likewise.
66703         * tests/test-stdlib.c: Likewise.
66704         * tests/test-stpncpy.c: Likewise.
66705         * tests/test-strcasestr.c: Likewise.
66706         * tests/test-striconv.c: Likewise.
66707         * tests/test-striconveh.c: Likewise.
66708         * tests/test-striconveha.c: Likewise.
66709         * tests/test-string.c: Likewise.
66710         * tests/test-sys_select.c: Likewise.
66711         * tests/test-sys_socket.c: Likewise.
66712         * tests/test-sys_stat.c: Likewise.
66713         * tests/test-sys_time.c: Likewise.
66714         * tests/test-sysexits.c: Likewise.
66715         * tests/test-time.c: Likewise.
66716         * tests/test-tls.c: Likewise.
66717         * tests/test-trunc.c: Likewise.
66718         * tests/test-truncf.c: Likewise.
66719         * tests/test-truncl.c: Likewise.
66720         * tests/test-unistd.c: Likewise.
66721         * tests/test-vasnprintf-posix.c: Likewise.
66722         * tests/test-vasnprintf-posix2.c: Likewise.
66723         * tests/test-vasnprintf.c: Likewise.
66724         * tests/test-vasprintf-posix.c: Likewise.
66725         * tests/test-vasprintf.c: Likewise.
66726         * tests/test-verify.c: Likewise.
66727         * tests/test-vfprintf-posix.c: Likewise.
66728         * tests/test-vprintf-posix.c: Likewise.
66729         * tests/test-vsnprintf-posix.c: Likewise.
66730         * tests/test-vsnprintf.c: Likewise.
66731         * tests/test-vsprintf-posix.c: Likewise.
66732         * tests/test-wchar.c: Likewise.
66733         * tests/test-wctype.c: Likewise.
66734         * tests/test-wcwidth.c: Likewise.
66735         * tests/test-xstrtol.c: Likewise.
66736         * tests/test-xvasprintf.c: Likewise.
66737         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
66738         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
66739         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66740         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66741         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66742         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
66743         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66744         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66745         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66746         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
66747         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66748         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66749         * tests/uniname/test-uninames.c: Likewise.
66750         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
66751         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
66752         * tests/unistdio/test-u16-printf1.h: Likewise.
66753         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
66754         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
66755         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
66756         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
66757         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
66758         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
66759         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
66760         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
66761         * tests/unistdio/test-u32-printf1.h: Likewise.
66762         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
66763         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
66764         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
66765         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
66766         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
66767         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
66768         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
66769         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
66770         * tests/unistdio/test-u8-printf1.h: Likewise.
66771         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
66772         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
66773         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
66774         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
66775         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
66776         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
66777         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
66778         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
66779         * tests/unistdio/test-ulc-printf1.h: Likewise.
66780         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
66781         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
66782         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
66783         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
66784         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
66785         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
66786         * tests/uniwidth/test-u16-strwidth.c: Likewise.
66787         * tests/uniwidth/test-u16-width.c: Likewise.
66788         * tests/uniwidth/test-u32-strwidth.c: Likewise.
66789         * tests/uniwidth/test-u32-width.c: Likewise.
66790         * tests/uniwidth/test-u8-strwidth.c: Likewise.
66791         * tests/uniwidth/test-u8-width.c: Likewise.
66792         * tests/uniwidth/test-uc_width.c: Likewise.
66793         * config/srclist-update: Likewise.
66794         (fixlicense): Update to GPLv3+.
66795
66796         Change copyright notice from LGPLv2.1+ to LGPLv3+.
66797         * tests/test-tsearch.c: Change copyright notice.
66798
66799         Change copyright notice from LGPLv2.0+ to LGPLv3+.
66800         * lib/c-strcaseeq.h: Change copyright notice.
66801         * lib/streq.h: Likewise.
66802         * lib/uniconv.h: Likewise.
66803         * lib/uniconv/u-conv-from-enc.h: Likewise.
66804         * lib/uniconv/u-conv-to-enc.h: Likewise.
66805         * lib/uniconv/u-strconv-from-enc.h: Likewise.
66806         * lib/uniconv/u-strconv-to-enc.h: Likewise.
66807         * lib/uniconv/u16-conv-from-enc.c: Likewise.
66808         * lib/uniconv/u16-conv-to-enc.c: Likewise.
66809         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
66810         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
66811         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
66812         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
66813         * lib/uniconv/u32-conv-from-enc.c: Likewise.
66814         * lib/uniconv/u32-conv-to-enc.c: Likewise.
66815         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
66816         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
66817         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
66818         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
66819         * lib/uniconv/u8-conv-from-enc.c: Likewise.
66820         * lib/uniconv/u8-conv-to-enc.c: Likewise.
66821         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
66822         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
66823         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
66824         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
66825         * lib/uniname.h: Likewise.
66826         * lib/uniname/uniname.c: Likewise.
66827         * lib/unistdio.h: Likewise.
66828         * lib/unistdio/u-asnprintf.h: Likewise.
66829         * lib/unistdio/u-asprintf.h: Likewise.
66830         * lib/unistdio/u-printf-args.c: Likewise.
66831         * lib/unistdio/u-printf-args.h: Likewise.
66832         * lib/unistdio/u-printf-parse.h: Likewise.
66833         * lib/unistdio/u-snprintf.h: Likewise.
66834         * lib/unistdio/u-sprintf.h: Likewise.
66835         * lib/unistdio/u-vasprintf.h: Likewise.
66836         * lib/unistdio/u-vsnprintf.h: Likewise.
66837         * lib/unistdio/u-vsprintf.h: Likewise.
66838         * lib/unistdio/u16-asnprintf.c: Likewise.
66839         * lib/unistdio/u16-asprintf.c: Likewise.
66840         * lib/unistdio/u16-printf-parse.c: Likewise.
66841         * lib/unistdio/u16-snprintf.c: Likewise.
66842         * lib/unistdio/u16-sprintf.c: Likewise.
66843         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
66844         * lib/unistdio/u16-u16-asprintf.c: Likewise.
66845         * lib/unistdio/u16-u16-snprintf.c: Likewise.
66846         * lib/unistdio/u16-u16-sprintf.c: Likewise.
66847         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
66848         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
66849         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
66850         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
66851         * lib/unistdio/u16-vasnprintf.c: Likewise.
66852         * lib/unistdio/u16-vasprintf.c: Likewise.
66853         * lib/unistdio/u16-vsnprintf.c: Likewise.
66854         * lib/unistdio/u16-vsprintf.c: Likewise.
66855         * lib/unistdio/u32-asnprintf.c: Likewise.
66856         * lib/unistdio/u32-asprintf.c: Likewise.
66857         * lib/unistdio/u32-printf-parse.c: Likewise.
66858         * lib/unistdio/u32-snprintf.c: Likewise.
66859         * lib/unistdio/u32-sprintf.c: Likewise.
66860         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
66861         * lib/unistdio/u32-u32-asprintf.c: Likewise.
66862         * lib/unistdio/u32-u32-snprintf.c: Likewise.
66863         * lib/unistdio/u32-u32-sprintf.c: Likewise.
66864         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
66865         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
66866         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
66867         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
66868         * lib/unistdio/u32-vasnprintf.c: Likewise.
66869         * lib/unistdio/u32-vasprintf.c: Likewise.
66870         * lib/unistdio/u32-vsnprintf.c: Likewise.
66871         * lib/unistdio/u32-vsprintf.c: Likewise.
66872         * lib/unistdio/u8-asnprintf.c: Likewise.
66873         * lib/unistdio/u8-asprintf.c: Likewise.
66874         * lib/unistdio/u8-printf-parse.c: Likewise.
66875         * lib/unistdio/u8-snprintf.c: Likewise.
66876         * lib/unistdio/u8-sprintf.c: Likewise.
66877         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
66878         * lib/unistdio/u8-u8-asprintf.c: Likewise.
66879         * lib/unistdio/u8-u8-snprintf.c: Likewise.
66880         * lib/unistdio/u8-u8-sprintf.c: Likewise.
66881         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
66882         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
66883         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
66884         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
66885         * lib/unistdio/u8-vasnprintf.c: Likewise.
66886         * lib/unistdio/u8-vasprintf.c: Likewise.
66887         * lib/unistdio/u8-vsnprintf.c: Likewise.
66888         * lib/unistdio/u8-vsprintf.c: Likewise.
66889         * lib/unistdio/ulc-asnprintf.c: Likewise.
66890         * lib/unistdio/ulc-asprintf.c: Likewise.
66891         * lib/unistdio/ulc-printf-parse.c: Likewise.
66892         * lib/unistdio/ulc-snprintf.c: Likewise.
66893         * lib/unistdio/ulc-sprintf.c: Likewise.
66894         * lib/unistdio/ulc-vasnprintf.c: Likewise.
66895         * lib/unistdio/ulc-vasprintf.c: Likewise.
66896         * lib/unistdio/ulc-vsnprintf.c: Likewise.
66897         * lib/unistdio/ulc-vsprintf.c: Likewise.
66898         * lib/unistr.h: Likewise.
66899         * lib/unistr/u-cpy-alloc.h: Likewise.
66900         * lib/unistr/u-cpy.h: Likewise.
66901         * lib/unistr/u-endswith.h: Likewise.
66902         * lib/unistr/u-move.h: Likewise.
66903         * lib/unistr/u-set.h: Likewise.
66904         * lib/unistr/u-startswith.h: Likewise.
66905         * lib/unistr/u-stpcpy.h: Likewise.
66906         * lib/unistr/u-stpncpy.h: Likewise.
66907         * lib/unistr/u-strcat.h: Likewise.
66908         * lib/unistr/u-strcpy.h: Likewise.
66909         * lib/unistr/u-strcspn.h: Likewise.
66910         * lib/unistr/u-strdup.h: Likewise.
66911         * lib/unistr/u-strlen.h: Likewise.
66912         * lib/unistr/u-strncat.h: Likewise.
66913         * lib/unistr/u-strncpy.h: Likewise.
66914         * lib/unistr/u-strnlen.h: Likewise.
66915         * lib/unistr/u-strpbrk.h: Likewise.
66916         * lib/unistr/u-strspn.h: Likewise.
66917         * lib/unistr/u-strstr.h: Likewise.
66918         * lib/unistr/u-strtok.h: Likewise.
66919         * lib/unistr/u16-check.c: Likewise.
66920         * lib/unistr/u16-chr.c: Likewise.
66921         * lib/unistr/u16-cmp.c: Likewise.
66922         * lib/unistr/u16-cpy-alloc.c: Likewise.
66923         * lib/unistr/u16-cpy.c: Likewise.
66924         * lib/unistr/u16-endswith.c: Likewise.
66925         * lib/unistr/u16-mblen.c: Likewise.
66926         * lib/unistr/u16-mbsnlen.c: Likewise.
66927         * lib/unistr/u16-mbtouc-aux.c: Likewise.
66928         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
66929         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
66930         * lib/unistr/u16-mbtouc.c: Likewise.
66931         * lib/unistr/u16-mbtoucr.c: Likewise.
66932         * lib/unistr/u16-move.c: Likewise.
66933         * lib/unistr/u16-next.c: Likewise.
66934         * lib/unistr/u16-prev.c: Likewise.
66935         * lib/unistr/u16-set.c: Likewise.
66936         * lib/unistr/u16-startswith.c: Likewise.
66937         * lib/unistr/u16-stpcpy.c: Likewise.
66938         * lib/unistr/u16-stpncpy.c: Likewise.
66939         * lib/unistr/u16-strcat.c: Likewise.
66940         * lib/unistr/u16-strchr.c: Likewise.
66941         * lib/unistr/u16-strcmp.c: Likewise.
66942         * lib/unistr/u16-strcpy.c: Likewise.
66943         * lib/unistr/u16-strcspn.c: Likewise.
66944         * lib/unistr/u16-strdup.c: Likewise.
66945         * lib/unistr/u16-strlen.c: Likewise.
66946         * lib/unistr/u16-strmblen.c: Likewise.
66947         * lib/unistr/u16-strmbtouc.c: Likewise.
66948         * lib/unistr/u16-strncat.c: Likewise.
66949         * lib/unistr/u16-strncmp.c: Likewise.
66950         * lib/unistr/u16-strncpy.c: Likewise.
66951         * lib/unistr/u16-strnlen.c: Likewise.
66952         * lib/unistr/u16-strpbrk.c: Likewise.
66953         * lib/unistr/u16-strrchr.c: Likewise.
66954         * lib/unistr/u16-strspn.c: Likewise.
66955         * lib/unistr/u16-strstr.c: Likewise.
66956         * lib/unistr/u16-strtok.c: Likewise.
66957         * lib/unistr/u16-to-u32.c: Likewise.
66958         * lib/unistr/u16-to-u8.c: Likewise.
66959         * lib/unistr/u16-uctomb-aux.c: Likewise.
66960         * lib/unistr/u16-uctomb.c: Likewise.
66961         * lib/unistr/u32-check.c: Likewise.
66962         * lib/unistr/u32-chr.c: Likewise.
66963         * lib/unistr/u32-cmp.c: Likewise.
66964         * lib/unistr/u32-cpy-alloc.c: Likewise.
66965         * lib/unistr/u32-cpy.c: Likewise.
66966         * lib/unistr/u32-endswith.c: Likewise.
66967         * lib/unistr/u32-mblen.c: Likewise.
66968         * lib/unistr/u32-mbsnlen.c: Likewise.
66969         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
66970         * lib/unistr/u32-mbtouc.c: Likewise.
66971         * lib/unistr/u32-mbtoucr.c: Likewise.
66972         * lib/unistr/u32-move.c: Likewise.
66973         * lib/unistr/u32-next.c: Likewise.
66974         * lib/unistr/u32-prev.c: Likewise.
66975         * lib/unistr/u32-set.c: Likewise.
66976         * lib/unistr/u32-startswith.c: Likewise.
66977         * lib/unistr/u32-stpcpy.c: Likewise.
66978         * lib/unistr/u32-stpncpy.c: Likewise.
66979         * lib/unistr/u32-strcat.c: Likewise.
66980         * lib/unistr/u32-strchr.c: Likewise.
66981         * lib/unistr/u32-strcmp.c: Likewise.
66982         * lib/unistr/u32-strcpy.c: Likewise.
66983         * lib/unistr/u32-strcspn.c: Likewise.
66984         * lib/unistr/u32-strdup.c: Likewise.
66985         * lib/unistr/u32-strlen.c: Likewise.
66986         * lib/unistr/u32-strmblen.c: Likewise.
66987         * lib/unistr/u32-strmbtouc.c: Likewise.
66988         * lib/unistr/u32-strncat.c: Likewise.
66989         * lib/unistr/u32-strncmp.c: Likewise.
66990         * lib/unistr/u32-strncpy.c: Likewise.
66991         * lib/unistr/u32-strnlen.c: Likewise.
66992         * lib/unistr/u32-strpbrk.c: Likewise.
66993         * lib/unistr/u32-strrchr.c: Likewise.
66994         * lib/unistr/u32-strspn.c: Likewise.
66995         * lib/unistr/u32-strstr.c: Likewise.
66996         * lib/unistr/u32-strtok.c: Likewise.
66997         * lib/unistr/u32-to-u16.c: Likewise.
66998         * lib/unistr/u32-to-u8.c: Likewise.
66999         * lib/unistr/u32-uctomb.c: Likewise.
67000         * lib/unistr/u8-check.c: Likewise.
67001         * lib/unistr/u8-chr.c: Likewise.
67002         * lib/unistr/u8-cmp.c: Likewise.
67003         * lib/unistr/u8-cpy-alloc.c: Likewise.
67004         * lib/unistr/u8-cpy.c: Likewise.
67005         * lib/unistr/u8-endswith.c: Likewise.
67006         * lib/unistr/u8-mblen.c: Likewise.
67007         * lib/unistr/u8-mbsnlen.c: Likewise.
67008         * lib/unistr/u8-mbtouc-aux.c: Likewise.
67009         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
67010         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
67011         * lib/unistr/u8-mbtouc.c: Likewise.
67012         * lib/unistr/u8-mbtoucr.c: Likewise.
67013         * lib/unistr/u8-move.c: Likewise.
67014         * lib/unistr/u8-next.c: Likewise.
67015         * lib/unistr/u8-prev.c: Likewise.
67016         * lib/unistr/u8-set.c: Likewise.
67017         * lib/unistr/u8-startswith.c: Likewise.
67018         * lib/unistr/u8-stpcpy.c: Likewise.
67019         * lib/unistr/u8-stpncpy.c: Likewise.
67020         * lib/unistr/u8-strcat.c: Likewise.
67021         * lib/unistr/u8-strchr.c: Likewise.
67022         * lib/unistr/u8-strcmp.c: Likewise.
67023         * lib/unistr/u8-strcpy.c: Likewise.
67024         * lib/unistr/u8-strcspn.c: Likewise.
67025         * lib/unistr/u8-strdup.c: Likewise.
67026         * lib/unistr/u8-strlen.c: Likewise.
67027         * lib/unistr/u8-strmblen.c: Likewise.
67028         * lib/unistr/u8-strmbtouc.c: Likewise.
67029         * lib/unistr/u8-strncat.c: Likewise.
67030         * lib/unistr/u8-strncmp.c: Likewise.
67031         * lib/unistr/u8-strncpy.c: Likewise.
67032         * lib/unistr/u8-strnlen.c: Likewise.
67033         * lib/unistr/u8-strpbrk.c: Likewise.
67034         * lib/unistr/u8-strrchr.c: Likewise.
67035         * lib/unistr/u8-strspn.c: Likewise.
67036         * lib/unistr/u8-strstr.c: Likewise.
67037         * lib/unistr/u8-strtok.c: Likewise.
67038         * lib/unistr/u8-to-u16.c: Likewise.
67039         * lib/unistr/u8-to-u32.c: Likewise.
67040         * lib/unistr/u8-uctomb-aux.c: Likewise.
67041         * lib/unistr/u8-uctomb.c: Likewise.
67042         * lib/unitypes.h: Likewise.
67043         * lib/uniwidth.h: Likewise.
67044         * lib/uniwidth/cjk.h: Likewise.
67045         * lib/uniwidth/u16-strwidth.c: Likewise.
67046         * lib/uniwidth/u16-width.c: Likewise.
67047         * lib/uniwidth/u32-strwidth.c: Likewise.
67048         * lib/uniwidth/u32-width.c: Likewise.
67049         * lib/uniwidth/u8-strwidth.c: Likewise.
67050         * lib/uniwidth/u8-width.c: Likewise.
67051         * lib/uniwidth/width.c: Likewise.
67052
67053 2007-10-07  Bruno Haible  <bruno@clisp.org>
67054
67055         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
67056         The file is still under LGPL (see modules/inttypes).
67057
67058 2007-10-06  Bruno Haible  <bruno@clisp.org>
67059
67060         * modules/trunc (Dependencies): Add 'extensions'.
67061         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
67062         Reported by Ben Pfaff <blp@gnu.org>.
67063
67064 2007-10-06  Bruno Haible  <bruno@clisp.org>
67065
67066         * modules/freopen-tests: New file.
67067         * tests/test-freopen.c: New file.
67068
67069         * modules/fopen-tests: New file.
67070         * tests/test-fopen.c: New file.
67071
67072         * modules/fopen: New file.
67073         * lib/fopen.c: New file.
67074         * m4/fopen.m4: New file.
67075         * modules/freopen: New file.
67076         * lib/freopen.c: New file.
67077         * m4/freopen.m4: New file.
67078         * lib/stdio.in.h (fopen, freopen): New declarations.
67079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
67080         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67081         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
67082         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67083         * doc/functions/fopen.texi: Mention the 'fopen' module.
67084         * doc/functions/freopen.texi: Mention the 'freopen' module.
67085
67086 2007-10-06  Bruno Haible  <bruno@clisp.org>
67087
67088         * modules/open-tests: New file.
67089         * tests/test-open.c: New file.
67090
67091         * modules/open: New file.
67092         * lib/open.c: New file.
67093         * m4/open.m4: New file.
67094         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
67095         lib/open.c does.
67096         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
67097         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
67098         macros.
67099         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
67100         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
67101         REPLACE_OPEN.
67102         * doc/functions/open.texi: Mention the 'open' module.
67103
67104 2007-10-04  Bruno Haible  <bruno@clisp.org>
67105
67106         * modules/ceill-tests: New file.
67107         * tests/test-ceill.c: New file.
67108
67109         * modules/ceill: New file.
67110         * lib/ceill.c: Replace entire file.
67111         * m4/ceill.m4: New file.
67112         * lib/math.in.h (ceill): Replace declaration.
67113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
67114         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
67115         * doc/functions/ceill.texi: Mention the 'ceill' module.
67116         * modules/mathl (Files): Remove lib/ceill.c.
67117         (Depends-on): Add ceill.
67118
67119 2007-10-04  Bruno Haible  <bruno@clisp.org>
67120
67121         * modules/ceilf-tests: New file.
67122         * tests/test-ceilf.c: New file.
67123
67124         * modules/ceilf: New file.
67125         * lib/ceil.c: New file.
67126         * lib/ceilf.c: New file.
67127         * m4/ceilf.m4: New file.
67128         * lib/math.in.h (ceilf): New declaration.
67129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
67130         HAVE_DECL_CEILF.
67131         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
67132         HAVE_DECL_CEILF.
67133         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
67134
67135 2007-10-04  Bruno Haible  <bruno@clisp.org>
67136
67137         * modules/floorl-tests: New file.
67138         * tests/test-floorl.c: New file.
67139
67140         * modules/floorl: New file.
67141         * lib/floorl.c: Replace entire file.
67142         * m4/floorl.m4: New file.
67143         * lib/math.in.h (floorl): Replace declaration.
67144         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
67145         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
67146         * doc/functions/floorl.texi: Mention the 'floorl' module.
67147         * modules/mathl (Files): Remove lib/floorl.c.
67148         (Depends-on): Add floorl.
67149
67150 2007-10-04  Bruno Haible  <bruno@clisp.org>
67151
67152         * modules/floorf-tests: New file.
67153         * tests/test-floorf.c: New file.
67154
67155         * modules/floorf: New file.
67156         * lib/floor.c: New file.
67157         * lib/floorf.c: New file.
67158         * m4/floorf.m4: New file.
67159         * lib/math.in.h (floorf): New declaration.
67160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
67161         HAVE_DECL_FLOORF.
67162         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
67163         HAVE_DECL_FLOORF.
67164         * doc/functions/floorf.texi: Mention the 'floorf' module.
67165
67166 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
67167             Bruno Haible  <bruno@clisp.org>
67168
67169         Advertise for the Git server instead of the CVS server.
67170         * doc/gnulib-intro.texi (Steady Development): Mention the Git
67171         repository instead of the CVS one.
67172         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
67173         about all VCS systems generically.
67174         * doc/gnulib.texi (Introduction): Capitalize `Git'.
67175
67176 2007-10-04  Bruno Haible  <bruno@clisp.org>
67177
67178         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
67179         means.
67180         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
67181
67182 2007-10-04  Bruno Haible  <bruno@clisp.org>
67183
67184         * modules/truncl-tests: New file.
67185         * tests/test-truncl.c: New file.
67186
67187         * modules/truncl: New file.
67188         * lib/truncl.c: New file.
67189         * m4/truncl.m4: New file.
67190         * lib/math.in.h (truncl): New declaration.
67191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
67192         HAVE_DECL_TRUNCL.
67193         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
67194         HAVE_DECL_TRUNCL.
67195         * doc/functions/truncl.texi: Mention the 'truncl' module.
67196
67197 2007-10-04  Bruno Haible  <bruno@clisp.org>
67198
67199         * modules/truncf-tests: New file.
67200         * tests/test-truncf.c: New file.
67201
67202         * modules/truncf: New file.
67203         * lib/trunc.c: Make paramerizable through USE_* macros.
67204         * lib/truncf.c: New file.
67205         * m4/truncf.m4: New file.
67206         * lib/math.in.h (truncf): New declaration.
67207         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
67208         HAVE_DECL_TRUNCF.
67209         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
67210         HAVE_DECL_TRUNCF.
67211         * doc/functions/truncf.texi: Mention the 'truncf' module.
67212
67213 2007-10-03  Bruno Haible  <bruno@clisp.org>
67214
67215         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
67216         augmentation also for tests modules.
67217         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
67218         * modules/atexit-tests (Makefile.am): Likewise.
67219         * modules/binary-io-tests (Makefile.am): Likewise.
67220         * modules/c-strcase-tests (Makefile.am): Likewise.
67221         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
67222         * modules/canonicalize-tests (Makefile.am): Likewise.
67223         * modules/closein-tests (Makefile.am): Likewise.
67224         * modules/fprintf-posix-tests (Makefile.am): Likewise.
67225         * modules/freadahead-tests (Makefile.am): Likewise.
67226         * modules/fseek-tests (Makefile.am): Likewise.
67227         * modules/fseeko-tests (Makefile.am): Likewise.
67228         * modules/ftell-tests (Makefile.am): Likewise.
67229         * modules/ftello-tests (Makefile.am): Likewise.
67230         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
67231         * modules/isnanl-tests (Makefile.am): Likewise.
67232         * modules/lseek-tests (Makefile.am): Likewise.
67233         * modules/mbscasecmp-tests (Makefile.am): Likewise.
67234         * modules/mbscasestr-tests (Makefile.am): Likewise.
67235         * modules/mbschr-tests (Makefile.am): Likewise.
67236         * modules/mbscspn-tests (Makefile.am): Likewise.
67237         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
67238         * modules/mbspbrk-tests (Makefile.am): Likewise.
67239         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
67240         * modules/mbsrchr-tests (Makefile.am): Likewise.
67241         * modules/mbsspn-tests (Makefile.am): Likewise.
67242         * modules/mbsstr-tests (Makefile.am): Likewise.
67243         * modules/printf-posix-tests (Makefile.am): Likewise.
67244         * modules/snprintf-posix-tests (Makefile.am): Likewise.
67245         * modules/sprintf-posix-tests (Makefile.am): Likewise.
67246         * modules/tsearch-tests (Makefile.am): Likewise.
67247         * modules/uniname/uniname-tests (Makefile.am): Likewise.
67248         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
67249         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
67250         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
67251         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
67252         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
67253         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
67254         * modules/vprintf-posix-tests (Makefile.am): Likewise.
67255         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
67256         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
67257         * modules/xstrtoimax-tests (Makefile.am): Likewise.
67258         * modules/xstrtol-tests (Makefile.am): Likewise.
67259         * modules/xstrtoumax-tests (Makefile.am): Likewise.
67260         * modules/yesno-tests (Makefile.am): Likewise.
67261
67262 2007-10-03  Bruno Haible  <bruno@clisp.org>
67263
67264         * modules/trunc-tests: New file.
67265         * tests/test-trunc.c: New file.
67266
67267         * modules/trunc: New file.
67268         * lib/trunc.c: New file.
67269         * m4/trunc.m4: New file.
67270         * lib/math.in.h (trunc): New declaration.
67271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
67272         HAVE_DECL_TRUNC.
67273         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
67274         HAVE_DECL_TRUNC.
67275         * doc/functions/trunc.texi: Mention the 'trunc' module.
67276
67277 2007-10-03  Bruno Haible  <bruno@clisp.org>
67278
67279         * tests/test-fpending.c: New file, mostly copied
67280         from coreutils/lib/t-fpending.c.
67281         * modules/fpending-tests: New file.
67282
67283 2007-10-03  Bruno Haible  <bruno@clisp.org>
67284
67285         Port the stdio extensions to QNX (untested).
67286         * lib/fseterr.c (fseterr): Add support for QNX.
67287         * lib/fbufmode.c (fbufmode): Likewise.
67288         * lib/freadable.c (freadable): Likewise.
67289         * lib/fwritable.c (fwritable): Likewise.
67290         * lib/freading.c (freading): Likewise.
67291         * lib/fwriting.c (fwriting): Likewise.
67292         * lib/freadahead.c (freadahed): Likewise.
67293         * lib/fpurge.c (fpurge): Likewise.
67294         * lib/fseeko.c (rpl_fseeko): Likewise.
67295
67296 2007-10-03  Bruno Haible  <bruno@clisp.org>
67297             Jim Meyering  <jim@meyering.net>
67298             Eric Blake  <ebb9@byu.net>
67299
67300         * doc/relocatable.texi: Use @command instead of @program.
67301
67302 2007-10-02  Jim Meyering  <jim@meyering.net>
67303
67304         Perform one more "_.h" -> ".in.h" substitution.
67305         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
67306         instead of unistd_.h here, too.
67307
67308 2007-10-01  Bruno Haible  <bruno@clisp.org>
67309
67310         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
67311         Needed for the alloca-opt module.
67312
67313 2007-09-30  Bruno Haible  <bruno@clisp.org>
67314
67315         * lib/alloca.in.h: Renamed from lib/alloca_.h.
67316         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
67317         alloca_.h.
67318         * lib/argz.in.h: Renamed from lib/argz_.h.
67319         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
67320         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
67321         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
67322         byteswap_.h.
67323         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67324         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67325         dirent_.h.
67326         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67327         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67328         fcntl_.h.
67329         * lib/float.in.h: Renamed from lib/float_.h.
67330         * modules/float (Files, Makefile.am): Use float.in.h instead of
67331         float_.h.
67332         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67333         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67334         fnmatch_.h.
67335         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67336         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67337         getopt_.h.
67338         * lib/glob.in.h: Renamed from lib/glob_.h.
67339         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67340         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67341         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67342         iconv_.h.
67343         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67344         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67345         inttypes_.h.
67346         * lib/locale.in.h: Renamed from lib/locale_.h.
67347         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67348         locale_.h.
67349         * lib/math.in.h: Renamed from lib/math_.h.
67350         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67351         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67352         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67353         of netinet_in_.h. Add dependency.
67354         * lib/poll.in.h: Renamed from lib/poll_.h.
67355         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67356         * lib/search.in.h: Renamed from lib/search_.h.
67357         * modules/search (Files, Makefile.am): Use search.in.h instead of
67358         search_.h.
67359         * lib/signal.in.h: Renamed from lib/signal_.h.
67360         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67361         _signal.h.
67362         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67363         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67364         stdbool_.h.
67365         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67366         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67367         stdint_.h.
67368         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67369         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67370         stdio_.h.
67371         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67372         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67373         stdlib_.h.
67374         * lib/string.in.h: Renamed from lib/string_.h.
67375         * modules/string (Files, Makefile.am): Use string.in.h instead of
67376         string_.h.
67377         * doc/gnulib-tool.texi (Initial import): Update.
67378         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67379         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67380         of sys_select_.h. Add dependency.
67381         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67382         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67383         of sys_socket_.h.
67384         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67385         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67386         sys_stat_.h.
67387         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
67388         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
67389         sys_time_.h.
67390         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
67391         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
67392         sysexits_.h.
67393         * lib/time.in.h: Renamed from lib/time_.h.
67394         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67395         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67396         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67397         unistd_.h.
67398         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67399         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67400         wchar_.h.
67401         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67402         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67403         wctype_.h.
67404         * build-aux/bootstrap (slurp): Update.
67405         * lib/.cppi-disable: Update.
67406
67407 2007-09-30  Bruno Haible  <bruno@clisp.org>
67408
67409         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67410         Needed on BeOS.
67411
67412 2007-09-30  Bruno Haible  <bruno@clisp.org>
67413
67414         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67415
67416 2007-09-29  Bruno Haible  <bruno@clisp.org>
67417
67418         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67419
67420 2007-09-29  Bruno Haible  <bruno@clisp.org>
67421
67422         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67423         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67424         * build-aux/install-reloc: Compile also areadlink.c.
67425         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67426
67427 2007-09-29  Bruno Haible  <bruno@clisp.org>
67428
67429         * gnulib-tool (func_emit_initmacro_done): Indentation.
67430
67431 2007-09-29  Bruno Haible  <bruno@clisp.org>
67432
67433         * README: Add CVS checkout update instructions.
67434         Info from Bob Proulx <bob@proulx.com>.
67435
67436 2007-09-28  Eric Blake  <ebb9@byu.net>
67437
67438         Provide move-if-change.
67439         * build-aux/move-if-change: New file, based on best practice
67440         rather than any canonical upstream location.
67441
67442 2007-09-28  Jim Meyering  <jim@meyering.net>
67443
67444         Fix canonicalize loop-detection corner case.
67445         Do not attempt to stat the symlink values stored via seen_triple.
67446         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67447         on linux-2.6.18, (but not 2.6.22).
67448         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67449         triple_compare.  The former compares dev,ino,filename, while the latter
67450         would actually stat dirname(filename) when dev and ino were equal.
67451         * lib/hash-triple.c: Install <string.h>.
67452         (STREQ): Define.
67453         (triple_compare_ino_str): New function.
67454         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67455
67456 2007-09-28  Eric Blake  <ebb9@byu.net>
67457
67458         Enforce that AC_REPLACE_FUNCS files exist.
67459         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67460         override check for typos.
67461
67462         Fix test-closein on Solaris 10.
67463         * tests/test-closein.c (main): Don't assume stdin can be inherited
67464         closed on all systems.
67465         * tests/test-closein.sh: Likewise.
67466         Reported by Piotr Tarnowski.
67467
67468 2007-09-28  Jim Meyering  <jim@meyering.net>
67469
67470         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67471
67472 2007-09-27  Jim Meyering  <jim@meyering.net>
67473
67474         canonicalize: Avoid a false-positive cycle failure.
67475         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67476         Sort.  Remove cycle-check.
67477         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
67478         not cycle-check.h.
67479         (seen_triple): New function.
67480         (canonicalize_filename_mode): Use it instead of cycle-check.
67481         * tests/test-canonicalize.c: Add a test for this bug.
67482         * tests/test-canonicalize.sh: Set up and run the test.
67483
67484         New module, file-set, from coreutils.
67485         * modules/file-set: Define it.
67486         * lib/file-set.c, lib/file-set.h: Implement.
67487
67488         New module, hash-triple, from coreutils.
67489         * modules/hash-triple: Define it.
67490         * lib/hash-triple.c, lib/hash-triple.h: Implement.
67491
67492 2007-09-25  Eric Blake  <ebb9@byu.net>
67493
67494         Fix strerror on Interix.
67495         * lib/string_.h (strerror): Declare replacement.
67496         * doc/functions/strerror.texi (strerror): Document the Interix
67497         shortcoming.
67498         * modules/string (Makefile.am): Support new hooks.
67499         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
67500         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
67501         gl_FUNC_STRERROR_SEPARATE.
67502         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
67503         * lib/strerror.c (rpl_strerror): Provide replacement.
67504         * modules/strerror (Depends-on): Add string.
67505         (configure.ac): Detect use of module.
67506         * tests/test-strerror.c: New file.
67507         * modules/strerror-tests: New test module.
67508         * modules/argp (Depends-on): Add strerror.
67509         * modules/error (Depends-on): Likewise.
67510         Reported by Martin Koeppe.
67511
67512 2007-09-24  Bruno Haible  <bruno@clisp.org>
67513
67514         * README: Update git instructions.
67515
67516 2007-09-24  Eric Blake  <ebb9@byu.net>
67517
67518         Revert fpending breakage from 2007-09-08.
67519         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
67520         __fpending.c.
67521
67522 2007-09-24  Jim Meyering  <jim@meyering.net>
67523
67524         filenamecat.c: Add a test.
67525         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
67526         showing how the function works when DIR is the empty string.
67527
67528 2007-09-21  Simon Josefsson  <simon@josefsson.org>
67529
67530         * tests/test-canonicalize.sh: Turn on executable bit.
67531
67532 2007-09-19  Eric Blake  <ebb9@byu.net>
67533
67534         * README: Update CVS instructions.
67535
67536 2007-09-18  Bruno Haible  <bruno@clisp.org>
67537
67538         * modules/areadlink: New file.
67539         * lib/areadlink.h (areadlink): New declaration.
67540         * lib/areadlink.c: New file, based on lib/xreadlink.c.
67541
67542 2007-09-17  Jim Meyering  <jim@meyering.net>
67543
67544         * lib/savewd.c (ESTALE) [!defined]: Define.
67545         Reported to be required on Interix by Martin Koeppe.
67546
67547 2007-09-17  Bruno Haible  <bruno@clisp.org>
67548
67549         * gnulib-tool (func_version): Use $version.
67550
67551 2007-09-16  Bruno Haible  <bruno@clisp.org>
67552
67553         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
67554         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
67555         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
67556         Reported by Greg Schafer <gschafer@zip.com.au>.
67557
67558 2007-09-15  Bruno Haible  <bruno@clisp.org>
67559
67560         * gnulib-tool (sed): Try a little harder to make bash understand the
67561         alias.
67562         Reported by Bruce Korb <bruce.korb@gmail.com>.
67563
67564 2007-09-13  Eric Blake  <ebb9@byu.net>
67565
67566         * ChangeLog: Remove conflict markers.
67567
67568 2007-09-13  Simon Josefsson  <simon@josefsson.org>
67569
67570         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
67571         Reported by Bruno Haible <bruno@clisp.org>.
67572
67573 2007-09-12  Bruno Haible  <bruno@clisp.org>
67574
67575         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
67576         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
67577         is not defined.
67578
67579 2007-09-12  Eric Blake  <ebb9@byu.net>
67580
67581         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
67582         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
67583         Autoconf definition.
67584         * modules/euidaccess (Depends-on): Add extensions, for
67585         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
67586         * modules/fnmatch (Depends-on): Likewise.
67587         * modules/getaddrinfo (Depends-on): Likewise.
67588         * modules/getdelim (Depends-on): Likewise.
67589         * modules/getline (Depends-on): Likewise.
67590         * modules/getsubopt (Depends-on): Likewise.
67591         * modules/gettext (Depends-on): Likewise.
67592         * modules/group-member (Depends-on): Likewise.
67593         * modules/mbchar (Depends-on): Likewise.
67594         * modules/memmem (Depends-on): Likewise.
67595         * modules/mempcpy (Depends-on): Likewise.
67596         * modules/memrchr (Depends-on): Likewise.
67597         * modules/pagealign_alloc (Depends-on): Likewise.
67598         * modules/readutmp (Depends-on): Likewise.
67599         * modules/stpcpy (Depends-on): Likewise.
67600         * modules/stpncpy (Depends-on): Likewise.
67601         * modules/strchrnul (Depends-on): Likewise.
67602         * modules/strndup (Depends-on): Likewise.
67603         * modules/strsep (Depends-on): Likewise.
67604         * modules/strverscmp (Depends-on): Likewise.
67605         * modules/vasprintf (Depends-on): Likewise.
67606         * modules/wcwidth (Depends-on): Likewise.
67607         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
67608         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
67609         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
67610         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
67611         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
67612         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67613         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
67614         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67615         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
67616         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
67617         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
67618         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67619         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67620         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
67621         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
67622         * m4/readutmp.m4 (gl_READUTMP): Likewise.
67623         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67624         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67625         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67626         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67627         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67628         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67629         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67630         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
67631         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
67632         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67633         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
67634         so that lock.m4 can be used in gettext without extensions module.
67635
67636 2007-09-11  Bruno Haible  <bruno@clisp.org>
67637
67638         * m4/isc-posix.m4: Remove file.
67639         Suggested by Eric Blake.
67640
67641 2007-09-11  Eric Blake  <ebb9@byu.net>
67642
67643         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
67644
67645 2007-09-10  Bruno Haible  <bruno@clisp.org>
67646
67647         * posix-modules: Fix typo in error message.
67648         Reported by Matt <mkraai@beckman.com>.
67649
67650 2007-09-09  Bruno Haible  <bruno@clisp.org>
67651
67652         * doc/functions/getdelim.texi: Update list of platforms lacking the
67653         function.
67654         * doc/functions/getline.texi: Likewise.
67655
67656 2007-09-09  Jim Meyering  <jim@meyering.net>
67657
67658         * lib/hash.c (hash_initialize): Detect calloc failure.
67659         Reported by Bruno Haible.
67660
67661 2007-09-09  Bruno Haible  <bruno@clisp.org>
67662
67663         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
67664         malloc or realloc fails.
67665
67666 2007-09-09  Bruno Haible  <bruno@clisp.org>
67667
67668         * modules/getcwd (Depends-on): Add malloc-posix.
67669         * modules/glob (Depends-on): Likewise.
67670         * modules/putenv (Depends-on): Likewise.
67671         * modules/strdup (Depends-on): Likewise.
67672         * modules/getdelim (Depends-on): Add realloc-posix.
67673         * modules/read-file (Depends-on): Likewise.
67674
67675 2007-09-09  Bruno Haible  <bruno@clisp.org>
67676
67677         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
67678         (gl_FUNC_MALLOC_POSIX): Require it.
67679         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
67680         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
67681         * modules/realloc (Files): Add m4/malloc.m4.
67682         * modules/calloc (Files): Likewise.
67683
67684 2007-09-09  Bruno Haible  <bruno@clisp.org>
67685
67686         * modules/malloc-posix: New file.
67687         * modules/malloc (Depends-on): Add malloc-posix.
67688         * lib/malloc.c: Include errno.h.
67689         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
67690         and a POSIX-compatible malloc into a single function. Set ENOMEM
67691         when returning NULL.
67692         * m4/malloc.m4: New file.
67693         * doc/functions/malloc.texi: Mention the malloc-posix module.
67694         * lib/stdlib_.h (malloc): New declaration.
67695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67696         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
67697         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
67698         and HAVE_MALLOC_POSIX.
67699
67700 2007-09-09  Bruno Haible  <bruno@clisp.org>
67701
67702         * modules/realloc-posix: New file.
67703         * modules/realloc (Depends-on): Add realloc-posix.
67704         * lib/realloc.c: Include errno.h.
67705         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
67706         and a POSIX-compatible realloc into a single function. Set ENOMEM
67707         when returning NULL.
67708         * m4/realloc.m4: New file.
67709         * doc/functions/realloc.texi: Mention the realloc-posix module.
67710         * lib/stdlib_.h (realloc): New declaration.
67711         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67712         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
67713         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
67714         and HAVE_REALLOC_POSIX.
67715
67716 2007-09-09  Bruno Haible  <bruno@clisp.org>
67717
67718         * modules/calloc-posix: New file.
67719         * modules/calloc (Depends-on): Add calloc-posix.
67720         * lib/calloc.c: Include errno.h.
67721         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
67722         and a POSIX-compatible calloc into a single function. Set ENOMEM
67723         when returning NULL.
67724         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
67725         * doc/functions/calloc.texi: Mention the calloc-posix module.
67726         * lib/stdlib_.h (calloc): New declaration.
67727         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67728         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
67729         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
67730         and HAVE_CALLOC_POSIX.
67731
67732 2007-09-09  Bruno Haible  <bruno@clisp.org>
67733
67734         Allow for modules to show an arbitrary notice.
67735         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
67736         * gnulib-tool: New option --extract-notice.
67737         (func_usage): Document it.
67738         (sed_extract_prog): Update.
67739         (func_get_notice): New function.
67740         (func_modules_notice): New function.
67741         (func_import, func_create_testdir): Invoke it.
67742         Suggested by Jim Meyering.
67743
67744 2007-09-09  Bruno Haible  <bruno@clisp.org>
67745
67746         * gnulib-tool: New options --verbose, --quiet.
67747         (func_usage): Document them.
67748         (verbose): New variable.
67749         (func_execute_command): New function.
67750         (func_import): Don't show the module list and the file list if
67751         $verbose < 0.
67752         (func_create_testdir): Likewise. Use func_execute_command.
67753         (func_create_megatestdir): Use func_execute_command.
67754
67755 2007-09-08  Bruno Haible  <bruno@clisp.org>
67756
67757         * gnulib-tool (func_import): Prefer rsync over wget when available,
67758         for fetching the PO files.
67759
67760 2007-09-08  Bruno Haible  <bruno@clisp.org>
67761
67762         * posix-modules: New file. Portions copied from gnulib-tool.
67763         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
67764
67765 2007-09-08  Jim Meyering  <jim@meyering.net>
67766
67767         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
67768         * lib/fpending.h: Rename from __fpending.h.
67769         * lib/fpending.c: Rename from __fpending.c.
67770         Include "fpending.h", not "__fpending.h".
67771         * lib/__fpending.h, lib/__fpending.c: Remove files.
67772         * modules/fpending (Files): Reflect new file names.
67773         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
67774
67775 2007-09-08  Bruno Haible  <bruno@clisp.org>
67776
67777         * m4/inttypes-h.m4: Remove stub file.
67778
67779 2007-09-07  Simon Josefsson  <simon@josefsson.org>
67780
67781         * doc/headers/stdint.texi: Discuss #include_next issue.
67782
67783 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67784
67785         * build-aux/bootstrap: Remove obsolete comment about wget --help.
67786
67787 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67788
67789         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
67790         in variable name.
67791
67792 2007-09-03  Jim Meyering  <jim@meyering.net>
67793
67794         New module: git-version-gen.
67795         * modules/git-version-gen: New file.
67796
67797         Import changes from coreutils for bootstrap script.
67798
67799         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
67800
67801         bootstrap: uses rsync to download the .po files
67802         * build-aux/bootstrap (po_download_command_format): New global.
67803         (download_po_files): Use rsync.
67804         (update_po_files): Don't remove .po files after download,
67805         so future rsync runs can take advantage of the copies.
67806
67807         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
67808
67809         Solve the unnecessary-.po-file-regeneration problem once and for all.
67810         * build-aux/bootstrap (download_po_files): New function, renamed from
67811         get_translations.  Now, downloads, but doesn't update LINGUAS.
67812         (update_po_files): New function.
67813
67814         bootstrap: Ignore more.
67815         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
67816         uniwidth to e.g., lib/.gitignore.
67817         (slurp): Handle the sys_stat_.h -> sys mapping, too.
67818
67819         * build-aux/bootstrap: New setting: vc_ignore.
67820         (insert_sorted_if_absent): Create $file if absent.
67821         Adapt to new, possibly empty, list: $vc_ignore.
67822
67823         bootstrap: generate more ignorable names
67824         * build-aux/bootstrap (slurp): When generating ignorable names,
67825         also map .sin to .sed, .gperf to .c, and .y to .c.
67826
67827 2007-09-03  Jim Meyering  <jim@meyering.net>
67828
67829         * build-aux/git-version-gen: New file, from coreutils.  For details, see
67830         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
67831
67832 2007-09-02  Bruno Haible  <bruno@clisp.org>
67833
67834         Fix mis-recognition of 'mcs' on QNX 6.
67835         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
67836         output contains the string "Mono".
67837         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
67838         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
67839
67840 2007-09-01  Bruno Haible  <bruno@clisp.org>
67841
67842         Fix collision between uniwidth/* and linebreak modules.
67843         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
67844         u32_width): Remove declarations.
67845         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
67846         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
67847         streq3, streq2, streq1, streq0): Remove functions.
67848         (STREQ): Remove macro.
67849         (is_cjk_encoding): Remove function.
67850         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
67851         (uc_width, u8_width, u16_width, u32_width): Remove functions.
67852         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
67853         * NEWS: Document the change.
67854
67855 2007-09-01  Bruno Haible  <bruno@clisp.org>
67856
67857         * lib/streq.h: Add double-inclusion guard.
67858
67859 2007-09-01  Karl Berry  <karl@gnu.org>
67860
67861         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
67862
67863 2007-08-28  Jim Meyering  <jim@meyering.net>
67864
67865         Rename mreadlink_with_size to areadlink_with_size.
67866         * NEWS: Document the change.
67867         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
67868         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
67869         * lib/mreadlink.h: Rename this to...
67870         * lib/areadlink.h: ...this.
67871         * modules/mreadlink-with-size: Rename this to...
67872         * modules/areadlink-with-size: ...this.
67873         * lib/canonicalize.c: Reflect the renaming.
67874         * modules/canonicalize: Likewise.
67875
67876 2007-08-26  Bruno Haible  <bruno@clisp.org>
67877
67878         * gnulib-tool (func_import): When deciding which files to remove,
67879         consider also dangling symbolic links.
67880         Reported by Eric Blake.
67881
67882 2007-08-26  Bruno Haible  <bruno@clisp.org>
67883
67884         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
67885
67886 2007-08-23  Simon Josefsson  <simon@josefsson.org>
67887
67888         * lib/readline.c: Don't include getline.h, the prototype is now
67889         found in stdio.h.
67890
67891 2007-08-23  Jim Meyering  <jim@meyering.net>
67892
67893         Getdelim touchup.
67894         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
67895         around the funlockfile call, since funlockfile never sets errno.
67896         Don't set errno upon failed realloc.
67897
67898 2007-08-22  Eric Blake  <ebb9@byu.net>
67899
67900         Getline touchups.
67901         * lib/getdelim.c (getdelim): Revert regression that required *n to
67902         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
67903         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
67904         getdelim, rather than whether implementation is missing.
67905         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
67906         * lib/stdio_.h (getline): Also declare if replacement is
67907         required.
67908         * doc/functions/getdelim.texi: New file.
67909         * doc/functions/getline.texi: Likewise.
67910         * doc/gnulib.texi (Function Substitutes): Add new files.
67911         Reported by Bruno Haible.
67912
67913 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
67914
67915         * users.txt: Add Guile.
67916
67917 2007-08-22  Eric Blake  <ebb9@byu.net>
67918
67919         * tests/test-getdelim.c (main): Use remove, not unlink.
67920         * tests/test-getline.c (main): Likewise.
67921
67922         Move getline and getdelim into stdio.h, per POSIX 200x.
67923         * modules/getline (Files): Remove getline.h.
67924         (Depends-on): Add stdio.
67925         (configure.ac): Add module indicator.
67926         * modules/getdelim (Files): Remove getdelim.h.
67927         (Depends-on): Add stdio.
67928         (configure.ac): Add module indicator.
67929         * modules/stdio (Makefile.am): Work with new indicators.
67930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
67931         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
67932         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67933         * lib/getdelim.h: Delete.
67934         * lib/getline.h: Delete.
67935         * lib/stdio_.h (getdelim, getline): Declare.
67936         * modules/getdelim-tests: New module.
67937         * modules/getline-tests: Likewise.
67938         * tests/test-getdelim.c: New file.
67939         * tests/test-getline.c: Likewise.
67940         * NEWS: Document the change.
67941         * lib/getline.c: Update choice of header.
67942         * lib/csharpcomp.c: Likewise.
67943         * lib/getpass.c: Likewise.
67944         * lib/javacomp.c: Likewise.
67945         * lib/javaversion.c: Likewise.
67946         * lib/yesno.c: Likewise.
67947         * lib/getdelim.c: Likewise.
67948         (getdelim): Set errno on failure, and avoid memory leak.
67949
67950 2007-08-19  Bruno Haible  <bruno@clisp.org>
67951
67952         * modules/closein (Depends-on): Add freadahead.
67953         * lib/closein.c: Include freadahead.h.
67954         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
67955         is zero.
67956
67957 2007-08-19  Bruno Haible  <bruno@clisp.org>
67958
67959         * modules/freadahead-tests: New file.
67960         * tests/test-freadahead.sh: New file.
67961         * tests/test-freadahead.c: New file.
67962
67963         * modules/freadahead: New file.
67964         * lib/freadahead.h: New file.
67965         * lib/freadahead.c: New file.
67966         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
67967         fbufmode, fpurge, freadable, fwritable.
67968
67969 2007-08-19  Eric Blake  <ebb9@byu.net>
67970
67971         Test yesno in combination with closein.
67972         * lib/yesno.c (yesno): Document use of stdin.
67973         * modules/yesno-tests (Files): New module.
67974         * tests/test-yesno.c (main): New file.
67975         * tests/test-yesno.sh: Likewise.
67976
67977 2007-08-19  Bruno Haible  <bruno@clisp.org>
67978
67979         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
67980         * lib/fseeko.c (rpl_fseeko): Likewise.
67981         * lib/fseterr.c (fseterr): Likewise.
67982
67983 2007-08-19  Bruno Haible  <bruno@clisp.org>
67984
67985         * tests/test-lseek.c (main): Disable a test for BeOS.
67986         * doc/functions/lseek.texi: Document the BeOS bug.
67987
67988 2007-08-19  Bruno Haible  <bruno@clisp.org>
67989             Eric Blake  <ebb9@byu.net>
67990
67991         * lib/lseek.c: Include <sys/stat.h>.
67992         (rpl_lseek): Add workaround code also for Unix platforms.
67993         Needed for BeOS.
67994         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
67995         * doc/functions/lseek.texi: Document BeOS definiency.
67996
67997 2007-08-18  Bruno Haible  <bruno@clisp.org>
67998
67999         * modules/fstrcmp-tests: New file.
68000         * tests/test-fstrcmp.c: New file.
68001
68002 2007-08-18  Bruno Haible  <bruno@clisp.org>
68003
68004         * modules/fstrcmp: New file, from GNU gettext with modifications.
68005         * lib/fstrcmp.h: New file, from GNU gettext.
68006         * lib/fstrcmp.c: New file, from GNU gettext.
68007         * MODULES.html.sh (String handling): Add fstrcmp.
68008
68009 2007-08-18  Bruno Haible  <bruno@clisp.org>
68010
68011         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
68012         'bool'.
68013         (diag, compareseq): Remove const from the ctxt argument.
68014         (USE_HEURISTIC): Undefine at the end.
68015
68016 2007-08-18  Jim Meyering  <jim@meyering.net>
68017
68018         New file: lib/idcache.h
68019         * NEWS: Mention the addition.
68020         * modules/idcache (Files): Add lib/idcache.h
68021         * lib/idcache.c: Include "idcache.h".
68022         Don't include <sys/types.h>.
68023         Add a FIXME comment.
68024         Move file-scoped "static" declarations to the top.
68025         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
68026
68027 2007-08-17  Bruno Haible  <bruno@clisp.org>
68028         and Paul Eggert  <eggert@cs.ucla.edu>
68029
68030         * MODULES.html.sh: Add diffseq.
68031         * modules/diffseq: New file.
68032         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
68033         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
68034
68035 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68036
68037         Import changes from coreutils for bootstrap script.
68038
68039         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
68040
68041         * build-aux/bootstrap (slurp): Work even in environments where
68042         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
68043         current code does not slurp files whose names start with ".", and
68044         this looks like it might be a troublesome area.
68045
68046         2007-07-11  Jim Meyering  <jim@meyering.net>
68047
68048         If there's a GPL vN copyright comment, require that N == 3.
68049
68050         2007-07-08  Jim Meyering  <jim@meyering.net>
68051
68052         Run the coreutils-specific code only if tests/Makefile.am.in exists.
68053         * build-aux/bootstrap (mam_template): Move definition out of loop.
68054
68055         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
68056
68057         * build-aux/bootstrap (symlink_to_dir): Rename function from
68058         symlink_to_gnulib.  Add a directory parameter.  Update all
68059         callers.
68060         (cp_mark_as_generated): Also check for -- and link to -- files in
68061         gl/.
68062
68063         2007-07-08  Jim Meyering  <jim@meyering.net>
68064
68065         Adapt to deeper hierarchy in gnulib.
68066         * build-aux/bootstrap (symlink_to_dir): If the destination
68067         directory doesn't exist, create it. This is required at least for
68068         "lib/uniwidth/cjk.h".
68069
68070         2007-05-15  Jim Meyering  <jim@meyering.net>
68071
68072         * build-aux/bootstrap: Now that generated Makefile.am files
68073         are no longer under version control, they must be created at
68074         bootstrap time.
68075
68076 2007-08-14  Ben Pfaff  <blp@gnu.org>
68077
68078         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
68079
68080 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68081
68082         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
68083         given the changes below.
68084         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
68085         even on hosts that have padding bits beyond the supported 64.
68086
68087 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68088
68089         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
68090         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
68091         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
68092         depends on it.
68093         (xstrtol_error): Remove.
68094         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
68095         but with a different signature.
68096         (ATTRIBUTE_NORETURN, __attribute__): New macros.
68097         * lib/xstrtol-error.c: Include exitfail.h.
68098         (xstrtol_fatal): New function, with a different signature from the
68099         old xstrtol_error, so that the caller need not worry about passing
68100         in an exit status, or about storage management of the option argument.
68101         (xstrtol_error): Now a static function.  Redo signature to
68102         implement xstrtol_fatal.  Output the correct number of hyphens in
68103         front of the option so that the caller need not worry about
68104         storage management.
68105         (N_): New macro.
68106         (_): Remove; not used now.
68107         * modules/xstrtol: Depend on getopt.
68108         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
68109         of old STRTOL_FATAL_ERROR macro.
68110         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
68111         of test program.
68112         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
68113         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
68114
68115 2007-08-08  Eric Blake  <ebb9@byu.net>
68116
68117         * lib/xstrtol-error.c: Add missing include.
68118
68119         Move xstrtol messages into gnulib domain, when --pobase is used.
68120         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
68121         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
68122         * modules/xstrtol (Files): Distribute new file.
68123         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
68124         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
68125         * tests/test-xstrtol.c: ...into new file.
68126         * tests/test-xstrtoul.c: Also test xstrtoul.
68127         * tests/test-xstrtoimax.c: Also test xstrtoimax.
68128         * tests/test-xstrtoumax.c: Also test xstrtoumax.
68129         * tests/test-xstrtol.sh: Drive the tests.
68130         * tests/test-xstrtoimax.sh: Likewise.
68131         * tests/test-xstrtoumax.sh: Likewise.
68132         * modules/xstrtol-tests: New module.
68133         * modules/xstrtoimax-tests: Likewise.
68134         * modules/xstrtoumax-tests: Likewise.
68135
68136 2007-08-08  Jim Meyering  <jim@meyering.net>
68137
68138         New function: mfile_name_concat.
68139         * lib/filenamecat.c (mfile_name_concat): New function, just like
68140         file_name_concat, but return NULL upon failure rather than exiting
68141         with a diagnostic.
68142         * lib/filenamecat.h: Declare it.
68143
68144 2007-08-07  Bruno Haible  <bruno@clisp.org>
68145
68146         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
68147         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
68148         warning from gcc.
68149         Reported by Eric Blake.
68150
68151 2007-08-07  Simon Josefsson  <simon@josefsson.org>
68152
68153         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
68154         * modules/crypto/arcfour (License): Likewise.
68155         * modules/crypto/des-tests (License): Likewise.
68156         * modules/crypto/gc-arctwo-tests (License): Likewise.
68157         * modules/crypto/gc-des-tests (License): Likewise.
68158         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
68159         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
68160         * modules/crypto/gc-md2-tests (License): Likewise.
68161         * modules/crypto/gc-md4-tests (License): Likewise.
68162         * modules/crypto/gc-md5-tests (License): Likewise.
68163         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
68164         * modules/crypto/gc-rijndael-tests (License): Likewise.
68165         * modules/crypto/gc-sha1-tests (License): Likewise.
68166         * modules/crypto/gc-tests (License): Likewise.
68167         * modules/crypto/hmac-md5 (License): Likewise.
68168         * modules/crypto/hmac-sha1 (License): Likewise.
68169         * modules/crypto/md2-tests (License): Likewise.
68170         * modules/crypto/md4-tests (License): Likewise.
68171         * modules/crypto/md5 (License): Likewise.
68172         * modules/crypto/rijndael (License): Likewise.
68173         * modules/crypto/sha1 (License): Likewise.
68174         * modules/memxor (License): Likewise.
68175
68176 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68177         and Bruno Haible  <bruno@clisp.org>
68178
68179         * NEWS: Describe interface changes to human, xstrtol.
68180         * lib/human.h: Include <xstrtol.h>.
68181         (human_options): Return enum strtol_error, not int.  Remove
68182         bool arg; take int * instead.
68183         * lib/human.c: Don't include "gettext.h".
68184         (_): Remove; no longer used.
68185         Don't include <xstrtol.h>, since human.h does it.
68186         (human_options): Adjust to abovementioned interface changes.
68187         Do not report error to stderr; that's now the caller's
68188         responsibility.
68189         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
68190         interface change.
68191         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
68192         Str, Argument_type_string.  All uses changed.  Put " argument"
68193         in diagnostics to make them clearer.  Change wording of suffix
68194         message for clarity.
68195         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
68196         Argument_type_string.
68197         (STRTOL_FATAL_WARN): Remove; no longer used.
68198         * modules/human (Depends-on): Remove gettext-h.
68199
68200 2007-08-06  Simon Josefsson  <simon@josefsson.org>
68201
68202         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
68203
68204 2007-07-31  Bruno Haible  <bruno@clisp.org>
68205
68206         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
68207         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
68208         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
68209
68210 2007-07-31  Bruno Haible  <bruno@clisp.org>
68211
68212         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
68213         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
68214
68215 2007-07-30  Bruno Haible  <bruno@clisp.org>
68216
68217         * modules/base64 (License): Use the synonymous term "LGPLv2+".
68218         * modules/c-ctype (License): Likewise.
68219         * modules/c-strcase (License): Likewise.
68220         * modules/check-version (License): Likewise.
68221         * modules/iconv (License): Likewise.
68222         * modules/iconv_open (License): Likewise.
68223         * modules/read-file (License): Likewise.
68224         * modules/striconv (License): Likewise.
68225         * modules/strverscmp (License): Likewise.
68226         * modules/vasprintf (License): Likewise.
68227         * modules/crypto/des (License): Likewise.
68228         * modules/crypto/gc (License): Likewise.
68229         * modules/crypto/gc-arcfour (License): Likewise.
68230         * modules/crypto/gc-arctwo (License): Likewise.
68231         * modules/crypto/gc-des (License): Likewise.
68232         * modules/crypto/gc-hmac-md5 (License): Likewise.
68233         * modules/crypto/gc-hmac-sha1 (License): Likewise.
68234         * modules/crypto/gc-md2 (License): Likewise.
68235         * modules/crypto/gc-md4 (License): Likewise.
68236         * modules/crypto/gc-md5 (License): Likewise.
68237         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
68238         * modules/crypto/gc-random (License): Likewise.
68239         * modules/crypto/gc-rijndael (License): Likewise.
68240         * modules/crypto/gc-sha1 (License): Likewise.
68241         * modules/crypto/md2 (License): Likewise.
68242         * modules/crypto/md4 (License): Likewise.
68243
68244 2007-07-30  Jim Meyering  <jim@meyering.net>
68245
68246         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
68247         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
68248         it has valid stat data.  This bug would cause du not to count the
68249         sizes of inaccessible directories.
68250         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
68251         in <http://bugzilla.redhat.com/250077>.
68252
68253 2007-07-25  Peter O'Gorman  <peter@pogma.com>
68254             Bruno Haible  <bruno@clisp.org>
68255
68256         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
68257         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
68258         #include_next, gives a diagnostic about it, but reports no error in
68259         the exit code.
68260         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
68261
68262 2007-07-24  Ben Pfaff  <blp@gnu.org>
68263
68264         Improve name: "count-one-bits" is better than "popcount".
68265         * MODULES.html.sh: Update name.
68266         * lib/popcount.h: Renamed lib/count-one-bits.h.
68267         (popcount): Renamed count_one_bits.
68268         (popcountl): Renamed count_one_bits_l.
68269         (popcountll): Renamed count_one_bits_ll.
68270         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
68271         * modules/popcount: Renamed module/count-one-bits.
68272         * modules/popcount-tests: Renamed module/count-one-bits-tests.
68273         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
68274
68275 2007-07-23  Ben Pfaff  <blp@gnu.org>
68276
68277         * lib/popcount.h (popcount32): Reduce size of constants, to allow
68278         better code generation, and add U to large constants to avoid
68279         warnings, in non-GCC case.
68280         Suggested by Bruno Haible.
68281
68282 2007-07-23  Ben Pfaff  <blp@gnu.org>
68283
68284         * lib/popcount.h: Use verify_true instead of if...abort.
68285         * modules/popcount: Depend on verify module.
68286         Suggested by Jim Meyering.
68287
68288 2007-07-23  Bruno Haible  <bruno@clisp.org>
68289
68290         * gnulib-tool (func_import): Create a .cvsignore file also when the
68291         directory is not yet in CVS but the toplevel directory is. When
68292         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
68293         Reported by Karl Berry.
68294
68295 2007-07-22  Ben Pfaff  <blp@gnu.org>
68296
68297         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
68298         case.
68299         Suggested by Eric Blake.
68300
68301 2007-07-22  Ben Pfaff  <blp@gnu.org>
68302
68303         New module: popcount.
68304         * MODULES.html.sh: Add popcount.
68305         * modules/popcount: New file.
68306         * modules/popcount-tests: New file.
68307         * tests/test-popcount.c: New file.
68308         * lib/popcount.h: New file.
68309         * m4/popcount.m4: New file.
68310
68311 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68312
68313         * build-aux/announce-gen: Update to GPLv3.
68314
68315         * build-aux/config.guess: Update from config.
68316
68317 2007-07-21  Bruno Haible  <bruno@clisp.org>
68318
68319         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
68320         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
68321
68322 2007-07-20  Jim Meyering  <jim@meyering.net>
68323
68324         * check-module: Diagnose a self-dependency.
68325
68326 2007-07-19  Bruno Haible  <bruno@clisp.org>
68327
68328         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68329         empty.
68330         Reported by Eric Blake.
68331
68332 2007-07-18  Bruno Haible  <bruno@clisp.org>
68333
68334         * gnulib-tool: New options --po-base, --po-domain.
68335         (func_usage): Document them.
68336         (pobase, po_domain): New variables.
68337         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68338         DEFAULT_TEXT_DOMAIN.
68339         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68340         (func_import): Consider pobase and po_domain. Create a po/ directory.
68341         (func_create_testdir): Set pobase and po_domain to empty.
68342         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68343         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68344
68345 2007-07-18  Bruno Haible  <bruno@clisp.org>
68346
68347         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68348         EXTRA_DIST augmentation for files in build-aux/.
68349
68350 2007-07-16  Bruno Haible  <bruno@clisp.org>
68351
68352         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68353         * modules/getdelim (License): Likewise.
68354
68355 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68356
68357         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68358         * modules/d-type (License): Likewise.
68359         * modules/extensions (License): Likewise.
68360         * modules/fnmatch (License): Likewise.
68361         * modules/fseeko (License): Likewise.
68362         * modules/getaddrinfo (License): Likewise.
68363         * modules/getline (License): Likewise.
68364         * modules/getlogin_r (License): Likewise.
68365         * modules/getpass (License): Likewise.
68366         * modules/gettimeofday (License): Likewise.
68367         * modules/glob (License): Likewise.
68368         * modules/inet_ntop (License): Likewise.
68369         * modules/malloc (License): Likewise.
68370         * modules/malloca (License): Likewise.
68371         * modules/memmem (License): Likewise.
68372         * modules/mempcpy (License): Likewise.
68373         * modules/memset (License): Likewise.
68374         * modules/minmax (License): Likewise.
68375         * modules/mktime (License): Likewise.
68376         * modules/netinet_in (License): Likewise.
68377         * modules/pathmax (License): Likewise.
68378         * modules/poll (License): Likewise.
68379         * modules/regex (License): Likewise.
68380         * modules/snprintf (License): Likewise.
68381         * modules/stdbool (License): Likewise.
68382         * modules/stdint (License): Likewise.
68383         * modules/stdio (License): Likewise.
68384         * modules/strcase (License): Likewise.
68385         * modules/strcasestr (License): Likewise.
68386         * modules/strdup (License): Likewise.
68387         * modules/string (License): Likewise.
68388         * modules/strndup (License): Likewise.
68389         * modules/strnlen (License): Likewise.
68390         * modules/strpbrk (License): Likewise.
68391         * modules/strptime (License): Likewise.
68392         * modules/strsep (License): Likewise.
68393         * modules/sys_select (License): Likewise.
68394         * modules/sys_socket (License): Likewise.
68395         * modules/sys_stat (License): Likewise.
68396         * modules/sys_time (License): Likewise.
68397         * modules/time (License): Likewise.
68398         * modules/time_r (License): Likewise.
68399         * modules/timegm (License): Likewise.
68400         * modules/unistd (License): Likewise.
68401         * modules/vsnprintf (License): Likewise.
68402         * modules/wctype (License): Likewise.
68403
68404 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68405
68406         * modules/argz (License): LGPLv2+.
68407
68408 2007-07-15  Karl Berry  <karl@gnu.org>
68409
68410         * doc/gnulib.texi: revise node structure per new fdl.texi.
68411
68412 2007-07-14  Bruno Haible  <bruno@clisp.org>
68413
68414         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68415         the output file.
68416         * lib/uniname/uninames.h: Regenerated.
68417
68418 2007-07-14  Karl Berry  <karl@gnu.org>
68419
68420         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68421         omitting sectioning and index commands.
68422
68423 2007-07-13  Bruno Haible  <bruno@clisp.org>
68424
68425         New gnulib-tool option --more-symlinks.
68426         * gnulib-tool (func_usage): Document --more-symlinks.
68427         (do_copyrights): New variable.
68428         Recognize option --more-symlinks.
68429         (func_import): Don't add a copyright notice transform to
68430         sed_transform_lib_file if do_copyrights is empty.
68431
68432 2007-07-13  Bruno Haible  <bruno@clisp.org>
68433
68434         * lib/vasnprintf.c (decimal_point_char): Define also if
68435         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68436         && !NEED_PRINTF_DIRECTIVE_A.
68437         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68438         Gary V. Vaughan <gary@gnu.org>.
68439
68440 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68441
68442         * lib/inttypes_.h: Undo previous change, since it was fixed
68443         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68444
68445 2007-07-13  Bruno Haible  <bruno@clisp.org>
68446
68447         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68448         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68449
68450 2007-07-13  Jim Meyering  <jim@meyering.net>
68451
68452         df: Don't fail for Tru64's "file-on-file mount".
68453         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68454         so we fall through and use statfs instead.  Details here:
68455         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68456         Reported by Albert Chin.
68457
68458 2007-07-13  Bruno Haible  <bruno@clisp.org>
68459
68460         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68461         * modules/configmake (License): Likewise.
68462         * modules/gettext (License): Likewise.
68463         * modules/gettext-h (License): Likewise.
68464         * modules/include_next (License): Likewise.
68465         * modules/link-warning (License): Likewise.
68466         * modules/localcharset (License): Likewise.
68467         * modules/localename (License): Likewise.
68468         * modules/lock (License): Likewise.
68469         * modules/relocatable-lib-lgpl (License): Likewise.
68470         * modules/size_max (License): Likewise.
68471         * modules/vasnprintf (License): Likewise.
68472         * modules/wchar (License): Likewise.
68473         * modules/xsize (License): Likewise.
68474
68475 2007-07-13  Bruno Haible  <bruno@clisp.org>
68476
68477         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
68478         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
68479
68480 2007-07-12  Bruno Haible  <bruno@clisp.org>
68481
68482         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
68483         in the modules files.
68484
68485 2007-07-11  Karl Berry  <karl@gnu.org>
68486
68487         * MODULES.html.sh (func_module): use
68488          sed -e '\|^'"${includefile}"'$|d'
68489          instead of /.../d, to avoid errors on $includefile's containing /.
68490
68491 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68492
68493         * gnulib-tool (func_import): Avoid duplication of --avoid
68494         statements
68495         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
68496         names to `_' in variable names.
68497
68498 2007-07-10  Eric Blake  <ebb9@byu.net>
68499
68500         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
68501         * NEWS: Document this change.
68502
68503 2007-07-08  Bruno Haible  <bruno@clisp.org>
68504
68505         Update to Unicode 5.0.
68506         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
68507         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
68508         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
68509         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
68510         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
68511         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
68512         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
68513         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
68514         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
68515         U+10A3F, U+1D242..U+1D244.
68516         (nonspacing_table_ind): Update.
68517         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
68518         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
68519
68520 2007-07-08  Bruno Haible  <bruno@clisp.org>
68521
68522         Update to Unicode 5.0.
68523         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
68524         code transform. Extend the name index field of unicode_name_to_code and
68525         unicode_code_to_name from 16 to 24 bits.
68526         * lib/uniname/uniname.c (unicode_character_name,
68527         unicode_name_character): Add the range 0x12xxx to the code transform.
68528         * lib/uniname/uninames.h: Regenerated.
68529         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
68530
68531 2007-07-07  Bruno Haible  <bruno@clisp.org>
68532
68533         * modules/wcwidth-tests: New file.
68534         * tests/test-wcwidth.c: New file.
68535
68536         Work around MacOS X wcwidth() bug.
68537         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
68538         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
68539         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
68540         original wcwidth in non-UTF-8 locales.
68541         * modules/wcwidth (Depends-on): Add localcharset, streq,
68542         uniwidth/width.
68543         * doc/functions/wcwidth.texi: Update.
68544
68545 2007-07-07  Bruno Haible  <bruno@clisp.org>
68546
68547         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
68548         (wcwidth): New declaration.
68549         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
68550         macros.
68551         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
68552         here. Prepare for creating <wchar.h> unconditionally.
68553         * modules/wchar (Depends-on): Add link-warning.
68554         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
68555         REPLACE_WCWIDTH, and GL_LINK_WARNING.
68556         * lib/wcwidth.h: Remove file.
68557         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
68558         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
68559         * modules/wcwidth (Files): Remove lib/wcwidth.h.
68560         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
68561         (Include): Replace wcwidth.h with <wchar.h>.
68562         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
68563         * lib/mbchar.h: Don't include wcwidth.h.
68564         * lib/mbswidth.c: Likewise.
68565         * NEWS: Mention the change.
68566
68567 2007-07-07  Bruno Haible  <bruno@clisp.org>
68568
68569         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
68570         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
68571         definition with an external declaration.
68572         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
68573         defined as a function. Remove AC_C_INLINE requirement.
68574         * modules/wcwidth (Files): Add lib/wcwidth.c.
68575         (Makefile.am): Remove redundant statement.
68576
68577 2007-07-07  Bruno Haible  <bruno@clisp.org>
68578
68579         * MODULES.html.sh (Unicode string functions): Add the new modules.
68580
68581         * tests/uniwidth/test-u32-strwidth.c: New file.
68582         * modules/uniwidth/u32-strwidth-tests: New file.
68583
68584         * lib/uniwidth/u32-strwidth.c: New file.
68585         * modules/uniwidth/u32-strwidth: New file.
68586
68587         * tests/uniwidth/test-u16-strwidth.c: New file.
68588         * modules/uniwidth/u16-strwidth-tests: New file.
68589
68590         * lib/uniwidth/u16-strwidth.c: New file.
68591         * modules/uniwidth/u16-strwidth: New file.
68592
68593         * tests/uniwidth/test-u8-strwidth.c: New file.
68594         * modules/uniwidth/u8-strwidth-tests: New file.
68595
68596         * lib/uniwidth/u8-strwidth.c: New file.
68597         * modules/uniwidth/u8-strwidth: New file.
68598
68599         * tests/uniwidth/test-u32-width.c: New file.
68600         * modules/uniwidth/u32-width-tests: New file.
68601
68602         * lib/uniwidth/u32-width.c: New file.
68603         * modules/uniwidth/u32-width: New file.
68604
68605         * tests/uniwidth/test-u16-width.c: New file.
68606         * modules/uniwidth/u16-width-tests: New file.
68607
68608         * lib/uniwidth/u16-width.c: New file.
68609         * modules/uniwidth/u16-width: New file.
68610
68611         * tests/uniwidth/test-u8-width.c: New file.
68612         * modules/uniwidth/u8-width-tests: New file.
68613
68614         * lib/uniwidth/u8-width.c: New file.
68615         * modules/uniwidth/u8-width: New file.
68616
68617         * tests/uniwidth/test-uc_width.c: New file.
68618         * modules/uniwidth/width-tests: New file.
68619
68620         * lib/uniwidth/width.c: New file, from GNU libiconv.
68621         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
68622         * modules/uniwidth/width: New file.
68623
68624         * lib/uniwidth.h: New file, from GNU libiconv.
68625         * modules/uniwidth/base: New file.
68626
68627 2007-07-07  Bruno Haible  <bruno@clisp.org>
68628
68629         * lib/uniname.h: New file, from GNU gettext.
68630         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
68631         * lib/uniname/uninames.h: New file, from GNU gettext.
68632         * lib/uniname/uniname.c: New file, from GNU gettext.
68633         * tests/uniname/test-uninames.sh: New file.
68634         * tests/uniname/test-uninames.c: New file, from GNU gettext.
68635         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
68636         * modules/uniname/base: New file.
68637         * modules/uniname/uniname: New file.
68638         * modules/uniname/uniname-tests: New file.
68639         * MODULES.html.sh (Unicode string functions): Add the new modules.
68640
68641 2007-07-06  Bruno Haible  <bruno@clisp.org>
68642
68643         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
68644
68645 2007-07-06  Bruno Haible  <bruno@clisp.org>
68646
68647         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
68648         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
68649         includes <cygwin/sys_time.h> which includes <sys/select.h> which
68650         include <sys/time.h>.
68651         Reported by Eric Blake.
68652
68653 2007-07-06  Eric Blake  <ebb9@byu.net>
68654
68655         Fix testing canonicalize on cygwin.
68656         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68657         Revert patch from 2007-06-19.
68658         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
68659         canonicalize module is also in use.
68660         * tests/test-canonicalize.c: New file.
68661         * tests/test-canonicalize.sh: Likewise.
68662         * modules/canonicalize-tests: Likewise.
68663
68664 2007-07-06  Jim Meyering  <jim@meyering.net>
68665
68666         * lib/getugroups.c (getugroups): Detect getgrent failure.
68667         Adjust comment to reflect reality: this function may return -1.
68668
68669 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68670
68671         * build-aux/bootstrap (TP_URL,get_translations): Update to use
68672         the new TP address.
68673         (usage): Fix typo
68674         (gnulib_mk): New variable.
68675
68676 2007-07-05  Jim Meyering  <jim@meyering.net>
68677
68678         Don't let endgrent clobber errno, no matter how improbable.
68679         * lib/getugroups.c (getugroups): Save and restore errno around
68680         endgrent call.
68681
68682         Close the group DB even when failing with 2^31 or more members.
68683         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
68684
68685 2007-07-04  Jim Meyering  <jim@meyering.net>
68686
68687         * lib/getugroups.h: New file.
68688         * lib/getugroups.c: Include "getugroups.h".
68689         Remove uses of "register" keyword.
68690         Move local variable, "cp", down into scope where used.
68691         Give "username" parameter the "const" attribute.
68692         * modules/getugroups (Files): Add lib/getugroups.h
68693
68694 2007-07-04  Karl Berry  <karl@gnu.org>
68695
68696         * MODULES.html.sh (func_all_modules): Complete rename of
68697         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
68698
68699 2007-07-02  Bruno Haible  <bruno@clisp.org>
68700
68701         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
68702         mode, when inttypes.h comes from gnulib.
68703         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68704
68705 2007-07-02  Simon Josefsson  <simon@josefsson.org>
68706
68707         * NEWS: Mention lgpl module name change.
68708
68709         * modules/lgpl-2.1: Renamed from lgpl.
68710
68711         * NEWS: Mention gpl module name change.
68712
68713         * modules/gpl-3.0: New file, based on gpl-2.0.
68714
68715         * modules/gpl-2.0: Renamed from gpl.
68716
68717         * modules/gpl: Fix filename, doc/gpl.texi is now found at
68718         doc/gpl-2.0.texi.
68719
68720 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68721
68722         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
68723         #define __STDC_LIMIT_MACROS temporarily while including
68724         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
68725         Problem reported by Joel E. Denny in
68726         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
68727
68728 2007-07-01  Bruno Haible  <bruno@clisp.org>
68729
68730         * lib/unistdio.h: New file.
68731         * lib/unistdio/u-asnprintf.h: New file.
68732         * lib/unistdio/u-asprintf.h: New file.
68733         * lib/unistdio/u-printf-args.c: New file.
68734         * lib/unistdio/u-printf-args.h: New file.
68735         * lib/unistdio/u-printf-parse.h: New file.
68736         * lib/unistdio/u-snprintf.h: New file.
68737         * lib/unistdio/u-sprintf.h: New file.
68738         * lib/unistdio/u-vasprintf.h: New file.
68739         * lib/unistdio/u-vsnprintf.h: New file.
68740         * lib/unistdio/u-vsprintf.h: New file.
68741         * lib/unistdio/ulc-asnprintf.c: New file.
68742         * lib/unistdio/ulc-asprintf.c: New file.
68743         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
68744         * lib/unistdio/ulc-printf-parse.c: New file.
68745         * lib/unistdio/ulc-snprintf.c: New file.
68746         * lib/unistdio/ulc-sprintf.c: New file.
68747         * lib/unistdio/ulc-vasnprintf.c: New file.
68748         * lib/unistdio/ulc-vasprintf.c: New file.
68749         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
68750         * lib/unistdio/ulc-vsnprintf.c: New file.
68751         * lib/unistdio/ulc-vsprintf.c: New file.
68752         * lib/unistdio/u8-asnprintf.c: New file.
68753         * lib/unistdio/u8-asprintf.c: New file.
68754         * lib/unistdio/u8-printf-parse.c: New file.
68755         * lib/unistdio/u8-snprintf.c: New file.
68756         * lib/unistdio/u8-sprintf.c: New file.
68757         * lib/unistdio/u8-vasnprintf.c: New file.
68758         * lib/unistdio/u8-vasprintf.c: New file.
68759         * lib/unistdio/u8-vsnprintf.c: New file.
68760         * lib/unistdio/u8-vsprintf.c: New file.
68761         * lib/unistdio/u8-u8-asnprintf.c: New file.
68762         * lib/unistdio/u8-u8-asprintf.c: New file.
68763         * lib/unistdio/u8-u8-snprintf.c: New file.
68764         * lib/unistdio/u8-u8-sprintf.c: New file.
68765         * lib/unistdio/u8-u8-vasnprintf.c: New file.
68766         * lib/unistdio/u8-u8-vasprintf.c: New file.
68767         * lib/unistdio/u8-u8-vsnprintf.c: New file.
68768         * lib/unistdio/u8-u8-vsprintf.c: New file.
68769         * lib/unistdio/u16-asnprintf.c: New file.
68770         * lib/unistdio/u16-asprintf.c: New file.
68771         * lib/unistdio/u16-printf-parse.c: New file.
68772         * lib/unistdio/u16-snprintf.c: New file.
68773         * lib/unistdio/u16-sprintf.c: New file.
68774         * lib/unistdio/u16-vasnprintf.c: New file.
68775         * lib/unistdio/u16-vasprintf.c: New file.
68776         * lib/unistdio/u16-vsnprintf.c: New file.
68777         * lib/unistdio/u16-vsprintf.c: New file.
68778         * lib/unistdio/u16-u16-asnprintf.c: New file.
68779         * lib/unistdio/u16-u16-asprintf.c: New file.
68780         * lib/unistdio/u16-u16-snprintf.c: New file.
68781         * lib/unistdio/u16-u16-sprintf.c: New file.
68782         * lib/unistdio/u16-u16-vasnprintf.c: New file.
68783         * lib/unistdio/u16-u16-vasprintf.c: New file.
68784         * lib/unistdio/u16-u16-vsnprintf.c: New file.
68785         * lib/unistdio/u16-u16-vsprintf.c: New file.
68786         * lib/unistdio/u32-asnprintf.c: New file.
68787         * lib/unistdio/u32-asprintf.c: New file.
68788         * lib/unistdio/u32-printf-parse.c: New file.
68789         * lib/unistdio/u32-snprintf.c: New file.
68790         * lib/unistdio/u32-sprintf.c: New file.
68791         * lib/unistdio/u32-vasnprintf.c: New file.
68792         * lib/unistdio/u32-vasprintf.c: New file.
68793         * lib/unistdio/u32-vsnprintf.c: New file.
68794         * lib/unistdio/u32-vsprintf.c: New file.
68795         * lib/unistdio/u32-u32-asnprintf.c: New file.
68796         * lib/unistdio/u32-u32-asprintf.c: New file.
68797         * lib/unistdio/u32-u32-snprintf.c: New file.
68798         * lib/unistdio/u32-u32-sprintf.c: New file.
68799         * lib/unistdio/u32-u32-vasnprintf.c: New file.
68800         * lib/unistdio/u32-u32-vasprintf.c: New file.
68801         * lib/unistdio/u32-u32-vsnprintf.c: New file.
68802         * lib/unistdio/u32-u32-vsprintf.c: New file.
68803         * tests/unistdio/test-ulc-asnprintf1.c: New file.
68804         * tests/unistdio/test-ulc-asnprintf1.h: New file.
68805         * tests/unistdio/test-ulc-printf1.h: New file.
68806         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
68807         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
68808         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
68809         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
68810         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
68811         * tests/unistdio/test-ulc-vasprintf1.c: New file.
68812         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
68813         * tests/unistdio/test-ulc-vsprintf1.c: New file.
68814         * tests/unistdio/test-u8-asnprintf1.c: New file.
68815         * tests/unistdio/test-u8-asnprintf1.h: New file.
68816         * tests/unistdio/test-u8-printf1.h: New file.
68817         * tests/unistdio/test-u8-vasnprintf1.c: New file.
68818         * tests/unistdio/test-u8-vasnprintf2.c: New file.
68819         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
68820         * tests/unistdio/test-u8-vasnprintf3.c: New file.
68821         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
68822         * tests/unistdio/test-u8-vasprintf1.c: New file.
68823         * tests/unistdio/test-u8-vsnprintf1.c: New file.
68824         * tests/unistdio/test-u8-vsprintf1.c: New file.
68825         * tests/unistdio/test-u16-asnprintf1.c: New file.
68826         * tests/unistdio/test-u16-asnprintf1.h: New file.
68827         * tests/unistdio/test-u16-printf1.h: New file.
68828         * tests/unistdio/test-u16-vasnprintf1.c: New file.
68829         * tests/unistdio/test-u16-vasnprintf2.c: New file.
68830         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
68831         * tests/unistdio/test-u16-vasnprintf3.c: New file.
68832         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
68833         * tests/unistdio/test-u16-vasprintf1.c: New file.
68834         * tests/unistdio/test-u16-vsnprintf1.c: New file.
68835         * tests/unistdio/test-u16-vsprintf1.c: New file.
68836         * tests/unistdio/test-u32-asnprintf1.c: New file.
68837         * tests/unistdio/test-u32-asnprintf1.h: New file.
68838         * tests/unistdio/test-u32-printf1.h: New file.
68839         * tests/unistdio/test-u32-vasnprintf1.c: New file.
68840         * tests/unistdio/test-u32-vasnprintf2.c: New file.
68841         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
68842         * tests/unistdio/test-u32-vasnprintf3.c: New file.
68843         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
68844         * tests/unistdio/test-u32-vasprintf1.c: New file.
68845         * tests/unistdio/test-u32-vsnprintf1.c: New file.
68846         * tests/unistdio/test-u32-vsprintf1.c: New file.
68847         * modules/unistdio/base: New file.
68848         * modules/unistdio/u-printf-args: New file.
68849         * modules/unistdio/ulc-asnprintf: New file.
68850         * modules/unistdio/ulc-asprintf: New file.
68851         * modules/unistdio/ulc-fprintf: New file.
68852         * modules/unistdio/ulc-printf-parse: New file.
68853         * modules/unistdio/ulc-snprintf: New file.
68854         * modules/unistdio/ulc-sprintf: New file.
68855         * modules/unistdio/ulc-vasnprintf: New file.
68856         * modules/unistdio/ulc-vasprintf: New file.
68857         * modules/unistdio/ulc-vfprintf: New file.
68858         * modules/unistdio/ulc-vsnprintf: New file.
68859         * modules/unistdio/ulc-vsprintf: New file.
68860         * modules/unistdio/u8-asnprintf: New file.
68861         * modules/unistdio/u8-asprintf: New file.
68862         * modules/unistdio/u8-printf-parse: New file.
68863         * modules/unistdio/u8-snprintf: New file.
68864         * modules/unistdio/u8-sprintf: New file.
68865         * modules/unistdio/u8-vasnprintf: New file.
68866         * modules/unistdio/u8-vasprintf: New file.
68867         * modules/unistdio/u8-vsnprintf: New file.
68868         * modules/unistdio/u8-vsprintf: New file.
68869         * modules/unistdio/u8-u8-asnprintf: New file.
68870         * modules/unistdio/u8-u8-asprintf: New file.
68871         * modules/unistdio/u8-u8-snprintf: New file.
68872         * modules/unistdio/u8-u8-sprintf: New file.
68873         * modules/unistdio/u8-u8-vasnprintf: New file.
68874         * modules/unistdio/u8-u8-vasprintf: New file.
68875         * modules/unistdio/u8-u8-vsnprintf: New file.
68876         * modules/unistdio/u8-u8-vsprintf: New file.
68877         * modules/unistdio/u16-asnprintf: New file.
68878         * modules/unistdio/u16-asprintf: New file.
68879         * modules/unistdio/u16-printf-parse: New file.
68880         * modules/unistdio/u16-snprintf: New file.
68881         * modules/unistdio/u16-sprintf: New file.
68882         * modules/unistdio/u16-vasnprintf: New file.
68883         * modules/unistdio/u16-vasprintf: New file.
68884         * modules/unistdio/u16-vsnprintf: New file.
68885         * modules/unistdio/u16-vsprintf: New file.
68886         * modules/unistdio/u16-u16-asnprintf: New file.
68887         * modules/unistdio/u16-u16-asprintf: New file.
68888         * modules/unistdio/u16-u16-snprintf: New file.
68889         * modules/unistdio/u16-u16-sprintf: New file.
68890         * modules/unistdio/u16-u16-vasnprintf: New file.
68891         * modules/unistdio/u16-u16-vasprintf: New file.
68892         * modules/unistdio/u16-u16-vsnprintf: New file.
68893         * modules/unistdio/u16-u16-vsprintf: New file.
68894         * modules/unistdio/u32-asnprintf: New file.
68895         * modules/unistdio/u32-asprintf: New file.
68896         * modules/unistdio/u32-printf-parse: New file.
68897         * modules/unistdio/u32-snprintf: New file.
68898         * modules/unistdio/u32-sprintf: New file.
68899         * modules/unistdio/u32-vasnprintf: New file.
68900         * modules/unistdio/u32-vasprintf: New file.
68901         * modules/unistdio/u32-vsnprintf: New file.
68902         * modules/unistdio/u32-vsprintf: New file.
68903         * modules/unistdio/u32-u32-asnprintf: New file.
68904         * modules/unistdio/u32-u32-asprintf: New file.
68905         * modules/unistdio/u32-u32-snprintf: New file.
68906         * modules/unistdio/u32-u32-sprintf: New file.
68907         * modules/unistdio/u32-u32-vasnprintf: New file.
68908         * modules/unistdio/u32-u32-vasprintf: New file.
68909         * modules/unistdio/u32-u32-vsnprintf: New file.
68910         * modules/unistdio/u32-u32-vsprintf: New file.
68911         * modules/unistdio/ulc-asnprintf-tests: New file.
68912         * modules/unistdio/ulc-vasnprintf-tests: New file.
68913         * modules/unistdio/ulc-vasprintf-tests: New file.
68914         * modules/unistdio/ulc-vsnprintf-tests: New file.
68915         * modules/unistdio/ulc-vsprintf-tests: New file.
68916         * modules/unistdio/u8-asnprintf-tests: New file.
68917         * modules/unistdio/u8-vasnprintf-tests: New file.
68918         * modules/unistdio/u8-vasprintf-tests: New file.
68919         * modules/unistdio/u8-vsnprintf-tests: New file.
68920         * modules/unistdio/u8-vsprintf-tests: New file.
68921         * modules/unistdio/u16-asnprintf-tests: New file.
68922         * modules/unistdio/u16-vasnprintf-tests: New file.
68923         * modules/unistdio/u16-vasprintf-tests: New file.
68924         * modules/unistdio/u16-vsnprintf-tests: New file.
68925         * modules/unistdio/u16-vsprintf-tests: New file.
68926         * modules/unistdio/u32-asnprintf-tests: New file.
68927         * modules/unistdio/u32-vasnprintf-tests: New file.
68928         * modules/unistdio/u32-vasprintf-tests: New file.
68929         * modules/unistdio/u32-vsnprintf-tests: New file.
68930         * modules/unistdio/u32-vsprintf-tests: New file.
68931         * MODULES.html.sh (Unicode string functions): Add the new modules.
68932
68933 2007-07-01  Bruno Haible  <bruno@clisp.org>
68934
68935         * lib/sprintf.c (sprintf): Limit the available length estimation,
68936         to avoid address wraparound.
68937         * lib/vsprintf.c (vsprintf): Likewise.
68938         * modules/sprintf-posix (Dependencies): Add stdint.
68939         * modules/vsprintf-posix (Dependencies): Likewise.
68940
68941 2007-07-01  Bruno Haible  <bruno@clisp.org>
68942
68943         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
68944         Windows PATH as well. Conservative double-quoting. Comments.
68945
68946 2007-07-01  Bruno Haible  <bruno@clisp.org>
68947             Eric Blake  <ebb9@byu.net>
68948             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68949
68950         * gnulib-tool (self_abspathname): Fix algorithm to cope with
68951         empty components in $PATH, denoting '.'.
68952
68953 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68954
68955         * gnulib-tool: Fix indentation.
68956         (func_create_megatestdir): Likewise.
68957         Report by Bruno Haible.
68958
68959 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68960
68961         Sync from Automake.
68962         * build-aux/gnupload: Fix shell portability issues with for loops.
68963         Report by Karl Berry.
68964
68965 2007-06-29  Simon Josefsson  <simon@josefsson.org>
68966
68967         * build-aux/maint.mk (POURL): Use translationproject.org.
68968
68969 2007-06-27  Simon Josefsson  <simon@josefsson.org>
68970             Bruno Haible  <bruno@clisp.org>
68971
68972         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
68973         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
68974         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
68975         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
68976         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
68977
68978 2007-06-27  Bruno Haible  <bruno@clisp.org>
68979
68980         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
68981         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
68982
68983 2007-06-26  Karl Berry  <karl@gnu.org>
68984
68985         * MODULES.html.sh: remove xreadlink-with-size.
68986
68987 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68988
68989         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
68990         method that I hope also handles the double-include problem noted
68991         by Bruno Haible in
68992         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
68993
68994 2007-06-23  Bruno Haible  <bruno@clisp.org>
68995
68996         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68997         Don't let the 'mostlyclean' target fail if the last subdirectory could
68998         not be removed.
68999         Reported by Karl Berry.
69000
69001 2007-06-23  Bruno Haible  <bruno@clisp.org>
69002
69003         * gnulib-tool (echo): Add a speedier workaround for ksh.
69004         * tests/test-echo.sh: Likewise.
69005
69006 2007-06-23  Bruno Haible  <bruno@clisp.org>
69007
69008         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
69009         * tests/test-echo.sh: Likewise.
69010
69011 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69012
69013         * gnulib-tool (IFS): Initialize early, so we don't set it to
69014         empty later.
69015         (self_abspathname): Rewrite algorithm to set it, reindent.
69016         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
69017         (func_create_megatestdir): Merge some sed scripts.
69018
69019 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69020
69021         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
69022         exposed by Sun Studio 11 cc on Solaris 8.
69023
69024 2007-06-22  Bruno Haible  <bruno@clisp.org>
69025
69026         * gnulib-tool (echo): Ensure the echo primitive does not interpret
69027         backslashes.
69028         * tests/test-echo.sh: New file.
69029
69030 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69031
69032         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
69033         simplify `sed_replace_build_aux' scripts, they are portable but
69034         echoing them with `echo' is not.
69035         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
69036
69037 2007-06-21  Karl Berry  <karl@gnu.org>
69038
69039         * config/srclist.txt: guess we can't handle the licenses via
69040         srclist at the moment.
69041
69042 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69043
69044         * MODULES.html.sh: Add include_next.
69045         * modules/include_next: New file.
69046
69047 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69048
69049         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
69050         INCLUDE_NEXT.
69051         (gl_CHECK_NEXT_HEADERS): New macro.
69052         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
69053         the obsolescent gl_ABSOLUTE_HEADER.
69054         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
69055         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
69056         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
69057         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69058         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69059         * m4/math_h.m4 (gl_MATH_H): Likewise.
69060         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
69061         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69062         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69063         * m4/stdint.m4 (gl_STDINT_H): Likewise.
69064         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69065         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69066         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69067         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69068         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69069         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69070         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69071         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
69072         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
69073         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69074         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69075         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69076         * m4/inttypes.m4 (gl_INTTYPES_H): Define
69077         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
69078         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
69079         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
69080         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
69081         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
69082         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
69083         * lib/float_.h: Likewise.
69084         * lib/inttypes_.h: Likewise.
69085         * lib/math_.h: Likewise.
69086         * lib/search_.h: Likewise.
69087         * lib/signal_.h: Likewise.
69088         * lib/stdint_.h: Likewise.
69089         * lib/stdio_.h: Likewise.
69090         * lib/stdlib_.h: Likewise.
69091         * lib/string_.h: Likewise.
69092         * lib/sys_stat_.h: Likewise.
69093         * lib/sys_time_.h: Likewise.
69094         * lib/time_.h: Likewise.
69095         * lib/unistd_.h: Likewise.
69096         * lib/wchar_.h: Likewise.
69097         * lib/wctype_.h: Likewise.
69098         * lib/dirent_.h: Likewise.
69099         * lib/iconv_.h: Likewise.
69100         * lib/locale_.h: Likewise.
69101         * lib/netinet_in_.h: Likewise.
69102         * lib/sys_select_.h: Likewise.
69103         * lib/sys_socket_.h: Likewise.
69104         * lib/sysexits_.h: Likewise.
69105         * modules/fcntl (Depends-on): Depend on include_next, not
69106         absolute_header.
69107         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
69108         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
69109         * modules/fchdir: Likewise.
69110         * modules/float: Likewise.
69111         * modules/iconv_open: Likewise.
69112         * modules/inttypes: Likewise.
69113         * modules/locale: Likewise.
69114         * modules/math: Likewise.
69115         * modules/netinet_in: Likewise.
69116         * modules/search: Likewise.
69117         * modules/signal: Likewise.
69118         * modules/stdint: Likewise.
69119         * modules/stdio: Likewise.
69120         * modules/stdlib: Likewise.
69121         * modules/string: Likewise.
69122         * modules/sys_select: Likewise.
69123         * modules/sys_socket: Likewise.
69124         * modules/sys_stat: Likewise.
69125         * modules/sys_time: Likewise.
69126         * modules/sysexits: Likewise.
69127         * modules/time: Likewise.
69128         * modules/unistd: Likewise.
69129         * modules/wchar: Likewise.
69130         * modules/wctype: Likewise.
69131         * modules/sys_stat: Change maintainer to "all".
69132         * modules/unistd: Likewise.
69133
69134 2007-06-20  Karl Berry  <karl@gnu.org>
69135
69136         * config/srclist.txt: track www changes in license files.
69137
69138 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
69139
69140         * build-aux/bootstrap: Remove stray dot.
69141         Make sure build_aux settings are honored when linking
69142         gnulib_extra_files.
69143
69144 2007-06-19  Eric Blake  <ebb9@byu.net>
69145
69146         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69147         Allow compilation on cygwin.
69148
69149 2007-06-19  Jim Meyering  <jim@meyering.net>
69150
69151         xreadlink-with-size: Remove module.  No longer used.
69152         Ex-callers now use xreadlink or mreadlink-with-size.
69153         * modules/xreadlink-with-size: Remove module.
69154         * lib/xreadlink-with-size.c: Remove file.
69155         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
69156         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
69157         just before the function definition *is* accurate.
69158
69159         Eliminate one way canonicalize_filename_mode could exit.
69160         * lib/canonicalize.c (canonicalize_filename_mode):
69161         Use mreadlink_with_size, not xreadlink_with_size.
69162
69163 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
69164
69165         Detect porting problems to FreeBSD/arm, which has time_t wider than
69166         long int.  Original problem reported for GNU diff by Xin Li in
69167         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
69168         * modules/getdate (Depends-on): Add intprops, verify.
69169         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
69170         is an integer type no wider than long int.
69171
69172 2007-06-18  Jim Meyering  <jim@meyering.net>
69173
69174         New module: mreadlink-with-size.
69175         * MODULES.html.sh: Add mreadlink-with-size.
69176         * modules/mreadlink-with-size: New module
69177         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
69178         not xreadlink-with-size.
69179         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
69180
69181 2007-06-16  Bruno Haible  <bruno@clisp.org>
69182
69183         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
69184         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
69185         Reported by Gary V. Vaughan <gary@gnu.org>.
69186
69187 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
69188
69189         Revamp lchown so that it lives in unistd.h where it belongs.
69190         * lib/lchown.h: Remove.
69191         * lib/dirchownmod.c: Don't include lib/lchown.h.
69192         * lib/fchownat.c: Likewise.
69193         * lib/openat.c: Likewise.
69194         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
69195         does not follow symlinks.
69196         (EOPNOTSUPP): Define if not defined.
69197         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
69198         is defined to 0.
69199         (lchown): New decl.
69200         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
69201         Do not check for lchown decl.
69202         Set REPLACE_LCHOWN.
69203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
69204         REPLACE_LCHOWN.
69205         * modules/chown: Make it clear it follows symlinks.
69206         * modules/lchown: Make it clear it doesn't follow symlinks.
69207         (Files): Remove lib/lchown.h
69208         (Depends-on): Add unistd.
69209         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
69210         (Include): Include <unistd.h>, not "lchown.h".
69211         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
69212         REPLACE_LCHOWN.
69213
69214 2007-06-15  Jim Meyering  <jim@meyering.net>
69215
69216         Change license (GPL to LGPL) of fsusage and dependents.
69217         * modules/fsusage (License): Change to LGPL.
69218         * modules/full-read (License): Likewise.
69219         * modules/full-write (License): Likewise.
69220         * modules/safe-read (License): Likewise.
69221         * modules/safe-write (License): Likewise.
69222
69223 2007-06-14  Ben Pfaff  <blp@gnu.org>
69224
69225         Missing part of allocsa -> malloca transition.
69226         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
69227         gl_MALLOCA.
69228
69229 2007-06-12  Bruno Haible  <bruno@clisp.org>
69230
69231         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
69232         to ia64, x86_64, i386.
69233         Reported by Eric Blake.
69234
69235 2007-06-12  Bruno Haible  <bruno@clisp.org>
69236
69237         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
69238         cross-compiling to x86_64.
69239
69240 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
69241
69242         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
69243         glitch reported by Ralf Wildenhues in
69244         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
69245
69246         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
69247         Vin Shelton.
69248
69249 2007-06-11  Bruno Haible  <bruno@clisp.org>
69250
69251         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
69252         replacement string.
69253         Reported by Eric Blake.
69254
69255 2007-06-10  Bruno Haible  <bruno@clisp.org>
69256
69257         Prepare vasnprintf code for use with Unicode strings.
69258         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
69259         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
69260         TYPE_U32_STRING.
69261         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
69262         a_u32_string variants.
69263         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69264         * lib/printf-args.c: Don't include config.h and the specification
69265         header if PRINTF_FETCHARGS is already defined.
69266         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69267         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
69268         TYPE_U16_STRING, TYPE_U32_STRING.
69269         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
69270         u16_directive, u16_directives, u32_directive, u32_directives): New
69271         types.
69272         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
69273         New declarations.
69274         * lib/printf-parse.c: Don't include config.h and the specification
69275         header if PRINTF_PARSE is already defined. Eliminate the set of
69276         parameters for WIDE_CHAR_VERSION; the user of this file must provide
69277         them now. Include c-ctype.h.
69278         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
69279         directive and CHAR_T_ONLY_ASCII.
69280         * lib/vasnprintf.c: Don't include config.h and the specification header
69281         if VASNPRINTF is already defined.
69282         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
69283         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
69284         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
69285         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
69286         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
69287         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
69288         code accordingly.
69289         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
69290         pad_ourselves also in this case, with the 'c' and 's' directives, and
69291         with a different notion of "width".
69292         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
69293
69294 2007-06-10  Bruno Haible  <bruno@clisp.org>
69295
69296         * modules/unistr/u32-mbsnlen: New file.
69297         * lib/unistr/u32-mbsnlen.c: New file.
69298
69299         * modules/unistr/u16-mbsnlen: New file.
69300         * lib/unistr/u16-mbsnlen.c: New file.
69301
69302         * modules/unistr/u8-mbsnlen: New file.
69303         * lib/unistr/u8-mbsnlen.c: New file.
69304
69305         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
69306         declarations.
69307
69308 2007-06-10  Bruno Haible  <bruno@clisp.org>
69309
69310         * lib/string_.h (mbsnlen): New declaration.
69311         * lib/mbsnlen.c: New file.
69312         * m4/mbsnlen.m4: New file.
69313         * modules/mbsnlen: New file.
69314         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
69315         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
69316         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
69317
69318 2007-06-10  Bruno Haible  <bruno@clisp.org>
69319
69320         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
69321
69322 2007-06-10  Bruno Haible  <bruno@clisp.org>
69323
69324         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69325         * lib/mbuiter.h: Likewise.
69326
69327 2007-06-10  Bruno Haible  <bruno@clisp.org>
69328
69329         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69330         declaration.
69331
69332 2007-06-10  Karl Berry  <karl@gnu.org>
69333
69334         * config/srclist.txt: remove gettext entries, Bruno prefers
69335         to update individually.
69336
69337 2007-06-10  Bruno Haible  <bruno@clisp.org>
69338
69339         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69340         'maxlen'. Ensure only length + width bytes are allocated, not
69341         length + 1 + width.
69342
69343 2007-06-09  Bruno Haible  <bruno@clisp.org>
69344
69345         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69346         (CHAR_T): Remove macro.
69347         (VASNPRINTF): Update.
69348
69349 2007-06-09  Bruno Haible  <bruno@clisp.org>
69350
69351         * MODULES.html.sh (Unicode string functions): Add the new modules.
69352
69353         * modules/uniconv/u32-conv-to-enc: New file.
69354         * lib/uniconv/u32-conv-to-enc.c: New file.
69355         * modules/uniconv/u32-conv-to-enc-tests: New file.
69356         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69357
69358         * modules/uniconv/u16-conv-to-enc: New file.
69359         * lib/uniconv/u16-conv-to-enc.c: New file.
69360         * lib/uniconv/u-conv-to-enc.h: New file.
69361         * modules/uniconv/u16-conv-to-enc-tests: New file.
69362         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69363
69364         * modules/uniconv/u8-conv-to-enc: New file.
69365         * lib/uniconv/u8-conv-to-enc.c: New file.
69366         * modules/uniconv/u8-conv-to-enc-tests: New file.
69367         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69368
69369         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69370         u32_conv_to_encoding): New declarations.
69371
69372 2007-06-09  Bruno Haible  <bruno@clisp.org>
69373
69374         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69375
69376 2007-06-09  Bruno Haible  <bruno@clisp.org>
69377
69378         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69379         * modules/malloca: Renamed from modules/allocsa, updated.
69380         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69381         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69382         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69383         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69384         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69385         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69386         * modules/xmalloca: Renamed from modules/xallocsa, updated.
69387         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
69388         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
69389         * modules/c-strcasestr (Depends-on): Update.
69390         * lib/c-strcasestr.c: Update.
69391         * modules/c-strstr (Depends-on): Update.
69392         * lib/c-strstr.c: Update.
69393         * modules/canonicalize-lgpl (Depends-on): Update.
69394         * lib/canonicalize-lgpl.c: Update.
69395         * modules/clean-temp (Depends-on): Update.
69396         * lib/clean-temp.c: Update.
69397         * modules/csharpcomp (Depends-on): Update.
69398         * lib/csharpcomp.c: Update.
69399         * modules/csharpexec (Depends-on): Update.
69400         * lib/csharpexec.c: Update.
69401         * modules/javacomp (Depends-on): Update.
69402         * lib/javacomp.c: Update.
69403         * modules/javaexec (Depends-on): Update.
69404         * lib/javaexec.c: Update.
69405         * modules/mbscasestr (Depends-on): Update.
69406         * lib/mbscasestr.c: Update.
69407         * modules/mbsstr (Depends-on): Update.
69408         * lib/mbsstr.c: Update.
69409         * modules/setenv (Depends-on): Update.
69410         * lib/setenv.c: Update.
69411         * modules/strcasestr (Depends-on): Update.
69412         * lib/strcasestr.c: Update.
69413         * modules/striconveha (Depends-on): Update.
69414         * lib/striconveha.c: Update.
69415         * modules/relocatable-prog-wrapper (Files): Update.
69416         * lib/relocwrapper.c: Update.
69417         * build-aux/install-reloc: Update.
69418         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69419
69420 2007-06-08  Bruno Haible  <bruno@clisp.org>
69421
69422         Port to uClibc.
69423         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69424         * lib/fpurge.c (fpurge): Likewise.
69425         * lib/freading.c (freading): Likewise.
69426         * lib/fseeko.c (rpl_fseeko): Likewise.
69427         * lib/fseterr.c (fseterr): Likewise.
69428         * lib/fwriting.c (fwriting): Likewise.
69429         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69430
69431 2007-06-08  Bruno Haible  <bruno@clisp.org>
69432
69433         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69434         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69435         * modules/gettext (Files): Add m4/intlmacosx.m4.
69436
69437 2007-06-07  Bruno Haible  <bruno@clisp.org>
69438
69439         * modules/localename-tests: New file.
69440         * tests/test-localename.c: New file.
69441
69442         New module 'localename'.
69443         * lib/localename.h: New file.
69444         * lib/localename.c: New file, from GNU gettext.
69445         * m4/localename.m4: New file.
69446         * modules/localename: New file.
69447
69448 2007-06-07  Bruno Haible  <bruno@clisp.org>
69449
69450         Work around the lack of <wchar.h> on some builds of uClibc.
69451         * doc/headers/wchar.texi: Update.
69452         * lib/wchar_.h: Include <wchar.h> only if it exists.
69453         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69454         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69455         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69456         doesn't exist.
69457         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69458         * modules/mbfile (Depends-on): Add wchar.
69459         * modules/mbiter (Depends-on): Likewise.
69460         * modules/mbuiter (Depends-on): Likewise.
69461         Reported by Simon Josefsson.
69462
69463 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69464
69465         Work around problem reported by Steven M. Schweda in
69466         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69467         Tru64 5.1B with the Compaq compiler environment installed declares
69468         an 'isblank' function but does not define it in the C library.
69469         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69470         * lib/regex_internal.h (isblank): Likewise.
69471         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69472         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69473
69474 2007-06-05  Bruno Haible  <bruno@clisp.org>
69475
69476         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
69477         ia64.
69478         * modules/printf-safe: New file.
69479         * modules/fprintf-posix (Depends-on): Add printf-safe.
69480         * modules/printf-posix (Depends-on): Likewise.
69481         * modules/snprintf-posix (Depends-on): Likewise.
69482         * modules/sprintf-posix (Depends-on): Likewise.
69483         * modules/vasnprintf-posix (Depends-on): Likewise.
69484         * modules/vasprintf-posix (Depends-on): Likewise.
69485         * modules/vfprintf-posix (Depends-on): Likewise.
69486         * modules/vprintf-posix (Depends-on): Likewise.
69487         * modules/vsnprintf-posix (Depends-on): Likewise.
69488         * modules/vsprintf-posix (Depends-on): Likewise.
69489         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
69490         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
69491         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
69492         "no" on i386, x86_64, ia64.
69493         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
69494         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69495         on i386, x86_64, ia64.
69496         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
69497         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69498         on i386, x86_64, ia64.
69499         * tests/test-vasnprintf-posix.c: Include float.h.
69500         (LDBL80_WORDS): New macro.
69501         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69502         on i386, x86_64, ia64.
69503         * tests/test-vasprintf-posix.c: Include float.h.
69504         (LDBL80_WORDS): New macro.
69505         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69506         on i386, x86_64, ia64.
69507         * tests/test-snprintf-posix.c: Include float.h.
69508         * tests/test-sprintf-posix.c: Likewise.
69509         * tests/test-vsnprintf-posix.c: Likewise.
69510         * tests/test-vsprintf-posix.c: Likewise.
69511
69512 2007-06-05  Bruno Haible  <bruno@clisp.org>
69513
69514         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
69515         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
69516         non-IEEE numbers on i386, x86_64, ia64.
69517         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
69518         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
69519         * tests/test-isnanl.h: Include float.h.
69520         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
69521
69522 2007-06-05  Bruno Haible  <bruno@clisp.org>
69523
69524         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
69525         also the %a / %A. Handle the %a / %A code before this extra handling.
69526
69527 2007-06-05  Bruno Haible  <bruno@clisp.org>
69528
69529         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
69530         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
69531
69532 2007-06-05  Bruno Haible  <bruno@clisp.org>
69533
69534         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
69535         typo in variable name.
69536
69537 2007-06-05  Eric Blake  <ebb9@byu.net>
69538
69539         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
69540         Reported by Simon Josefsson.
69541
69542 2007-06-04  Bruno Haible  <bruno@clisp.org>
69543
69544         Avoid test failures on some PowerPC platforms.
69545         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
69546         Define differently for PowerPC.
69547         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
69548         Reported by Gary V. Vaughan <gary@gnu.org>.
69549
69550 2007-06-02  Bruno Haible  <bruno@clisp.org>
69551
69552         Fix test-stdint failure on FreeBSD/ia64.
69553         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
69554         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
69555         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
69556         * doc/headers/stdint.texi: Update.
69557
69558 2007-06-01  Bruno Haible  <bruno@clisp.org>
69559
69560         * tests/test-binary-io.c (main): Pass a third argument to open().
69561         Reported by Gary V. Vaughan <gary@gnu.org>.
69562
69563 2007-06-01  Bruno Haible  <bruno@clisp.org>
69564
69565         * doc/functions/frexpl.texi: Update for mingw.
69566
69567 2007-06-01  Bruno Haible  <bruno@clisp.org>
69568
69569         * tests/test-lseek.c (main): Disable test of errno for invalid third
69570         argument.
69571         * doc/functions/lseek.texi: Update.
69572         Reported by Gary V. Vaughan <gary@gnu.org>.
69573
69574 2007-05-28  Bruno Haible  <bruno@clisp.org>
69575
69576         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
69577
69578 2007-05-31  Eric Blake  <ebb9@byu.net>
69579
69580         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
69581         cross compiling.
69582
69583 2007-05-30  Eric Blake  <ebb9@byu.net>
69584         and Bruno Haible  <bruno@clisp.org>
69585
69586         Work around mingw test failures exposed by m4-1.4.9b.
69587         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
69588         * tests/test-unistd.c: Disable uid_t and git_t tests for the
69589         moment.
69590
69591 2007-05-30  Bruno Haible  <bruno@clisp.org>
69592
69593         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
69594         assuming that they are closed. Needed on HP-UX 11.
69595
69596 2007-05-29  Bruno Haible  <bruno@clisp.org>
69597
69598         Fix a problem with #include_next.
69599         * lib/dirent_.h: Split the double-inclusion guard.
69600         * lib/fcntl_.h: Likewise.
69601         * lib/float_.h: Likewise.
69602         * lib/iconv_.h: Likewise.
69603         * lib/inttypes_.h: Likewise.
69604         * lib/locale_.h: Likewise.
69605         * lib/math_.h: Likewise.
69606         * lib/netinet_in_.h: Likewise.
69607         * lib/search_.h: Likewise.
69608         * lib/signal_.h: Likewise.
69609         * lib/stdint_.h: Likewise.
69610         * lib/stdio_.h: Likewise.
69611         * lib/stdlib_.h: Likewise.
69612         * lib/string_.h: Likewise.
69613         * lib/sys_select_.h: Likewise.
69614         * lib/sys_socket_.h: Likewise.
69615         * lib/sys_stat_.h: Likewise.
69616         * lib/sys_time_.h: Likewise.
69617         * lib/sysexits_.h: Likewise.
69618         * lib/time_.h: Likewise.
69619         * lib/unistd_.h: Likewise.
69620         * lib/wchar_.h: Likewise.
69621         * lib/wctype_.h: Likewise.
69622
69623 2007-05-29  Bruno Haible  <bruno@clisp.org>
69624
69625         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
69626         for the moment.
69627
69628 2007-05-29  Bruno Haible  <bruno@clisp.org>
69629
69630         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
69631         invocation.
69632         Reported by Eric Blake.
69633
69634 2007-05-29  Bruno Haible  <bruno@clisp.org>
69635
69636         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
69637         compiling case.
69638
69639 2007-05-29  Eric Blake  <ebb9@byu.net>
69640             Bruno Haible  <bruno@clisp.org>
69641
69642         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
69643         cross compiles.
69644
69645 2007-05-28  Eric Blake  <ebb9@byu.net>
69646
69647         * modules/closein-tests (test_closein_LDADD): Support test on
69648         cygwin with libtool.
69649
69650 2007-05-28  Bruno Haible  <bruno@clisp.org>
69651
69652         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
69653         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
69654         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
69655         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
69656         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
69657         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
69658         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
69659         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
69660         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
69661
69662 2007-05-28  Eric Blake  <ebb9@byu.net>
69663
69664         Unconditionally include <config.h> in unit tests.
69665         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
69666         * tests/test-allocsa.c, tests/test-arcfour.c,
69667         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
69668         tests/test-array_list.c, tests/test-array_oset.c,
69669         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
69670         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
69671         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
69672         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
69673         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
69674         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
69675         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
69676         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
69677         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
69678         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
69679         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
69680         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
69681         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
69682         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
69683         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
69684         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
69685         test-md5.c, test-memmem.c, test-printf-posix.c,
69686         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
69687         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
69688         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
69689         test-strcasestr.c, test-striconv.c, test-striconveh.c,
69690         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
69691         test-vasnprintf-posix2.c, test-vasnprintf.c,
69692         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
69693         test-vfprintf-posix.c, test-vprintf-posix.c,
69694         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
69695         test-xvasprintf.c: Likewise.
69696
69697 2007-05-28  Bruno Haible  <bruno@clisp.org>
69698
69699         * gnulib-tool (func_import): Remember the --with-tests command-line
69700         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
69701         Reported by Eric Blake.
69702
69703 2007-05-28  Bruno Haible  <bruno@clisp.org>
69704
69705         * modules/ftell-tests: New file.
69706         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
69707         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
69708
69709         * lib/ftell.c: New file.
69710         * modules/ftell: New file.
69711         * m4/ftell.m4: New file.
69712         * doc/functions/ftell.texi: Update.
69713         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
69714         REPLACE_FTELL.
69715         * lib/stdio_.h (rpl_ftell): New declaration.
69716         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
69717         REPLACE_FTELL.
69718
69719 2007-05-28  Eric Blake  <ebb9@byu.net>
69720
69721         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
69722
69723 2007-05-28  Bruno Haible  <bruno@clisp.org>
69724
69725         * modules/fseek-tests: New file.
69726         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
69727         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
69728
69729         * lib/fseek.c: New file.
69730         * modules/fseek: New file.
69731         * m4/fseek.m4: New file.
69732         * doc/functions/fseek.texi: Update.
69733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
69734         REPLACE_FSEEK.
69735         * lib/stdio_.h (rpl_fseek): New declaration.
69736         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
69737         REPLACE_FSEEK.
69738
69739 2007-05-28  Bruno Haible  <bruno@clisp.org>
69740
69741         * lib/stdio_.h (fflush): More comments.
69742
69743 2007-05-28  Bruno Haible  <bruno@clisp.org>
69744
69745         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
69746         runtime test.
69747
69748 2007-05-28  Eric Blake  <ebb9@byu.net>
69749
69750         Improve lseek module.
69751         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
69752         * lib/unistd_.h (lseek): Scale back link warning message.
69753         * tests/test-lseek.c: Beef up test.
69754         * tests/test-lseek.sh: Exercise more facets of lseek.
69755         Reported by Bruno Haible.
69756
69757 2007-05-28  Bruno Haible  <bruno@clisp.org>
69758
69759         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
69760         to define.
69761
69762 2007-05-27  Bruno Haible  <bruno@clisp.org>
69763
69764         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
69765
69766 2007-05-27  Bruno Haible  <bruno@clisp.org>
69767
69768         * modules/openmp: New file.
69769         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
69770         Noah Misch.
69771
69772 2007-05-26  Bruno Haible  <bruno@clisp.org>
69773
69774         * modules/chdir-long (Depends-on): Add fchdir.
69775         * modules/chdir-safer (Depends-on): Likewise.
69776         * modules/fts (Depends-on): Likewise.
69777         * modules/fts-lgpl (Depends-on): Likewise.
69778         * modules/openat (Depends-on): Likewise.
69779         * modules/savewd (Depends-on): Likewise.
69780
69781 2007-05-24  Eric Blake  <ebb9@byu.net>
69782
69783         Fix lseek on mingw.
69784         * modules/lseek: New module.
69785         * m4/lseek.m4: New file.
69786         * lib/lseek.c: New file.
69787         * modules/lseek-tests: New file.
69788         * tests/test-lseek.c: New file.
69789         * tests/test-lseek.sh: New file.
69790         * MODULES.html.sh: Document lseek module.
69791         * modules/fflush (Depends-on): Add lseek, fseeko.
69792         * modules/fseeko (Depends-on): Likewise.
69793         * modules/ftello (Depends-on): Likewise.
69794         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
69795         broken.
69796         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
69797         broken.
69798         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
69799         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
69800         * lib/ftello.c (rpl_ftello): Likewise.
69801         * tests/test-fseeko.c (main): Test this.
69802         * tests/test-fseeko.sh: Likewise.
69803         * tests/test-ftello.c (main): Likewise.
69804         * tests/test-ftello.sh: Likewise.
69805         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
69806         implies replacing fseek.
69807         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
69808         HAVE_FTELLO.
69809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
69810         * modules/unistd (Makefile.am): Likewise.
69811         * lib/unistd_.h (lseek): Declare a replacement.
69812         * doc/functions/lseek.texi (lseek): Document this fix.
69813         * doc/functions/fseek.texi (fseek): Likewise.
69814         * doc/functions/ftell.texi (ftell): Likewise.
69815
69816 2007-05-24  Bruno Haible  <bruno@clisp.org>
69817
69818         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
69819         in the printed representation of a NaN.
69820         * tests/test-vasprintf-posix.c (test_function): Likewise.
69821         * tests/test-snprintf-posix.h (test_function): Likewise.
69822         * tests/test-sprintf-posix.h (test_function): Likewise.
69823         Reported by Eric Blake.
69824
69825 2007-05-23  Eric Blake  <ebb9@byu.net>
69826
69827         Fix fseeko/ftello on cygwin 1.5.24.
69828         * doc/functions/fseeko.texi (fseeko): Document the fix.
69829         * doc/functions/ftello.texi (ftello): Document the fix.
69830         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
69831         * doc/functions/stdout.text (stdout): New file.
69832         * doc/functions/stderr.text (stderr): New file.
69833         * doc/gnulib.texi (Function Substitutes): Use new files.
69834         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
69835         prior to 1.7.0.
69836         * tests/test-ftello.c (main): Likewise for ftello.
69837         * tests/test-fseeko.sh: New file.
69838         * tests/test-ftello.sh: New file.
69839         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
69840         with seekable stdin.
69841         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
69842         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
69843         (gl_REPLACE_FSEEKO): New macro.
69844         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
69845         * modules/fseeko (Files): Distribute fseeko.c.
69846         * modules/ftello (Files): Distribute ftello.c.
69847         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
69848         mode.
69849         * lib/ftello.c (rpl_ftello): New file.
69850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
69851         fseeko, ftello.
69852         (gl_STDIN_LARGE_OFFSET): New macro.
69853         * modules/stdio (Makefile.am): Perform the replacement.
69854         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
69855
69856 2007-05-23  Bruno Haible  <bruno@clisp.org>
69857
69858         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
69859         GNULIB_POSIXCHECK is defined.
69860
69861 2007-05-21  Bruno Haible  <bruno@clisp.org>
69862
69863         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
69864         Check also the output for NaN arguments. When cross-compiling, guess
69865         no on IRIX.
69866         * lib/vasnprintf.c: Update comments.
69867         * tests/test-vasnprintf-posix.c (strisnan): New function.
69868         (test_function): Use it.
69869         * tests/test-vasprintf-posix.c (strisnan): New function.
69870         (test_function): Use it.
69871         * tests/test-snprintf-posix.h (strisnan): New function.
69872         (test_function): Use it.
69873         * tests/test-sprintf-posix.h (strisnan): New function.
69874         (test_function): Use it.
69875         Reported by Eric Blake.
69876
69877 2007-05-20  Bruno Haible  <bruno@clisp.org>
69878
69879         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
69880         numbers that fails on BeOS.
69881         * doc/functions/frexpl.texi: Update.
69882
69883 2007-05-20  Jim Meyering  <jim@meyering.net>
69884
69885         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
69886         forced upon us by glibc-2.6.
69887
69888 2007-05-20  Bruno Haible  <bruno@clisp.org>
69889
69890         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
69891         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
69892         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
69893         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
69894         NEED_PRINTF_INFINITE.
69895         (is_infinitel): New function.
69896         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
69897         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
69898         gl_PREREQ_VASNPRINTF_INFINITE.
69899         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
69900         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69901         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
69902         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
69903         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
69904         gl_PREREQ_VASNPRINTF_INFINITE.
69905         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69906         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69907         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69908         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69909         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69910         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69911         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69912         * doc/functions/fprintf.texi: Update.
69913         * doc/functions/printf.texi: Update.
69914         * doc/functions/snprintf.texi: Update.
69915         * doc/functions/sprintf.texi: Update.
69916         * doc/functions/vfprintf.texi: Update.
69917         * doc/functions/vprintf.texi: Update.
69918         * doc/functions/vsnprintf.texi: Update.
69919         * doc/functions/vsprintf.texi: Update.
69920
69921 2007-05-20  Bruno Haible  <bruno@clisp.org>
69922
69923         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
69924         was not found in libc.
69925         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
69926
69927 2007-05-20  Bruno Haible  <bruno@clisp.org>
69928
69929         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69930         printed as "-nan" instead of "nan".
69931         * tests/test-vasprintf-posix.c (test_function): Likewise.
69932         * tests/test-snprintf-posix.h (test_function): Likewise.
69933         * tests/test-sprintf-posix.h (test_function): Likewise.
69934         Needed for HP-UX 11.
69935
69936 2007-05-20  Jim Meyering  <jim@meyering.net>
69937
69938         Fix buggy test for the fchownat-deref bug.
69939         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
69940         symlink required for the run-test.  Without it, this test would
69941         always declare that fchownat doesn't work, and client code would
69942         unnecessarily use the replacement function with fixed libc.
69943         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
69944         Reported by Greg Schafer.
69945
69946 2007-05-19  Bruno Haible  <bruno@clisp.org>
69947
69948         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
69949         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
69950         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
69951         Needed for IRIX 6.5 and Solaris 2.5.1.
69952
69953 2007-05-19  Bruno Haible  <bruno@clisp.org>
69954
69955         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
69956         (test_function): Skip tests involving -0.0 on platforms where
69957         -0.0 = 0.0.
69958         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
69959         (test_function): Skip tests involving -0.0 on platforms where
69960         -0.0 = 0.0.
69961         * tests/test-snprintf-posix.h (have_minus_zero): New function.
69962         (test_function): Skip tests involving -0.0 on platforms where
69963         -0.0 = 0.0.
69964         * tests/test-sprintf-posix.h (have_minus_zero): New function.
69965         (test_function): Skip tests involving -0.0 on platforms where
69966         -0.0 = 0.0.
69967         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
69968         tests.
69969         * tests/test-printf-posix.h (test_function): Likewise.
69970         * tests/test-printf-posix.output: Remove all -0.0 related results.
69971         Needed for IRIX 6.5.
69972
69973 2007-05-19  Bruno Haible  <bruno@clisp.org>
69974
69975         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69976         printed as "nan0x7fffffff" instead of "nan".
69977         * tests/test-vasprintf-posix.c (test_function): Likewise.
69978         * tests/test-snprintf-posix.h (test_function): Likewise.
69979         * tests/test-sprintf-posix.h (test_function): Likewise.
69980         * tests/test-fprintf-posix.h (NaN): Remove macro.
69981         (test_function): Remove all NaN related tests.
69982         * tests/test-printf-posix.h (NaN): Remove macro.
69983         (test_function): Remove all NaN related tests.
69984         * tests/test-printf-posix.output: Remove all NaN related results.
69985         Needed for IRIX 6.5.
69986
69987 2007-05-19  Bruno Haible  <bruno@clisp.org>
69988
69989         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
69990         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
69991
69992 2007-05-19  Bruno Haible  <bruno@clisp.org>
69993
69994         * lib/float_.h: New file.
69995         * m4/float_h.m4: New file.
69996         * modules/float: New file.
69997         * modules/isnanl (Dependencies): Add float.
69998         * modules/isnanl-nolibm (Dependencies): Likewise.
69999         * modules/mathl (Dependencies): Likewise.
70000         * modules/printf-frexpl (Dependencies): Likewise.
70001         * modules/signbit (Dependencies): Likewise.
70002         * modules/vasnprintf (Dependencies): Likewise.
70003         * doc/headers/float.texi: Update.
70004
70005 2007-05-19  Jim Meyering  <jim@meyering.net>
70006
70007         * lib/utimens.c (gl_futimens): Rename from futimens,
70008         now that glibc-2.6 declares futimens.
70009         * lib/utimens.h: Likewise.
70010
70011 2007-05-19  Bruno Haible  <bruno@clisp.org>
70012
70013         Avoid test failures on mingw.
70014         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
70015         * tests/test-printf-posix.sh: Likewise.
70016         * tests/test-vfprintf-posix.sh: Likewise.
70017         * tests/test-vprintf-posix.sh: Likewise.
70018
70019 2007-05-19  Bruno Haible  <bruno@clisp.org>
70020
70021         Fix *printf result for NaN, Inf, -0.0 on mingw.
70022         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
70023         * lib/vasnprintf.c: Include math.h and isnan.h.
70024         (is_infinite_or_zero): New function.
70025         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
70026         values in the %f, %F, %e, %E, %g, %G directives.
70027         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
70028         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70029         gl_PRINTF_INFINITE and test its result. Invoke
70030         gl_PREREQ_VASNPRINTF_INFINITE.
70031         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70032         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70033         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70034         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70035         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70036         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70037         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70038         * doc/functions/fprintf.texi: Update.
70039         * doc/functions/printf.texi: Update.
70040         * doc/functions/snprintf.texi: Update.
70041         * doc/functions/sprintf.texi: Update.
70042         * doc/functions/vfprintf.texi: Update.
70043         * doc/functions/vprintf.texi: Update.
70044         * doc/functions/vsnprintf.texi: Update.
70045         * doc/functions/vsprintf.texi: Update.
70046
70047 2007-05-19  Bruno Haible  <bruno@clisp.org>
70048
70049         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
70050         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
70051         Instead of multiplying with 10^k, set extra_zeroes to k.
70052         (scale10_round_long_double): Remove function.
70053
70054 2007-05-18  Bruno Haible  <bruno@clisp.org>
70055
70056         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
70057         introduced on 2007-05-06.
70058
70059 2007-05-18  Bruno Haible  <bruno@clisp.org>
70060
70061         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
70062         %g directives.
70063         * tests/test-vasprintf-posix.c (test_function): Likewise.
70064         * tests/test-snprintf-posix.h (test_function): Likewise.
70065         * tests/test-sprintf-posix.h (test_function): Likewise.
70066
70067 2007-05-18  Bruno Haible  <bruno@clisp.org>
70068
70069         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
70070         (strmatch): New function.
70071         (test_function): Test the %f directive on numbers of various exponents.
70072         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
70073         (strmatch): New function.
70074         (test_function): Test the %f directive on numbers of various exponents.
70075         * tests/test-snprintf-posix.h (strmatch): New function.
70076         (test_function): Test the %f directive on numbers of various exponents.
70077         * tests/test-sprintf-posix.h (strmatch): New function.
70078         (test_function): Test the %f directive on numbers of various exponents.
70079         * tests/test-snprintf-posix.c (SIZEOF): New macro.
70080         * tests/test-sprintf-posix.c (SIZEOF): New macro.
70081         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
70082         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
70083
70084 2007-05-18  Bruno Haible  <bruno@clisp.org>
70085
70086         Add support for 'long double' number output.
70087         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
70088         * lib/vasnprintf.c: Include math.h and float+.h.
70089         (mp_limb_t): New type.
70090         (GMP_LIMB_BITS): New macro.
70091         (mp_twolimb_t): New type.
70092         (GMP_TWOLIMB_BITS): New macro.
70093         (mpn_t): New type.
70094         (multiply, divide, convert_to_decimal, decode_long_double,
70095         scale10_round_long_double, scale10_round_decimal_long_double,
70096         floorlog10l): New functions.
70097         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
70098         for the %f, %F, %e, %E, %g, %G directives.
70099         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
70100         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70101         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
70102         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
70103         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70104         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70105         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70106         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70107         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70108         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70109         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70110         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
70111         * modules/snprintf-posix (Depends-on): Likewise.
70112         * modules/sprintf-posix (Depends-on): Likewise.
70113         * modules/vasnprintf-posix (Depends-on): Likewise.
70114         * modules/vasprintf-posix (Depends-on): Likewise.
70115         * modules/vfprintf-posix (Depends-on): Likewise.
70116         * modules/vsnprintf-posix (Depends-on): Likewise.
70117         * modules/vsprintf-posix (Depends-on): Likewise.
70118         * modules/vasnprintf (Files): Add lib/float+.h.
70119         * doc/functions/fprintf.texi: Update.
70120         * doc/functions/printf.texi: Update.
70121         * doc/functions/snprintf.texi: Update.
70122         * doc/functions/sprintf.texi: Update.
70123         * doc/functions/vfprintf.texi: Update.
70124         * doc/functions/vprintf.texi: Update.
70125         * doc/functions/vsnprintf.texi: Update.
70126         * doc/functions/vsprintf.texi: Update.
70127
70128 2007-05-18  Bruno Haible  <bruno@clisp.org>
70129
70130         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
70131
70132 2007-05-18  Bruno Haible  <bruno@clisp.org>
70133
70134         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
70135         for printing 64-bit integers. Needed for mingw.
70136
70137 2007-05-18  Bruno Haible  <bruno@clisp.org>
70138
70139         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70140         gl_FUNC_FREXPL_WORKS.
70141         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
70142
70143 2007-05-18  Bruno Haible  <bruno@clisp.org>
70144
70145         * modules/frexpl-nolibm-tests: New file.
70146
70147         * modules/frexpl-nolibm: New file.
70148         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
70149
70150 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70151
70152         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
70153         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70154         GCC 4.2, which otherwise issues a lot of warnings.
70155         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
70156         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
70157         Likewise.
70158         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
70159         * modules/iconv_open (iconv.h): Likewise.
70160         * modules/locale (locale.h): Likewise.
70161         * modules/netinet_in (netinet/in.h): Likewise.
70162         * modules/sys_select (sys_select.h): Likewise.
70163         * modules/sys_socket (sys/socket.h): Likewise.
70164         * modules/sys_stat (sys/stat.h): Likewise.
70165         * modules/sysexits (sysexits.h): Likewise.
70166         * modules/unistd (unistd.h): Likewise.
70167
70168 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70169
70170         * modules/closein-tests (Makefile.am): Distribute
70171         `test-closein.sh'.
70172
70173 2007-05-17  Bruno Haible  <bruno@clisp.org>
70174
70175         * tests/test-printf-posix.output: Renamed from
70176         tests/test-fprintf-posix.out.
70177         * modules/fprintf-posix-tests: Update.
70178         * modules/printf-posix-tests: Update.
70179         * modules/vfprintf-posix-tests: Update.
70180         * modules/vprintf-posix-tests: Update.
70181         * tests/test-fprintf-posix.sh: Update.
70182         * tests/test-printf-posix.sh: Update.
70183         * tests/test-vfprintf-posix.sh: Update.
70184         * tests/test-vprintf-posix.sh: Update.
70185         Reported by Ralf Wildenhues.
70186
70187 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70188
70189         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
70190         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70191         GCC 4.2, which otherwise issues a lot of warnings.
70192         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
70193         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
70194         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
70195         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
70196         it should no longer be needed.
70197         * lib/string_.h: Likewise.
70198         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
70199         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
70200         * modules/inttypes (inttypes.h): Likewise.
70201         * modules/math (math.h): Likewise.
70202         * modules/search (search.h): Likewise.
70203         * modules/signal (signal.h): Likewise.
70204         * modules/stdint (stdint.h): Likewise.
70205         * modules/stdio (stdio.h): Likewise.
70206         * modules/stdlib (stdlib.h): Likewise.
70207         * modules/string (string.h): Likewise.
70208         * modules/sys_time (sys/time.h): Likewise.
70209         * modules/time (time.h): Likewise.
70210         * modules/wchar (wchar.h): Likewise.
70211         * modules/wctype (wtype.h): Likewise.
70212
70213 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
70214
70215         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
70216
70217 2007-05-13  Bruno Haible  <bruno@clisp.org>
70218
70219         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
70220         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70221         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
70222         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70223         (gl_PREREQ_STRTOK_R): Don't require it here.
70224
70225 2007-05-13  Bruno Haible  <bruno@clisp.org>
70226
70227         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
70228         when used in C++ mode.
70229
70230 2007-05-12  Bruno Haible  <bruno@clisp.org>
70231
70232         * lib/linebuffer.h: Tweak doc.
70233         * lib/linebuffer.c: Likewise.
70234
70235 2007-05-12  James Youngman  <jay@gnu.org>
70236
70237         * lib/linebuffer.c (readlinebuffer_delim): New function,
70238         like readlinebuffer, but use a caller-specified delimiter.
70239         (readlinebuffer): Just call readlinebuffer_delim with '\n'
70240         as the delimiter.
70241         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
70242
70243 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70244
70245         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
70246         * modules/openat (Files): Remove openat-die.c.
70247         (Depends-on): Add openat-die.
70248         * modules/openat-die: New module.
70249
70250 2007-05-06  Bruno Haible  <bruno@clisp.org>
70251
70252         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
70253         Update with info about Cygwin.
70254         * doc/functions/fprintf.texi: Update.
70255         * doc/functions/printf.texi: Update.
70256         * doc/functions/snprintf.texi: Update.
70257         * doc/functions/sprintf.texi: Update.
70258         * doc/functions/vfprintf.texi: Update.
70259         * doc/functions/vprintf.texi: Update.
70260         * doc/functions/vsnprintf.texi: Update.
70261         * doc/functions/vsprintf.texi: Update.
70262         Reported by Eric Blake.
70263
70264 2007-05-06  Bruno Haible  <bruno@clisp.org>
70265
70266         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
70267         padding ourselves for the floating-point directives.
70268         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
70269         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
70270         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70271         gl_PRINTF_FLAG_ZERO and test its result. Invoke
70272         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
70273         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70274         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70275         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70276         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70277         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70278         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70279         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70280         * tests/test-snprintf-posix.h (test_function): Also check the width
70281         and some flags in the %f directive.
70282         * tests/test-sprintf-posix.h (test_function): Likewise.
70283         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70284         * tests/test-vasprintf-posix.c (test_function): Likewise.
70285         * doc/functions/fprintf.texi: Update.
70286         * doc/functions/printf.texi: Update.
70287         * doc/functions/snprintf.texi: Update.
70288         * doc/functions/sprintf.texi: Update.
70289         * doc/functions/vfprintf.texi: Update.
70290         * doc/functions/vprintf.texi: Update.
70291         * doc/functions/vsnprintf.texi: Update.
70292         * doc/functions/vsprintf.texi: Update.
70293
70294 2007-05-06  Bruno Haible  <bruno@clisp.org>
70295
70296         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
70297         pass the ' flag character to sprintf or snprintf.
70298         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
70299         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
70300         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70301         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
70302         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
70303         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70304         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70305         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70306         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70307         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70308         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70309         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70310         * tests/test-snprintf-posix.h (test_function): Also check the grouping
70311         flag.
70312         * tests/test-sprintf-posix.h (test_function): Likewise.
70313         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70314         * tests/test-vasprintf-posix.c (test_function): Likewise.
70315         * doc/functions/fprintf.texi: Update.
70316         * doc/functions/printf.texi: Update.
70317         * doc/functions/snprintf.texi: Update.
70318         * doc/functions/sprintf.texi: Update.
70319         * doc/functions/vfprintf.texi: Update.
70320         * doc/functions/vprintf.texi: Update.
70321         * doc/functions/vsnprintf.texi: Update.
70322         * doc/functions/vsprintf.texi: Update.
70323
70324 2007-05-01  Bruno Haible  <bruno@clisp.org>
70325
70326         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70327
70328 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70329
70330         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70331         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70332
70333 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70334
70335         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70336         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70337         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70338
70339 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70340
70341         * lib/argp-help.c (struct hol_entry): New member `ord'.
70342         (HOL_ENTRY_PTRCMP): Use ord for comparison
70343         (hol_sort): Initialize ord.
70344
70345 2007-05-01  Bruno Haible  <bruno@clisp.org>
70346
70347         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70348         Reported by Eric Blake.
70349         * doc/gnulib.texi (Function Substitutes): Update.
70350
70351 2007-05-01  Bruno Haible  <bruno@clisp.org>
70352
70353         * doc/functions.texi: Remove file, now redundant through
70354         doc/functions/*.texi.
70355
70356 2007-05-01  Bruno Haible  <bruno@clisp.org>
70357
70358         * modules/argp (Depends-on): Add sleep.
70359
70360 2007-05-01  Bruno Haible  <bruno@clisp.org>
70361
70362         * modules/sleep-tests: New file.
70363         * tests/test-sleep.c: New file.
70364
70365         * modules/sleep: New file.
70366         * lib/sleep.c: New file.
70367         * m4/sleep.m4: New file.
70368         * lib/unistd_.h (sleep): New declaration.
70369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70370         HAVE_SLEEP.
70371         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70372         * doc/functions/sleep.texi: Document the sleep module.
70373
70374 2007-05-01  Bruno Haible  <bruno@clisp.org>
70375
70376         * lib/sigprocmask.h: Remove file.
70377         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70378         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70379         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70380         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70381         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70382         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70383         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70384         HAVE_SIGSET_T as a shell variable.
70385         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70386         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
70387         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
70388         (Depends-on): Add signal. Remove verify.
70389         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
70390         (Include): Mention <signal.h> instead of sigprocmask.h.
70391         * NEWS: Mention the change.
70392         * lib/fatal-signal.c: Don't include sigprocmask.h.
70393
70394 2007-05-01  Bruno Haible  <bruno@clisp.org>
70395
70396         * modules/signal: New file.
70397         * lib/signal_.h: New file.
70398         * m4/signal_h.m4: New file.
70399
70400 2007-05-01  Bruno Haible  <bruno@clisp.org>
70401
70402         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70403         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70404         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70405         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70406
70407 2007-05-01  Bruno Haible  <bruno@clisp.org>
70408
70409         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70410         configure time.
70411         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70412         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70413         * modules/sys_stat (Makefile.am): Substitute their values into
70414         sys/stat.h.
70415
70416 2007-05-01  Bruno Haible  <bruno@clisp.org>
70417
70418         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70419         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70420         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70421
70422 2007-05-01  Bruno Haible  <bruno@clisp.org>
70423
70424         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70425         'assert' module here.
70426
70427 2007-05-01  Bruno Haible  <bruno@clisp.org>
70428
70429         * doc/functions/*.texi: New files.
70430         * doc/functions/google-ranking.txt: New file.
70431         * doc/gnulib.texi (Function Substitutes): New chapter.
70432         (ctime, inet_ntoa): Remove sections.
70433         * doc/ctime.texi: Remove file.
70434         * doc/inet_ntoa.texi: Remove file.
70435         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70436         dependencies.
70437         (%.info): New rule, specifying a --reference-limit.
70438
70439 2007-05-01  Bruno Haible  <bruno@clisp.org>
70440
70441         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70442
70443 2007-05-01  Bruno Haible  <bruno@clisp.org>
70444
70445         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70446         the portability of 'mkdir' to mingw systems.
70447
70448 2007-05-01  Bruno Haible  <bruno@clisp.org>
70449
70450         * doc/headers/google-ranking.txt: New file.
70451
70452 2007-04-30  Eric Blake  <ebb9@byu.net>
70453
70454         Prefer fseeko to fseek.
70455         * modules/getpass (Depends-on): Add fseeko.
70456         * lib/getpass.c (getpass): Use fseeko, not fseek.
70457
70458 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70459
70460         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70461         assumes the sorting is stable, while most qsort implementations
70462         are not.  Use argument addresses to ensure they never compare as
70463         equal.
70464
70465         * tests/test-argp-2.sh (usage-indent test): Fix output
70466         (func_compare): Restore diff options
70467         * tests/test-argp.c: Restore #include "progname.h"
70468
70469 2007-04-29  Bruno Haible  <bruno@clisp.org>
70470
70471         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70472         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70473         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70474         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70475         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70476         (configure.ac): Define CHECK_SNPRINTF_POSIX.
70477         (TESTS, check_PROGRAMS): Add test-snprintf.
70478         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
70479         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
70480         (TESTS, check_PROGRAMS): Add test-vsnprintf.
70481         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
70482         assertions that fail on HP-UX, OSF/1, or IRIX.
70483         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
70484
70485 2007-04-29  Bruno Haible  <bruno@clisp.org>
70486
70487         * MODULES.html.sh (posix_functions): Remove 'contents'.
70488
70489 2007-04-29  Karl Berry  <karl@gnu.org>
70490
70491         * config/srclist.txt (gendocs_template_min): new entry.
70492
70493 2007-04-29  Bruno Haible  <bruno@clisp.org>
70494
70495         Work around fpurge bug on BSD systems.
70496         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
70497         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
70498         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
70499         fpurge to rpl_fpurge if the system already has this function.
70500         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
70501         the case where the system already has this function. Correct invariants
70502         on BSD systems.
70503         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
70504         BSD systems.
70505
70506 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
70507
70508         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
70509         proposed by Sven Verdoolaege.
70510
70511         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
70512         options.
70513         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
70514         (usage and help tests): Update
70515
70516 2007-04-29  Bruno Haible  <bruno@clisp.org>
70517
70518         * tests/test-fflush.c (main): Use a file of size 17, not 10.
70519         Print more information in case of failure. Disable a test on BeOS.
70520
70521 2007-04-29  Bruno Haible  <bruno@clisp.org>
70522
70523         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
70524         This helps debugging on systems on which no gdb is available.
70525
70526 2007-04-29  Bruno Haible  <bruno@clisp.org>
70527
70528         * lib/freading.h: Improve comments.
70529         * lib/fwriting.h: Likewise.
70530         * tests/test-freading.c (main): Don't check freading immediately after
70531         repositioning. Needed for glibc.
70532
70533 2007-04-29  Bruno Haible  <bruno@clisp.org>
70534
70535         * lib/freading.c (freading): Trivial simplification.
70536
70537 2007-04-28  Bruno Haible  <bruno@clisp.org>
70538
70539         * tests/test-fwriting.c (main): Also test the interaction between
70540         fflush and fwriting.
70541         * modules/fwriting-tests (Depends-on): Add fflush.
70542
70543         * tests/test-freading.c (main): Also test the interaction between
70544         fflush and freading.
70545         * modules/freading-tests (Depends-on): Add fflush.
70546
70547 2007-04-28  Bruno Haible  <bruno@clisp.org>
70548
70549         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
70550         fseeko and ftello.
70551         Suggested by Eric Blake.
70552
70553 2007-04-28  Jim Meyering  <jim@meyering.net>
70554
70555         Avoid false-negative in gl_STDINT_H's C99 conformance test.
70556         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
70557         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
70558
70559 2007-04-27  Eric Blake  <ebb9@byu.net>
70560
70561         * doc/headers/assert.texi (assert.h): Document assert module use.
70562
70563 2007-04-27  Bruno Haible  <bruno@clisp.org>
70564
70565         * doc/headers/*.texi: New files.
70566         * doc/gnulib.texi (Header File Substitutes): New chapter.
70567         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
70568         dependencies.
70569         (standards.info ,standards.html, standards.dvi): Update dependencies.
70570         (mostlyclean, clean): New targets.
70571
70572 2007-04-27  Bruno Haible  <bruno@clisp.org>
70573
70574         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
70575         * modules/sysexits (Files, Makefile.am): Update.
70576
70577         * lib/sys_socket_.h: Renamed from lib/socket_.h.
70578         * modules/sys_socket (Files, Makefile.am): Update.
70579
70580         * lib/sys_stat_.h: Renamed from lib/stat_.h.
70581         * modules/sys_stat (Files, Makefile.am): Update.
70582
70583 2007-04-27  Eric Blake  <ebb9@byu.net>
70584
70585         * lib/freading.h: Improve comments.
70586         * lib/fwriting.h: Likewise.
70587         * lib/fflush.c: Likewise.
70588
70589         Fix closein for mingw.
70590         * modules/closein-tests: Add tests for closein.
70591         * tests/test-closein.c: New file.
70592         * tests/test-closein.sh: Likewise.
70593         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
70594         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
70595
70596 2007-04-27  Bruno Haible  <bruno@clisp.org>
70597
70598         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
70599         version is < 6.
70600         * lib/math_.h [__DECC]: Likewise.
70601         * lib/stdio_.h [__DECC]: Likewise.
70602         * lib/stdlib_.h [__DECC]: Likewise.
70603         * lib/string_.h [__DECC]: Likewise.
70604         * lib/time_.h [__DECC]: Likewise.
70605         * lib/wchar_.h [__DECC]: Likewise.
70606         * lib/wctype_.h [__DECC]: Likewise.
70607
70608 2007-04-27  Bruno Haible  <bruno@clisp.org>
70609
70610         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
70611
70612 2007-04-27  Bruno Haible  <bruno@clisp.org>
70613
70614         * lib/fflush.c: Add comments.
70615         * modules/fpurge-tests (Depends-on): Add fflush.
70616         * modules/freadable-tests (Depends-on): Likewise.
70617         * modules/fwritable-tests (Depends-on): Likewise.
70618
70619 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
70620
70621         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
70622         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
70623         Report by Bruno Haible <bruno@clisp.org>.
70624
70625 2007-04-26  Eric Blake  <ebb9@byu.net>
70626
70627         Fix fflush on mingw.
70628         * modules/fflush (Depends-on): Add freading.
70629         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
70630         but unread data.
70631
70632 2007-04-26  Eric Blake  <ebb9@byu.net>
70633         and Bruno Haible  <bruno@clisp.org>
70634
70635         Implement freading and fwriting.
70636         * lib/freading.c: New file.
70637         * lib/freading.h: Likewise.
70638         * m4/freading.m4: Likewise.
70639         * modules/freading: Likewise.
70640         * modules/freading-tests: Likewise.
70641         * tests/test-freading.c: Likewise.
70642         * lib/fwriting.c: New file.
70643         * lib/fwriting.h: Likewise.
70644         * m4/fwriting.m4: Likewise.
70645         * modules/fwriting: Likewise.
70646         * modules/fwriting-tests: Likewise.
70647         * tests/test-fwriting.c: Likewise.
70648         * MODULES.html.sh (File stream based Input/Output): Mention them.
70649
70650 2007-04-26  Bruno Haible  <bruno@clisp.org>
70651
70652         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
70653         'long' when we assume it.
70654         Suggested by Eric Blake.
70655
70656 2007-04-26  Bruno Haible  <bruno@clisp.org>
70657
70658         Ensure fseeko, ftello are declared on glibc systems.
70659         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
70660         * modules/fseeko (configure.ac-early): Likewise.
70661         * modules/ftello (configure.ac-early): Likewise.
70662         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
70663         AC_FUNC_FSEEKO for this.
70664         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
70665         (gl_CHECK_FSEEKO): Remove macro.
70666
70667 2007-04-26  Bruno Haible  <bruno@clisp.org>
70668
70669         * tests/test-fflush.c (main): Also check the ftell result after
70670         fflush and fseek/fseeko.
70671         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
70672         file descriptor position cache in the stream.
70673         * lib/fseeko.c (rpl_fseeko): Likewise.
70674
70675 2007-04-26  Bruno Haible  <bruno@clisp.org>
70676
70677         * modules/fflush-tests (Depends-on): Add fseeko.
70678
70679 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
70680             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70681
70682         * lib/argz_.h: ensure error_t definition is obtained in same
70683         mechanism system argz.h would have.
70684         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
70685         argz facilities are known bad.  Err on the side of caution if
70686         cross-compiling.
70687
70688 2007-04-25  Eric Blake  <ebb9@byu.net>
70689
70690         * lib/fpurge.c (includes): Use stdlib.h for free.
70691         * tests/test-fflush.c (main): Also test fflush-fseeko.
70692
70693 2007-04-25  Bruno Haible  <bruno@clisp.org>
70694
70695         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
70696         * lib/fseeko.c: New file.
70697         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
70698         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
70699         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
70700         gl_FUNC_FSEEKO.
70701         (gl_FUNC_FSEEKO): Invoke it.
70702         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
70703         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
70704         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
70705
70706 2007-04-25  Bruno Haible  <bruno@clisp.org>
70707
70708         * modules/fflush (Depends-on): Add ftello.
70709
70710 2007-04-25  Bruno Haible  <bruno@clisp.org>
70711
70712         * modules/ftello-tests: New file.
70713         * tests/test-ftello.c: New file.
70714
70715         * modules/ftello: New file.
70716         * m4/ftello.m4: New file.
70717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
70718         HAVE_FTELLO.
70719         * lib/stdio_.h (ftello): New declaration.
70720         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
70721         HAVE_FTELLO.
70722
70723 2007-04-25  Bruno Haible  <bruno@clisp.org>
70724
70725         * modules/fseeko-tests: New file.
70726         * tests/test-fseeko.c: New file.
70727
70728         * modules/fseeko: New file.
70729         * m4/fseeko.m4: New file.
70730         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
70731         HAVE_FSEEKO.
70732         * lib/stdio_.h (fseeko): New declaration.
70733         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
70734         HAVE_FSEEKO.
70735
70736 2007-04-25  Bruno Haible  <bruno@clisp.org>
70737
70738         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
70739
70740 2007-04-25  Bruno Haible  <bruno@clisp.org>
70741
70742         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
70743         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
70744         * tests/test-unistd.c: Likewise.
70745         * tests/test-fcntl.c: Likewise.
70746
70747 2007-04-23  Eric Blake  <ebb9@byu.net>
70748
70749         * lib/fflush.c: Fix missing include.
70750         Reported by Bruno Haible.
70751
70752 2007-04-23  Bruno Haible  <bruno@clisp.org>
70753
70754         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
70755         Reported by Eric Blake.
70756
70757 2007-04-23  Bruno Haible  <bruno@clisp.org>
70758
70759         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
70760
70761 2007-04-23  Bruno Haible  <bruno@clisp.org>
70762
70763         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
70764
70765 2007-04-23  Bruno Haible  <bruno@clisp.org>
70766
70767         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
70768         Needed on HP-UX 11.
70769
70770 2007-04-16  Eric Blake  <ebb9@byu.net>
70771
70772         Make fflush rely on fpurge.
70773         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
70774         open coding all variants.
70775         * modules/fflush (Depends-on): Add fpurge and unistd.
70776         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
70777         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
70778
70779         Fix --with-tests compilation on cygwin.
70780         * modules/argmatch-tests (Makefile.am): List gnulib library first
70781         in LDADD.
70782         * modules/argp-tests (Makefile.am): Likewise.
70783         * modules/array-list-tests (Makefile.am): Likewise.
70784         * modules/array-oset-tests (Makefile.am): Likewise.
70785         * modules/avltree-list-tests (Makefile.am): Likewise.
70786         * modules/avltree-oset-tests (Makefile.am): Likewise.
70787         * modules/avltreehash-list-tests (Makefile.am): Likewise.
70788         * modules/carray-list-tests (Makefile.am): Likewise.
70789         * modules/dirname-tests (Makefile.am): Likewise.
70790         * modules/frexp-tests (Makefile.am): Likewise.
70791         * modules/isnanl-tests (Makefile.am): Likewise.
70792         * modules/linked-list-tests (Makefile.am): Likewise.
70793         * modules/linkedhash-list-tests (Makefile.am): Likewise.
70794         * modules/lock-tests (Makefile.am): Likewise.
70795         * modules/rbtree-list-tests (Makefile.am): Likewise.
70796         * modules/rbtree-oset-tests (Makefile.am): Likewise.
70797         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
70798         * modules/tls-tests (Makefile.am): Likewise.
70799         * modules/tsearch-tests (Makefile.am): Likewise.
70800         * modules/xvasprintf-tests (Makefile.am): Likewise.
70801
70802         Fix fpurge for cygwin.
70803         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
70804         value.
70805         * modules/fpurge-tests (Depends-on): Clean up trash.
70806
70807 2007-04-16  Simon Josefsson  <simon@josefsson.org>
70808
70809         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
70810
70811         * m4/autobuild.m4: Re-indent.
70812
70813 2007-04-13  Bruno Haible  <bruno@clisp.org>
70814
70815         * modules/fpurge-tests: New file.
70816         * tests/test-fpurge.c: New file.
70817
70818         * modules/fpurge: New file.
70819         * lib/fpurge.h: New file.
70820         * lib/fpurge.c: New file.
70821         * m4/fpurge.m4: New file.
70822
70823 2007-04-13  Bruno Haible  <bruno@clisp.org>
70824
70825         * modules/fbufmode-tests: New file.
70826         * tests/test-fbufmode.c: New file.
70827
70828         * modules/fbufmode: New file.
70829         * lib/fbufmode.h: New file.
70830         * lib/fbufmode.c: New file.
70831         * m4/fbufmode.m4: New file.
70832
70833 2007-04-13  Bruno Haible  <bruno@clisp.org>
70834
70835         * modules/fwritable-tests: New file.
70836         * tests/test-fwritable.c: New file.
70837
70838         * modules/fwritable: New file.
70839         * lib/fwritable.h: New file.
70840         * lib/fwritable.c: New file.
70841         * m4/fwritable.m4: New file.
70842
70843 2007-04-13  Bruno Haible  <bruno@clisp.org>
70844
70845         * modules/freadable-tests: New file.
70846         * tests/test-freadable.c: New file.
70847
70848         * modules/freadable: New file.
70849         * lib/freadable.h: New file.
70850         * lib/freadable.c: New file.
70851         * m4/freadable.m4: New file.
70852
70853 2007-04-13  Bruno Haible  <bruno@clisp.org>
70854
70855         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
70856         MOSTLYCLEANFILES.
70857
70858 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70859
70860         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
70861         gzip bootstrap.conf to avoid dragging in i18n machinery.
70862         (gnulib_tool_option): Use it.
70863
70864 2007-04-13  Bruno Haible  <bruno@clisp.org>
70865
70866         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
70867         %F directives.
70868         * tests/test-vasprintf-posix.c (test_function): Likewise.
70869         * tests/test-snprintf-posix.h (test_function): Likewise.
70870         * tests/test-sprintf-posix.h (test_function): Likewise.
70871         * tests/test-fprintf-posix.h (test_function): Likewise.
70872         * tests/test-printf-posix.h (test_function): Likewise.
70873         * tests/test-fprintf-posix.out: Likewise.
70874
70875 2007-04-13  Bruno Haible  <bruno@clisp.org>
70876
70877         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
70878         * modules/tls-tests (configure.ac): Likewise.
70879         Reported by Arto C. Nirkko <anirkko@insel.ch>.
70880
70881 2007-04-13  Bruno Haible  <bruno@clisp.org>
70882
70883         * lib/tls.c (glthread_tls_get): Fix return type.
70884         Patch by Arto C. Nirkko <anirkko@insel.ch>.
70885
70886 2007-04-12  Eric Blake  <ebb9@byu.net>
70887
70888         * modules/gettime (Depends-on): Remove gettime.
70889         Reported by Dmitry V. Levin.
70890
70891 2007-04-12  Bruno Haible  <bruno@clisp.org>
70892
70893         * modules/fflush (Include): Mention <stdio.h>.
70894         * modules/strtoimax (Include): Mention <inttypes.h>.
70895         * modules/strtoumax (Include): Likewise.
70896
70897 2007-04-12  Eric Blake  <ebb9@byu.net>
70898
70899         * .cvsignore: New file.
70900         * .gitignore: Likewise.
70901
70902 2007-04-12  Bruno Haible  <bruno@clisp.org>
70903
70904         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
70905         not before, since $(LDADD) often contains libgnu.a.
70906         * modules/striconv-tests (test_striconv_LDADD): Likewise.
70907         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
70908         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
70909         Needed on Cygwin.
70910
70911 2007-04-12  Eric Blake  <ebb9@byu.net>
70912
70913         Work around glibc's failure to flush stdin on fclose.
70914         * lib/closein.c (close_stdin): Flush stdin before closing.
70915
70916         Work around glibc's failure to reset seekable stdin on exit.
70917         * modules/closein: New module.
70918         * lib/closein.c: New file.
70919         * lib/closein.h: Likewise.
70920         * m4/closein.m4: Likewise.
70921         * MODULES.html.sh (File stream based Input/Output): Document it.
70922
70923 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70924
70925         * gnulib-tool: Rename generated 'autobuild' script to
70926         'do-autobuild' in --create-megatestdir output.
70927
70928         * doc/gnulib.texi (Build robot for gnulib): Fix.
70929
70930 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70931
70932         * modules/sysexits (Depends-on): Add absolute-header.
70933
70934 2007-04-12  Eric Blake  <ebb9@byu.net>
70935
70936         No need to preserve errno on success.
70937         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
70938         Reported by Bruno Haible.
70939
70940 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70941
70942         * MODULES.html.sh (Support for maintaining and releasing
70943         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
70944
70945 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70946
70947         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
70948
70949 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70950
70951         * modules/autobuild: New module.
70952
70953         * m4/autobuild.m4: New file.
70954
70955 2007-04-11  Bruno Haible  <bruno@clisp.org>
70956
70957         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
70958         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
70959         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
70960         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
70961         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70962         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70963         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70964         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70965         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70966         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70967         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
70968         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70969         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70970         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
70971         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70972         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70973         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
70974         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70975         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70976         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
70977         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70978         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70979         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
70980         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70981         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70982         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
70983         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70984         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70985         Reported by Eric Blake.
70986
70987 2007-04-11  Bruno Haible  <bruno@clisp.org>
70988
70989         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
70990
70991 2007-04-10  Bruno Haible  <bruno@clisp.org>
70992
70993         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
70994         for NaN and Infinity. Needed on FreeBSD 6.1.
70995         * tests/test-vasnprintf-posix.c (test_function): Undo last change
70996         regarding results for "%010a" of Infinity and NaN.
70997         * tests/test-vasprintf-posix.c (test_function): Likewise.
70998         * tests/test-snprintf-posix.h (test_function): Likewise.
70999         * tests/test-sprintf-posix.h (test_function): Likewise.
71000         * tests/test-fprintf-posix.h (test_function): Likewise.
71001         * tests/test-printf-posix.h (test_function): Likewise.
71002         * tests/test-fprintf-posix.out: Likewise.
71003
71004 2007-04-10  Bruno Haible  <bruno@clisp.org>
71005
71006         * modules/locale-tests: New file.
71007         * tests/test-locale.c: New file.
71008
71009         * modules/locale: New file.
71010         * lib/locale_.h: New file.
71011         * m4/locale_h.m4: New file.
71012
71013 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
71014             Bruno Haible  <bruno@clisp.org>
71015
71016         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
71017         be determined, test for availability of the copysignf, copysign,
71018         copysignl functions.
71019         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
71020         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
71021         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
71022
71023 2007-04-09  Eric Blake  <ebb9@byu.net>
71024
71025         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
71026         * modules/stdio (Makefile.am): Support fflush.
71027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71028         * modules/fflush: New file.
71029         * lib/fflush.c: Likewise.
71030         * m4/fflush.m4: Likewise.
71031         * modules/fflush-tests: New test.
71032         * tests/test-fflush.c: Likewise.
71033         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
71034
71035 2007-04-06  Bruno Haible  <bruno@clisp.org>
71036
71037         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
71038         (VASNPRINTF): Use signbit for faster determination whether to print a
71039         minus sign.
71040         * modules/vasnprintf (Files): Remove lib/float+.h.
71041         * modules/fprintf-posix (Depends-on): Add signbit.
71042         * modules/snprintf-posix (Depends-on): Likewise.
71043         * modules/sprintf-posix (Depends-on): Likewise.
71044         * modules/vasnprintf-posix (Depends-on): Likewise.
71045         * modules/vasprintf-posix (Depends-on): Likewise.
71046         * modules/vfprintf-posix (Depends-on): Likewise.
71047         * modules/vsnprintf-posix (Depends-on): Likewise.
71048         * modules/vsprintf-posix (Depends-on): Likewise.
71049
71050 2007-04-06  Bruno Haible  <bruno@clisp.org>
71051
71052         * tests/test-frexp.c (main): Test also the sign bit of zero results.
71053         * tests/test-frexpl.c (main): Likewise.
71054         * tests/test-ldexpl.c (main): Likewise.
71055         * modules/frexp-tests (Depends-on): Add signbit.
71056         * modules/frexpl-tests (Depdends-on): Likewise.
71057         * modules/ldexpl-tests (Depdends-on): Likewise.
71058
71059 2007-04-06  Bruno Haible  <bruno@clisp.org>
71060
71061         * modules/signbit-tests: New file.
71062         * tests/test-signbit.c: New file.
71063
71064         * modules/signbit: New file.
71065         * lib/signbitf.c: New file.
71066         * lib/signbitd.c: New file.
71067         * lib/signbitl.c: New file.
71068         * m4/signbit.m4: New file.
71069         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
71070         (signbit): New macro.
71071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
71072         REPLACE_SIGNBIT.
71073         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
71074         REPLACE_FREXPL into math.h.
71075
71076 2007-04-06  Bruno Haible  <bruno@clisp.org>
71077
71078         * modules/isnanf-nolibm-tests: New file.
71079         * tests/test-isnanf.c: New file.
71080
71081         * modules/isnanf-nolibm: New file.
71082         * lib/isnanf.h: New file.
71083         * lib/isnanf.c: New file.
71084         * lib/isnan.c: Consider the USE_FLOAT macro.
71085         * m4/isnanf.m4: New file.
71086
71087 2007-04-06  Bruno Haible  <bruno@clisp.org>
71088
71089         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
71090         (Link): New section.
71091
71092         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
71093
71094 2007-04-06  Bruno Haible  <bruno@clisp.org>
71095
71096         Assume the 'long double' type.
71097         * m4/longdouble.m4: Remove file.
71098         * config/srclist.txt: Don't mention longdouble.m4.
71099         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
71100         * lib/float+.h: Likewise.
71101         * lib/frexp.c: Likewise.
71102         * lib/printf-args.h: Likewise.
71103         * lib/printf-args.c: Likewise.
71104         * lib/printf-frexp.c: Likewise.
71105         * lib/printf-parse.c: Likewise.
71106         * lib/vasnprintf.c: Likewise.
71107         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
71108         * m4/intl.m4: Likewise.
71109         * m4/isnanl.m4: Likewise.
71110         * m4/printf.m4: Likewise.
71111         * m4/printf-frexpl.m4: Likewise.
71112         * m4/vasnprintf.m4: Likewise.
71113         * modules/allocsa (Files): Remove m4/longdouble.m4.
71114         * modules/gettext (Files): Likewise.
71115         * modules/relocatable-prog-wrapper (Files): Likewise.
71116         * modules/vasnprintf (Files): Likewise.
71117         * modules/isnanl (Files): Likewise.
71118         (Include): Simplify.
71119         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
71120         (Include): Simplify.
71121         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
71122         (Include): Simplify.
71123         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
71124         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71125         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
71126         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71127         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71128         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71129         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
71130         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71131         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71132         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71133         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
71134         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71135         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
71136         * tests/test-isnanl.c: Likewise.
71137         * tests/test-snprintf-posix.h: Likewise.
71138         * tests/test-sprintf-posix.h: Likewise.
71139         * tests/test-vasnprintf-posix.c: Likewise.
71140         * tests/test-vasnprintf-posix2.c: Likewise.
71141         * tests/test-vasprintf-posix.c: Likewise.
71142
71143 2007-04-06  Bruno Haible  <bruno@clisp.org>
71144
71145         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
71146         * lib/math_.h [__DECC]: Include the overridden include file through
71147         #include_next, outside the double-inclusion guard.
71148         * lib/stdio_.h [__DECC]: Likewise.
71149         * lib/stdlib_.h [__DECC]: Likewise.
71150         * lib/string_.h [__DECC]: Likewise.
71151         * lib/time_.h [__DECC]: Likewise.
71152         * lib/wchar_.h [__DECC]: Likewise.
71153         * lib/wctype_.h [__DECC]: Likewise.
71154         * lib/inttypes_.h [__DECC]: Likewise.
71155         Reported by Albert Chin <china@thewrittenword.com> in
71156         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
71157
71158 2007-04-04  Eric Blake  <ebb9@byu.net>
71159
71160         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
71161         1.5.x.
71162
71163 2007-04-04  Bruno Haible  <bruno@clisp.org>
71164
71165         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
71166         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
71167
71168 2007-04-04  Bruno Haible  <bruno@clisp.org>
71169
71170         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
71171         results for "%010a" of Infinity and NaN.
71172         * tests/test-vasprintf-posix.c (test_function): Likewise.
71173         * tests/test-snprintf-posix.h (test_function): Likewise.
71174         * tests/test-sprintf-posix.h (test_function): Likewise.
71175         * tests/test-fprintf-posix.h (test_function): Remove these tests.
71176         * tests/test-printf-posix.h (test_function): Likewise.
71177         * tests/test-fprintf-posix.out: Update.
71178         Needed for FreeBSD 6.1.
71179
71180 2007-04-04  Bruno Haible  <bruno@clisp.org>
71181
71182         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
71183         directly used by the gnulib modules nor by gnulib-tool.
71184
71185 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71186
71187         * DEPENDENCIES: Give overall description of version dependency
71188         desirability.  Use more-typical names for apps.
71189         Add shell, coreutils, diffutils, grep, tar, gzip.
71190
71191 2007-04-04  Simon Josefsson  <simon@josefsson.org>
71192
71193         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
71194
71195 2007-04-04  Karl Berry  <karl@gnu.org>
71196
71197         * MODULES.html.sh (func_module): missing '.
71198
71199 2007-04-03  Bruno Haible  <bruno@clisp.org>
71200
71201         * modules/argmatch-tests (Makefile.am): New variable
71202         test_argmatch_LDADD.
71203         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
71204         * modules/array-list-tests (Makefile.am): New variable
71205         test_array_list_LDADD.
71206         * modules/array-oset-tests (Makefile.am): New variable
71207         test_array_oset_LDADD.
71208         * modules/avltree-list-tests (Makefile.am): New variable
71209         test_avltree_list_LDADD.
71210         * modules/avltree-oset-tests (Makefile.am): New variable
71211         test_avltree_oset_LDADD.
71212         * modules/avltreehash-list-tests (Makefile.am): New variable
71213         test_avltreehash_list_LDADD.
71214         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
71215         test_canonicalize_lgpl_LDADD.
71216         * modules/carray-list-tests (Makefile.am): New variable
71217         test_carray_list_LDADD.
71218         * modules/dirname-tests (Makefile.am): New variable
71219         test_dirname_LDADD.
71220         * modules/linked-list-tests (Makefile.am): New variable
71221         test_linked_list_LDADD.
71222         * modules/linkedhash-list-tests (Makefile.am): New variable
71223         test_linkedhash_list_LDADD.
71224         * modules/rbtree-list-tests (Makefile.am): New variable
71225         test_rbtree_list_LDADD.
71226         * modules/rbtree-oset-tests (Makefile.am): New variable
71227         test_rbtree_oset_LDADD.
71228         * modules/rbtreehash-list-tests (Makefile.am): New variable
71229         test_rbtreehash_list_LDADD.
71230         * modules/xvasprintf-tests (Makefile.am): New variable
71231         test_xvasprintf_LDADD.
71232         Reported by Eric Blake.
71233
71234 2007-04-03  Eric Blake  <ebb9@byu.net>
71235
71236         * DEPENDENCIES: Weaken m4 requirements.
71237
71238 2007-04-03  Bruno Haible  <bruno@clisp.org>
71239
71240         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
71241         * modules/isnanl-tests (configure.ac): Likewise.
71242
71243 2007-04-03  Ben Pfaff  <blp@gnu.org>
71244
71245         * modules/iconv_open: Add $(srcdir)/ to source directory
71246         references in Makefile fragments that call gperf, to fix VPATH
71247         builds.
71248
71249 2007-04-03  Bruno Haible  <bruno@clisp.org>
71250
71251         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
71252         * lib/ldexpl.c: Undo last change.
71253
71254 2007-04-03  Bruno Haible  <bruno@clisp.org>
71255
71256         * modules/printf-frexpl (Depends-on): Undo last change.
71257         (Files): Add m4/ldexpl.m4.
71258
71259 2007-04-03  Bruno Haible  <bruno@clisp.org>
71260
71261         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
71262         * modules/isnanl (Link): New section.
71263
71264         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
71265         * modules/frexp (Link): New section.
71266
71267         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
71268         * modules/frexpl (Link): New section.
71269
71270         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
71271         * modules/ldexpl (Link): New section.
71272
71273 2007-04-03  Bruno Haible  <bruno@clisp.org>
71274
71275         * modules/TEMPLATE-EXTENDED: New file.
71276         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
71277
71278 2007-04-03  Bruno Haible  <bruno@clisp.org>
71279
71280         * DEPENDENCIES: New file.
71281         Suggested by Simon Josefsson.
71282
71283 2007-04-03  Bruno Haible  <bruno@clisp.org>
71284
71285         * doc/gnulib.texi: Escape @.
71286
71287 2007-04-03  James Youngman  <jay@gnu.org>
71288         and Paul Eggert  <eggert@cs.ucla.edu>
71289
71290         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
71291         birthtime on all systems that have birthtime, not just those which
71292         use st_birthtimensec rather than st_birthtim.  Putting zero in
71293         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
71294         that the birth time is not available for files on an NFS mount.
71295
71296 2007-04-03  Simon Josefsson  <simon@josefsson.org>
71297
71298         * modules/memxor: Move back from crypto/, suggested by Bruno.
71299         * modules/crypto/hmac-sha1: Fix memxor dependency.
71300
71301         * modules/crypto/gc: Moved from ../.
71302
71303 2007-04-02  Eric Blake  <ebb9@byu.net>
71304
71305         * lib/ldexpl.c (includes): Avoid libm.
71306
71307         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
71308
71309 2007-04-02  Bruno Haible  <bruno@clisp.org>
71310
71311         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
71312         on IRIX.
71313
71314 2007-04-02  Bruno Haible  <bruno@clisp.org>
71315
71316         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
71317         x86 or x86_64 platforms running MacOS X.
71318         Reported by Ryan Schmidt <@ryandesign.com>.
71319
71320 2007-04-02  Bruno Haible  <bruno@clisp.org>
71321
71322         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
71323         i386.
71324
71325 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71326
71327         * modules/crypto/arcfour: Moved from ../.
71328         * modules/crypto/arcfour-tests: Moved from ../.
71329         * modules/crypto/arctwo: Moved from ../.
71330         * modules/crypto/arctwo-tests: Moved from ../.
71331         * modules/crypto/des: Moved from ../.
71332         * modules/crypto/des-tests: Moved from ../.
71333         * modules/crypto/gc-arcfour: Moved from ../.
71334         * modules/crypto/gc-arcfour-tests: Moved from ../.
71335         * modules/crypto/gc-arctwo: Moved from ../.
71336         * modules/crypto/gc-arctwo-tests: Moved from ../.
71337         * modules/crypto/gc-des: Moved from ../.
71338         * modules/crypto/gc-des-tests: Moved from ../.
71339         * modules/crypto/gc-hmac-md5: Moved from ../.
71340         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71341         * modules/crypto/gc-hmac-sha1: Moved from ../.
71342         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71343         * modules/crypto/gc-md2: Moved from ../.
71344         * modules/crypto/gc-md2-tests: Moved from ../.
71345         * modules/crypto/gc-md4: Moved from ../.
71346         * modules/crypto/gc-md4-tests: Moved from ../.
71347         * modules/crypto/gc-md5: Moved from ../.
71348         * modules/crypto/gc-md5-tests: Moved from ../.
71349         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71350         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71351         * modules/crypto/gc-random: Moved from ../.
71352         * modules/crypto/gc-rijndael: Moved from ../.
71353         * modules/crypto/gc-rijndael-tests: Moved from ../.
71354         * modules/crypto/gc-sha1: Moved from ../.
71355         * modules/crypto/gc-sha1-tests: Moved from ../.
71356         * modules/crypto/gc-tests: Moved from ../.
71357         * modules/crypto/hmac-md5: Moved from ../.
71358         * modules/crypto/hmac-md5-tests: Moved from ../.
71359         * modules/crypto/hmac-sha1: Moved from ../.
71360         * modules/crypto/hmac-sha1-tests: Moved from ../.
71361         * modules/crypto/md2: Moved from ../.
71362         * modules/crypto/md2-tests: Moved from ../.
71363         * modules/crypto/md4: Moved from ../.
71364         * modules/crypto/md4-tests: Moved from ../.
71365         * modules/crypto/md5: Moved from ../.
71366         * modules/crypto/md5-tests: Moved from ../.
71367         * modules/crypto/memxor: Moved from ../.
71368         * modules/crypto/rijndael: Moved from ../.
71369         * modules/crypto/rijndael-tests: Moved from ../.
71370         * modules/crypto/sha1: Moved from ../.
71371
71372 2007-03-30  James Youngman  <jay@gnu.org>
71373
71374         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71375         rename() to change the ctime of a file (because ctime is unaffected
71376         by rename on jfs2 on AIX 5.1).
71377         (main): Start by doing cleanup, in case a previous run failed leaving
71378         test files behind.
71379
71380 2007-03-31  Bruno Haible  <bruno@clisp.org>
71381
71382         Support old proprietary implementations of iconv.
71383         * modules/iconv_open: New file.
71384         * lib/iconv_.h: New file.
71385         * m4/iconv_h.m4: New file.
71386         * lib/iconv_open.c: New file.
71387         * lib/iconv_open-aix.gperf: New file.
71388         * lib/iconv_open-hpux.gperf: New file.
71389         * lib/iconv_open-irix.gperf: New file.
71390         * lib/iconv_open-osf.gperf: New file.
71391         * m4/iconv_open.m4: New file.
71392         * modules/linebreak (Depends-on): Add iconv_open.
71393         * modules/striconv (Depends-on): Likewise.
71394         * modules/striconveh (Depends-on): Likewise.
71395         * modules/unicodeio (Depends-on): Likewise.
71396         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71397         (iconv_t)(-1).
71398         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71399         conversion if cd is (iconv_t)(-1).
71400         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71401         is not possible.
71402
71403 2007-03-31  Bruno Haible  <bruno@clisp.org>
71404
71405         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71406         work on Solaris either. Protect also second use of "autodetect_jp".
71407
71408 2007-03-31  Bruno Haible  <bruno@clisp.org>
71409
71410         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71411         the function is not present.
71412
71413 2007-03-31  Bruno Haible  <bruno@clisp.org>
71414
71415         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71416         the function is not present.
71417
71418 2007-03-31  Bruno Haible  <bruno@clisp.org>
71419
71420         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71421         a bug in HP-UX iconv_open().
71422
71423 2007-03-31  Bruno Haible  <bruno@clisp.org>
71424
71425         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71426         (Mathematics <math.h>): New section, add fpieee.
71427         (Input/output <stdio.h>): Add fseterr.
71428         (Mathematics <math.h>): New section, add printf-frexp.
71429         (Container data structures): Add sublist.
71430         (Core language properties): Add fpucw, inline.
71431         (Functions for greatest-width integer types <inttypes.h>): Add
71432         imaxabs, imaxdiv, inttypes.
71433         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71434         isnanl-nolibm, ldexp.
71435         (Mathematics <math.h>): New section, add printf-frexpl.
71436         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71437         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71438         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71439         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71440         (Unicode string functions): Add unistr/u*-mbtoucr.
71441         (Java): Add javacomp-script, javaexec-script.
71442         (C#): Add csharpcomp-script, csharpexec-script.
71443         (Support for building libraries and executables): Add havelib,
71444         relocatable-*.
71445         (Support for maintaining and releasing projects): Renamed from
71446         'Support for maintaining and release projects'. Add announce-gen.
71447
71448 2007-03-31  Bruno Haible  <bruno@clisp.org>
71449
71450         * README: Talk primarily about git.
71451         (git and CVS): Renamed from CVS.
71452         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71453         gnulib is available through git.
71454         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71455
71456 2007-03-30  Bruno Haible  <bruno@clisp.org>
71457
71458         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71459         * lib/poll_.h: Likewise.
71460         * lib/stat_.h: Likewise.
71461         * lib/sys_time_.h: Likewise.
71462         * lib/sysexit_.h: Likewise.
71463         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71464         * lib/stdbool_.h: Likewise.
71465         * lib/byteswap_.h: Add double-inclusion guard.
71466
71467 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71468
71469         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71470
71471 2007-03-30  Karl Berry  <karl@gnu.org>
71472
71473         * config/srclist-update: double space after USA in the license
71474         substitution, since that's how it's usually (?) written.
71475
71476 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71477
71478         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
71479         reported by Bruno Haible.
71480
71481 2007-03-29  Bruno Haible  <bruno@clisp.org>
71482
71483         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
71484         a bug in AIX iconv().
71485
71486 2007-03-29  Bruno Haible  <bruno@clisp.org>
71487
71488         * modules/ldexpl-tests: New file.
71489         * tests/test-ldexpl.c: New file.
71490
71491 2007-03-29  Bruno Haible  <bruno@clisp.org>
71492
71493         * lib/ldexpl.c: Include fpucw.h.
71494         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
71495         multiplication.
71496         * modules/ldexpl (Depends-on): Add fpucw.
71497
71498 2007-03-29  Bruno Haible  <bruno@clisp.org>
71499
71500         * modules/ldexpl: New file.
71501         * m4/ldexpl.m4: New file.
71502         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
71503         set.
71504         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
71505         REPLACE_LDEXPL.
71506         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
71507         REPLACE_LDEXPL.
71508         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
71509         gl_FUNC_LDEXPL_WORKS.
71510         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
71511         * modules/mathl (Files): Remove lib/ldexpl.c.
71512         (Depends-on): Add ldexpl.
71513
71514 2007-03-29  Bruno Haible  <bruno@clisp.org>
71515
71516         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
71517
71518 2007-03-29  Bruno Haible  <bruno@clisp.org>
71519
71520         * tests/test-striconveh.c (main): Don't assume that a direct conversion
71521         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
71522         and possibly also HP-UX.
71523         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71524         work on AIX, IRIX, HP-UX, OSF/1.
71525         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
71526         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
71527         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
71528         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
71529         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
71530         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
71531
71532 2007-03-29  Bruno Haible  <bruno@clisp.org>
71533
71534         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
71535
71536 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71537
71538         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
71539         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
71540
71541 2007-03-29  Eric Blake  <ebb9@byu.net>
71542
71543         * lib/acl-internal.h: Remove redundant include.
71544         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
71545         Cygwin when a file is locked.
71546
71547 2007-03-29  Bruno Haible  <bruno@clisp.org>
71548
71549         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
71550         file.
71551         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
71552
71553 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71554
71555         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
71556         try to remove a parent directory if the child couldn't be removed
71557         (except for the first rmdir, which could fail because the child
71558         doesn't exist).  Problem reported by Jeff Blaine in
71559         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
71560
71561 2007-03-28  Bruno Haible  <bruno@clisp.org>
71562
71563         * lib/striconveh.c (utf8conv_carefully): New function.
71564         (mem_cd_iconveh_internal): Invoke it.
71565
71566 2007-03-28  Bruno Haible  <bruno@clisp.org>
71567
71568         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
71569         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
71570         input.
71571         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
71572         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
71573         unistr/u8-uctomb.
71574
71575 2007-03-28  Bruno Haible  <bruno@clisp.org>
71576
71577         * modules/unistr/u8-mbtoucr: New file.
71578         * lib/unistr/u8-mbtoucr.c: New file.
71579         * modules/unistr/u16-mbtoucr: New file.
71580         * lib/unistr/u16-mbtoucr.c: New file.
71581         * modules/unistr/u16-mbtoucr: New file.
71582         * lib/unistr/u16-mbtoucr.c: New file.
71583         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
71584
71585 2007-03-27  Simon Josefsson  <simon@josefsson.org>
71586             Bruno Haible  <bruno@clisp.org>
71587
71588         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
71589         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
71590         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
71591
71592         * m4/stdio_h.m4: Add stubs for vasprintf too.
71593
71594         * modules/stdio: Support vasprintf in sed command.
71595
71596         * modules/vasprintf: Depend on stdio for prototypes.  Remove
71597         vasprintf.h.  Add stdio module indicator.
71598
71599         * lib/stdio_.h: Declare asprintf and vasprintf, based on
71600         vasprintf.h.
71601
71602         * lib/vasprintf.h: File removed.
71603
71604         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
71605         * lib/vasprintf.c: Ditto.
71606         * lib/xvasprintf.c: Ditto.
71607         * tests/test-vasprintf-posix.c: Ditto.
71608         * tests/test-vasprintf.c: Ditto.
71609
71610 2007-03-27  Bruno Haible  <bruno@clisp.org>
71611
71612         Make vasnprintf multithread-safe.
71613         * lib/vasnprintf.c (decimal_point_char): New function.
71614         (VASNPRINTF): Use it.
71615         Suggested by Simon Josefsson.
71616
71617 2007-03-27  Eric Blake  <ebb9@byu.net>
71618
71619         Support sub-second birthtime on cygwin.
71620         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
71621         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
71622         (get_stat_birthtime): Also work with st_birthtim.
71623
71624 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
71625
71626         * lib/stat-time.h (USE_BIRTHTIME): Remove.
71627         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
71628         (get_stat_birthtime_ns): Do not try to use "spare" fields.
71629         (get_stat_birthtime_ns): Simplify compile-time tests.
71630         (get_stat_birthtime): Change the API to look like
71631         get_stat_mtime etc., except return a negative tv_nsec on error.
71632         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
71633         Don't check for "spare" fields.
71634         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
71635         or for struct stat.st_birthtime, as these tests aren't used.
71636         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
71637
71638 2007-03-27  Bruno Haible  <bruno@clisp.org>
71639
71640         * lib/stat-time.h: Include <sys/stat.h>.
71641
71642 2007-03-27  James Youngman  <jay@gnu.org>
71643
71644         * lib/stat-time.h (get_stat_birthtime): New function for
71645           retrieving st_birthtime as provided by UFS2 (hence *BSD).
71646         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
71647           and its variants.
71648         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
71649         * modules/stat-time-test: New file.
71650         * tests/test-stat-time.c: New test, devised by Bruno Haible.
71651
71652 2007-03-26  Bruno Haible  <bruno@clisp.org>
71653
71654         Better support of signalling NaNs.
71655         * lib/atanl.c: Include isnanl.h.
71656         (atanl): Perform test for NaN at the beginning of the function and
71657         through a call to isnanl.
71658         * lib/cosl.c: Include isnanl.h.
71659         (cosl): Perform test for NaN at the beginning of the function and
71660         through a call to isnanl.
71661         * lib/ldexpl.c: Include isnanl.h.
71662         (ldexpl): Perform test for NaN through a call to isnanl.
71663         * lib/logl.c: Include isnanl.h.
71664         (logl): Perform test for NaN at the beginning of the function and
71665         through a call to isnanl.
71666         * lib/sinl.c: Include isnanl.h.
71667         (sinl): Perform test for NaN at the beginning of the function and
71668         through a call to isnanl.
71669         * lib/sqrtl.c: Include isnanl.h.
71670         (sqrtl): Perform test for NaN at the beginning of the function and
71671         through a call to isnanl.
71672         * lib/tanl.c: Include isnanl.h.
71673         (tanl): Perform test for NaN at the beginning of the function and
71674         through a call to isnanl.
71675         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
71676         * modules/mathl (Depends-on): Add isnanl.
71677
71678 2007-03-26  Eric Blake  <ebb9@byu.net>
71679
71680         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
71681         regression in logic sense of previous patch.
71682
71683 2007-03-26  Bruno Haible  <bruno@clisp.org>
71684
71685         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
71686         unportable shell command "if ! ...".
71687         Reported by Ralf Wildenhues.
71688
71689 2007-03-25  Bruno Haible  <bruno@clisp.org>
71690
71691         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
71692         <sysexits.h> file, and only add EX_CONFIG.
71693         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
71694         absolute file name and whether it is sufficient. Substitute also
71695         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
71696         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
71697         ABSOLUTE_SYSEXITS_H into sysexits.h.
71698
71699 2007-03-25  Bruno Haible  <bruno@clisp.org>
71700
71701         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
71702         hints is NULL.
71703
71704 2007-03-25  Bruno Haible  <bruno@clisp.org>
71705
71706         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
71707         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
71708
71709 2007-03-25  Bruno Haible  <bruno@clisp.org>
71710
71711         * lib/vasnprintf.c: Include langinfo.h.
71712         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
71713         multithread-safe.
71714         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
71715         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
71716         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
71717         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71718         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71719         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71720         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
71721         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
71722         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71723         Reported by Simon Josefsson.
71724
71725 2007-03-25  Bruno Haible  <bruno@clisp.org>
71726
71727         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
71728         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
71729         * modules/vasnprintf (Depends-on): Add stdint.
71730
71731 2007-03-25  Bruno Haible  <bruno@clisp.org>
71732
71733         * modules/fpieee: New file.
71734         * m4/fpieee.m4: New file.
71735         * modules/isnan-nolibm (Depends-on): Add fpieee.
71736         * modules/isnanl-nolibm (Depends-on): Add fpieee.
71737         * modules/isnanl (Depends-on): Add fpieee.
71738
71739 2007-03-25  Bruno Haible  <bruno@clisp.org>
71740
71741         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
71742
71743 2007-03-25  Bruno Haible  <bruno@clisp.org>
71744
71745         Avoid test failures on IRIX 6.5.
71746         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
71747         (main): Use it.
71748         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
71749         macros.
71750         (main): Use them.
71751
71752 2007-03-25  Bruno Haible  <bruno@clisp.org>
71753
71754         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
71755         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
71756         exists but doesn't work.
71757         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
71758         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
71759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
71760         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
71761         math.h.
71762
71763 2007-03-25  Bruno Haible  <bruno@clisp.org>
71764
71765         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
71766         returns inf. Needed on IRIX 6.5.
71767
71768 2007-03-25  Bruno Haible  <bruno@clisp.org>
71769
71770         * tests/test-frexpl.c: Include isnanl-nolibm.h.
71771         (main): Use isnanl instead of x != x idiom.
71772         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
71773
71774         * tests/test-frexp.c: Include isnan.h.
71775         (main): Use isnan instead of x != x idiom.
71776         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
71777
71778 2007-03-25  Bruno Haible  <bruno@clisp.org>
71779
71780         * tests/test-frexp.c (NaN): New function/macro.
71781         (main): Use it instead of 0.0 / 0.0.
71782         * tests/test-isnan.c (NaN): New function/macro.
71783         (main): Use it instead of 0.0 / 0.0.
71784         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
71785         (test_function): Use it instead of 0.0 / 0.0.
71786         * tests/test-vasprintf-posix.c (NaN): New function/macro.
71787         (test_function): Use it instead of 0.0 / 0.0.
71788         * tests/test-snprintf-posix.h (NaN): New function/macro.
71789         (test_function): Use it instead of 0.0 / 0.0.
71790         * tests/test-sprintf-posix.h (NaN): New function/macro.
71791         (test_function): Use it instead of 0.0 / 0.0.
71792         * tests/test-fprintf-posix.h (NaN): New function/macro.
71793         (test_function): Use it instead of 0.0 / 0.0.
71794         * tests/test-printf-posix.h (NaN): New function/macro.
71795         (test_function): Use it instead of 0.0 / 0.0.
71796
71797         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
71798
71799 2007-03-25  Bruno Haible  <bruno@clisp.org>
71800
71801         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
71802
71803 2007-03-25  Bruno Haible  <bruno@clisp.org>
71804
71805         * lib/regexec.c (merge_state_with_log): Make static.
71806
71807 2007-03-25  Bruno Haible  <bruno@clisp.org>
71808
71809         * lib/trigl.c (kernel_rem_pio2): Make static.
71810
71811 2007-03-25  Bruno Haible  <bruno@clisp.org>
71812
71813         * lib/sincosl.c (sincosl_table): Make static.
71814
71815 2007-03-25  Bruno Haible  <bruno@clisp.org>
71816
71817         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
71818         if the compiler does not support C99.
71819
71820 2007-03-25  Bruno Haible  <bruno@clisp.org>
71821
71822         * modules/time (Makefile.am): Ensure all rule action lines start with a
71823         tab.
71824
71825 2007-03-24  Bruno Haible  <bruno@clisp.org>
71826
71827         * modules/tsearch-tests: New file.
71828         * tests/test-tsearch.sh: New file.
71829         * tests/test-tsearch.c: New file, mostly copied from glibc.
71830
71831         * modules/search-tests: New file.
71832         * tests/test-search.c: New file.
71833
71834         * modules/search: New file.
71835         * lib/search_.h: New file, incorporating lib/tsearch.h.
71836         * m4/search_h.m4: New file.
71837         * lib/tsearch.h: Remove file.
71838         * lib/tsearch.c: Include search.h instead of tsearch.h.
71839         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
71840         HAVE_TSEARCH.
71841         * modules/tsearch (Files): Remove lib/tsearch.h.
71842         (Depends-on): Add search.
71843         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
71844         (Include): Change tsearch.h into search.h.
71845
71846 2007-03-24  Bruno Haible  <bruno@clisp.org>
71847
71848         * modules/fpucw: New file.
71849         * lib/fpucw.h: New file.
71850         * lib/frexp.c: Include fpucw.h.
71851         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71852         (FUNC): Use them.
71853         * lib/printf-frexp.c: Include fpucw.h.
71854         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71855         (FUNC): Use them.
71856         * lib/vasnprintf.c: Include fpucw.h.
71857         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
71858         'long double' calculations.
71859         * tests/test-frexpl.c: Include fpucw.h.
71860         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71861         * tests/test-printf-frexpl.c: Include fpucw.h.
71862         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71863         * modules/frexpl (Depends-on): Add fpucw.
71864         * modules/printf-frexpl (Depends-on): Likewise.
71865         * modules/fprintf-posix (Depends-on): Likewise.
71866         * modules/snprintf-posix (Depends-on): Likewise.
71867         * modules/sprintf-posix (Depends-on): Likewise.
71868         * modules/vasnprintf-posix (Depends-on): Likewise.
71869         * modules/vasprintf-posix (Depends-on): Likewise.
71870         * modules/vfprintf-posix (Depends-on): Likewise.
71871         * modules/vsnprintf-posix (Depends-on): Likewise.
71872         * modules/vsprintf-posix (Depends-on): Likewise.
71873         * modules/frexpl-tests (Depends-on): Likewise.
71874         * modules/printf-frexpl-tests (Depends-on): Likewise.
71875
71876 2007-03-24  Bruno Haible  <bruno@clisp.org>
71877
71878         * lib/float+.h: New file.
71879         * lib/isnan.c: Include float+.h.
71880         (SIZE): New macro.
71881         (FUNC): Compare only SIZE bytes of the value.
71882         * lib/vasnprintf.c: Include float+.h.
71883         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
71884         SIZEOF_LDBL or SIZEOF_DBL bytes.
71885         * modules/isnan-nolibm (Files): Add lib/float+.h.
71886         * modules/isnanl-nolibm (Files): Add lib/float+.h.
71887         * modules/isnanl (Files): Add lib/float+.h.
71888         * modules/vasnprintf (Files): Add lib/float+.h.
71889
71890 2007-03-24  Bruno Haible  <bruno@clisp.org>
71891
71892         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
71893         include isnanl-nolibm.h.
71894
71895 2007-03-24  Bruno Haible  <bruno@clisp.org>
71896
71897         * tests/test-read-file.c (main): Don't produce spurious output for
71898         expected situations. Make the test fail if it encountered unexpected
71899         results.
71900
71901 2007-03-24  Bruno Haible  <bruno@clisp.org>
71902
71903         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
71904         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
71905
71906 2007-03-24  Bruno Haible  <bruno@clisp.org>
71907
71908         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
71909
71910 2007-03-24  Bruno Haible  <bruno@clisp.org>
71911
71912         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
71913         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
71914
71915         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
71916         * modules/utf8-ucs4: Turn into a symbolic link to module
71917         unistr/u8-mbtouc.
71918
71919         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
71920         utf8-ucs4-unsafe.
71921         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
71922         unistr/u8-mbtouc-unsafe.
71923
71924         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
71925         * modules/utf16-ucs4: Turn into a symbolic link to module
71926         unistr/u16-mbtouc.
71927
71928         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
71929         utf16-ucs4-unsafe.
71930         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
71931         unistr/u16-mbtouc-unsafe.
71932
71933         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
71934         * modules/ucs4-utf8: Turn into a symbolic link to module
71935         unistr/u8-ubtomb.
71936
71937         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
71938         * modules/ucs4-utf16: Turn into a symbolic link to module
71939         unistr/u16-ubtomb.
71940
71941 2007-03-24  Bruno Haible  <bruno@clisp.org>
71942
71943         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
71944         Enable the function only if HAVE_INLINE.
71945         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
71946         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71947         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
71948         Enable the function only if HAVE_INLINE.
71949         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
71950         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71951         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
71952         Enable the function only if HAVE_INLINE.
71953         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
71954         Enable the function only if HAVE_INLINE.
71955         * modules/utf8-ucs4: Update.
71956         * modules/utf8-ucs4-unsafe: Update.
71957         * modules/utf16-ucs4: Update.
71958         * modules/utf16-ucs4-unsafe: Update.
71959         * modules/ucs4-utf8: Update.
71960         * modules/ucs4-utf16: Update.
71961
71962 2007-03-24  Bruno Haible  <bruno@clisp.org>
71963
71964         * lib/utf8-ucs4.h: Remove file.
71965         * lib/utf8-ucs4-unsafe.h: Remove file.
71966         * lib/utf16-ucs4.h: Remove file.
71967         * lib/utf16-ucs4-unsafe.h: Remove file.
71968         * lib/ucs4-utf8.h: Remove file.
71969         * lib/ucs4-utf16.h: Remove file.
71970         * lib/unistr.h: Include their previous contents.
71971         * m4/utf-ucs4.m4: Remove file.
71972         * m4/ucs4-utf.m4: Remove file.
71973         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
71974         (Depends-on): Add unistr/base.
71975         (configure.ac): Remove gl_UTF_UCS4.
71976         (Makefile.am): Update.
71977         (Include): Change to unistr.h.
71978         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
71979         (Depends-on): Add unistr/base.
71980         (configure.ac): Remove gl_UTF_UCS4.
71981         (Makefile.am): Update.
71982         (Include): Change to unistr.h.
71983         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
71984         (Depends-on): Add unistr/base.
71985         (configure.ac): Remove gl_UTF_UCS4.
71986         (Makefile.am): Update.
71987         (Include): Change to unistr.h.
71988         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
71989         (Depends-on): Add unistr/base.
71990         (configure.ac): Remove gl_UTF_UCS4.
71991         (Makefile.am): Update.
71992         (Include): Change to unistr.h.
71993         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
71994         (Depends-on): Add unistr/base.
71995         (configure.ac): Remove gl_UCS4_UTF.
71996         (Makefile.am): Update.
71997         (Include): Change to unistr.h.
71998         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
71999         (Depends-on): Add unistr/base.
72000         (configure.ac): Remove gl_UCS4_UTF.
72001         (Makefile.am): Update.
72002         (Include): Change to unistr.h.
72003         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
72004         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
72005         utf8-ucs4-unsafe.h.
72006         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
72007         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
72008         utf16-ucs4-unsafe.h.
72009         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
72010         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
72011         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
72012         * lib/unistr/u8-strchr.c: Likewise.
72013         * lib/unistr/u8-strrchr.c: Likewise.
72014         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
72015         * lib/unistr/u16-strchr.c: Likewise.
72016         * lib/unistr/u16-strrchr.c: Likewise.
72017         * lib/striconveh.c: Update.
72018         * lib/linebreak.c: Update.
72019
72020 2007-03-24  Bruno Haible  <bruno@clisp.org>
72021
72022         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
72023         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
72024
72025 2007-03-22  Bruno Haible  <bruno@clisp.org>
72026
72027         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
72028
72029 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72030
72031         * MODULES.html.sh (File system functions): New module write-any-file.
72032         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
72033         * m4/write-any-file.m4: New files.
72034
72035 2007-03-23  Eric Blake  <ebb9@byu.net>
72036
72037         * gnulib-tool: Rearrange space-tab sequences, since some editors
72038         like to eat them.
72039
72040 2007-03-23  Eric Blake  <ebb9@byu.net>
72041
72042         * lib/version-etc.c (version_etc_va): Update license wording to
72043         be more concise.  Recommended by Richard Stallman.
72044
72045 2007-03-22  Bruno Haible  <bruno@clisp.org>
72046
72047         * lib/poll.c (MSG_PEEK): New fallback definition.
72048
72049 2007-03-22  Bruno Haible  <bruno@clisp.org>
72050
72051         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
72052         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
72053         (main): Update.
72054         Fixes a compilation error on BeOS.
72055
72056 2007-03-22  Bruno Haible  <bruno@clisp.org>
72057
72058         * modules/frexpl-tests: New file.
72059         * tests/test-frexpl.c: New file.
72060
72061         * modules/frexpl: New file.
72062         * m4/frexpl.m4: New file.
72063         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
72064         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
72065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
72066         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
72067         (Depends-on): Add frexpl. Remove isnanl-nolibm.
72068         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
72069
72070 2007-03-22  Bruno Haible  <bruno@clisp.org>
72071
72072         * lib/frexpl.c: Share code with lib/frexp.c.
72073         * modules/mathl (Files): Add lib/frexp.c.
72074         (Depends-on): Add isnanl-nolibm.
72075
72076 2007-03-22  Bruno Haible  <bruno@clisp.org>
72077
72078         * modules/printf-frexp (Files): Add m4/frexp.m4.
72079         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
72080         only if the found frexp function actually works.
72081
72082 2007-03-22  Bruno Haible  <bruno@clisp.org>
72083
72084         * lib/frexp.c: Remove older implementation that uses divisions.
72085
72086 2007-03-21  Bruno Haible  <bruno@clisp.org>
72087
72088         * modules/frexp-tests: New file.
72089         * tests/test-frexp.c: New file.
72090
72091         * modules/frexp: New file.
72092         * lib/frexp.c: New file.
72093         * m4/frexp.m4: New file.
72094         * lib/math_.h (frexp): New declaration.
72095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
72096         REPLACE_FREXP.
72097         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
72098
72099 2007-03-21  Bruno Haible  <bruno@clisp.org>
72100
72101         * modules/isnanl-tests: New file.
72102         * tests/test-isnanl.c: New file.
72103
72104         * modules/isnanl: New file.
72105         * lib/isnanl.h: New file.
72106         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
72107         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
72108         gl_FUNC_ISNANL_WORKS.
72109         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
72110         New macros.
72111
72112 2007-03-21  Bruno Haible  <bruno@clisp.org>
72113
72114         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
72115         lib/isnanl.h.
72116         (Include): Update.
72117         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
72118         * lib/vasnprintf.c: Update.
72119         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
72120         tests/test-isnanl.h, remove tests/test-isnanl.c.
72121         (Makefile.am): Update.
72122         * tests/test-isnanl-nolibm.c: New file.
72123         * tests/test-isnanl.h: New file.
72124         * tests/test-isnanl.c: Remove file.
72125
72126 2007-03-21  Jim Meyering  <jim@meyering.net>
72127
72128         When trying to open ".", treat ESTALE like EACCES.
72129         * lib/savewd.c (savewd_save): Resort to forking not just upon
72130         failure with EACCES, but also when errno is ESTALE.
72131
72132 2007-03-20  Bruno Haible  <bruno@clisp.org>
72133
72134         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
72135         Needed on AIX 5.1. Reported by Matthew Woehlke.
72136
72137 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72138
72139         Suggestions by Bruno Haible:
72140         * lib/acl-internal.h: Include "gettext.h" rather than rolling
72141         our own.
72142         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
72143         * modules/acl (Depends-on): Add gettext.
72144
72145 2007-03-19  Bruno Haible  <bruno@clisp.org>
72146
72147         * modules/iconvme: Remove file.
72148         * lib/iconvme.h: Remove file.
72149         * lib/iconvme.c: Remove file.
72150         * m4/iconvme.m4: Remove file.
72151
72152 2007-03-19  Bruno Haible  <bruno@clisp.org>
72153
72154         * doc/relocatable-maint.texi: Break long shell script line.
72155         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72156
72157 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72158
72159         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
72160         handle file_has_acl.
72161         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
72162         * lib/acl.c: Move header inclusions and related macro defns into
72163         lib/acl-internal.h.
72164         (S_ISLNK): Remove defn, since that's now done for us.
72165         (file_has_acl): Move to lib/file-has-acl.c.
72166         Call acl_trivial if available.  This is the crucial part of the fix.
72167         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
72168         shared within the library.  Rewrite a bit, partly to make it compatible
72169         with the GNU coding style.
72170         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
72171         Remove unnecessary double-quotes.
72172         Don't test for acl_to_text; the build will catch that.
72173         Replace acl_entries if it doesn't exist and it is needed.
72174         Check for -lsec and acl_trivial (as used on Solaris 10).
72175         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
72176         lib/file-has-acl.c.
72177         (Depends-on): Add sys_stat, for S_ISLNK.
72178
72179 2007-03-19  Ben Pfaff  <blp@gnu.org>
72180
72181         * doc/gnulib.texi: Fix typos.
72182         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72183
72184 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72185
72186         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
72187         If size is zero here, buf must be zero.
72188
72189 2007-03-19  Simon Josefsson  <simon@josefsson.org>
72190
72191         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
72192         <bruno@clisp.org>.
72193
72194 2007-03-18  Bruno Haible  <bruno@clisp.org>
72195
72196         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
72197         Suggested by Eric Blake.
72198
72199 2007-03-18  Ben Pfaff  <blp@gnu.org>
72200
72201         * doc/relocatable.texi: Recommend using as prefix a directory
72202         that does not exist and will never be created.  Based on
72203         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
72204         and others.
72205
72206 2007-03-17  Bruno Haible  <bruno@clisp.org>
72207
72208         * lib/fchownat.c: Include lchown.h.
72209
72210 2007-03-17  Bruno Haible  <bruno@clisp.org>
72211
72212         Fix endless loop when the given allocated size was > INT_MAX.
72213         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
72214         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
72215         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
72216         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
72217         * lib/sprintf.c (sprintf): Likewise.
72218
72219 2007-03-17  Bruno Haible  <bruno@clisp.org>
72220
72221         * tests/test-argp-2.sh (func_compare): Output a context diff.
72222
72223 2007-03-17  Bruno Haible  <bruno@clisp.org>
72224
72225         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
72226         locale's decimal-point character.
72227
72228 2007-03-17  Bruno Haible  <bruno@clisp.org>
72229
72230         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
72231         before comparing it. Needed because on some platforms (e.g. x86) a
72232         'long double' occupies less bytes than sizeof (long double).
72233
72234 2007-03-17  Bruno Haible  <bruno@clisp.org>
72235
72236         * tests/test-crc.c (main): Make printf statements 64-bit clean.
72237         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
72238         * tests/test-getaddrinfo.c (simple): Likewise.
72239         * tests/test-read-file.c (main): Likewise.
72240
72241 2007-03-17  Bruno Haible  <bruno@clisp.org>
72242
72243         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
72244
72245 2007-03-17  Bruno Haible  <bruno@clisp.org>
72246
72247         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
72248         unused variable.
72249
72250 2007-03-17  Bruno Haible  <bruno@clisp.org>
72251
72252         * tests/test-c-strcasecmp.c: Include c-strcase.h.
72253         * tests/test-c-strncasecmp.c: Likewise.
72254
72255 2007-03-17  Bruno Haible  <bruno@clisp.org>
72256
72257         * modules/stdlib (Depends-on): Add unistd.
72258         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
72259         Needed for MacOS X 10.3.
72260
72261 2007-03-17  Bruno Haible  <bruno@clisp.org>
72262
72263         * lib/unistr/u-strdup.h: Include <stdlib.h>.
72264
72265 2007-03-17  Bruno Haible  <bruno@clisp.org>
72266
72267         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
72268
72269 2007-03-17  Bruno Haible  <bruno@clisp.org>
72270
72271         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
72272         to reflect files copied from gnulib (with or without modifications).
72273         Suggested by Jim Meyering.
72274
72275 2007-03-17  Eric Blake  <ebb9@byu.net>
72276
72277         * NEWS: Document stdlib change from 2007-02-18.
72278
72279 2007-03-17  Jim Meyering  <jim@meyering.net>
72280
72281         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
72282         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
72283         someone uses a name containing shell meta-characters.
72284         Reported by Alfred M. Szmidt.
72285
72286         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
72287
72288 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72289
72290         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
72291         and copy gettext configuration files only if configure.ac contains
72292         a use of AM_GNU_GETTEXT_VERSION.
72293
72294 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72295
72296         * build-aux/bootstrap (gnulib_name): New variable.
72297         (gnulib_tool_options): Use it.
72298
72299 2007-03-13  Simon Josefsson  <simon@josefsson.org>
72300
72301         * tests/test-des.c: Use new namespace.
72302
72303 2007-03-15  Bruno Haible  <bruno@clisp.org>
72304
72305         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
72306         Reported by James Youngman <jay@gnu.org>.
72307
72308 2007-03-15  Bruno Haible  <bruno@clisp.org>
72309
72310         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
72311         declared prototype. Needed with cc on OSF/1 5.1.
72312
72313 2007-03-15  Bruno Haible  <bruno@clisp.org>
72314
72315         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
72316         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
72317         (struct gl_list_implementation): Add dispose_fn argument to the
72318         'create_empty', 'create' methods.
72319         (struct gl_list_impl_base): Add field 'dispose_fn'.
72320         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
72321         argument.
72322         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
72323         dispose_fn argument.
72324         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72325         dispose_fn on the dropped values.
72326         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72327         dispose_fn argument.
72328         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72329         dropped values.
72330         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72331         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72332         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72333         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72334         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72335         argument.
72336         (gl_tree_list_free): Call dispose_fn on the dropped values.
72337         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72338         the dropped values.
72339         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72340         Add dispose_fn argument.
72341         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72342         Call dispose_fn on the dropped values.
72343         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72344         Add dispose_fn argument.
72345         (gl_sublist_create): Initialize the 'dispose_fn' field.
72346         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72347         * tests/test-array_list.c (main): Update.
72348         * tests/test-carray_list.c (main): Update.
72349         * tests/test-avltree_list.c (main): Update.
72350         * tests/test-rbtree_list.c (main): Update.
72351         * tests/test-avltreehash_list.c (main): Update.
72352         * tests/test-rbtreehash_list.c (main): Update.
72353         * tests/test-linked_list.c (main): Update.
72354         * tests/test-linkedhash_list.c (main): Update.
72355         * tests/test-array_oset.c (main): Update.
72356
72357 2007-03-15  Bruno Haible  <bruno@clisp.org>
72358
72359         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72360         (gl_oset_create_empty): Add dispose_fn argument.
72361         (struct gl_oset_implementation): Add dispose_fn argument to
72362         'create_empty' method.
72363         (struct gl_oset_impl_base): Add dispose_fn field.
72364         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72365         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72366         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72367         values.
72368         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72369         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72370         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72371         dropped value.
72372         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72373         dropped value.
72374         * tests/test-array_oset.c (main): Update.
72375         * tests/test-avltree_oset.c (main): Update.
72376         * tests/test-rbtree_oset.c (main): Update.
72377         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72378
72379 2007-03-13  Bruno Haible  <bruno@clisp.org>
72380
72381         * tests/test-stdbool.c (i): Update after last patch.
72382
72383 2007-03-12  Bruno Haible  <bruno@clisp.org>
72384
72385         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72386         the iswprint macro. Needed on Solaris 2.5.1.
72387
72388 2007-03-12  Bruno Haible  <bruno@clisp.org>
72389
72390         * tests/test-printf-frexp.c (main): Declare x as volatile.
72391
72392 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72393
72394         * doc/gnulib.texi (Build robot for gnulib): New section.
72395
72396 2007-03-12  Jim Meyering  <jim@meyering.net>
72397
72398         * build-aux/bootstrap: New file.
72399         * build-aux/bootstrap.conf: New file, from coreutils.
72400
72401 2007-03-11  Bruno Haible  <bruno@clisp.org>
72402
72403         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72404
72405 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72406
72407         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72408         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72409         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72410
72411 2007-03-11  Bruno Haible  <bruno@clisp.org>
72412
72413         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72414         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72415
72416 2007-03-11  Bruno Haible  <bruno@clisp.org>
72417
72418         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72419         formula. Needed for SunPRO C 5.0.
72420
72421 2007-03-11  Bruno Haible  <bruno@clisp.org>
72422
72423         * modules/long-options (Depends-on): Add getopt.
72424
72425 2007-03-11  Bruno Haible  <bruno@clisp.org>
72426
72427         * modules/modechange (Depends-on): Add stdbool.
72428
72429 2007-03-11  Bruno Haible  <bruno@clisp.org>
72430
72431         * modules/i-ring (Depends-on): Add stdbool.
72432
72433 2007-03-11  Bruno Haible  <bruno@clisp.org>
72434
72435         * modules/gc-des (Depends-on): Add stdbool.
72436
72437 2007-03-11  Bruno Haible  <bruno@clisp.org>
72438
72439         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72440
72441 2007-03-11  Bruno Haible  <bruno@clisp.org>
72442
72443         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72444
72445 2007-03-11  Bruno Haible  <bruno@clisp.org>
72446
72447         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72448
72449 2007-03-11  Bruno Haible  <bruno@clisp.org>
72450
72451         * lib/vasnprintf.c (sprintf): Undefine.
72452
72453 2007-03-11  Bruno Haible  <bruno@clisp.org>
72454
72455         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72456         initializers in SunPRO C and Compaq C compilers.
72457
72458 2007-03-11  Bruno Haible  <bruno@clisp.org>
72459
72460         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72461         decrementing code ANSI C compliant.
72462
72463 2007-03-11  Bruno Haible  <bruno@clisp.org>
72464
72465         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72466         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72467
72468 2007-03-11  Bruno Haible  <bruno@clisp.org>
72469
72470         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72471         <stdbool.h> substitute doesn't pass.
72472
72473 2007-03-11  Bruno Haible  <bruno@clisp.org>
72474
72475         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72476
72477 2007-03-11  Bruno Haible  <bruno@clisp.org>
72478
72479         * gnulib-tool (func_create_megatestdir): Create also an autobuild
72480         script, for submission to autobuild.josefsson.org.
72481
72482 2007-03-10  Bruno Haible  <bruno@clisp.org>
72483
72484         * modules/canonicalize-lgpl-tests: New file.
72485         * tests/test-canonicalize-lgpl.sh: New file.
72486         * tests/test-canonicalize-lgpl.c: New file.
72487
72488         * modules/c-strcase-tests: New file.
72489         * tests/test-c-strcase.sh: New file.
72490         * tests/test-c-strcasecmp.c: New file.
72491         * tests/test-c-strncasecmp.c: New file.
72492
72493         * modules/atexit-tests: New file.
72494         * tests/test-atexit.sh: New file.
72495         * tests/test-atexit.c: New file.
72496
72497 2007-03-10  Bruno Haible  <bruno@clisp.org>
72498
72499         * tests/test-binary-io.sh: Use temporary filenames that are not so
72500         likely to clash with those of other tests (in a parallel make).
72501         * tests/test-binary-io.c: Likewise.
72502
72503 2007-03-10  Bruno Haible  <bruno@clisp.org>
72504
72505         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
72506         fallback; use #error instead.
72507         Suggested by Simon Josefsson.
72508
72509 2007-03-10  Bruno Haible  <bruno@clisp.org>
72510
72511         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
72512         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
72513         first and the last.
72514
72515 2007-03-10  Bruno Haible  <bruno@clisp.org>
72516
72517         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
72518
72519 2007-03-10  Bruno Haible  <bruno@clisp.org>
72520
72521         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
72522         "make distcheck".
72523         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
72524         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
72525         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
72526
72527 2007-03-10  Bruno Haible  <bruno@clisp.org>
72528
72529         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
72530         variable.
72531         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
72532         variable.
72533
72534 2007-03-09  Eric Blake  <ebb9@byu.net>
72535         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
72536
72537         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
72538         types are not being provided by gnulib.
72539         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
72540         types are supported.
72541
72542 2007-03-10  Bruno Haible  <bruno@clisp.org>
72543
72544         * lib/stdio_.h (__attribute__): New macro.
72545         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
72546         vsprintf): Specify __attribute__ __format__ for GCC.
72547         Suggested by Eric Blake.
72548
72549 2007-03-09  Bruno Haible  <bruno@clisp.org>
72550
72551         * modules/printf-posix-tests: New file.
72552         * tests/test-printf-posix.sh: New file.
72553         * tests/test-printf-posix.c: New file.
72554
72555         * modules/printf-posix: New file.
72556         * lib/printf.c: New file.
72557         * m4/printf-posix-rpl.m4: New file.
72558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
72559         REPLACE_PRINTF.
72560         * lib/stdio_.h (printf): New declaration.
72561         (format, __format__, ____printf____, ____scanf____, ____strftime____,
72562         ____strfmon____): New macros.
72563         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
72564         REPLACE_PRINTF.
72565
72566 2007-03-09  Bruno Haible  <bruno@clisp.org>
72567
72568         * tests/test-vasnprintf-posix2.sh: New file.
72569         * tests/test-vasnprintf-posix2.c: New file.
72570         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
72571         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
72572         (Makefile.am): Activate test-vasnprintf-posix2.sh.
72573
72574         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
72575         a locale dependent decimal point, rather than always '.'.
72576
72577 2007-03-09  Eric Blake  <ebb9@byu.net>
72578
72579         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
72580         spite of platforms like Tandem/NSK that define it to -1.
72581
72582 2007-03-08  Bruno Haible  <bruno@clisp.org>
72583
72584         * modules/vprintf-posix-tests: New file.
72585         * tests/test-vprintf-posix.sh: New file.
72586         * tests/test-vprintf-posix.c: New file.
72587         * tests/test-printf-posix.h: New file.
72588
72589         * modules/vprintf-posix: New file.
72590         * lib/vprintf.c: New file.
72591         * m4/vprintf-posix.m4: New file.
72592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
72593         REPLACE_VPRINTF.
72594         * lib/stdio_.h (vprintf): New declaration.
72595         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
72596         REPLACE_VPRINTF.
72597
72598 2007-03-08  Bruno Haible  <bruno@clisp.org>
72599
72600         * modules/fprintf-posix-tests: New file.
72601         * tests/test-fprintf-posix.sh: New file.
72602         * tests/test-fprintf-posix.c: New file.
72603
72604         * modules/fprintf-posix: New file.
72605         * lib/fprintf.c: New file.
72606         * m4/fprintf-posix.m4: New file.
72607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
72608         REPLACE_FPRINTF.
72609         * lib/stdio_.h (fprintf): New declaration.
72610         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
72611         REPLACE_FPRINTF.
72612
72613 2007-03-08  Bruno Haible  <bruno@clisp.org>
72614
72615         * modules/vfprintf-posix-tests: New file.
72616         * tests/test-vfprintf-posix.sh: New file.
72617         * tests/test-vfprintf-posix.c: New file.
72618         * tests/test-fprintf-posix.h: New file.
72619         * tests/test-fprintf-posix.out: New file.
72620
72621         * modules/vfprintf-posix: New file.
72622         * lib/vfprintf.c: New file.
72623         * m4/vfprintf-posix.m4: New file.
72624         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
72625         REPLACE_VFPRINTF.
72626         * lib/stdio_.h (vfprintf): New declaration.
72627         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
72628         REPLACE_VFPRINTF.
72629
72630 2007-03-08  Bruno Haible  <bruno@clisp.org>
72631
72632         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
72633
72634 2007-03-08  Bruno Haible  <bruno@clisp.org>
72635
72636         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
72637         instead of 'expr' invocations.
72638         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72639         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72640         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72641         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
72642         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72643         Suggested by Paul Eggert.
72644
72645 2007-03-08  Bruno Haible  <bruno@clisp.org>
72646
72647         * modules/fseterr-tests: New file.
72648         * tests/test-fseterr.c: New file.
72649
72650         * modules/fseterr: New file.
72651         * lib/fseterr.h: New file.
72652         * lib/fseterr.c: New file.
72653
72654 2007-03-08  Bruno Haible  <bruno@clisp.org>
72655
72656         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
72657         * lib/getopt_.h: Likewise.
72658         * lib/mbswidth.h: Likewise.
72659         * lib/setenv.h: Likewise.
72660         * lib/vasnprintf.h: Likewise.
72661         * lib/vasprintf.h: Likewise.
72662         * lib/verror.h: Likewise.
72663         * lib/xsetenv.h: Likewise.
72664         * lib/xvasprintf.h: Likewise.
72665
72666 2007-03-08  Jim Meyering  <jim@meyering.net>
72667
72668         * users.txt: Add parted.
72669
72670         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
72671
72672 2007-03-07  Bruno Haible  <bruno@clisp.org>
72673
72674         * m4/printf.m4: Make the shell script snippets copy&pastable.
72675
72676 2007-03-02  Bruno Haible  <bruno@clisp.org>
72677
72678         * lib/netinet_in_.h: New file.
72679         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
72680         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
72681         * modules/netinet_in (Files): Add lib/netinet_in_.h.
72682         (Depends-on): Add absolute-header.
72683         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
72684         into netinet/in.h.
72685
72686 2007-03-03  Bruno Haible  <bruno@clisp.org>
72687
72688         * lib/sys_select_.h: New file.
72689         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
72690         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
72691         * modules/sys_select (Files): Add lib/sys_select_.h.
72692         (Depends-on): Add absolute-header.
72693         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
72694         into sys/select.h.
72695
72696 2007-03-02  Bruno Haible  <bruno@clisp.org>
72697
72698         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
72699         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
72700         values.
72701         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
72702         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
72703         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
72704         * modules/sys_socket (Depends-on): Add absolute-header.
72705         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
72706         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
72707         (Include): Remove requirement of inclusion of <sys/types.h>.
72708
72709 2007-03-02  Bruno Haible  <bruno@clisp.org>
72710
72711         * lib/byteswap_.h (bswap_32): Fix formula.
72712
72713 2007-03-06  Bruno Haible  <bruno@clisp.org>
72714
72715         * modules/sprintf-posix-tests: New file.
72716         * tests/test-sprintf-posix.c: New file.
72717
72718         * modules/sprintf-posix: New file.
72719         * lib/sprintf.c: New file.
72720         * m4/sprintf-posix.m4: New file.
72721         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
72722         REPLACE_SPRINTF.
72723         * lib/stdio_.h (sprintf): New declaration.
72724         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
72725         REPLACE_SPRINTF.
72726
72727 2007-03-06  Bruno Haible  <bruno@clisp.org>
72728
72729         * modules/vsprintf-posix-tests: New file.
72730         * tests/test-vsprintf-posix.c: New file.
72731         * tests/test-sprintf-posix.h: New file.
72732
72733         * modules/vsprintf-posix: New file.
72734         * lib/vsprintf.c: New file.
72735         * m4/vsprintf-posix.m4: New file.
72736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
72737         REPLACE_VSPRINTF.
72738         * lib/stdio_.h (vsprintf): New declaration.
72739         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
72740         REPLACE_VSPRINTF.
72741
72742 2007-03-06  Bruno Haible  <bruno@clisp.org>
72743
72744         * modules/vsnprintf (Depend-on): Remove minmax.
72745
72746 2007-03-06  Bruno Haible  <bruno@clisp.org>
72747
72748         * modules/snprintf-posix-tests: New file.
72749         * tests/test-snprintf-posix.c: New file.
72750
72751         * modules/snprintf-posix: New file.
72752         * m4/snprintf-posix.m4: New file.
72753         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
72754         gl_FUNC_SNPRINTF.
72755         (gl_FUNC_SNPRINTF): Invoke it.
72756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
72757         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
72758         is set.
72759         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
72760
72761 2007-03-06  Bruno Haible  <bruno@clisp.org>
72762
72763         * modules/vsnprintf-posix-tests: New file.
72764         * tests/test-vsnprintf-posix.c: New file.
72765         * tests/test-snprintf-posix.h: New file.
72766
72767         * modules/vsnprintf-posix: New file.
72768         * m4/vsnprintf-posix.m4: New file.
72769         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
72770         gl_FUNC_VSNPRINTF.
72771         (gl_FUNC_VSNPRINTF): Invoke it.
72772         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
72773         * lib/stdio_.h (vsnprintf): Define as a replacement if
72774         REPLACE_VSNPRINTF is set.
72775         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
72776
72777 2007-03-06  Bruno Haible  <bruno@clisp.org>
72778
72779         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
72780         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
72781
72782 2007-03-06  Bruno Haible  <bruno@clisp.org>
72783
72784         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
72785         (asinl): Declare also if HAVE_DECL_ASINL is set.
72786         (atanl): Declare also if HAVE_DECL_ATANL is set.
72787         (ceill): Declare also if HAVE_DECL_CEILL is set.
72788         (cosl): Declare also if HAVE_DECL_COSL is set.
72789         (expl): Declare also if HAVE_DECL_EXPL is set.
72790         (floorl): Declare also if HAVE_DECL_FLOORL is set.
72791         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
72792         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
72793         (logl): Declare also if HAVE_DECL_LOGL is set.
72794         (sinl): Declare also if HAVE_DECL_SINL is set.
72795         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
72796         (tanl): Declare also if HAVE_DECL_TANL is set.
72797         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
72798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
72799         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
72800         declaration of frexpl, ldexpl.
72801         * modules/printf-frexpl (Depends-on): Add math.
72802         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
72803
72804 2007-03-05  Bruno Haible  <bruno@clisp.org>
72805
72806         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
72807         frexpl and ldexpl are declared.
72808         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
72809
72810 2007-03-05  Bruno Haible  <bruno@clisp.org>
72811
72812         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
72813         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
72814
72815 2007-03-05  Bruno Haible  <bruno@clisp.org>
72816
72817         * lib/stdio_.h: Include <stddef.h>.
72818
72819 2007-03-05  Bruno Haible  <bruno@clisp.org>
72820
72821         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
72822
72823 2007-03-05  Bruno Haible  <bruno@clisp.org>
72824
72825         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
72826         NetBSD 4, from Ralf Wildenhues.
72827
72828 2007-03-04  Bruno Haible  <bruno@clisp.org>
72829
72830         * lib/vasprintf.h: Update #if logic for the case when the functions
72831         exist but are overridden.
72832
72833 2007-03-04  Bruno Haible  <bruno@clisp.org>
72834
72835         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
72836         implementations: glibc-2.4 and MacOS X 10.3.
72837         * tests/test-vasnprintf-posix.c (test_function): Test also the case
72838         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
72839         * tests/test-vasprintf-posix.c (test_function): Likewise.
72840
72841 2007-03-04  Bruno Haible  <bruno@clisp.org>
72842
72843         * modules/vasprintf-posix-tests: New file.
72844         * tests/test-vasprintf-posix.c: New file.
72845
72846         * modules/vasprintf-posix: New file.
72847         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
72848         defined.
72849         * m4/vasprintf-posix.m4: New file.
72850         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
72851         gl_FUNC_VASPRINTF.
72852         (gl_FUNC_VASPRINTF): Invoke it.
72853         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
72854         here.
72855         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
72856
72857 2007-03-04  Bruno Haible  <bruno@clisp.org>
72858
72859         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
72860         REPLACE_GETTIMEOFDAY.
72861         * modules/sys_time (Makefile.am): Likewise.
72862         * m4/sys_time_h.m4: Likewise.
72863         * m4/gettimeofday.m4: Likewise.
72864
72865 2007-03-04  Bruno Haible  <bruno@clisp.org>
72866
72867         * modules/vasnprintf-posix-tests: New file.
72868         * tests/test-vasnprintf-posix.c: New file.
72869
72870         * modules/vasnprintf-posix: New file.
72871         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
72872         printf-frexpl.h.
72873         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
72874         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
72875         REPLACE_VASNPRINTF is defined.
72876         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
72877         gl_FUNC_VASNPRINTF.
72878         (gl_FUNC_VASNPRINTF): Invoke it.
72879         * m4/vasnprintf-posix.m4: New file.
72880         * m4/printf.m4: New file.
72881
72882 2007-03-04  Bruno Haible  <bruno@clisp.org>
72883
72884         Compile progreloc.c only if --enable-relocatable is specified.
72885         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
72886         if --enable-relocatable was specified.
72887         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
72888         lib_SOURCES.
72889
72890 2007-03-04  Jim Meyering  <jim@meyering.net>
72891
72892         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
72893         Use it consistently, rather than enumerating errno constants.
72894
72895 2007-03-04  Bruno Haible  <bruno@clisp.org>
72896
72897         * modules/xvasprintf-tests: New file.
72898         * tests/test-xvasprintf.c: New file.
72899
72900         * modules/vasprintf-tests: New file.
72901         * tests/test-vasprintf.c: New file.
72902
72903         * modules/vasnprintf-tests: New file.
72904         * tests/test-vasnprintf.c: New file.
72905
72906         * modules/vsnprintf-tests: New file.
72907         * tests/test-vsnprintf.c: New file.
72908
72909         * modules/snprintf-tests: New file.
72910         * tests/test-snprintf.c: New file.
72911
72912 2007-03-04  Bruno Haible  <bruno@clisp.org>
72913
72914         Compile relocatable.c only if --enable-relocatable is specified.
72915         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
72916         gl_RELOCATABLE_LIBRARY.
72917         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
72918         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
72919         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
72920         gl_RELOCATABLE_LIBRARY.
72921         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
72922         (Makefile.am): Remove lib_SOURCES.
72923         * modules/relocatable-lib-lgpl (configure.ac): Invoke
72924         gl_RELOCATABLE_LIBRARY.
72925         (Makefile.am): Remove lib_SOURCES.
72926         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
72927         always.
72928         * modules/relocatable-prog-wrapper (configure.ac): Invoke
72929         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
72930
72931 2007-03-04  Bruno Haible  <bruno@clisp.org>
72932
72933         * modules/argmatch-tests: New file.
72934         * tests/test-argmatch.c: New file.
72935
72936         * tests/test-allocsa.c (main): Halve the number of loop runs.
72937
72938         * modules/alloca-opt-tests: New file.
72939         * tests/test-alloca-opt.c: New file.
72940
72941 2007-03-04  Jim Meyering  <jim@meyering.net>
72942
72943         Work around difference between Linux ACLs and Solaris 10 ZFS.
72944         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
72945         for EINVAL.
72946
72947 2007-03-03  Bruno Haible  <bruno@clisp.org>
72948
72949         * modules/relocatable-prog (Depends-on): Add back progreloc's
72950         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
72951
72952 2007-03-03  Bruno Haible  <bruno@clisp.org>
72953
72954         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
72955         * modules/relocatable-lib: New file.
72956
72957 2007-03-03  Bruno Haible  <bruno@clisp.org>
72958
72959         * modules/relocatable-prog: Renamed from modules/relocatable.
72960         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
72961
72962 2007-03-03  Bruno Haible  <bruno@clisp.org>
72963
72964         * modules/relocatable-script (Files): Add doc/relocatable.texi,
72965         m4/relocatable-lib.m4.
72966         (Depends-on): Remove 'relocatable'.
72967         (configure.ac): Add gl_RELOCATABLE_NOP.
72968
72969 2007-03-03  Bruno Haible  <bruno@clisp.org>
72970
72971         * modules/relocatable-prog-wrapper: New file.
72972         * modules/relocatable (Depends-on): Add it. Remove all other
72973         dependencies except progname.
72974         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
72975
72976         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
72977         (gl_FUNC_STRERROR): Nop.
72978         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
72979
72980         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
72981         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
72982
72983         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
72984         (gl_FUNC_READLINK): Update.
72985
72986         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
72987
72988 2007-03-03  Bruno Haible  <bruno@clisp.org>
72989
72990         * lib/xreadlink.c: Include <unistd.h> unconditionally.
72991         * modules/xreadlink (Depends-on): Add unistd.
72992         * modules/xreadlink-with-size (Depends-on): Likewise.
72993
72994 2007-03-03  Bruno Haible  <bruno@clisp.org>
72995
72996         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
72997         extracted from gt_FUNC_SETENV.
72998         (gt_FUNC_SETENV): Remove macro.
72999         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
73000         remove gt_FUNC_SETENV.
73001
73002 2007-03-03  Bruno Haible  <bruno@clisp.org>
73003
73004         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
73005         ENABLE_RELOCATABLE here.
73006         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
73007
73008 2007-03-03  Bruno Haible  <bruno@clisp.org>
73009
73010         * modules/rbtreehash-list-tests (Depends-on): Add progname.
73011         * tests/test-rbtreehash_list.c: Include progname.h.
73012         (main): Call set_program_name.
73013
73014         * modules/rbtree-oset-tests (Depends-on): Add progname.
73015         * tests/test-rbtree_oset.c: Include progname.h.
73016         (main): Call set_program_name.
73017
73018         * modules/rbtree-list-tests (Depends-on): Add progname.
73019         * tests/test-rbtree_list.c: Include progname.h.
73020         (main): Call set_program_name.
73021
73022         * modules/linked-list-tests (Depends-on): Add progname.
73023         * tests/test-linked_list.c: Include progname.h.
73024         (main): Call set_program_name.
73025
73026 2007-03-03  Bruno Haible  <bruno@clisp.org>
73027
73028         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
73029         All uses of __restrict changed to _Restrict_.
73030         * lib/glob_.h (__restrict): Remove macro.
73031
73032 2007-03-02  Bruno Haible  <bruno@clisp.org>
73033
73034         * modules/gettext (configure.ac): Require gettext infrastructure
73035         from version 0.16.1.
73036
73037 2007-03-02  Bruno Haible  <bruno@clisp.org>
73038
73039         * modules/linkedhash-list-tests (Depends-on): Add progname.
73040         * tests/test-linkedhash_list.c: Include progname.h.
73041         (main): Call set_program_name.
73042
73043         * modules/carray-list-tests (Depends-on): Add progname.
73044         * tests/test-carray_list.c: Include progname.h.
73045         (main): Call set_program_name.
73046
73047         * modules/avltreehash-list-tests (Depends-on): Add progname.
73048         * tests/test-avltreehash_list.c: Include progname.h.
73049         (main): Call set_program_name.
73050
73051         * modules/avltree-oset-tests (Depends-on): Add progname.
73052         * tests/test-avltree_oset.c: Include progname.h.
73053         (main): Call set_program_name.
73054
73055         * modules/avltree-list-tests (Depends-on): Add progname.
73056         * tests/test-avltree_list.c: Include progname.h.
73057         (main): Call set_program_name.
73058
73059         * modules/array-oset-tests (Depends-on): Add progname.
73060         * tests/test-array_oset.c: Include progname.h.
73061         (main): Call set_program_name.
73062
73063         * modules/array-list-tests (Depends-on): Add progname.
73064         * tests/test-array_list.c: Include progname.h.
73065         (main): Call set_program_name.
73066
73067         * modules/argp-tests (Depends-on): Add progname.
73068         * tests/test-argp.c: Include argp.h first. Include progname.h.
73069         (main): Call set_program_name.
73070
73071 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
73072
73073         * doc/gnulib-tool.texi (Initial import): Reword description of
73074         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
73075         limited effect even if defined after the first system include.
73076
73077 2007-03-01  Bruno Haible  <bruno@clisp.org>
73078
73079         * build-aux/config.libpath: Update to libtool-1.5.22.
73080         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73081
73082 2007-03-01  Bruno Haible  <bruno@clisp.org>
73083
73084         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
73085         foo_CFLAGS.
73086         Reported by Ralf Wildenhues.
73087
73088 2007-03-01  Bruno Haible  <bruno@clisp.org>
73089
73090         * build-aux/install-reloc: Remove object files left over by some
73091         compilers.
73092         Reported by Ralf Wildenhues.
73093
73094 2007-03-01  Bruno Haible  <bruno@clisp.org>
73095
73096         * build-aux/install-reloc: Break long lines.
73097
73098 2007-03-01  Bruno Haible  <bruno@clisp.org>
73099
73100         * doc/relocatable.texi: Document that it may not work on OpenBSD.
73101         Reported by Ralf Wildenhues.
73102
73103 2007-03-01  Bruno Haible  <bruno@clisp.org>
73104
73105         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
73106         include ordering constraints.
73107
73108 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73109
73110         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
73111         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
73112         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
73113         as another example.
73114         * lib/time_.h: Fix misspelling.
73115         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73116         Require gl_HEADER_TIME_H_DEFAULTS.
73117         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
73118         * m4/time_r.m4 (gl_TIME_R): Likewise.
73119         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
73120
73121 2007-03-01  Bruno Haible  <bruno@clisp.org>
73122
73123         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
73124         * m4/utimens.m4 (gl_UTIMENS): Likewise.
73125
73126 2007-03-01  Jim Meyering  <jim@meyering.net>
73127
73128         * modules/xreadlink (Maintainer): Add my name.
73129         * modules/xreadlink-with-size (Depends-on): Alphabetize.
73130
73131 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
73132             Bruno Haible  <bruno@clisp.org>
73133
73134         * build-aux/install-reloc: Compile also c-ctype.c.
73135         * build-aux/relocatable.sh.in: New file.
73136         * doc/relocatable.texi: New file.
73137         * doc/relocatable-maint.texi: New file.
73138         * doc/gnulib.texi: Include relocatable-maint.texi.
73139         * lib/progreloc.c: Include unistd.h unconditionally.
73140         * lib/relocwrapper.c: Include unistd.h unconditionally.
73141         Include c-ctype.h.
73142         (add_dotbin): Use c_tolower.
73143         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
73144         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
73145         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
73146         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
73147         to m4/relocatable-lib.m4.
73148         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
73149         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
73150         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
73151         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
73152         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
73153         * modules/relocatable: New file.
73154         * modules/relocatable-lib: New file.
73155         * modules/relocatable-script: New file.
73156
73157 2007-02-28  Bruno Haible  <bruno@clisp.org>
73158
73159         Import --enable-relocatable infrastructure.
73160         * build-aux/config.libpath: New file, from GNU gettext.
73161         * build-aux/install-reloc: New file, from GNU gettext.
73162         * build-aux/reloc-ldflags: New file, from GNU gettext.
73163         * lib/relocatable.h: New file, from GNU gettext.
73164         * lib/relocatable.c: New file, from GNU gettext.
73165         * lib/relocwrapper.c: New file, from GNU gettext.
73166         * m4/relocatable.m4: New file, from GNU gettext.
73167
73168 2007-02-28  Bruno Haible  <bruno@clisp.org>
73169
73170         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
73171
73172         * modules/xreadlink: New file, from GNU gettext with modifications.
73173         * lib/xreadlink.c: New file, from GNU gettext.
73174         * lib/xreadlink.h: Add comments.
73175         (xreadlink): New declaration.
73176
73177         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
73178         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
73179         lib/xreadlink-with-size.c.
73180         (configure.ac): Remove gl_XREADLINK invocation.
73181         (Makefile.am): Augment lib_SOURCES.
73182         * m4/xreadlink.m4: Remove file.
73183         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
73184         (xreadlink_with_size): Renamed from xreadink.
73185         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
73186         * modules/canonicalize (Depends-on): Replace xreadlink with
73187         xreadlink-with-size.
73188         * lib/canonicalize.c (canonicalize_filename_mode): Update.
73189
73190 2007-02-25  Jim Meyering  <jim@meyering.net>
73191
73192         * build-aux/announce-gen: When complaining about excess arguments,
73193         list them.
73194
73195 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73196
73197         * README: Document signed integer overflow situation more
73198         accurately.
73199
73200 2007-02-25  Bruno Haible  <bruno@clisp.org>
73201
73202         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
73203         'a' or 'A' conversion.
73204
73205 2007-02-25  Bruno Haible  <bruno@clisp.org>
73206
73207         * modules/filename: Renamed from modules/pathname.
73208         (Files): Replace lib/pathname.h with lib/filename.h. Replace
73209         lib/concatpath.c with lib/concat-filename.c.
73210         (Makefile.am): Update.
73211         (Include): Replace pathname.h with filename.h.
73212         * lib/filename.h: Renamed from lib/pathname.h.
73213         (concatenated_filename): Renamed from concatenated_pathname.
73214         * lib/concat-filename.c: Renamed from lib/concatpath.c.
73215         (concatenated_filename): Renamed from concatenated_pathname.
73216         * lib/findprog.c: Include filename.h instead of pathname.h.
73217         (find_in_path): Update.
73218         * lib/javacomp.c: Include filename.h instead of pathname.h.
73219         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73220         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73221         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73222         is_oldgcj_14_13_usable, is_javac_usable): Update.
73223         * lib/javaexec.c: Include filename.h instead of pathname.h.
73224         (execute_java_class): Update.
73225         * modules/findprog: Update.
73226         * modules/javacomp: Update.
73227         * modules/javaexec: Update.
73228         * MODULES.html.sh (File system functions): Add 'filename', remove
73229         'pathname'.
73230
73231 2007-02-25  Bruno Haible  <bruno@clisp.org>
73232
73233         * modules/printf-frexpl-tests: New file.
73234         * tests/test-printf-frexpl.c: New file.
73235
73236         * modules/printf-frexpl: New file.
73237         * lib/printf-frexpl.h: New file.
73238         * lib/printf-frexpl.c: New file.
73239         * m4/printf-frexpl.m4: New file.
73240
73241 2007-02-25  Bruno Haible  <bruno@clisp.org>
73242
73243         * modules/printf-frexp-tests: New file.
73244         * tests/test-printf-frexp.c: New file.
73245
73246         * modules/printf-frexp: New file.
73247         * lib/printf-frexp.h: New file.
73248         * lib/printf-frexp.c: New file.
73249         * m4/printf-frexp.m4: New file.
73250
73251 2007-02-25  Bruno Haible  <bruno@clisp.org>
73252
73253         Assume automake >= 1.10 for the tests.
73254         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
73255         * modules/arctwo-tests: Likewise.
73256         * modules/argp-tests: Likewise.
73257         * modules/avltree-list-tests: Likewise.
73258         * modules/avltree-oset-tests: Likewise.
73259         * modules/avltreehash-list-tests: Likewise.
73260         * modules/carray-list-tests: Likewise.
73261         * modules/crc-tests: Likewise.
73262         * modules/des-tests: Likewise.
73263         * modules/gc-arcfour-tests: Likewise.
73264         * modules/gc-arctwo-tests: Likewise.
73265         * modules/gc-des-tests: Likewise.
73266         * modules/gc-hmac-md5-tests: Likewise.
73267         * modules/gc-hmac-sha1-tests: Likewise.
73268         * modules/gc-md2-tests: Likewise.
73269         * modules/gc-md4-tests: Likewise.
73270         * modules/gc-md5-tests: Likewise.
73271         * modules/gc-pbkdf2-sha1-tests: Likewise.
73272         * modules/gc-rijndael-tests: Likewise.
73273         * modules/gc-sha1-tests: Likewise.
73274         * modules/gc-tests: Likewise.
73275         * modules/getaddrinfo-tests: Likewise.
73276         * modules/hmac-md5-tests: Likewise.
73277         * modules/hmac-sha1-tests: Likewise.
73278         * modules/linked-list-tests: Likewise.
73279         * modules/linkedhash-list-tests: Likewise.
73280         * modules/lock-tests: Likewise.
73281         * modules/md2-tests: Likewise.
73282         * modules/md4-tests: Likewise.
73283         * modules/md5-tests: Likewise.
73284         * modules/rbtree-list-tests: Likewise.
73285         * modules/rbtree-oset-tests: Likewise.
73286         * modules/rbtreehash-list-tests: Likewise.
73287         * modules/read-file-tests: Likewise.
73288         * modules/rijndael-tests: Likewise.
73289         * modules/stdint-tests: Likewise.
73290         * modules/tls-tests: Likewise.
73291
73292 2007-02-24  Bruno Haible  <bruno@clisp.org>
73293
73294         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
73295         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
73296         function; instead check whether isnan with a double argument links.
73297         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
73298         function; instead check whether isnan with a 'long double' argument
73299         links.
73300         Reported by Eric Blake <ebb9@byu.net>.
73301
73302 2007-02-24  Bruno Haible  <bruno@clisp.org>
73303
73304         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
73305         defined.
73306         * lib/isnanl.c: Remove all code. Just include isnan.c.
73307         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
73308
73309 2007-02-25  Jim Meyering  <jim@meyering.net>
73310
73311         Avoid conflicting types for 'unsetenv' on FreeBSD.
73312         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
73313         conflicting with FreeBSD's (5.0 and 6.1) function declaration
73314         in stdlib.h.
73315
73316 2007-02-24  Bruno Haible  <bruno@clisp.org>
73317
73318         * modules/isnanl-nolibm-tests: New file.
73319         * tests/test-isnanl.c: New file.
73320
73321         * modules/isnanl-nolibm: New file.
73322         * lib/isnanl.h: New file.
73323         * lib/isnanl.c: New file.
73324         * m4/isnanl.m4: New file.
73325
73326 2007-02-24  Bruno Haible  <bruno@clisp.org>
73327
73328         * modules/isnan-nolibm-tests: New file.
73329         * tests/test-isnan.c: New file.
73330
73331         * modules/isnan-nolibm: New file.
73332         * lib/isnan.h: New file.
73333         * lib/isnan.c: New file.
73334         * m4/isnan.m4: New file.
73335
73336 2007-02-24  Bruno Haible  <bruno@clisp.org>
73337
73338         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73339         assume that an exponent fits in 20 bits.
73340
73341 2007-02-24  Jim Meyering  <jim@meyering.net>
73342
73343         * m4/regex.m4: Update the description of the configure-time option,
73344         --without-included-regex, to state accurately what the defaults are,
73345         and perhaps to give people an idea why using this option is risky.
73346
73347 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73348
73349         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73350         loops on small arguments.  This attempts to avoid the problem
73351         Bruno Haible reported for AIX 4.3.2 in
73352         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73353
73354 2007-02-23  Bruno Haible  <bruno@clisp.org>
73355
73356         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73357         Needed for help2man.
73358
73359 2007-02-23  Karl Berry  <karl@gnu.org>
73360
73361         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73362         exists, foo.h should be cvs-ignored, not committed.
73363
73364 2007-02-23  Eric Blake  <ebb9@byu.net>
73365
73366         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73367         * lib/stat-time.h (includes): Likewise.
73368         * lib/utimecmp.c (includes): Likewise.
73369         * lib/utimens.h (includes): Likewise.
73370         * lib/getdate.y (includes): Also include "timespec.h" for use
73371         internal to the module.
73372         * modules/utimens (Depends-on): Revert yesterday's patch.
73373         * modules/nanosleep (Depends-on): Add missing dependency.
73374
73375 2007-02-22  Bruno Haible  <bruno@clisp.org>
73376
73377         * lib/glob.c: Don't include getlogin_r.h.
73378
73379 2007-02-22  Jim Meyering  <jim@meyering.net>
73380
73381         * modules/utimens (Depends-on): Add timespec, required for
73382         utimens.h's inclusion of timespec.h.
73383
73384 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73385
73386         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
73387         long unreadable paths in GNU/Linux.  Problem reported by Andreas
73388         Schwab in
73389         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
73390         I'll try to think of a better way to fix the Solaris problem.
73391
73392         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
73393         like glibc; on Solaris 10, it fails with errno == EINVAL.
73394         POSIX says the behavior is unspecified if the first argument is NULL,
73395         so play it safe and never pass NULL to the system getcwd.
73396
73397 2007-02-21  Jim Meyering  <jim@meyering.net>
73398
73399         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73400         of gettimeofday.  It would conflict with the one now always
73401         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73402         an IRIX 6.5 build failure.
73403
73404 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73405
73406         Minor fixups to port to Solaris 10 with Sun C 5.8.
73407         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73408         * modules/getcwd (Depends-on): Add dirfd.
73409         * lib/putenv.c (putenv): #undef it.
73410         (rpl_putenv): New decl.
73411         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73412
73413 2007-02-20  Bruno Haible  <bruno@clisp.org>
73414
73415         * modules/stdio-tests: New file.
73416         * tests/test-stdio.c: New file.
73417
73418         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73419         (Depends-on): Add stdio.
73420         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73421         (Include): Use <stdio.h> instead of vsnprintf.h.
73422         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73423         HAVE_DECL_VSNPRINTF.
73424         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73425
73426         * modules/snprintf (Files): Remove lib/snprintf.h.
73427         (Depends-on): Add stdio.
73428         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73429         (Include): Use <stdio.h> instead of snprintf.h.
73430         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73431         HAVE_DECL_SNPRINTF.
73432         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73433         * lib/getaddrinfo.c: Likewise.
73434
73435         * modules/stdio: New file.
73436         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73437         * lib/snprintf.h: Remove file.
73438         * lib/vsnprintf.h: Remove file.
73439         * lib/.cppi-disable: Remove snprintf.h.
73440         * m4/stdio_h.m4: New file.
73441         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73442
73443 2007-02-20  Jim Meyering  <jim@meyering.net>
73444
73445         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73446         used by e.g., mingw.  From Bruno Haible.
73447
73448 2007-02-19  Bruno Haible  <bruno@clisp.org>
73449
73450         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73451         warnings.
73452         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73453
73454 2007-02-19  Bruno Haible  <bruno@clisp.org>
73455
73456         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73457         from mingw users.
73458
73459 2007-02-19  Bruno Haible  <bruno@clisp.org>
73460
73461         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73462         warnings.
73463         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73464
73465 2007-02-19  Jim Meyering  <jim@meyering.net>
73466
73467         Don't use FD after a successful "fdopendir (fd)".
73468         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73469         Reset it by calling dirfd on the just-obtained DIR*.
73470
73471         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73472         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73473
73474 2007-02-18  Bruno Haible  <bruno@clisp.org>
73475
73476         * lib/readlink.c: Include <unistd.h>.
73477         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
73478         HAVE_READLINK.
73479         * modules/readlink (Depends-on): Add unistd.
73480         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73481         (Include): Add <unistd.h>.
73482
73483         * lib/getlogin_r.h: Remove file.
73484         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
73485         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
73486         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
73487         HAVE_DECL_GETLOGIN_R.
73488         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
73489         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73490         (Include): Use <unistd.h> instead of getlogin_r.h.
73491
73492         * lib/getcwd.h: Remove file.
73493         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
73494         * lib/xgetcwd.c: Likewise.
73495         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
73496         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
73497         * modules/getcwd (Files): Remove lib/getcwd.h.
73498         (Depends-on): Add unistd.
73499         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73500         (Include): Use <unistd.h> instad of getcwd.h.
73501
73502         * lib/ftruncate.c: Include <unistd.h> first.
73503         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
73504         Set HAVE_FTRUNCATE.
73505         * modules/ftruncate (Depends-on): Add unistd.
73506         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73507
73508         * lib/fchdir.c: Include <unistd.h> first.
73509         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
73510         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
73511         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
73512         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73513         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
73514
73515         * lib/dup2.c: Include <unistd.h> first.
73516         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
73517         HAVE_DUP2.
73518         * modules/dup2 (Depends-on): Add unistd.
73519         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73520
73521         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
73522         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
73523         REPLACE_CHOWN. Don't define chown as a macro here.
73524         * modules/chown (Depends-on): Add unistd.
73525         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73526
73527         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
73528         Add definition for GL_LINK_WARNING.
73529         (chown, dup2): New declarations.
73530         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
73531         link warning.
73532         (ftruncate): New declaration.
73533         (getcwd): New declaration, taken from old getcwd.h.
73534         (getlogin_r): New declaration, taken from old getlogin_r.h.
73535         (readlink): New declaration.
73536         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
73537         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
73538         (gl_PREREQ_UNISTD): Remove macro.
73539         (gl_UNISTD_MODULE_INDICATOR): New macro.
73540         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
73541         many new variables. Don't set UNISTD_H.
73542         * modules/unistd (Description): Change.
73543         (Depends-on): Add link-warning.
73544         (configure.ac): Update.
73545         (Makefile.am): Create unistd.h always. Substitute many new variables
73546         into it.
73547
73548 2007-02-18  Bruno Haible  <bruno@clisp.org>
73549
73550         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
73551         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
73552         HAVE_GETSUBOPT.
73553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
73554         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
73555         * lib/getsubopt.h: Remove file.
73556         * modules/getsubopt (Files): Remove lib/getsubopt.h.
73557         (Depends-on): Add stdlib.
73558         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73559         (Includes): Use <stdlib.h> instead of getsubopt.h.
73560         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
73561         Set HAVE_GETSUBOPT.
73562         * lib/getsubopt.c: Don't include getsubopt.h.
73563
73564 2007-02-18  Bruno Haible  <bruno@clisp.org>
73565
73566         * modules/fchdir (Depends-on): Add dup2.
73567
73568 2007-02-18  Bruno Haible  <bruno@clisp.org>
73569
73570         * lib/stdlib_.h: Handle glibc's special invocation convention
73571         specially.
73572
73573 2007-02-18  Bruno Haible  <bruno@clisp.org>
73574
73575         * modules/stdlib-tests: New file.
73576         * tests/test-stdlib.c: New file.
73577
73578         * modules/mkstemp (Files): Remove lib/mkstemp.h.
73579         (Depends-on): Add stdlib.
73580         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73581         (Includes): Use <stdlib.h> instead of mkstemp.h.
73582         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73583         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
73584         * lib/mkstemp.c: Don't include mkstemp.h.
73585         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
73586         * lib/stdlib--.h: Don't include mkstemp.h.
73587
73588         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
73589         (Depends-on): Add stdlib.
73590         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73591         (Includes): Use <stdlib.h> instead of mkdtemp.h.
73592         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73593         HAVE_MKDTEMP.
73594         * lib/mkdtemp.c: Don't include mkdtemp.h.
73595         * lib/clean-temp.c: Don't include mkdtemp.h.
73596
73597         * modules/exit (Files): Remove lib/exit.h.
73598         (Depends-on): Add stdlib.
73599         (Makefile.am): Remove lib_SOURCES.
73600         (Include): Use <stdlib.h> instead of exit.h.
73601         * lib/argmatch.c: Don't include exit.h.
73602         * lib/execute.c: Likewise.
73603         * lib/pagealign_alloc.c: Likewise.
73604         * lib/pipe.c: Likewise.
73605         * lib/wait-process.c: Likewise.
73606         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
73607         * lib/exitfail.c: Likewise.
73608         * lib/savewd.c: Likewise.
73609         * lib/xsetenv.c: Likewise.
73610
73611         * modules/stdlib: New file.
73612         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
73613         and extra comments about mkstemp().
73614         * lib/exit.h: Remove file.
73615         * lib/mkdtemp.h: Remove file.
73616         * lib/mkstemp.h: Remove file.
73617         * m4/stdlib_h.m4: New file.
73618         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
73619
73620 2007-02-18  Bruno Haible  <bruno@clisp.org>
73621
73622         * modules/math-tests: New file.
73623         * tests/test-math.c: New file.
73624
73625         * modules/math: New file.
73626         * modules/mathl (Files): Remove lib/mathl.h.
73627         (Depends-on): Add math.
73628         (Makefile.am): Don't mention mathl.h.
73629         (Include): Use <math.h> instead of mathl.h.
73630         * lib/math_.h: New file.
73631         * lib/mathl.h: Remove file.
73632         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
73633         mathl.h.
73634         * lib/asinl.c: Likewise.
73635         * lib/atanl.c: Likewise.
73636         * lib/ceill.c: Likewise.
73637         * lib/cosl.c: Likewise.
73638         * lib/expl.c: Likewise.
73639         * lib/floorl.c: Likewise.
73640         * lib/frexpl.c: Likewise.
73641         * lib/ldexpl.c: Likewise.
73642         * lib/logl.c: Likewise.
73643         * lib/sincosl.c: Likewise.
73644         * lib/sinl.c: Likewise.
73645         * lib/sqrtl.c: Likewise.
73646         * lib/tanl.c: Likewise.
73647         * lib/trigl.c: Likewise.
73648         * m4/math_h.m4: New file.
73649         * MODULES.html.sh (Mathematics): Add math.
73650
73651 2007-02-17  Bruno Haible  <bruno@clisp.org>
73652
73653         * modules/wctype-tests: New file.
73654         * tests/test-wctype.c: New file.
73655
73656         * modules/wchar-tests: New file.
73657         * tests/test-wchar.c: New file.
73658
73659         * modules/unistd-tests: New file.
73660         * tests/test-unistd.c: New file.
73661
73662         * modules/time-tests: New file.
73663         * tests/test-time.c: New file.
73664
73665         * modules/sysexits-tests: New file.
73666         * tests/test-sysexits.c: New file.
73667
73668         * modules/sys_time-tests: New file.
73669         * tests/test-sys_time.c: New file.
73670
73671         * modules/sys_stat-tests: New file.
73672         * tests/test-sys_stat.c: New file.
73673
73674         * modules/sys_socket-tests: New file.
73675         * tests/test-sys_socket.c: New file.
73676
73677         * modules/sys_select-tests: New file.
73678         * tests/test-sys_select.c: New file.
73679
73680         * modules/string-tests: New file.
73681         * tests/test-string.c: New file.
73682
73683         * modules/stdbool-tests: New file.
73684         * tests/test-stdbool.c: New file.
73685
73686         * modules/netinet_in-tests: New file.
73687         * tests/test-netinet_in.c: New file.
73688
73689         * modules/inttypes-tests: New file.
73690         * tests/test-inttypes.c: New file.
73691
73692         * modules/fcntl-tests: New file.
73693         * tests/test-fcntl.c: New file.
73694
73695         * modules/byteswap-tests: New file.
73696         * tests/test-byteswap.c: New file.
73697
73698         * modules/arpa_inet-tests: New file.
73699         * tests/test-arpa_inet.c: New file.
73700
73701 2007-02-17  Bruno Haible  <bruno@clisp.org>
73702
73703         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
73704         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
73705         if the corresponding module is not enabled. Emit link warnings if
73706         the function is used nevertheless.
73707         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
73708         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
73709         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
73710         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
73711         * modules/inttypes (Depends-on): Add link-warning.
73712         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73713         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
73714         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
73715         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
73716         * modules/imaxdiv (configure.ac): Likewise.
73717         * modules/strtoimax (configure.ac): Likewise.
73718         * modules/strtoumax (configure.ac): Likewise.
73719
73720 2007-02-17  Bruno Haible  <bruno@clisp.org>
73721
73722         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
73723         gl_STRING_MODULE_INDICATOR_DEFAULTS.
73724         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
73725         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
73726
73727 2007-02-17  Bruno Haible  <bruno@clisp.org>
73728
73729         * modules/link-warning: New file.
73730         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
73731         * lib/string_.h (GL_LINK_WARNING): Remove definition.
73732         * modules/string (Depends-on): Add link-warning.
73733         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73734         string.h.
73735         * MODULES.html.sh (Support for building libraries and executables): Add
73736         link-warning.
73737
73738 2007-02-17  Bruno Haible  <bruno@clisp.org>
73739
73740         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
73741         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
73742         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
73743         long lines.
73744
73745 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
73746             Bruno Haible  <bruno@clisp.org>
73747
73748         * modules/tmpfile: New file.
73749         * lib/tmpfile.c: New file.
73750         * m4/tmpfile.m4: New file.
73751         * MODULES.html.sh (func_all_modules): New section "Input/output".
73752
73753 2007-02-15  Bruno Haible  <bruno@clisp.org>
73754
73755         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
73756         (supports_delete_on_close): New function.
73757         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
73758
73759 2007-02-14  Bruno Haible  <bruno@clisp.org>
73760
73761         * modules/mbspcasecmp-tests: New file.
73762         * tests/test-mbspcasecmp.sh: New file.
73763         * tests/test-mbspcasecmp.c: New file.
73764
73765         New module mbspcasecmp.
73766         * modules/mbspcasecmp: New file.
73767         * lib/mbspcasecmp.c: New file.
73768         * lib/string_.h (strncasecmp): Change warning message.
73769         (mbspcasecmp): New declaration.
73770         * m4/mbspcasecmp.m4: New file.
73771         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73772         GNULIB_MBSPCASECMP.
73773         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
73774         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
73775
73776 2007-02-14  Bruno Haible  <bruno@clisp.org>
73777
73778         * modules/mbsncasecmp-tests: New file.
73779         * tests/test-mbsncasecmp.sh: New file.
73780         * tests/test-mbsncasecmp.c: New file.
73781
73782         New module mbsncasecmp.
73783         * modules/mbsncasecmp: New file.
73784         * lib/mbsncasecmp.c: New file.
73785         * lib/string_.h (mbsncasecmp): New declaration.
73786         * m4/mbsncasecmp.m4: New file.
73787         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73788         GNULIB_MBSNCASECMP.
73789         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
73790         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
73791
73792 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73793
73794         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
73795         Verify that it doesn't overlap with our flags.
73796         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
73797         do not have the desired effect in multibyte locales; instead, use
73798         mbscasecmp.
73799         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
73800         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
73801         we don't require GNU fnmatch ourselves (if our users require it, they
73802         should do so explicitly).
73803
73804         Fix regex code so it doesn't rely on strcasecmp.
73805         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
73806         Otherwise, include gnulib's langinfo.h.
73807         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
73808         undesirable behavior in non-C locales.  Instead, rely on localecharset.
73809         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
73810         * modules/regex (FILES): Remove m4/codeset.m4.
73811         (Depends-on): Add localcharset.  Remove strcase.
73812
73813 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73814
73815         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
73816         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
73817
73818 2007-02-13  Bruno Haible  <bruno@clisp.org>
73819
73820         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
73821         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73822
73823 2007-02-12  Bruno Haible  <bruno@clisp.org>
73824
73825         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73826         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
73827         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
73828         time warning rather than a link error.
73829
73830 2007-02-12  Bruno Haible  <bruno@clisp.org>
73831
73832         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
73833         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
73834         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73835
73836 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73837
73838         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
73839         args, not 2.
73840
73841 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73842
73843         New module 'time', so that apps can include <time.h> as per
73844         POSIX and GNU instead of separate include files like time_r.h
73845         and timegm.h.  This implementation tries out a simpler approach
73846         for replacing decls in standard include files (as compared to
73847         the string module), somewhat as an experiment.
73848
73849         * config/srclist.txt: Comment out mktime.c for now.
73850         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
73851         since it doesn't apply any more.  Use generic wording instead.
73852         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
73853         'time'.
73854         * lib/time_.h, m4/time_h.m4, modules/time: New files.
73855         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
73856         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
73857         Don't include <sys/types.h>; no longer needed since we assume C89.
73858         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
73859         * lib/strftime.c: Likewise.
73860         * lib/time_r.c: Likewise.
73861         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
73862         * lib/nanosleep.c: Include <time.h> first, to check interface.
73863         * lib/strptime.c: Likewise.
73864         * lib/time_r.c: Likewise.
73865         * lib/timegm.c: Likewise.
73866         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
73867         needed.
73868         * lib/timegm.c: Don't include timegm.h; no longer needed.
73869         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
73870         time.h now handles any problems in that area.
73871         (struct timespec, nanosleep): Remove; time.h now arranges for these.
73872         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
73873         that time.h defines struct timespec.
73874         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
73875         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
73876         handles that.
73877         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
73878         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
73879         needed.  Set REPLACE_LOCALTIME.
73880         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
73881         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
73882         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
73883         nanosleep; time_h.m4 now does that.  Don't require
73884         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
73885         module handles this now.
73886         * modules/getdate (Depends-on): Remove timespec.  Add time.
73887         * modules/nanosleep (Depends-on): Likewise.
73888         * modules/stat-time (Depends-on): Likewise.
73889         * modules/nanosleep (Include): Include time.h, not timespec.h.
73890         * modules/strptime (Files): Remove lib/strptime.h.
73891         (Depends-on): Add extensions, time.
73892         (Include): Include time.h, not strptime.h.
73893         * modules/time_r (Files): Remove lib/time_r.h.
73894         (Depends-on): Add time.
73895         (Include): Include time.h, not time_r.h.
73896         * modules/timegm: Likewise.
73897         * modules/timespec (Description): Now does timespec-related decls
73898         of our own, instead of struct timespec itself.
73899         (Depends-on): Add time; remove extensions.
73900         (Maintainer): Add self.
73901         * modules/utimecmp (Depends-on): Add time; remove timespec.
73902         * modules/utimens (Depends-on): Likewise.
73903         * modules/xnanosleep (Depends-on): Likewise.
73904
73905 2007-02-11  Bruno Haible  <bruno@clisp.org>
73906
73907         * lib/c-strstr.c: Include allocsa.h.
73908         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73909         * lib/c-strcasestr.c: Include allocsa.h.
73910         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73911         * lib/strcasestr.c: Include allocsa.h.
73912         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73913         * lib/mbsstr.c: Include allocsa.h.
73914         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73915         allocsa/freesa instead of malloc/free.
73916         * lib/mbscasestr.c: Include allocsa.h.
73917         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73918         allocsa/freesa instead of malloc/free.
73919         * modules/c-strstr (Depends-on): Add allocsa.
73920         * modules/c-strcasestr (Depends-on): Likewise.
73921         * modules/strcasestr (Depends-on): Likewise.
73922         * modules/mbsstr (Depends-on): Likewise.
73923         * modules/mbscasestr (Depends-on): Likewise.
73924
73925 2007-02-11  Bruno Haible  <bruno@clisp.org>
73926
73927         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
73928
73929         * modules/mbsspn-tests: New file.
73930         * tests/test-mbsspn.sh: New file.
73931         * tests/test-mbsspn.c: New file.
73932
73933 2007-02-11  Bruno Haible  <bruno@clisp.org>
73934
73935         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
73936
73937         * modules/mbspbrk-tests: New file.
73938         * tests/test-mbspbrk.sh: New file.
73939         * tests/test-mbspbrk.c: New file.
73940
73941 2007-02-11  Bruno Haible  <bruno@clisp.org>
73942
73943         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
73944         unneeded cast.
73945
73946         * modules/mbscspn-tests: New file.
73947         * tests/test-mbscspn.sh: New file.
73948         * tests/test-mbscspn.c: New file.
73949
73950 2007-02-11  Bruno Haible  <bruno@clisp.org>
73951
73952         * modules/mbscasecmp-tests: New file.
73953         * tests/test-mbscasecmp.sh: New file.
73954         * tests/test-mbscasecmp.c: New file.
73955
73956 2007-02-11  Bruno Haible  <bruno@clisp.org>
73957
73958         Ensure O(n) worst-case complexity of mbscasestr.
73959         * lib/mbscasestr.c: Include stdbool.h.
73960         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73961         functions.
73962         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
73963         the bookkeeping indicates that it's worth it.
73964         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
73965
73966         * modules/mbscasestr-tests: New file.
73967         * tests/test-mbscasestr1.c: New file.
73968         * tests/test-mbscasestr2.sh: New file.
73969         * tests/test-mbscasestr2.c: New file.
73970         * tests/test-mbscasestr3.sh: New file.
73971         * tests/test-mbscasestr3.c: New file.
73972         * tests/test-mbscasestr4.sh: New file.
73973         * tests/test-mbscasestr4.c: New file.
73974         * m4/locale-tr.m4: New file.
73975
73976 2007-02-11  Bruno Haible  <bruno@clisp.org>
73977
73978         Ensure O(n) worst-case complexity of mbsstr.
73979         * lib/mbsstr.c: Include stdbool.h.
73980         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73981         functions.
73982         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
73983         bookkeeping indicates that it's worth it.
73984         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
73985
73986         * modules/mbsstr-tests: New file.
73987         * tests/test-mbsstr1.c: New file.
73988         * tests/test-mbsstr2.sh: New file.
73989         * tests/test-mbsstr2.c: New file.
73990         * tests/test-mbsstr3.sh: New file.
73991         * tests/test-mbsstr3.c: New file.
73992         * m4/locale-fr.m4: New file.
73993
73994 2007-02-11  Bruno Haible  <bruno@clisp.org>
73995
73996         * lib/mbsrchr.c (mbsrchr): Fix bug.
73997
73998         * modules/mbsrchr-tests: New file.
73999         * tests/test-mbsrchr.sh: New file.
74000         * tests/test-mbsrchr.c: New file.
74001
74002 2007-02-11  Bruno Haible  <bruno@clisp.org>
74003
74004         * lib/mbschr.c (mbschr): Fix bug.
74005
74006         * modules/mbschr-tests: New file.
74007         * tests/test-mbschr.sh: New file.
74008         * tests/test-mbschr.c: New file.
74009         * m4/locale-zh.m4: New file.
74010
74011 2007-02-11  Bruno Haible  <bruno@clisp.org>
74012
74013         Support for copying multibyte string iterators.
74014         * lib/mbiter.h: Include <string.h>.
74015         (mbiter_multi_copy): New function.
74016         (mbi_copy): New macro.
74017         * lib/mbuiter.h: Include <string.h>.
74018         (mbuiter_multi_copy): New function.
74019         (mbui_copy): New macro.
74020
74021 2007-02-11  Bruno Haible  <bruno@clisp.org>
74022
74023         New module mbslen.
74024         * modules/mbslen: New file.
74025         * lib/mbslen.c: New file.
74026         * lib/string_.h (mbslen): New declaration.
74027         * m4/mbslen.m4: New file.
74028         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74029         GNULIB_MBSLEN.
74030         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
74031         * MODULES.html.sh (Internationalization functions): Add mbslen.
74032
74033 2007-02-11  Bruno Haible  <bruno@clisp.org>
74034
74035         Ensure O(n) worst-case complexity of strcasestr substitute.
74036         * lib/strcasestr.c: Include stdbool.h.
74037         (knuth_morris_pratt): New function.
74038         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74039         bookkeeping indicates that it's worth it.
74040         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
74041
74042         * modules/strcasestr-tests: New file.
74043         * tests/test-strcasestr.c: New file.
74044
74045 2007-02-11  Bruno Haible  <bruno@clisp.org>
74046
74047         Ensure O(n) worst-case complexity of c_strcasestr.
74048         * lib/c-strcasestr.c: Include stdbool.h, string.h.
74049         (knuth_morris_pratt): New function.
74050         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
74051         the bookkeeping indicates that it's worth it.
74052         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
74053
74054         * modules/c-strcasestr-tests: New file.
74055         * tests/test-c-strcasestr.c: New file.
74056
74057 2007-02-11  Bruno Haible  <bruno@clisp.org>
74058
74059         Ensure O(n) worst-case complexity of c_strstr.
74060         * lib/c-strstr.c: Include stdbool.h, string.h.
74061         (knuth_morris_pratt): New function.
74062         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74063         bookkeeping indicates that it's worth it.
74064         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
74065
74066         * lib/c-strstr.c: Complete rewrite for maintainability.
74067
74068         * modules/c-strstr-tests: New file.
74069         * tests/test-c-strstr.c: New file.
74070
74071 2007-02-11  Bruno Haible  <bruno@clisp.org>
74072
74073         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
74074         5.2.1 and earlier, whereby \055 was treated just like the range
74075         delimiter '-'.
74076         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74077
74078 2007-02-08  Bruno Haible  <bruno@clisp.org>
74079
74080         * modules/regex (Depends-on): Add stdbool.
74081         Reported by Dalibor Topic <robilad@kaffe.org>.
74082
74083 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74084
74085         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
74086         Prefer returning from main to exiting from it.
74087         Remove unnecessary parens after sizeof.
74088
74089 2007-02-05  Bruno Haible  <bruno@clisp.org>
74090
74091         New module mbssep.
74092         * modules/mbssep: New file.
74093         * lib/mbssep.c: New file.
74094         * lib/string_.h (strsep): Add a conditional link warning.
74095         (mbssep): New declaration.
74096         * m4/mbssep.m4: New file.
74097         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74098         GNULIB_MBSSEP.
74099         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
74100         * MODULES.html.sh (Internationalization functions): Add mbssep.
74101
74102 2007-02-05  Bruno Haible  <bruno@clisp.org>
74103
74104         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
74105         Optimize search in case of 1 delimiter.
74106
74107 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74108
74109         * lib/acl.h: Include sys/types.h before sys/acl.h.
74110
74111 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74112
74113         Merge upstream fix for glibc bugzilla #3957:
74114
74115         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
74116
74117         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
74118         bit for RE_HAT_LISTS_NOT_NEWLINE.
74119         (build_charclass_op): Remove bogus comment.
74120
74121 2007-02-05  Simon Josefsson  <simon@josefsson.org>
74122
74123         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
74124
74125 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74126
74127         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
74128         * lib/memmem.c [!defined _LIBC]: Include config.h.
74129
74130 2007-02-04  Bruno Haible  <bruno@clisp.org>
74131
74132         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
74133         warning message.
74134
74135 2007-02-04  Bruno Haible  <bruno@clisp.org>
74136
74137         New module mbstok_r.
74138         * modules/mbstok_r: New file.
74139         * lib/mbstok_r.c: New file.
74140         * lib/string_.h (strtok_r): Change argument names to match the
74141         comments. Add a conditional link warning.
74142         (mbstok_r): New declaration.
74143         * m4/mbstok_r.m4: New file.
74144         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74145         GNULIB_MBSTOK_R.
74146         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
74147         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
74148
74149 2007-02-04  Bruno Haible  <bruno@clisp.org>
74150
74151         New module mbsspn.
74152         * modules/mbsspn: New file.
74153         * lib/mbsspn.c: New file.
74154         * lib/string_.h (strspn): Add a conditional link warning.
74155         (mbsspn): New declaration.
74156         * m4/mbsspn.m4: New file.
74157         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74158         GNULIB_MBSSPN.
74159         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
74160         * MODULES.html.sh (Internationalization functions): Add mbsspn.
74161
74162 2007-02-04  Bruno Haible  <bruno@clisp.org>
74163
74164         New module mbspbrk.
74165         * modules/mbspbrk: New file.
74166         * lib/mbspbrk.c: New file.
74167         * lib/string_.h (strpbrk): Add a conditional link warning.
74168         (mbspbrk): New declaration.
74169         * m4/mbspbrk.m4: New file.
74170         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74171         GNULIB_MBSPBRK.
74172         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
74173         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
74174
74175 2007-02-04  Bruno Haible  <bruno@clisp.org>
74176
74177         New module mbscspn.
74178         * modules/mbscspn: New file.
74179         * lib/mbscspn.c: New file.
74180         * lib/string_.h (strcspn): Add a conditional link warning.
74181         (mbscspn): New declaration.
74182         * m4/mbscspn.m4: New file.
74183         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74184         GNULIB_MBSCSPN.
74185         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
74186         * MODULES.html.sh (Internationalization functions): Add mbscspn.
74187
74188 2007-02-04  Bruno Haible  <bruno@clisp.org>
74189
74190         New module mbscasestr, reduced goal of strcasestr.
74191         * modules/mbscasestr: New file.
74192         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
74193         (mbscasestr): Renamed from strcasestr.
74194         * lib/strcasestr.c: Don't include mbuiter.h.
74195         (strcasestr): Remove support for multibyte locales.
74196         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
74197         Change the conditional link warning.
74198         (mbscasestr): New declaration.
74199         * m4/mbscasestr.m4: New file.
74200         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
74201         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
74202         REPLACE_STRCASESTR.
74203         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
74204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74205         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74206         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
74207         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
74208         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74209         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
74210         (Depends-on): Remove mbuiter.
74211         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
74212
74213 2007-02-04  Bruno Haible  <bruno@clisp.org>
74214
74215         Simplify handling of strncasecmp.
74216         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
74217         the conditional link warning.
74218         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74219         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
74220         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
74221         * modules/strcase (configure.ac): Don't invoke
74222         gl_STRING_MODULE_INDICATOR.
74223         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
74224
74225 2007-02-04  Bruno Haible  <bruno@clisp.org>
74226
74227         New module mbscasecmp, reduced goal of strcasecmp.
74228         * modules/mbscasecmp: New file.
74229         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
74230         (mbscasecmp): Renamed from strcasecmp.
74231         * lib/strcasecmp.c: Don't include mbuiter.h.
74232         (strcasecmp): Remove support for multibyte locales.
74233         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
74234         Change the conditional link warning.
74235         (mbscasecmp): New declaration.
74236         * m4/mbscasecmp.m4: New file.
74237         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
74238         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
74239         REPLACE_STRCASECMP.
74240         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
74241         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74242         GNULIB_MBSCASECMP.
74243         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
74244         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
74245         * modules/strcase (Files): Remove m4/mbrtowc.m4.
74246         (Depends-on): Remove mbuiter.
74247         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
74248
74249 2007-02-04  Bruno Haible  <bruno@clisp.org>
74250
74251         New module mbsstr. Remove module strstr.
74252         * modules/mbsstr: New file.
74253         * modules/strstr: Remove file.
74254         * lib/mbsstr.c: Renamed from lib/strstr.c.
74255         (mbsstr): Renamed from strstr.
74256         * lib/string_.h (strstr): Remove declaration. Change the conditional
74257         link warning.
74258         (mbsstr): New declaration.
74259         * m4/mbsstr.m4: New file.
74260         * m4/strstr.m4: Remove file.
74261         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
74262         REPLACE_STRSTR.
74263         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
74264         Don't initialize GNULIB_STRSTR.
74265         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
74266         substitute GNULIB_STRSTR and REPLACE_STRSTR.
74267         * MODULES.html.sh (Internationalization functions): Add mbsstr.
74268         (Support for systems lacking ANSI C 89): Remove strstr.
74269
74270 2007-02-04  Bruno Haible  <bruno@clisp.org>
74271
74272         New module mbsrchr.
74273         * modules/mbsrchr: New file.
74274         * lib/mbsrchr.c: New file.
74275         * lib/string_.h (strrchr): Add a conditional link warning.
74276         (mbsrchr): New declaration.
74277         * m4/mbsrchr.m4: New file.
74278         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74279         GNULIB_MBSRCHR.
74280         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
74281         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
74282
74283 2007-02-04  Bruno Haible  <bruno@clisp.org>
74284
74285         New module mbschr.
74286         * modules/mbschr: New file.
74287         * lib/mbschr.c: New file.
74288         * lib/string_.h (strchr): Add a conditional link warning.
74289         (mbschr): New declaration.
74290         * m4/mbschr.m4: New file.
74291         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74292         GNULIB_MBSCHR.
74293         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
74294         * MODULES.html.sh (Internationalization functions): Add mbschr.
74295
74296 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74297
74298         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
74299
74300         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
74301
74302 2007-02-04  Bruno Haible  <bruno@clisp.org>
74303
74304         New module description section 'configure.ac-early'.
74305         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
74306         (func_get_autoconf_early_snippet): New function.
74307         (func_import, func_create_testdir): Use it. Remove special cases for
74308         modules 'extensions' and 'lock'.
74309         * modules/extensions (configure.ac-early): Require
74310         gl_USE_SYSTEM_EXTENSIONS.
74311         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
74312
74313 2007-02-04  Bruno Haible  <bruno@clisp.org>
74314
74315         Make use of gcj-4.3's -fsource and -ftarget option.
74316         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
74317         and if so try the options -fsource and -ftarget.
74318         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
74319         source_version, ftarget_option, target_version arguments.
74320         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
74321         (is_envjavac_oldgcj_14_14_usable): Renamed from
74322         is_envjavac_gcj_14_14_usable.
74323         (is_envjavac_oldgcj_14_13_usable): Renamed from
74324         is_envjavac_gcj_14_13_usable.
74325         (is_gcj_present): Update.
74326         (is_gcj_43, is_gcj43_usable): New functions.
74327         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74328         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74329         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74330         try the options -fsource and -ftarget.
74331
74332 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74333
74334         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74335         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74336         larger value.
74337
74338 2007-02-03  Jim Meyering  <jim@meyering.net>
74339
74340         Give tools a better chance to allocate space for very large buffers.
74341         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74342
74343         Make pwd and readlink work also when run with an unreadable parent dir
74344         on systems with openat support.
74345         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74346         provided getcwd function, even when we have openat support.
74347         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74348
74349 2007-02-02  Bruno Haible  <bruno@clisp.org>
74350
74351         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74352         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74353         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74354         portability problems if one of these functions is only used on specific
74355         platforms.
74356         Reported by Paul Eggert.
74357
74358 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74359
74360         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74361         is causing more trouble than it's curing.
74362         * lib/regex_internal.h (__mempcpy): Remove.
74363         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74364         (and make the code a tad smaller to boot).
74365         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74366
74367 2007-02-02  Jim Meyering  <jim@meyering.net>
74368
74369         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74370         section, not in the Makefile.am: one.
74371
74372 2007-02-02  Eric Blake  <ebb9@byu.net>
74373
74374         * lib/strchrnul.c: Always include config.h first.
74375
74376         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74377         gnulib strstr is not necessary here.
74378
74379 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74380
74381         * m4/socklen.m4: Fix typo.
74382
74383 2007-02-02  Eric Blake  <ebb9@byu.net>
74384
74385         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74386         * modules/netinet_in (Makefile.am): Likewise.
74387
74388 2007-02-01  Bruno Haible  <bruno@clisp.org>
74389
74390         * lib/string_.h (GL_LINK_WARNING): New macro.
74391         (strcasecmp, strstr, strcasestr): If provided by the system,
74392         conditionally define as a macro that leads to a warning instead of to
74393         an error.
74394         (strncasecmp): Conditionally define as a macro that leads to a warning.
74395
74396 2007-02-01  Karl Berry  <karl@gnu.org>
74397
74398         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74399
74400 2007-02-01  Bruno Haible  <bruno@clisp.org>
74401
74402         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74403         renamings.
74404
74405 2007-02-01  Eric Blake  <ebb9@byu.net>
74406
74407         * modules/regex (Depends-on): Revert dependence on mempcpy.
74408         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74409         module's definition of mempcpy.
74410         Reported by Paul Eggert.
74411
74412 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74413
74414         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74415         the symbol XYZ before redefining it.  This fixes a problem with
74416         programs that don't use XYZ, when compiled on systems that define
74417         XYZ to something else.
74418
74419 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74420
74421         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74422         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74423         writeable to group or other and (2) is intended to have a special
74424         mode bit that is set or cleared.  In such a case, the directory
74425         should be neither group- nor other-writeable until the special
74426         mode bits are right.
74427
74428 2007-01-31  Eric Blake  <ebb9@byu.net>
74429
74430         * modules/mountlist (Depends-on): Add strstr.
74431
74432         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74433         bug.
74434         * modules/string (Makefile.am): Remove redundant replacement.
74435         * modules/regex (Depends-on): Add mempcpy.
74436
74437 2007-01-31  Bruno Haible  <bruno@clisp.org>
74438
74439         New module description field 'Link'.
74440         * gnulib-tool (func_usage): Document --extract-link-directive.
74441         (sed_extract_prog): Recognize 'Link' directive.
74442         (func_get_link_directive): New function.
74443         (func_import): Show summary of link directives.
74444         Handle --extract-link-directive option.
74445         * modules/acl (Link): New section.
74446         * modules/clock-time (Link): New section.
74447         * modules/euidaccess (Link): New section.
74448         * modules/gettext (Link): New section.
74449         * modules/iconv (Link): New section.
74450         * modules/lock (Link): New section.
74451         * modules/nanosleep (Link): New section.
74452         * modules/readline (Link): New section.
74453
74454 2007-01-27  Bruno Haible  <bruno@clisp.org>
74455
74456         Enforce the use of gnulib modules for unportable <string.h> functions.
74457         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74458         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74459         (gl_HEADER_STRING_H_BODY): Require it.
74460         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74461         the symbol XYZ to one that gives a link error.
74462         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74463         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74464         * modules/mempcpy (configure.ac): Likewise.
74465         * modules/memrchr (configure.ac): Likewise.
74466         * modules/stpcpy (configure.ac): Likewise.
74467         * modules/stpncpy (configure.ac): Likewise.
74468         * modules/strcase (configure.ac): Likewise.
74469         * modules/strcasestr (configure.ac): Likewise.
74470         * modules/strchrnul (configure.ac): Likewise.
74471         * modules/strdup (configure.ac): Likewise.
74472         * modules/strndup (configure.ac): Likewise.
74473         * modules/strnlen (configure.ac): Likewise.
74474         * modules/strpbrk (configure.ac): Likewise.
74475         * modules/strsep (configure.ac): Likewise.
74476         * modules/strstr (configure.ac): Likewise.
74477         * modules/strtok_r (configure.ac): Likewise.
74478
74479 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
74480
74481         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
74482
74483 2007-01-30  Jim Meyering  <jim@meyering.net>
74484
74485         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
74486
74487 2007-01-29  Bruno Haible  <bruno@clisp.org>
74488
74489         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
74490         * lib/execute.c: Likewise.
74491         * lib/pipe.c: Likewise.
74492         * lib/printf-args.h: Likewise.
74493         * lib/printf-args.c: Likewise.
74494         * lib/printf-parse.c: Likewise.
74495         * lib/vasnprintf.c: Likewise.
74496
74497 2007-01-29  Eric Blake  <ebb9@byu.net>
74498
74499         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
74500         declaration.
74501
74502 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
74503
74504         * lib/strptime.h (strptime): Use 'restrict' for args where
74505         POSIX requires this.
74506         * lib/strptime.c (strptime): Likewise.
74507         Change license notice from LGPL to GPL, since gnulib-tool will
74508         change this as needed.
74509         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
74510         defined.
74511         Include "strptime.h" first, to check interface.
74512         Do not #undef _LIBC and _NL_CURRENT.
74513         Do not include <stdlib.h>; no longer needed.
74514         Include "time_r.h" and declare ptime_locale_status
74515         only if _LIBC is not defined.
74516         (__P): Remove unused macro.
74517         (match_string): Bring back glibc version, but use it only if _LIBC
74518         is defined.
74519         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
74520         Remove unnecessary assertion and abort() call.
74521         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
74522         * m4/strptime.m4: Fix serial number comment.
74523         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
74524         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
74525         (Depends-on): Add time_r.
74526
74527 2007-01-29  Bruno Haible  <bruno@clisp.org>
74528
74529         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74530         strptime.
74531         * modules/strptime (Depends-on): Add stdbool.
74532         * lib/strptime.h: Include <time.h> always. Add comments.
74533
74534 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74535
74536         * modules/strptime: New file.
74537         * lib/strptime.h: New file.
74538         * lib/strptime.c: New file.
74539         * m4/strptime.m4: New file.
74540
74541 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74542
74543         * MODULES.html.sh: New module mpsort.
74544         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
74545
74546         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
74547         a circularity problem with HP-UX ia64 reported by Bob Proulx in
74548         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
74549         All uses changed.
74550         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
74551         All uses changed.
74552         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
74553         to _Restrict_.
74554         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
74555         the parameter matches the prototype.
74556
74557 2007-01-28  Jim Meyering  <jim@meyering.net>
74558
74559         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
74560         sys/time.h here, reverting that part of the previous patch:
74561         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
74562
74563 2007-01-28  Bruno Haible  <bruno@clisp.org>
74564
74565         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
74566         value of $(SYS_TIME_H).
74567         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
74568         remove it conditionally, too. [added by Jim Meyering]
74569         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
74570         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74571         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
74572         GETTIMEOFDAY_REPLACEMENT to 1.
74573
74574 2007-01-28  Bruno Haible  <bruno@clisp.org>
74575
74576         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
74577         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
74578         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
74579         Set UNISTD_H instead of UNISTD_H2.
74580         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
74581
74582 2007-01-28  Bruno Haible  <bruno@clisp.org>
74583
74584         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
74585         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
74586
74587 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74588
74589         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
74590         (func_create_testdir): Ensure C locale for `grep' and `tr'
74591         character ranges.
74592         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
74593         ACLOCAL_AMFLAGS parsing state machine.
74594
74595 2007-01-27  Bruno Haible  <bruno@clisp.org>
74596
74597         * modules/unistr/base: Update.
74598
74599 2007-01-27  Bruno Haible  <bruno@clisp.org>
74600
74601         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
74602         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
74603         * modules/unistr/u32-mbtouc-unsafe: Renamed from
74604         modules/unistr/u32-mbtouc.
74605         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
74606         * lib/unistr.h: Update.
74607         * lib/linebreak.c: Update.
74608         * modules/unistr/u32-mbtouc: Renamed from
74609         modules/unistr/u32-mbtouc-safe.
74610         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
74611         * lib/unistr.h: Update.
74612         * lib/unistr/u32-to-u8.c: Update.
74613         * lib/unistr/u32-to-u16.c: Update.
74614
74615 2007-01-27  Bruno Haible  <bruno@clisp.org>
74616
74617         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
74618         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
74619         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
74620         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
74621         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
74622         * modules/unistr/u16-mbtouc-unsafe: Renamed from
74623         modules/unistr/u16-mbtouc.
74624         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
74625         * lib/unistr.h: Update.
74626         * lib/linebreak.c: Update.
74627         * modules/linebreak: Update.
74628         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
74629         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
74630         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
74631         * modules/unistr/u16-mbtouc: Renamed from
74632         modules/unistr/u16-mbtouc-safe.
74633         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
74634         * lib/unistr.h: Update.
74635         * lib/unistr/u16-to-u8.c: Update.
74636         * modules/unistr/u16-to-u8: Update.
74637         * lib/unistr/u16-to-u32.c: Update.
74638         * modules/unistr/u16-to-u32: Update.
74639
74640 2007-01-27  Bruno Haible  <bruno@clisp.org>
74641
74642         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
74643         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
74644         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
74645         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
74646         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
74647         * modules/unistr/u8-mbtouc-unsafe: Renamed from
74648         modules/unistr/u8-mbtouc.
74649         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
74650         * lib/unistr.h: Update.
74651         * lib/striconveh.c: Update.
74652         * modules/striconveh: Update.
74653         * lib/linebreak.c: Update.
74654         * modules/linebreak: Update.
74655         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
74656         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
74657         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
74658         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
74659         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
74660         * lib/unistr.h: Update.
74661         * lib/striconveh.c: Update.
74662         * modules/striconveh: Update.
74663         * lib/unistr/u8-to-u16.c: Update.
74664         * modules/unistr/u8-to-u16: Update.
74665         * lib/unistr/u8-to-u32.c: Update.
74666         * modules/unistr/u8-to-u32: Update.
74667
74668 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74669
74670         Sync from Libtool.
74671         * lib/argz.c: Do not include strings.h nor memory.h, include
74672         string.h unconditionally.  Patch by Simon Josefsson.
74673
74674 2007-01-27  Bruno Haible  <bruno@clisp.org>
74675
74676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
74677         from gl_HEADER_STRING_H_BODY.
74678         (gl_HEADER_STRING_H_BODY): Require it.
74679         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
74680         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
74681         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
74682         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
74683         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
74684         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
74685         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74686         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
74687         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
74688         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
74689         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
74690         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
74691         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
74692         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74693         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74694
74695 2007-01-27  Bruno Haible  <bruno@clisp.org>
74696
74697         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
74698         check_PROGRAMS into noinst_PROGRAMS.
74699         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
74700         check_PROGRAMS in this case.
74701         (func_import): Set for_test to false.
74702         (func_create_testdir): Set for_test to true.
74703
74704 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74705             Bruno Haible  <bruno@clisp.org>
74706
74707         * modules/strcasestr (Files): Remove lib/strcasestr.h.
74708         (Depends-on): Add string.
74709         (Includes): Use <string.h> instead of strcasestr.h.
74710         * modules/string (Makefile.am): Also substitute the value of
74711         REPLACE_STRCASESTR.
74712         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
74713         assume strcasestr is declared in <string.h> not <strings.h>. Also
74714         set REPLACE_STRCASESTR.
74715         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
74716         REPLACE_STRCASESTR.
74717         * lib/strcasestr.h: Remove file.
74718         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
74719         * lib/string_.h (strcasestr): New declaration.
74720
74721 2007-01-27  Bruno Haible  <bruno@clisp.org>
74722
74723         * lib/string_.h: Use 'extern'.
74724
74725 2007-01-27  Jim Meyering  <jim@meyering.net>
74726
74727         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
74728         of set-but-not-used local, "q".
74729
74730         * lib/mempcpy.c: Include <config.h> before <string.h>.
74731         This fixes a compilation error on HP-UX, due to the system's
74732         "restrict"-using mempcpy prototype.
74733
74734 2007-01-26  Bruno Haible  <bruno@clisp.org>
74735
74736         Small optimization.
74737         * lib/javacomp.c: Include c-strstr.h.
74738          (is_envjavac_gcj): Use c_strstr instead of strstr.
74739         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
74740
74741 2007-01-26  Bruno Haible  <bruno@clisp.org>
74742
74743         * MODULES.html.sh (Unicode string functions): Add the new modules.
74744
74745         * modules/uniconv/u32-strconv-to-locale: New file.
74746         * lib/uniconv/u32-strconv-to-locale.c: New file.
74747
74748         * modules/uniconv/u16-strconv-to-locale: New file.
74749         * lib/uniconv/u16-strconv-to-locale.c: New file.
74750
74751         * modules/uniconv/u8-strconv-to-locale: New file.
74752         * lib/uniconv/u8-strconv-to-locale.c: New file.
74753
74754         * modules/uniconv/u32-strconv-from-locale: New file.
74755         * lib/uniconv/u32-strconv-from-locale.c: New file.
74756
74757         * modules/uniconv/u16-strconv-from-locale: New file.
74758         * lib/uniconv/u16-strconv-from-locale.c: New file.
74759
74760         * modules/uniconv/u8-strconv-from-locale: New file.
74761         * lib/uniconv/u8-strconv-from-locale.c: New file.
74762
74763         * modules/uniconv/u32-strconv-to-enc: New file.
74764         * lib/uniconv/u32-strconv-to-enc.c: New file.
74765         * modules/uniconv/u32-strconv-to-enc-tests: New file.
74766         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
74767
74768         * modules/uniconv/u16-strconv-to-enc: New file.
74769         * lib/uniconv/u16-strconv-to-enc.c: New file.
74770         * lib/uniconv/u-strconv-to-enc.h: New file.
74771         * modules/uniconv/u16-strconv-to-enc-tests: New file.
74772         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
74773
74774         * modules/uniconv/u8-strconv-to-enc: New file.
74775         * lib/uniconv/u8-strconv-to-enc.c: New file.
74776         * modules/uniconv/u8-strconv-to-enc-tests: New file.
74777         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
74778
74779         * modules/uniconv/u32-strconv-from-enc: New file.
74780         * lib/uniconv/u32-strconv-from-enc.c: New file.
74781         * modules/uniconv/u32-strconv-from-enc-tests: New file.
74782         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
74783
74784         * modules/uniconv/u16-strconv-from-enc: New file.
74785         * lib/uniconv/u16-strconv-from-enc.c: New file.
74786         * modules/uniconv/u16-strconv-from-enc-tests: New file.
74787         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
74788
74789         * modules/uniconv/u8-strconv-from-enc: New file.
74790         * lib/uniconv/u8-strconv-from-enc.c: New file.
74791         * lib/uniconv/u-strconv-from-enc.h: New file.
74792         * modules/uniconv/u8-strconv-from-enc-tests: New file.
74793         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
74794
74795         * modules/uniconv/u32-conv-from-enc: New file.
74796         * lib/uniconv/u32-conv-from-enc.c: New file.
74797         * modules/uniconv/u32-conv-from-enc-tests: New file.
74798         * tests/uniconv/test-u32-conv-from-enc.c: New file.
74799
74800         * modules/uniconv/u16-conv-from-enc: New file.
74801         * lib/uniconv/u16-conv-from-enc.c: New file.
74802         * lib/uniconv/u-conv-from-enc.h: New file.
74803         * modules/uniconv/u16-conv-from-enc-tests: New file.
74804         * tests/uniconv/test-u16-conv-from-enc.c: New file.
74805
74806         * modules/uniconv/u8-conv-from-enc: New file.
74807         * lib/uniconv/u8-conv-from-enc.c: New file.
74808         * modules/uniconv/u8-conv-from-enc-tests: New file.
74809         * tests/uniconv/test-u8-conv-from-enc.c: New file.
74810
74811         * modules/uniconv/base: New file.
74812         * lib/uniconv.h: New file.
74813
74814 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74815
74816         * doc/gnulib-tool.texi (Initial import): Update to match current
74817         behavior with strdup module.
74818         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
74819         * lib/memmem.h: Remove; all uses removed.  This is now done
74820         by <string.h>.
74821         * lib/mempcpy.h: Likewise.
74822         * lib/memrchr.h: Likewise.
74823         * lib/stpcpy.h: Likewise.
74824         * lib/stpncpy.h: Likewise.
74825         * lib/strcase.h: Likewise.
74826         * lib/strchrnul.h: Likewise.
74827         * lib/strdup.h: Likewise.
74828         * lib/strndup.h: Likewise.
74829         * lib/strnlen.h: Likewise.
74830         * lib/strpbrk.h: Likewise.
74831         * lib/strsep.h: Likewise.
74832         * lib/strstr.h: Likewise.
74833         * lib/strtok_r.h: Likewise.
74834         * lib/string_.h: New file.
74835         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
74836         Rely on <string.h> instead.
74837         * lib/canon-host.c: Likewise.
74838         * lib/chdir-long.c: Likewise.
74839         * lib/concatpath.c: Likewise.
74840         * lib/exclude.c: Likewise.
74841         * lib/fchdir.c: Likewise.
74842         * lib/getaddrinfo.c: Likewise.
74843         * lib/getcwd.c: Likewise.
74844         * lib/getsubopt.c: Likewise.
74845         * lib/glob.c: Likewise.
74846         * lib/hard-locale.c: Likewise.
74847         * lib/iconvme.c: Likewise.
74848         * lib/javacomp.c: Likewise.
74849         * lib/mempcpy.c: Likewise.
74850         * lib/memrchr.c: Likewise.
74851         * lib/regex_internal.h: Likewise.
74852         * lib/stpncpy.c: Likewise.
74853         * lib/strcasecmp.c: Likewise.
74854         * lib/strchrnul.c: Likewise.
74855         * lib/strdup.c: Likewise.
74856         * lib/striconv.c: Likewise.
74857         * lib/striconveh.c: Likewise.
74858         * lib/striconveha.c: Likewise.
74859         * lib/strncasecmp.c: Likewise.
74860         * lib/strndup.c: Likewise.
74861         * lib/strnlen.c: Likewise.
74862         * lib/strsep.c: Likewise.
74863         * lib/strstr.c: Likewise.
74864         * lib/strtok_r.c: Likewise.
74865         * lib/userspec.c: Likewise.
74866         * lib/w32spawn.h: Likewise.
74867         * lib/xstrndup.c: Likewise.
74868         * lib/mountlist.c (strstr): Remove decl.
74869         * m4/string_h.m4: New file.
74870         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
74871         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
74872         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
74873         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
74874         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
74875         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
74876         Set REPLACE_STRCASECMP if necessary.
74877         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
74878         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
74879         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
74880         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
74881         HAVE_DECL_STRDUP if necessary.
74882         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
74883         since gl_FUNC_STRNDUP does that now.
74884         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
74885         Check for decl here...
74886         (gl_PREREQ_STRNLEN): ... not here.
74887         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
74888         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
74889         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
74890         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
74891         necessary.
74892         * modules/string: New file.
74893         * modules/memmem (Files): Remove special-purpose include file.
74894         (Depends-on): Add string.
74895         (Include): Include <string.h>, not the removed file.
74896         * modules/mempcpy: Likewise.
74897         * modules/memrchr: Likewise.
74898         * modules/stpcpy: Likewise.
74899         * modules/stpncpy: Likewise.
74900         * modules/strcase: Likewise.
74901         * modules/strchrnul: Likewise.
74902         * modules/strdup: Likewise.
74903         * modules/strndup: Likewise.
74904         * modules/strnlen: Likewise.
74905         * modules/strpbrk: Likewise.
74906         * modules/strsep: Likewise.
74907         * modules/strstr: Likewise.
74908         * modules/strtok_r: Likewise.
74909         * tests/test-dirname.c: Don't include "strdup.h", since
74910         <string.h> now suffices.
74911         * tests/test-memmem.c: Don't include "memmem.h", since
74912         <string.h> now suffices.
74913
74914 2007-01-25  Bruno Haible  <bruno@clisp.org>
74915
74916         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
74917         *resultp is 0.
74918
74919         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
74920         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
74921         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
74922         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
74923
74924         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
74925         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
74926         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
74927         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
74928         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
74929         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
74930
74931 2007-01-24  Bruno Haible  <bruno@clisp.org>
74932
74933         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
74934         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
74935         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
74936         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
74937         gl_FUNC_FTS_CORE.
74938         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
74939         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
74940         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74941         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
74942         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
74943         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
74944         gl_FUNC_FCHOWNAT.
74945         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
74946         gl_FUNC_STRFTIME.
74947         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
74948         Reported by Ralf Wildenhues.
74949
74950 2007-01-24  Bruno Haible  <bruno@clisp.org>
74951
74952         Drop AC_REQUIRE calls that are redundant with the module dependencies.
74953         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
74954         gl_GETADDRINFO.
74955         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
74956         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
74957         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
74958
74959 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
74960
74961         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
74962         Don't use 'exit'; just return from 'main'.
74963         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
74964
74965         * lib/fnmatch_.h: Readjust white space and comments to match
74966         glibc, to avoid spurious diffs.
74967
74968 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74969
74970         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
74971         2004-12-01 change by Jakub Jelinek, since this code won't compile
74972         if !LIBC.  Problem reported by Bob Proulx.
74973
74974 2007-01-23  Bruno Haible  <bruno@clisp.org>
74975
74976         * lib/striconveh.c: Include c-strcaseeq.h.
74977         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
74978         * modules/striconveh (Depends-on): Add c-strcaseeq.
74979
74980 2007-01-23  Bruno Haible  <bruno@clisp.org>
74981
74982         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
74983
74984         * modules/c-strcaseeq: New file.
74985         * lib/c-strcaseeq.h: New file.
74986
74987         * modules/streq: New file.
74988         * lib/streq.h: New file.
74989
74990 2007-01-23  Bruno Haible  <bruno@clisp.org>
74991
74992         * modules/striconveha-tests: New file.
74993         * tests/test-striconveha.c: New file.
74994
74995         * lib/striconveha.h: Include <stdbool.h>.
74996         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
74997         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
74998         (mem_iconveha_notranslit): Renamed from mem_iconveha.
74999         (mem_iconveha): New function.
75000         (str_iconveha_notranslit): Renamed from str_iconveha.
75001         (str_iconveha): New function.
75002         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
75003         c-strcase.
75004
75005 2007-01-23  Bruno Haible  <bruno@clisp.org>
75006
75007         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
75008         encodings without forgiving before trying any encoding with handler.
75009         (str_iconveha): Try all encodings without forgiving before trying any
75010         encoding with handler.
75011
75012 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75013
75014         Import the following changes from libc.
75015
75016         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75017
75018         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
75019
75020         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75021
75022         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
75023         normal_bracket label.
75024
75025         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
75026
75027         [BZ #361]
75028         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
75029         to normal_bracket after fetching the next character.
75030
75031 2007-01-22  Bruno Haible  <bruno@clisp.org>
75032
75033         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
75034         argument.
75035         * lib/striconveh.c (iconv_carefully_1): New function.
75036         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
75037         argument.
75038         (str_cd_iconveh): Update.
75039         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
75040         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
75041         * tests/test-striconveh.c (MAGIC): New macro.
75042         (new_offsets): New function.
75043         (main): Test call with and without offsets.
75044
75045 2007-01-22  Bruno Haible  <bruno@clisp.org>
75046
75047         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
75048         * modules/sys_select (Makefile.am): Likewise.
75049         * modules/sys_socket (Makefile.am): Likewise.
75050         * modules/sys_time (Makefile.am): Likewise.
75051
75052 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75053
75054         * modules/gettimeofday (License): Change from GPL to LGPL, since
75055         gettimeofday is a library function.
75056
75057 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75058
75059         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
75060
75061 2007-01-21  Bruno Haible  <bruno@clisp.org>
75062
75063         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
75064
75065 2007-01-21  Bruno Haible  <bruno@clisp.org>
75066
75067         * modules/striconveha: New file.
75068         * lib/striconveha.h: New file.
75069         * lib/striconveha.c: New file.
75070         * MODULES.html.sh (Internationalization functions): Add striconveha.
75071         * lib/striconv.c (str_iconv): Optimize the case of an empty input
75072         string.
75073         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
75074
75075 2007-01-21  Bruno Haible  <bruno@clisp.org>
75076
75077         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
75078         * lib/striconveh.c (str_iconveh): Likewise.
75079
75080 2007-01-21  Bruno Haible  <bruno@clisp.org>
75081
75082         * lib/striconveh.h (mem_iconveh): New declaration.
75083         * lib/striconveh.c (mem_iconveh): New function.
75084         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
75085
75086 2007-01-21  Bruno Haible  <bruno@clisp.org>
75087
75088         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
75089
75090         * lib/striconveh.h (mem_cd_iconveh): Change specification.
75091         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
75092         original result buffer.
75093         (str_cd_iconveh): Update.
75094         * tests/test-striconveh.c (main): Update.
75095
75096         * lib/striconv.h (mem_cd_iconv): Change specification.
75097         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
75098         result buffer.
75099         (str_cd_iconv): Update.
75100         * tests/test-striconv.c (main): Update.
75101
75102 2007-01-21  Bruno Haible  <bruno@clisp.org>
75103
75104         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
75105
75106 2007-01-20  Jim Meyering  <jim@meyering.net>
75107
75108         * lib/userspec.c (parse_with_separator): If a user or group string
75109         starts with "+", skip the corresponding name-to-ID look-up, since
75110         such a look-up must fail: user and group names may not include "+".
75111
75112 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75113
75114         * lib/poll.c: Include sys/time.h and time.h unconditionally,
75115         since we now assume the sys_time module.
75116         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
75117         check for sys/time.h; no longer needed.
75118         * modules/poll (Depends-on): Depend on sys_time.
75119
75120 2007-01-18  Bruno Haible  <bruno@clisp.org>
75121
75122         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
75123         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75124
75125         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
75126         gettimeofday.
75127
75128         * tests/test-gettimeofday.c: Include <time.h>.
75129         (dummy): Remove variable.
75130
75131         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
75132         gl_HEADER_SYS_TIME_H.
75133         (gl_HEADER_SYS_TIME_H): New macro.
75134
75135         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
75136         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75137         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
75138         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
75139         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75140         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
75141         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
75142         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75143         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
75144         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
75145         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75146
75147         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
75148         last change; it caused a compilation error when cross-compiling to
75149         Cygwin.
75150
75151 2007-01-18  Jim Meyering  <jim@meyering.net>
75152
75153         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
75154         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
75155         than the race-prone "test -d sys || mkdir sys".
75156         (configure.ac): Use AC_PROG_MKDIR_P.
75157         * modules/sys_select: Likewise.
75158         * modules/sys_socket: Likewise.
75159         * modules/sys_time: Likewise.
75160
75161 2007-01-18  Eric Blake  <ebb9@byu.net>
75162
75163         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
75164         replace gettimeofday.
75165         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
75166         name, to avoid infinite recursion.
75167
75168 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
75169
75170         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
75171         module sys_time.
75172         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
75173         assume timespec.h defines struct timeval.
75174         * lib/settime.c: Likewise.
75175         * lib/utimens.c: Likewise.
75176         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
75177         since we now assume the gettimeofday module.
75178         * lib/tempname.c (__gen_tempname): Likewise.
75179         * lib/gettimeofday.h: Remove.
75180         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
75181         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
75182         Include <time.h>, for 'time()'.
75183         (localtime_buffer_addr): Also use this workaround if
75184         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
75185         to simplify the uses.  All uses changed.
75186         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
75187         that #undef is inside {}, and 'const' follows type name consistently.
75188         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
75189         (gettimeofday): Do not use the maximum possible value for
75190         tv->tv_usec, since that might break usages other than ls.c.
75191         Instead, we'll leave ls.c alone.  This undoes today's patch
75192         by Bruno.  Add a compile-time warning for 1s-clock resolution;
75193         we've never observed the problem but might as well keep the
75194         canary.
75195         * lib/nanosleep.c: Include timespec.h first, for interface check.
75196         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
75197         now assume the sys_time module.
75198         * lib/tempname.c: Likewise.
75199         * lib/timespec.h: Likewise.
75200         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
75201         needed.
75202         * lib/strftime.c: Likewise.
75203         * lib/timespec.h: Likewise.
75204         * lib/posixtm.c: Include posixtm.h first, for interface check.
75205         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
75206         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
75207         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
75208         * lib/sys_time_.h: New file.
75209         * lib/timespec.h (struct timespec): Use long int, not long.
75210         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75211         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
75212         Remove obsolescent call to AC_HEADER_TIME.
75213         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
75214         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75215         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75216         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
75217         Likewise.
75218         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
75219         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
75220         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
75221         into the sys_time module.  Check for gettimeofday just once.
75222         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
75223         for gettimeofday signature to just check the signature.  Merely
75224         compile it, since linking doesn't test signature.  Improve test for
75225         whether gettimeofday.o is actually needed.
75226         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
75227         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
75228         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
75229         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75230         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
75231         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
75232         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
75233         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
75234         than worrying about sys/time.h.
75235         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75236         Don't bother worrying about TIME_WITH_SYS_TIME.
75237         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
75238         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
75239         * m4/sys_time_h.m4: New file.
75240         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
75241         Don't include sys/time.h.  Return from main rather than exiting.
75242         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
75243         all uses changed.
75244         * modules/gethrxtime (Depends-on): Add sys_time.
75245         * modules/gettime (Depends-on): Likewise.
75246         * modules/gettimeofday (Depends-on): Likewise.
75247         * modules/nanosleep (Depends-on): Likewise.
75248         * modules/settime (Depends-on): Likewise.
75249         * modules/tempname (Depends-on): Likewise.
75250         * modules/utimens (Depends-on): Likewise.
75251         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
75252         (Include): Change back to <sys/time.h>.
75253         (Maintainer): Add self.
75254         * modules/sys_time: New file.
75255         * modules/tempname (Depends-on): Add gettimeofday.
75256         * tests/test-gettimeofday.c: Include <sys/time.h>
75257         rather than gettimeofday.h.
75258
75259 2007-01-17  Bruno Haible  <bruno@clisp.org>
75260
75261         * gnulib-tool (func_get_license): Revert last patch. Instead, let
75262         the license default to GPL.
75263         (func_create_testdir): Don't complain if a module is LGPL and its
75264         tests module depends on GPLed modules.
75265
75266 2007-01-17  Bruno Haible  <bruno@clisp.org>
75267
75268         * lib/gettimeofday.c (gettimeofday): Add code for the case
75269         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
75270         maximum possible value for tv->tv_usec, rather than the minimum one.
75271
75272 2005-10-08  Martin Lambers  <marlam@marlam.de>
75273 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75274 2007-01-16  Bruno Haible  <bruno@clisp.org>
75275
75276         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
75277         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
75278         gl_FUNC_GETTIMEOFDAY.
75279         (Include): Add gettimeofday.h.
75280         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
75281         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
75282         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
75283         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
75284         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
75285         * lib/gettimeofday.h: New file.
75286         * lib/gettimeofday.c: Include <sys/timeb.h>.
75287         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
75288         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75289         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
75290         fall back on time().
75291
75292         * tests/test-gettimeofday.c: New file.
75293         * modules/gettimeofday-tests: New file.
75294
75295 2007-01-16  Eric Blake  <ebb9@byu.net>
75296
75297         * modules/fnmatch (Depends-on): Depend on wchar.
75298         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
75299         * m4/fnmatch.m4: Likewise.
75300         * modules/mbchar (Makefile.am): Assume <wchar.h>.
75301         * m4/mbchar.m4: Likewise.
75302         * modules/mbswidth (Depends-on): Depend on wchar.
75303         * lib/mbswidth.c: Assume <wchar.h>.
75304         * m4/mbswidth.m4: Likewise.
75305         * modules/quotearg (Depends-on): Depend on wchar.
75306         * lib/quotearg.c: Assume <wchar.h>.
75307         * m4/quotearg.m4: Likewise.
75308         * modules/regex (Depends-on): Depend on wchar.
75309         * lib/regex_internal.h: Assume <wchar.h>.
75310         * m4/regex.m4: Likewise.
75311         * modules/stdint (Depends-on): Depend on wchar.
75312         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
75313         * m4/stdint.m4: Likewise.
75314         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
75315         * modules/strftime (Depends-on): Depend on wchar.
75316         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
75317         * modules/strtol (Depends-on): Depend on wchar.
75318         * lib/strtol.c: Assume <wchar.h>.
75319         * modules/wcwidth (Depends-on): Depend on wchar.
75320         * lib/wcwidth.h: Assume <wchar.h>.
75321         * m4/wcwidth.m4: Likewise.
75322
75323 2007-01-16  Bruno Haible  <bruno@clisp.org>
75324
75325         * modules/csharpexec-script: New, created from...
75326         * modules/csharpexec: ... this.
75327
75328 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75329
75330         * modules/javaexec-script: New, created from...
75331         * modules/javaexec: ... this.
75332
75333 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75334
75335         * modules/poll (Dependencies): Add sys_select.
75336
75337 2007-01-15  Jim Meyering  <jim@meyering.net>
75338
75339         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75340         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75341         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75342         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75343
75344 2007-01-15  Bruno Haible  <bruno@clisp.org>
75345
75346         * modules/striconveh: New file.
75347         * lib/striconveh.h: New file.
75348         * lib/striconveh.c: New file.
75349         * MODULES.html.sh (Internationalization functions): Add striconveh.
75350
75351         * modules/striconveh-tests: New file.
75352         * tests/test-striconveh.c: New file.
75353
75354 2007-01-15  Bruno Haible  <bruno@clisp.org>
75355
75356         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75357         not from GNU libiconv or GNU libc.
75358
75359 2007-01-15  Bruno Haible  <bruno@clisp.org>
75360
75361         * doc/gnulib-intro.texi (Copyright): Explain the different license
75362         terms for module descriptions, autoconf macros, tests, documentation.
75363
75364 2007-01-14  Bruno Haible  <bruno@clisp.org>
75365
75366         * modules/striconv-tests: New file.
75367         * tests/test-striconv.c: New file.
75368
75369 2007-01-14  Bruno Haible  <bruno@clisp.org>
75370
75371         * modules/iconv-tests: New file.
75372         * tests/test-iconv.c: New file.
75373
75374 2007-01-14  Bruno Haible  <bruno@clisp.org>
75375
75376         * gnulib-tool (func_get_license): For test modules, use the license of
75377         the main module.
75378
75379 2007-01-14  Bruno Haible  <bruno@clisp.org>
75380
75381         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75382         if iconv is found to exist.
75383
75384 2007-01-14  Bruno Haible  <bruno@clisp.org>
75385
75386         * modules/c-ctype-tests: New file.
75387         * tests/test-c-ctype.c: New file.
75388
75389 2007-01-14  Bruno Haible  <bruno@clisp.org>
75390
75391         * modules/binary-io-tests: New file.
75392         * tests/test-binary-io.sh: New file.
75393         * tests/test-binary-io.c: New file.
75394
75395 2007-01-14  Bruno Haible  <bruno@clisp.org>
75396
75397         * modules/array-oset-tests: New file.
75398         * tests/test-array_oset.c: New file.
75399
75400 2007-01-14  Bruno Haible  <bruno@clisp.org>
75401
75402         * modules/array-list-tests: New file.
75403         * tests/test-array_list.c: New file.
75404
75405 2007-01-14  Bruno Haible  <bruno@clisp.org>
75406
75407         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75408         and make.
75409         Reported by Simon Josefsson in
75410         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75411
75412 2007-01-14  Bruno Haible  <bruno@clisp.org>
75413
75414         * modules/allocsa-tests: New file.
75415         * tests/test-allocsa.c: New file.
75416
75417 2007-01-14  Bruno Haible  <bruno@clisp.org>
75418
75419         * modules/fchdir (Depends-on): Add absolute-header.
75420         * modules/unistd (Depends-on): Likewise.
75421
75422 2006-12-30  Bruno Haible  <bruno@clisp.org>
75423
75424         * modules/fchdir: New file.
75425         * modules/unistd (Files): Add lib/unistd_.h.
75426         (Makefile.am): Generate unistd.h from unistd_.h.
75427         * lib/fchdir.c: New file.
75428         * lib/dirent_.h: New file.
75429         * lib/unistd_.h: New file.
75430         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75431         * m4/fchdir.m4: New file.
75432         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75433         (gl_HEADER_UNISTD): Invoke it.
75434         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75435         function.
75436         * lib/backupfile.c (opendir, closedir): Undefine.
75437         * lib/chown.c (open, close): Undefine.
75438         * lib/clean-temp.c (open, close): Undefine.
75439         * lib/copy-file.c (open, close): Undefine.
75440         * lib/execute.c (open, close): Undefine.
75441         * lib/fsusage.c (open, close): Undefine.
75442         * lib/gc-gnulib.c (open, close): Undefine.
75443         * lib/getcwd.c (opendir, closedir): Undefine.
75444         * lib/glob.c (opendir, closedir): Undefine.
75445         * lib/javacomp.c (open, close): Undefine.
75446         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75447         * lib/openat-proc.c (open, close): Undefine.
75448         * lib/pagealign_alloc.c (open, close): Undefine.
75449         * lib/pipe.c (open, close): Undefine.
75450         * lib/progreloc.c (open, close): Undefine.
75451         * lib/savedir.c (opendir, closedir): Undefine.
75452         * lib/utime.c (open, close): Undefine.
75453         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75454
75455 2007-01-10  Bruno Haible  <bruno@clisp.org>
75456
75457         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75458
75459 2007-01-12  Eric Blake  <ebb9@byu.net>
75460
75461         Provide a robust <wchar.h>.  Further simplifications are now
75462         possible in other modules, but not included here.
75463         * modules/wchar: New module.
75464         * m4/wchar.m4: New file.
75465         * lib/wchar_.h: Likewise.
75466         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75467         of the new module.
75468         * MODULES.html.sh (Extended multibyte and wide character utilities):
75469         New section.
75470
75471 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75472
75473         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75474         to a reasonable default for memory allocation.
75475         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75476         file system that reports garbage st_size values for symlinks.
75477         Problem reported by Liyang Hu.
75478
75479 2007-01-11  Simon Josefsson  <simon@josefsson.org>
75480
75481         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
75482         Emacs .#* auto-save files).
75483
75484 2007-01-11  Bruno Haible  <bruno@clisp.org>
75485
75486         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
75487         directory.
75488
75489 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75490
75491         Use @...@ consistently in lib/wctype_.h.
75492         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
75493         on it being set to 1 or 0.
75494         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
75495         go back to AC_SUBSTing it.
75496         * modules/wctype (Makefile.am): Undo previous change.
75497
75498 2007-01-10  Eric Blake  <ebb9@byu.net>
75499
75500         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
75501         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
75502         * modules/wctype (Makefile.am): Likewise.
75503         Reported by Chris McGuire.
75504
75505 2007-01-10  Jim Meyering  <jim@meyering.net>
75506
75507         fts.c: a small readability/maintainability improvement
75508         * lib/fts.c (fts_read): Make this code slightly more readable and
75509         maintainable by hoisting the "sp->fts_cur = p" assignments to
75510         immediately follow the statements that set P.  Derived from
75511         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
75512
75513 2007-01-10  Eric Blake  <ebb9@byu.net>
75514
75515         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
75516         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
75517         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75518         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
75519         Reported by Chris McGuire.
75520
75521 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75522
75523         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
75524         in sed script.
75525
75526 2007-01-09  Bruno Haible  <bruno@clisp.org>
75527
75528         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
75529         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
75530         variables.
75531         (func_module): Use them.
75532
75533 2007-01-09  Bruno Haible  <bruno@clisp.org>
75534
75535         * modules/unistr/base: New file.
75536         * lib/unistr.h: New file.
75537
75538         * modules/unistr/u8-to-u16: New file.
75539         * lib/unistr/u8-to-u16.c: New file.
75540
75541         * modules/unistr/u8-to-u32: New file.
75542         * lib/unistr/u8-to-u32.c: New file.
75543
75544         * modules/unistr/u16-to-u8: New file.
75545         * lib/unistr/u16-to-u8.c: New file.
75546
75547         * modules/unistr/u16-to-u32: New file.
75548         * lib/unistr/u16-to-u32.c: New file.
75549
75550         * modules/unistr/u32-to-u8: New file.
75551         * lib/unistr/u32-to-u8.c: New file.
75552
75553         * modules/unistr/u32-to-u16: New file.
75554         * lib/unistr/u32-to-u16.c: New file.
75555
75556         * modules/unistr/u8-check: New file.
75557         * modules/unistr/u16-check: New file.
75558         * modules/unistr/u32-check: New file.
75559         * lib/unistr/u8-check.c: New file.
75560         * lib/unistr/u16-check.c: New file.
75561         * lib/unistr/u32-check.c: New file.
75562
75563         * modules/unistr/u8-chr: New file.
75564         * modules/unistr/u16-chr: New file.
75565         * modules/unistr/u32-chr: New file.
75566         * lib/unistr/u8-chr.c: New file.
75567         * lib/unistr/u16-chr.c: New file.
75568         * lib/unistr/u32-chr.c: New file.
75569
75570         * modules/unistr/u8-cmp: New file.
75571         * modules/unistr/u16-cmp: New file.
75572         * modules/unistr/u32-cmp: New file.
75573         * lib/unistr/u8-cmp.c: New file.
75574         * lib/unistr/u16-cmp.c: New file.
75575         * lib/unistr/u32-cmp.c: New file.
75576
75577         * modules/unistr/u8-cpy: New file.
75578         * modules/unistr/u16-cpy: New file.
75579         * modules/unistr/u32-cpy: New file.
75580         * lib/unistr/u8-cpy.c: New file.
75581         * lib/unistr/u16-cpy.c: New file.
75582         * lib/unistr/u32-cpy.c: New file.
75583         * lib/unistr/u-cpy.h: New file.
75584
75585         * modules/unistr/u8-cpy-alloc: New file.
75586         * modules/unistr/u16-cpy-alloc: New file.
75587         * modules/unistr/u32-cpy-alloc: New file.
75588         * lib/unistr/u8-cpy-alloc.c: New file.
75589         * lib/unistr/u16-cpy-alloc.c: New file.
75590         * lib/unistr/u32-cpy-alloc.c: New file.
75591         * lib/unistr/u-cpy-alloc.h: New file.
75592
75593         * modules/unistr/u8-endswith: New file.
75594         * modules/unistr/u16-endswith: New file.
75595         * modules/unistr/u32-endswith: New file.
75596         * lib/unistr/u8-endswith.c: New file.
75597         * lib/unistr/u16-endswith.c: New file.
75598         * lib/unistr/u32-endswith.c: New file.
75599         * lib/unistr/u-endswith.h: New file.
75600
75601         * modules/unistr/u8-mblen: New file.
75602         * modules/unistr/u16-mblen: New file.
75603         * modules/unistr/u32-mblen: New file.
75604         * lib/unistr/u8-mblen.c: New file.
75605         * lib/unistr/u16-mblen.c: New file.
75606         * lib/unistr/u32-mblen.c: New file.
75607
75608         * modules/unistr/u8-mbtouc: New file.
75609         * modules/unistr/u16-mbtouc: New file.
75610         * modules/unistr/u32-mbtouc: New file.
75611         * lib/unistr/u8-mbtouc.c: New file.
75612         * lib/unistr/u16-mbtouc.c: New file.
75613         * lib/unistr/u32-mbtouc.c: New file.
75614
75615         * modules/unistr/u8-mbtouc-safe: New file.
75616         * modules/unistr/u16-mbtouc-safe: New file.
75617         * modules/unistr/u32-mbtouc-safe: New file.
75618         * lib/unistr/u8-mbtouc-safe.c: New file.
75619         * lib/unistr/u16-mbtouc-safe.c: New file.
75620         * lib/unistr/u32-mbtouc-safe.c: New file.
75621
75622         * modules/unistr/u8-move: New file.
75623         * modules/unistr/u16-move: New file.
75624         * modules/unistr/u32-move: New file.
75625         * lib/unistr/u8-move.c: New file.
75626         * lib/unistr/u16-move.c: New file.
75627         * lib/unistr/u32-move.c: New file.
75628         * lib/unistr/u-move.h: New file.
75629
75630         * modules/unistr/u8-next: New file.
75631         * modules/unistr/u16-next: New file.
75632         * modules/unistr/u32-next: New file.
75633         * lib/unistr/u8-next.c: New file.
75634         * lib/unistr/u16-next.c: New file.
75635         * lib/unistr/u32-next.c: New file.
75636
75637         * modules/unistr/u8-prev: New file.
75638         * modules/unistr/u16-prev: New file.
75639         * modules/unistr/u32-prev: New file.
75640         * lib/unistr/u8-prev.c: New file.
75641         * lib/unistr/u16-prev.c: New file.
75642         * lib/unistr/u32-prev.c: New file.
75643
75644         * modules/unistr/u8-set: New file.
75645         * modules/unistr/u16-set: New file.
75646         * modules/unistr/u32-set: New file.
75647         * lib/unistr/u8-set.c: New file.
75648         * lib/unistr/u16-set.c: New file.
75649         * lib/unistr/u32-set.c: New file.
75650         * lib/unistr/u-set.h: New file.
75651
75652         * modules/unistr/u8-startswith: New file.
75653         * modules/unistr/u16-startswith: New file.
75654         * modules/unistr/u32-startswith: New file.
75655         * lib/unistr/u8-startswith.c: New file.
75656         * lib/unistr/u16-startswith.c: New file.
75657         * lib/unistr/u32-startswith.c: New file.
75658         * lib/unistr/u-startswith.h: New file.
75659
75660         * modules/unistr/u8-stpcpy: New file.
75661         * modules/unistr/u16-stpcpy: New file.
75662         * modules/unistr/u32-stpcpy: New file.
75663         * lib/unistr/u8-stpcpy.c: New file.
75664         * lib/unistr/u16-stpcpy.c: New file.
75665         * lib/unistr/u32-stpcpy.c: New file.
75666         * lib/unistr/u-stpcpy.h: New file.
75667
75668         * modules/unistr/u8-stpncpy: New file.
75669         * modules/unistr/u16-stpncpy: New file.
75670         * modules/unistr/u32-stpncpy: New file.
75671         * lib/unistr/u8-stpncpy.c: New file.
75672         * lib/unistr/u16-stpncpy.c: New file.
75673         * lib/unistr/u32-stpncpy.c: New file.
75674         * lib/unistr/u-stpncpy.h: New file.
75675
75676         * modules/unistr/u8-strcat: New file.
75677         * modules/unistr/u16-strcat: New file.
75678         * modules/unistr/u32-strcat: New file.
75679         * lib/unistr/u8-strcat.c: New file.
75680         * lib/unistr/u16-strcat.c: New file.
75681         * lib/unistr/u32-strcat.c: New file.
75682         * lib/unistr/u-strcat.h: New file.
75683
75684         * modules/unistr/u8-strchr: New file.
75685         * modules/unistr/u16-strchr: New file.
75686         * modules/unistr/u32-strchr: New file.
75687         * lib/unistr/u8-strchr.c: New file.
75688         * lib/unistr/u16-strchr.c: New file.
75689         * lib/unistr/u32-strchr.c: New file.
75690
75691         * modules/unistr/u8-strcmp: New file.
75692         * modules/unistr/u16-strcmp: New file.
75693         * modules/unistr/u32-strcmp: New file.
75694         * lib/unistr/u8-strcmp.c: New file.
75695         * lib/unistr/u16-strcmp.c: New file.
75696         * lib/unistr/u32-strcmp.c: New file.
75697
75698         * modules/unistr/u8-strcpy: New file.
75699         * modules/unistr/u16-strcpy: New file.
75700         * modules/unistr/u32-strcpy: New file.
75701         * lib/unistr/u8-strcpy.c: New file.
75702         * lib/unistr/u16-strcpy.c: New file.
75703         * lib/unistr/u32-strcpy.c: New file.
75704         * lib/unistr/u-strcpy.h: New file.
75705
75706         * modules/unistr/u8-strcspn: New file.
75707         * modules/unistr/u16-strcspn: New file.
75708         * modules/unistr/u32-strcspn: New file.
75709         * lib/unistr/u8-strcspn.c: New file.
75710         * lib/unistr/u16-strcspn.c: New file.
75711         * lib/unistr/u32-strcspn.c: New file.
75712         * lib/unistr/u-strcspn.h: New file.
75713
75714         * modules/unistr/u8-strdup: New file.
75715         * modules/unistr/u16-strdup: New file.
75716         * modules/unistr/u32-strdup: New file.
75717         * lib/unistr/u8-strdup.c: New file.
75718         * lib/unistr/u16-strdup.c: New file.
75719         * lib/unistr/u32-strdup.c: New file.
75720         * lib/unistr/u-strdup.h: New file.
75721
75722         * modules/unistr/u8-strlen: New file.
75723         * modules/unistr/u16-strlen: New file.
75724         * modules/unistr/u32-strlen: New file.
75725         * lib/unistr/u8-strlen.c: New file.
75726         * lib/unistr/u16-strlen.c: New file.
75727         * lib/unistr/u32-strlen.c: New file.
75728         * lib/unistr/u-strlen.h: New file.
75729
75730         * modules/unistr/u8-strmblen: New file.
75731         * modules/unistr/u16-strmblen: New file.
75732         * modules/unistr/u32-strmblen: New file.
75733         * lib/unistr/u8-strmblen.c: New file.
75734         * lib/unistr/u16-strmblen.c: New file.
75735         * lib/unistr/u32-strmblen.c: New file.
75736
75737         * modules/unistr/u8-strmbtouc: New file.
75738         * modules/unistr/u16-strmbtouc: New file.
75739         * modules/unistr/u32-strmbtouc: New file.
75740         * lib/unistr/u8-strmbtouc.c: New file.
75741         * lib/unistr/u16-strmbtouc.c: New file.
75742         * lib/unistr/u32-strmbtouc.c: New file.
75743
75744         * modules/unistr/u8-strncat: New file.
75745         * modules/unistr/u16-strncat: New file.
75746         * modules/unistr/u32-strncat: New file.
75747         * lib/unistr/u8-strncat.c: New file.
75748         * lib/unistr/u16-strncat.c: New file.
75749         * lib/unistr/u32-strncat.c: New file.
75750         * lib/unistr/u-strncat.h: New file.
75751
75752         * modules/unistr/u8-strncmp: New file.
75753         * modules/unistr/u16-strncmp: New file.
75754         * modules/unistr/u32-strncmp: New file.
75755         * lib/unistr/u8-strncmp.c: New file.
75756         * lib/unistr/u16-strncmp.c: New file.
75757         * lib/unistr/u32-strncmp.c: New file.
75758
75759         * modules/unistr/u8-strncpy: New file.
75760         * modules/unistr/u16-strncpy: New file.
75761         * modules/unistr/u32-strncpy: New file.
75762         * lib/unistr/u8-strncpy.c: New file.
75763         * lib/unistr/u16-strncpy.c: New file.
75764         * lib/unistr/u32-strncpy.c: New file.
75765         * lib/unistr/u-strncpy.h: New file.
75766
75767         * modules/unistr/u8-strnlen: New file.
75768         * modules/unistr/u16-strnlen: New file.
75769         * modules/unistr/u32-strnlen: New file.
75770         * lib/unistr/u8-strnlen.c: New file.
75771         * lib/unistr/u16-strnlen.c: New file.
75772         * lib/unistr/u32-strnlen.c: New file.
75773         * lib/unistr/u-strnlen.h: New file.
75774
75775         * modules/unistr/u8-strpbrk: New file.
75776         * modules/unistr/u16-strpbrk: New file.
75777         * modules/unistr/u32-strpbrk: New file.
75778         * lib/unistr/u8-strpbrk.c: New file.
75779         * lib/unistr/u16-strpbrk.c: New file.
75780         * lib/unistr/u32-strpbrk.c: New file.
75781         * lib/unistr/u-strpbrk.h: New file.
75782
75783         * modules/unistr/u8-strrchr: New file.
75784         * modules/unistr/u16-strrchr: New file.
75785         * modules/unistr/u32-strrchr: New file.
75786         * lib/unistr/u8-strrchr.c: New file.
75787         * lib/unistr/u16-strrchr.c: New file.
75788         * lib/unistr/u32-strrchr.c: New file.
75789
75790         * modules/unistr/u8-strspn: New file.
75791         * modules/unistr/u16-strspn: New file.
75792         * modules/unistr/u32-strspn: New file.
75793         * lib/unistr/u8-strspn.c: New file.
75794         * lib/unistr/u16-strspn.c: New file.
75795         * lib/unistr/u32-strspn.c: New file.
75796         * lib/unistr/u-strspn.h: New file.
75797
75798         * modules/unistr/u8-strstr: New file.
75799         * modules/unistr/u16-strstr: New file.
75800         * modules/unistr/u32-strstr: New file.
75801         * lib/unistr/u8-strstr.c: New file.
75802         * lib/unistr/u16-strstr.c: New file.
75803         * lib/unistr/u32-strstr.c: New file.
75804         * lib/unistr/u-strstr.h: New file.
75805
75806         * modules/unistr/u8-strtok: New file.
75807         * modules/unistr/u16-strtok: New file.
75808         * modules/unistr/u32-strtok: New file.
75809         * lib/unistr/u8-strtok.c: New file.
75810         * lib/unistr/u16-strtok.c: New file.
75811         * lib/unistr/u32-strtok.c: New file.
75812         * lib/unistr/u-strtok.h: New file.
75813
75814         * modules/unistr/u8-uctomb: New file.
75815         * modules/unistr/u16-uctomb: New file.
75816         * modules/unistr/u32-uctomb: New file.
75817         * lib/unistr/u8-uctomb.c: New file.
75818         * lib/unistr/u16-uctomb.c: New file.
75819         * lib/unistr/u32-uctomb.c: New file.
75820
75821         * MODULES.html.sh (Unicode string functions): Add the new modules.
75822
75823 2007-01-08  Bruno Haible  <bruno@clisp.org>
75824
75825         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
75826         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
75827         subdirectories.
75828
75829 2007-01-08  Karl Berry  <karl@gnu.org>
75830
75831         * doc/error.texi: mention that main() fns must set program_name
75832         when progname is used.
75833
75834 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
75835
75836         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
75837         WCTYPE_H is empty, for the benefit of builds from non-distclean
75838         directories.  Problem reported by Eric Blake in
75839         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
75840
75841 2007-01-08  Bruno Haible  <bruno@clisp.org>
75842
75843         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
75844         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
75845         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
75846         PROVIDE_CANONICALIZE_FILENAME_MODE.
75847         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
75848
75849 2007-01-08  Bruno Haible  <bruno@clisp.org>
75850
75851         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
75852         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
75853         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
75854         * lib/fts.c: Likewise.
75855         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
75856
75857 2006-12-25  Bruno Haible  <bruno@clisp.org>
75858
75859         * modules/utf8-ucs4-safe: New file.
75860         * lib/utf8-ucs4-safe.h: New file.
75861         * lib/unistr/utf8-ucs4-safe.c: New file.
75862
75863         * modules/utf16-ucs4-safe: New file.
75864         * lib/utf16-ucs4-safe.h: New file.
75865         * lib/unistr/utf16-ucs4-safe.c: New file.
75866
75867         * MODULES.html.sh (Unicode string functions): Add the new modules.
75868
75869 2007-01-08  Bruno Haible  <bruno@clisp.org>
75870
75871         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
75872         (Depends-on): Add unitypes.
75873         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75874         (u8_mbtouc_aux): Move out to separate file.
75875         (u8_mbtouc): Use ucs4_t, uint8_t types.
75876         * lib/unistr/utf8-ucs4.c: New file.
75877
75878         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
75879         (Depends-on): Add unitypes.
75880         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75881         (u16_mbtouc_aux): Move out to separate file.
75882         (u16_mbtouc): Use ucs4_t, uint16_t types.
75883         * lib/unistr/utf16-ucs4.c: New file.
75884
75885         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
75886         (Depends-on): Add unitypes.
75887         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
75888         (u8_uctomb_aux): Move out to separate file.
75889         (u8_uctomb): Use ucs4_t, uint8_t types.
75890         * lib/unistr/ucs4-utf8.c: New file.
75891
75892         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
75893         (Depends-on): Add unitypes.
75894         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
75895         (u16_uctomb_aux): Move out to separate file.
75896         (u16_uctomb): Use ucs4_t, uint16_t types.
75897         * lib/unistr/ucs4-utf16.c: New file.
75898
75899 2006-12-25  Bruno Haible  <bruno@clisp.org>
75900
75901         * modules/unitypes: New file.
75902         * lib/unitypes.h: New file.
75903         * MODULES.html.sh (func_all_modules): New section "Unicode string
75904         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
75905         this section. Add unitypes.
75906
75907 2007-01-08  Bruno Haible  <bruno@clisp.org>
75908
75909         Avoid variable names that conflict with those from libtool.
75910         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
75911         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
75912         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
75913         library_names_spec to acl_library_names_spec, hardcode_* to
75914         acl_hardcode_*.
75915         Reported by Ralf Wildenhues.
75916
75917 2007-01-08  Bruno Haible  <bruno@clisp.org>
75918
75919         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
75920         definition.
75921         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
75922         definition.
75923         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
75924         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
75925         definition.
75926         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
75927         definition.
75928         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
75929         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
75930         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
75931         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
75932         definition.
75933         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
75934         definition.
75935         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
75936         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
75937         GC_USE_<algorithm>.
75938         * lib/gc-libgcrypt.c: Likewise.
75939         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
75940         * modules/gc-arctwo (configure.ac): Likewise.
75941         * modules/gc-des (configure.ac): Likewise.
75942         * modules/gc-hmac-md5 (configure.ac): Likewise.
75943         * modules/gc-hmac-sha1 (configure.ac): Likewise.
75944         * modules/gc-md2 (configure.ac): Likewise.
75945         * modules/gc-md4 (configure.ac): Likewise.
75946         * modules/gc-md5 (configure.ac): Likewise.
75947         * modules/gc-random (configure.ac): Likewise.
75948         * modules/gc-rijndael (configure.ac): Likewise.
75949         * modules/gc-sha1 (configure.ac): Likewise.
75950
75951 2007-01-08  Bruno Haible  <bruno@clisp.org>
75952
75953         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
75954         macro definition.
75955         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
75956         definition.
75957         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
75958         definition.
75959         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
75960         * modules/fcntl-safer (configure.ac): Likewise.
75961         * modules/fopen-safer (configure.ac): Likewise.
75962         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
75963         GNULIB_FWRITEERROR macro definition.
75964
75965 2007-01-08  Bruno Haible  <bruno@clisp.org>
75966
75967         * m4/gnulib-common.m4: New file.
75968         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
75969         (func_get_filelist): Add m4/gnulib-common.m4.
75970
75971 2007-01-08  Bruno Haible  <bruno@clisp.org>
75972
75973         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
75974         command.
75975
75976 2007-01-08  Jim Meyering  <jim@meyering.net>
75977
75978         Use a more robust test for a "can't happen" condition.
75979         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
75980         narrowed the st_size value.  Presuming the "can't happen" condition
75981         is true, that narrowing could conceivably convert an invalid st_size
75982         value into a valid one.  Instead, use a change based on Matthew
75983         Woehlke's original patch.
75984
75985         Slight readability improvement: use an assert-like macro
75986         in place of literal "abort ()" uses.
75987         * lib/fts.c (fts_assert): Define.
75988         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
75989         Use this macro instead of a bare 'abort'.
75990
75991 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
75992
75993         Don't worry about using IRIX 5.3's wctype.h broken definitions;
75994         simply work around them.
75995         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
75996         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
75997         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
75998         declaring.
75999         Don't bother to define as macros, since the standard doesn't require it.
76000         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
76001         longer worry about IRIX 5.3.
76002         (HAVE_WCTYPE_CTMP_BUG): Remove.
76003
76004 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76005
76006         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
76007         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
76008         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76009         Problems reported by Georg Schwarz for IRIX 5.3.
76010
76011         * gnulib-tool (autoconf_minversion): Take the maximum version number
76012         found, not the minimum.  Problem reported by James Youngman.
76013
76014 2007-01-03  Karl Berry  <karl@gnu.org>
76015
76016         * doc/error.texi: new file, explaining interaction with progname.
76017         * doc/gnulib.texi: include it.  Update copyright.
76018
76019 2007-01-03  Simon Josefsson  <simon@josefsson.org>
76020
76021         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
76022         AC_CANONICAL_HOST, to improve autobuild outputs.
76023
76024 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
76025             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
76026
76027         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
76028         sockets, server sockets, and other file descriptors.  Count errors
76029         to compute the return value.  Reorder the code a bit to be easier
76030         to follow.  Don't set event bits that were not requested (except
76031         POLLERR and POLLHUP).
76032
76033 2007-01-01  Bruno Haible  <bruno@clisp.org>
76034
76035         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
76036
76037 2007-01-03  Jim Meyering  <jim@meyering.net>
76038
76039         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
76040
76041 2007-01-02  Bruno Haible  <bruno@clisp.org>
76042
76043         * modules/settime (Include): Require timespec.h.
76044         * modules/nanosleep (Include): Likewise.
76045
76046 2007-01-01  Bruno Haible  <bruno@clisp.org>
76047
76048         * gnulib-tool (func_emit_copyright_notice): Bump year.
76049         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
76050
76051 2007-01-01  Bruno Haible  <bruno@clisp.org>
76052
76053         Improve support for OpenBSD.
76054         * build-aux/config.rpath (libname_spec): Export.
76055         (library_names_spec): New variable. Export.
76056         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
76057         library_names_spec from the config.rpath output. Locate shared library
76058         through the name pattern in library_names_spec.
76059
76060 2007-01-01  Eric Blake  <ebb9@byu.net>
76061
76062         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
76063
76064 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
76065
76066         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
76067         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
76068         assume the C locale, and avoid an "eval" that could cause trouble.
76069         Problem with SORT reported by Bob Proulx.
76070
76071         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
76072         Define.  Trivial patch from Henning Nielsen Lund, originally
76073         sent to bug-grep@gnu.org today.
76074
76075 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
76076
76077         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
76078         struct stat.  Problem reported by Henning Nielsen Lund.
76079         * lib/acl.c: Include acl.h first, to check interface.  Don't
76080         bother to include sys/types.h and sys/stat.h again.
76081
76082 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76083
76084         Import the following change from libc; problem reported by
76085         Sven Verdoolaege.
76086
76087         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
76088
76089         [BZ #1373]
76090         * lib/argp.h: Remove __NTH for __argp_usage inline function.
76091
76092 2006-12-28  Jim Meyering  <jim@meyering.net>
76093
76094         * build-aux/announce-gen: Do not assume that the package
76095         builds any of tar.gz, tar.bz2, and .xdelta files.
76096         Suggestion from Simon Josefsson.
76097
76098 2006-12-28  Simon Josefsson  <simon@josefsson.org>
76099
76100         * modules/announce-gen: New file.
76101
76102 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
76103
76104         * lib/mbchar.h: Just include <wctype.h>; the wctype module
76105         handles its gotchas now.
76106         * lib/mbswidth.c: Likewise.
76107         * lib/wcwidth.h: Likewise.
76108         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
76109         and iswcntrl; the wctype module does this stuff now.
76110         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76111         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76112         * modules/mbchar (Depends-on): Add wctype.
76113         * modules/mbswidth (Depends-on): Likewise.
76114         * modules/wcwidth (Depends-on): Likewise.
76115
76116 2006-12-27  Eric Blake  <ebb9@byu.net>
76117
76118         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
76119         module uses more than what <wctype.h> is required to provide.
76120
76121 2006-12-26  Eric Blake  <ebb9@byu.net>
76122
76123         * gnulib-tool (sed_extract_prog): Avoid space-tab.
76124
76125 2006-12-26  Eric Blake  <ebb9@byu.net>
76126
76127         * modules/absolute-header: New module.
76128         * modules/fcntl (Depends-on): Depend on it.
76129         * modules/inttypes (Depends-on): Likewise.
76130         * modules/stdint (Depends-on): Likewise.
76131         * modules/sys_stat (Depends-on): Likewise.
76132         * modules/wctype (Depends-on): Likewise.
76133         * MODULES.html.sh (Support for building libraries and
76134         executables): Document it.
76135
76136 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76137
76138         * gnulib-tool (SED): Remove, undoing previous change.
76139         The problem was that it broke coreutils on Solaris, because
76140         "sed --posix" leaked into a makefile.
76141         (sed): New alias, if 'alias' and GNU sed.
76142
76143 2006-12-24  Jim Meyering  <jim@meyering.net>
76144
76145         Work around an fchownat bug in glibc-2.4:
76146         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
76147         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
76148         in spite of the -P option.
76149         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
76150         New macros.
76151         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
76152         * modules/openat (Files): Add lib/fchownat.c.
76153         * lib/openat.c (fchownat): Don't define here.  Move to...
76154         * lib/fchownat.c: ...this new file.
76155
76156 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76157
76158         Fix bug reported by Bruno Haible in
76159         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
76160         where quotearg.c didn't compile on Mac OS X 10.2 because it
76161         lacks <wchar.h> and wint_t.
76162         * lib/wctype_.h (__wctype_wint_t): New type.
76163         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
76164         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
76165         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
76166         Arg is now of type __wctype_wint_t, not wint_t.
76167         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
76168         substitute HAVE_WINT_T.
76169         * modules/wctype (Files): Add m4/wint_t.m4.
76170         (wctype.h): Substitute HAVE_WINT_T.
76171
76172 2006-12-23  Bruno Haible  <bruno@clisp.org>
76173
76174         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
76175
76176 2006-12-23  Bruno Haible  <bruno@clisp.org>
76177
76178         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
76179         S_ISLNK.
76180         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
76181         mingw.
76182
76183 2006-12-22  Bruno Haible  <bruno@clisp.org>
76184
76185         * lib/copy-file.c: Include acl.h.
76186         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
76187         Close the file descriptors only after being done with copy_acl.
76188         * modules/copy-file (Depends-on): Add acl.
76189
76190 2006-12-22  Bruno Haible  <bruno@clisp.org>
76191
76192         * gnulib-tool (SED): New variable.
76193         Use $SED instead of sed everywhere.
76194
76195 2006-12-22  Bruno Haible  <bruno@clisp.org>
76196
76197         * modules/no-c++: New file.
76198         * m4/no-c++.m4: New file.
76199         * MODULES.html.sh (Support for building libraries and executables):
76200         Add no-c++.
76201
76202 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
76203
76204         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76205         Include <limits.h>, and use its INT_MAX to rewrite the
76206         j loop so that it does not overflow 'int'.  Problem reported by
76207         Ralf Wildenhues in
76208         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
76209         Play it safe by shifting left by 1 rather than multiplying by 2,
76210         as GCC is less likely to optimize this away when the value
76211         is signed (when it assumes overflow leads to undefined behavior).
76212         Also, don't assume time_t uses two's complement.
76213
76214 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
76215
76216         * MODULES.html.sh: New module wctype.
76217         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
76218         * lib/fnmatch.c: Don't bother to include <wchar.h> before
76219         <wctype.h>, since the new wctype module should fix this.
76220         * lib/quotearg.c: Include <wctype.h> unconditionally, since
76221         the wctype module should arrange for it.
76222         * lib/regex_internal.h: Likewise.
76223         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
76224         since the wctype module should handle this now.
76225         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
76226         * modules/fnmatch (Depends-on): Add wctype.
76227         * modules/quotearg (Depends-on): Likewise.
76228         * modules/regex (Depends-on): Likewise.
76229
76230 2006-12-19  Bruno Haible  <bruno@clisp.org>
76231
76232         * lib/strdup.h [C++]: Wrap definitions in extern "C".
76233         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
76234
76235 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76236
76237         * modules/savewd (Depends-on): Fix dependency on fcntl.
76238
76239 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76240
76241         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
76242         conforms to C99, rather than relying on the user's environment
76243         setting of STDINT_H.
76244
76245 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76246         and Eric Blake  <ebb9@byu.net>
76247
76248         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
76249         This is more consistent with the other defines here.
76250         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
76251         Port to z/OS.  Problem reported by Paul Gilmartin.
76252         Change local vars to use gl_ prefix rather than ac_.
76253         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
76254         with other defines.
76255         * modules/double-slash-root: New module.
76256         * modules/dirname (Files): Remove m4/double-slash-root.m4.
76257         (Depends-on): Add double-slash-root.
76258         * MODULES.html.sh (File system functions): Mention new module.
76259
76260 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
76261
76262         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
76263         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
76264         This is for the benefit of gzip, which doesn't do i18n.
76265
76266 2006-12-12  Jim Meyering  <jim@meyering.net>
76267
76268         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
76269         Reported by Andreas Schwab <schwab@suse.de>.
76270
76271 2006-12-12  Bruno Haible  <bruno@clisp.org>
76272
76273         Merge these changes.
76274         2006-09-05  Bruno Haible  <bruno@clisp.org>
76275         * lib/iconvme.c (iconv_string): No need to save and restore errno when
76276         iconv_alloc succeeded.
76277         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
76278         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
76279         test for " && dest " at the end - dest is always != NULL there. Call
76280         iconv with 4xNULL arguments initially, to reset the state. Call iconv
76281         with 2xNULL arguments, also to flush the state storage. Handle the
76282         IRIX iconv behaviour. Realloc the final result, to throw away unused
76283         memory.
76284
76285 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
76286
76287         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
76288         and fchmodat unconditionally, since glibc 2.4 has them.
76289         Problem reported by Arkadiusz Miskiewicz.
76290
76291 2006-12-10  Bruno Haible  <bruno@clisp.org>
76292
76293         * gnulib-tool (func_import): Show the include files only for those
76294         modules that are copied and specified.
76295         Reported by Karl Berry.
76296
76297 2006-12-08  Jim Meyering  <jim@meyering.net>
76298
76299         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
76300         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
76301
76302         * build-aux/announce-gen: Add two new options, both optional:
76303         --bootstrap-tools=TOOL_LIST
76304               a comma-separated list of tools, e.g.,
76305               autoconf,automake,bison,gnulib
76306         --gnulib-snapshot-date=DATE
76307               if gnulib is in the bootstrap tool list,
76308               then report this as the snapshot date.
76309               If not specified, use the current date/time.
76310               If you specify a date here, be sure it's UTC.
76311
76312 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76313
76314         * tests/test-argp-2.sh: Fix test to match actual output.
76315         (func_compare): Fix sed script to be portable.
76316
76317 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
76318
76319         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
76320         workaround for this case.  It is not autoconfigured now; offhand
76321         it's hard to see how to autoconfigure it.
76322
76323 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76324
76325         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76326         a directory that is about to be chowned.  Such a directory's
76327         initial file permissions should permit the owner only and this
76328         should not be changed until after the chown, since the group and
76329         other bits would be incorrect if they granted permission before
76330         the chown.
76331
76332         Fix porting problem for iswctype reported by Georg Schwarz in:
76333         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76334         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76335         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76336         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76337         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76338
76339 2006-12-03  Jim Meyering  <jim@meyering.net>
76340
76341         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76342         p->fts_statp may not yet be defined.
76343         (fts_read): Instead, set it in the caller, once p->fts_statp is
76344         sure to be defined, and corresponds to a top-level directory.
76345         This bug made du -x fail.  Here's the coreutils test case:
76346         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76347         Reported by Mike Frysinger.
76348
76349 2006-12-01  Jim Meyering  <jim@meyering.net>
76350
76351         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76352         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76353         Reported by Simon Josefsson.
76354
76355 2006-11-30  Jim Meyering  <jim@meyering.net>
76356
76357         * m4/warning.m4: Use the all-permissive copyright notice
76358         recommended by RMS (rather than LGPL).
76359         * m4/vararrays.m4: Likewise.
76360         * m4/flexmember.m4: Likewise.
76361
76362 2006-11-29  Bruno Haible  <bruno@clisp.org>
76363
76364         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76365         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76366         using +=.
76367         Reported by Simon Josefsson <simon@josefsson.org>.
76368
76369 2006-11-28  James Youngman <jay@gnu.org>
76370
76371         * README: Advise users that they might find the bug-gnulib@gnu.org
76372         and autotools-announce@gnu.org mailing lists useful.
76373
76374 2006-11-28  Bruno Haible  <bruno@clisp.org>
76375
76376         * m4/ptrdiff_max.m4: Remove file.
76377
76378 2006-11-21  Bruno Haible  <bruno@clisp.org>
76379
76380         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76381         _AC_COMPUTE_INT.
76382         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76383         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76384         _AC_COMPUTE_INT.
76385         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76386         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
76387         _AC_COMPUTE_INT.
76388         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76389
76390 2006-11-28  Jim Meyering  <jim@meyering.net>
76391
76392         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
76393         warning from "gcc -Wshadow" about shadowing the builtin.
76394
76395 2006-11-27  Bruno Haible  <bruno@clisp.org>
76396
76397         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76398         _AC_COMPUTE_INT.
76399         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76400
76401 2006-11-27  Bruno Haible  <bruno@clisp.org>
76402             Paul Eggert  <eggert@cs.ucla.edu>
76403
76404         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76405
76406 2006-11-26  Bruno Haible  <bruno@clisp.org>
76407
76408         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76409         noinst_LTLIBRARIES.
76410
76411 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76412             Bruno Haible  <bruno@clisp.org>
76413
76414         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76415         if compiling with "gcc -ansi".
76416
76417 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76418
76419         Fix some incompatibilities with gcc -ansi -pedantic.
76420         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76421         if compiling pedantically with GCC, unless it's C99 or later.
76422         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76423         it mishandles gcc -ansi -pedantic as well.
76424         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76425         if gcc -pedantic.
76426         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76427         initializers for struct if -pedantic, unless it's C99 or later.
76428
76429 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76430
76431         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76432         Don't close an fd more than once. Identical atimes indicate
76433         success, not failure.
76434
76435 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76436
76437         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76438
76439 2006-11-23  Jim Meyering  <jim@meyering.net>
76440
76441         * build-aux/announce-gen: New file.  From coreutils.
76442
76443 2006-11-22  Jim Meyering  <jim@meyering.net>
76444
76445         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76446         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76447         (fts_read): Use a temporary to narrow the overused st_size member
76448         before using it in a switch statement.  Reported by Matthew Woehlke.
76449
76450         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76451         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76452
76453 2006-11-20  Bruno Haible  <bruno@clisp.org>
76454
76455         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76456         changequote instead of pairs of brackets.
76457         Reported by Andreas Schwab <schwab@suse.de>.
76458
76459 2006-11-21  Jim Meyering  <jim@meyering.net>
76460
76461         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76462         so as to remain compatible with older compilers.
76463         Patch from Michael Deutschmann.
76464
76465 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76466
76467         * MODULES.html.sh (File system functions): Add openat.
76468
76469         * lib/openat.h (rpl_fstatat): New macro, if
76470         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76471         (fstatat): Define to rpl_fstatat under the same conditions,
76472         unless COMPILING_FSTATAT.
76473         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76474         seems to have the bug.
76475         * lib/fstatat.c: New file.
76476         * modules/openat (Files): Add it.
76477
76478 2006-11-20  Bruno Haible  <bruno@clisp.org>
76479
76480         * Makefile: New file.
76481
76482 2006-11-20  Jim Meyering  <jim@meyering.net>
76483
76484         The beginnings of syntax-related checks for gnulib.
76485         * lib/Makefile: New file.
76486         * lib/t-idcache: New script.  Ensure that the two halves of
76487         idcache.c stay in sync.
76488
76489         * lib/idcache.c: Adjust comments in user- and group- portions to
76490         be more accurate, and to be consistent with one another.
76491
76492 2006-11-20  Jim Meyering  <jim@meyering.net>
76493
76494         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
76495         continue using the flexible array member (thus, this module performs
76496         half as many malloc calls), with the addition that...
76497         (getgroup, getuser): Consistently record a non-match via an empty
76498         "name" string, and map an empty string match to a NULL return value.
76499         * modules/idcache (Depends-on): Re-add flexmember.
76500
76501         * lib/idcache.c (getuser): Remove all uses of the register keyword.
76502         (getuidbyname, getgroup, getgidbyname): Likewise.
76503
76504         Use cleaner syntax: NULL rather than 0.
76505         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
76506
76507 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76508
76509         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
76510         It mishandled the case where the group was missing.
76511         Problem reported by Greg Schafer.
76512         * modules/idcache: Likewise.
76513
76514 2006-11-18  Jim Meyering  <jim@meyering.net>
76515
76516         * check-module (%exempt_header): Add exception for some
76517         conditionally-included headers.
76518
76519         * modules/i-ring (Depends-on): Add verify.
76520         (License): Change to LGPL.
76521
76522 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76523
76524         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
76525         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
76526         and inttostr.h.  Use snprintf rather than uinttostr, so that
76527         LGPLed code doesn't depend on GPLed.
76528
76529 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76530
76531         * modules/inline (License): Change from GPL to LGPL.
76532
76533 2006-11-17  Jim Meyering  <jim@meyering.net>
76534
76535         * modules/d-type (License): Switch to LGPL.
76536
76537 2006-11-15  Bruno Haible  <bruno@clisp.org>
76538
76539         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
76540
76541 2006-11-15  Eric Blake  <ebb9@byu.net>
76542
76543         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
76544         the module dependency.
76545
76546 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76547             Bruno Haible  <bruno@clisp.org>
76548
76549         * gnulib-tool (func_create_testdir): Add license consistency check.
76550
76551 2006-11-15  Eric Blake  <ebb9@byu.net>
76552
76553         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
76554         random "(cached)" in configure output.
76555
76556 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76557
76558         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
76559         test for conforming inttypes.h is both announced and cached.
76560
76561         * MODULES.html.sh (seen_modules, seen_files): New variables.
76562         (func_module): Rewrite to use a few less gnulib-tool and sed
76563         invocations.  Avoid a couple of quadratic algorithms for ...
76564         (missed_modules, missed_files): ... these, with ...
76565         (func_append, func_tmpdir): ... these new functions, from
76566         gnulib-tool.  Analogously, install traps for cleanup.
76567
76568         * tests/test-gc.c (main): Remove unused variables.
76569         * tests/test-read-file.c: Include stdlib.h, for 'free'.
76570
76571 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
76572
76573         * modules/inttostr (License): Change to LGPL.
76574
76575 2006-11-14  Eric Blake  <ebb9@byu.net>
76576
76577         * modules/tempname (License): Change to LGPL.
76578
76579 2006-11-14  Eric Blake  <ebb9@byu.net>
76580
76581         * doc/functions.texi (Function Portability): *printf functions on
76582         Cygwin now understand all POSIX size specifiers.
76583
76584 2006-11-14  Bruno Haible  <bruno@clisp.org>
76585
76586         * modules/c-ctype (License): Change to LGPL.
76587
76588 2006-11-12  Bruno Haible  <bruno@clisp.org>
76589
76590         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
76591         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
76592         for GNOME libraries, for which the include files are installed in
76593         subdirectories of $prefix/include.
76594
76595 2006-11-12  Bruno Haible  <bruno@clisp.org>
76596
76597         * m4/lib-link.m4: Require at least autoconf-2.54.
76598         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
76599         name to underscores for the --with option.
76600
76601 2006-11-13  Bruno Haible  <bruno@clisp.org>
76602
76603         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
76604         the tests directory.
76605         Reported by Ralf Wildenhues.
76606
76607 2006-11-13  Bruno Haible  <bruno@clisp.org>
76608
76609         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
76610         (func_emit_initmacro_end): Undo the override here.
76611         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
76612         Works around the famous automake error in coreutils.
76613
76614 2006-11-13  Eric Blake  <ebb9@byu.net>
76615
76616         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
76617         element, not its node.
76618
76619 2006-11-12  Bruno Haible  <bruno@clisp.org>
76620
76621         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
76622         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
76623
76624 2006-11-12  Bruno Haible  <bruno@clisp.org>
76625
76626         * gnulib-tool: New option --local-symlink.
76627         (func_usage): Document it.
76628         (lsymbolic): New variable.
76629         (func_import, func_create_testdir): If --symlink was not specified,
76630         test whether --local-symlink was specified and the file comes from
76631         the local_gnulib_dir.
76632
76633 2006-11-12  Bruno Haible  <bruno@clisp.org>
76634
76635         * gnulib-tool (func_ln): New function.
76636         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
76637
76638 2006-11-12  Bruno Haible  <bruno@clisp.org>
76639
76640         Finish support for source files in subdirectories.
76641         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
76642         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
76643         AUTOMAKE_OPTIONS.
76644         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
76645
76646 2006-11-12  Bruno Haible  <bruno@clisp.org>
76647
76648         * gnulib-tool (func_get_automake_snippet): Synthesize also an
76649         EXTRA_lib_SOURCES augmentation.
76650         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
76651
76652 2006-11-12  Jim Meyering  <jim@meyering.net>
76653
76654         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
76655         file descriptors.  This also averts a failure on systems with
76656         native openat support when a traversed directory lacks "x" access.
76657         * lib/fts_.h: Include "i-ring.h"
76658         (struct FTS) [fts_fd_ring]: New member.
76659         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
76660         (FCHDIR): Add parentheses.
76661         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
76662         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
76663         When descending, rather than simply closing the previous
76664         fts_cwd_fd value, push that file descriptor onto the ring.
76665         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
76666         (fts_open): Initialize the new fd_ring member.
76667         (fts_close): Clear the ring.
76668         (fts_safe_changedir): When possible, use our new fd_ring to skip
76669         the diropen and fstat and dev/ino comparison that would normally
76670         accompany a virtual `chdir ("..")'.
76671
76672         * modules/fts (Depends-on): Add i-ring.
76673         * modules/i-ring: New module.
76674         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
76675         * m4/i-ring.m4: New file.
76676
76677 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76678
76679         * gnulib-tool (func_create_testdir): Fix replacement of
76680         `build-aux' in configure.ac.  Run autotools in gltests
76681         subdirectory.
76682         (func_create_testdir, func_create_megatestdir, test): There is
76683         no need for '--force' in most autotool invocations in a new
76684         tree.  Actually fail the whole test if any of the tools, or the
76685         configure or make stages fail.
76686
76687         Sync from Automake.
76688         * build-aux/gnupload: Revert last change.  Add pointer to upload
76689         instructions of the GNU Maintenance Instructions.
76690         Suggestion by Karl Berry.
76691
76692 2006-11-10  Jim Meyering  <jim@meyering.net>
76693
76694         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
76695
76696 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76697
76698         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
76699         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
76700         (bind_textdomain_codeset) [! ENABLE_NLS]:
76701         Evaluate all the arguments.  That way, callers get compatible behavior
76702         if the arguments have side effects.  Also, it avoids some GCC
76703         diagnostics in some cases; Joel E. Denny reported problems when Bison
76704         was configured with --enable-gcc-warnigs.
76705
76706 2006-11-10  Jim Meyering  <jim@meyering.net>
76707
76708         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
76709         relevant options in CFLAGS (like -O, -fno-inline) are taken into
76710         account.
76711
76712 2006-11-10  Jim Meyering  <jim@meyering.net>
76713
76714         * modules/inline: New file/module.
76715         * modules/xalloc (Files): Remove m4/inline.m4.
76716         (Depends-on): Add inline, instead.
76717         * modules/oset: Likewise.
76718         * modules/list: Likewise.
76719
76720 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76721
76722         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
76723         Problem reported by Matthew Woehlke.
76724
76725 2006-11-09  Bruno Haible  <bruno@clisp.org>
76726
76727         * lib/tempname.c (gen_tempname): Remove variant that invokes
76728         __gen_tempname.
76729         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
76730         __gen_tempname.
76731
76732 2006-11-08  Bruno Haible  <bruno@clisp.org>
76733
76734         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
76735         to 'yes' instead of 'cross-compiling'.
76736
76737 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
76738
76739         * lib/quotearg.h (quotearg_free): New decl.
76740         * lib/quotearg.c (quotearg_free): New function.
76741         (slot0, nslots, slotvec0, slotvec):
76742         Now file-scope so that quotearg_free can get at them.
76743
76744 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76745
76746         Sync from Automake.
76747         * build-aux/gnupload: Add missing 'gnu' to example URL.
76748         Report by Karl Berry.
76749
76750 2006-11-08  Bruno Haible  <bruno@clisp.org>
76751
76752         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
76753         Suggested by Paul Eggert.
76754
76755 2006-11-08  Jim Meyering  <jim@meyering.net>
76756
76757         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
76758         It's already included if !_LIBC.
76759         (fts_safe_changedir): Add a comment.
76760
76761 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76762
76763         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
76764         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
76765         Matthew Woehlke.
76766
76767         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
76768         definitions up, to avoid colliding with change below.
76769         (static_inline) [HAVE_INLINE]: New macro.
76770         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
76771         Provide extern decls when !HAVE_INLINE.  Do not define unless
76772         static_inline is defined, either by us or by xmalloc.c.  Use
76773         static_inline rather than static inline.
76774         (XCALLOC): Optimize sizeof(T) = 1 case.
76775         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
76776
76777 2006-11-07  Bruno Haible  <bruno@clisp.org>
76778
76779         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
76780         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
76781         AC_C_INLINE.
76782         * modules/xalloc (Files): Add m4/inline.m4.
76783
76784 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76785
76786         * README: Fix typo.
76787         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
76788         (Miscellanous Notes): ...from this.
76789
76790 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76791
76792         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
76793         Mention that offsetof should be used instead of sizeof.
76794         From Bruno Haible.
76795
76796 2006-11-07  Bruno Haible  <bruno@clisp.org>
76797
76798         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
76799
76800 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76801
76802         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76803         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
76804         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76805         (gl_tree_add_before, gl_tree_add_after):
76806         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
76807         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
76808         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
76809         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
76810         (gl_linked_add_after, gl_linked_add_at): Likewise.
76811         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
76812         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76813         (gl_tree_add_before, gl_tree_add_after): Likewise.
76814         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
76815         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
76816         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76817
76818 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76819
76820         * lib/gl_oset.h: Use C comment style, not C++ comment style.
76821
76822 2006-11-06  Bruno Haible  <bruno@clisp.org>
76823
76824         * m4/inline.m4: New file.
76825         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
76826         * modules/list (Files): Add m4/inline.m4.
76827         * modules/oset (Files): Likewise.
76828
76829 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76830
76831         * lib/idcache.c: Include <stddef.h>, for offsetof.
76832         (struct userid.name): Change from char * to a flexible array member.
76833         All uses changed.
76834         * modules/idcache (Depends-on): Add flexmember.
76835
76836         * MODULES.html.sh (Core language properties): New module flexmember.
76837         * modules/flexmember, m4/flexmember.m4: New files.
76838
76839         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
76840         inline functions that are identical with the old xnmalloc_inline,
76841         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
76842         that we can avoid some unnecessary integer multiplications and
76843         divisions in the common case where the element size is known at
76844         compile time.
76845         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
76846         needed.
76847         (xnboundedmalloc): Remove.
76848         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
76849         arguments, for consistency with rest of this header.
76850         (xcharalloc): Rewrite using XNMALLOC.
76851         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
76852         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
76853         versions have been moved to lib/xalloc.h and renamed to be the
76854         non-*_inline versions.
76855         (xmalloc, xrealloc): Implement without reference to the xnmalloc
76856         and xnrealloc functions, since those functions are now inline and
76857         now call us.
76858         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
76859         renaming described above.
76860         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
76861         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
76862         captures the dependency in AC_C_INLINE.
76863
76864         New module canonicalize-lgpl, proposed by Charles Wilson in
76865         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
76866         with a few small changes afterwards.
76867         * MODULES.html.sh (File system functions): New module
76868         canonicalize-lgpl.
76869         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
76870         and canonicalize_file_name.
76871         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
76872         * modules/canonicalize-lgpl: New files.
76873
76874 2006-11-05  Bruno Haible  <bruno@clisp.org>
76875
76876         * gnulib-tool (func_import, func_create_testdir): Create directories
76877         also for files in subdirectories of lib/.
76878
76879 2006-11-05  Bruno Haible  <bruno@clisp.org>
76880
76881         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
76882         ANSI C compliant.
76883
76884 2006-11-03  Bruno Haible  <bruno@clisp.org>
76885
76886         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76887         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
76888         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
76889         (xnboundedmalloc): New inline function.
76890         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
76891         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
76892         xmalloc.
76893         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
76894         xmalloc.
76895         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
76896         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
76897         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
76898         xmalloc.
76899         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76900         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
76901         xmalloc.
76902         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
76903         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76904         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
76905         xmalloc.
76906         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76907         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
76908         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76909         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
76910         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
76911         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
76912         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
76913
76914 2006-11-03  Bruno Haible  <bruno@clisp.org>
76915
76916         * lib/c-ctype.h [C++]: Define functions without name mangling.
76917         * lib/fwriteerror.h [C++]: Likewise.
76918         * lib/gcd.h [C++]: Likewise.
76919         * lib/linebreak.h [C++]: Likewise.
76920
76921 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76922
76923         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
76924         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
76925         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
76926         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76927         Check for functions and headers just once.
76928         Check for declaration of canonicalize_file_name.
76929         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
76930
76931 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76932
76933         * gnulib-tool (func_import): Fix typo in actioncmd.
76934
76935 2006-11-02  Bruno Haible  <bruno@clisp.org>
76936
76937         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
76938         newline sequence in the Makefile.am snippet as a space, like "make"
76939         does.
76940         Reported by Roger Persson <perrog@gmail.com>.
76941
76942 2006-11-01  Bruno Haible  <bruno@clisp.org>
76943
76944         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
76945         already declared in <string.h>.
76946         * lib/strcase.h (strncasecmp): Don't declare it if yes.
76947
76948 2006-11-01  Bruno Haible  <bruno@clisp.org>
76949
76950         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
76951         * lib/strcase.h: Include <string.h>.
76952         (strcasecmp): Define to rpl_strcasecmp here.
76953
76954 2006-11-01  Bruno Haible  <bruno@clisp.org>
76955
76956         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
76957
76958 2006-11-01  Eric Blake  <ebb9@byu.net>
76959
76960         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
76961
76962         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
76963
76964 2006-10-29  Bruno Haible  <bruno@clisp.org>
76965
76966         Make it compile in C++ mode.
76967         * lib/full-write.c (full_rw): Add a cast.
76968
76969 2006-11-01  Bruno Haible  <bruno@clisp.org>
76970
76971         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
76972         be POSIX compliant.
76973         Reported by Roger Persson <perrog@gmail.com>.
76974
76975 2006-11-01  Eric Blake  <ebb9@byu.net>
76976
76977         * lib/getopt_.h: Fix comments.
76978
76979 2006-10-31  Eric Blake  <ebb9@byu.net>
76980
76981         * modules/tmpdir (Depends-on): Add sys_stat.
76982         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
76983         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
76984         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
76985         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
76986         tempname.
76987
76988 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
76989
76990         Avoid some C++ diagnostics reported by Bruno Haible.
76991         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
76992         xmalloc.
76993         (quotearg_alloc): Use xcharalloc rather than xmalloc.
76994         (struct slotvec): Move to top level.
76995         (quotearg_n_options): Rewrite to avoid xmalloc.
76996         * lib/xalloc.h (xcharalloc): New function.
76997         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
76998         [defined __cplusplus]: Add function template that provides result
76999         type propagation.  This part of the change is from Bruno Haible.
77000
77001 2006-10-29  Bruno Haible  <bruno@clisp.org>
77002
77003         Make it compile in C++ mode.
77004         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
77005         * lib/strnlen1.c (strnlen1): Cast memchr result.
77006         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
77007         * lib/clean-temp.c (string_equals, string_hash): Add casts.
77008         (create_temp_dir): Rename local variable 'template'.
77009         (compile_csharp_using_sscli): Add cast.
77010         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
77011         * lib/findprog.c (find_in_path): Likewise.
77012         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
77013         * lib/wait-process.c (register_slave_subprocess): Likewise.
77014
77015 2006-10-22  Bruno Haible  <bruno@clisp.org>
77016
77017         * modules/tsearch: New file.
77018         * lib/tsearch.h: New file.
77019         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
77020         * m4/tsearch.m4: New file.
77021         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
77022
77023 2006-10-29  Eric Blake  <ebb9@byu.net>
77024
77025         * lib/arcfour.c: Assume config.h.
77026         * lib/arctwo.c: Likewise.
77027         * lib/base64.c: Likewise.
77028         * lib/check-version.c: Likewise.
77029         * lib/crc.c: Likewise.
77030         * lib/des.c: Likewise.
77031         * lib/gc-gnulib.c: Likewise.
77032         * lib/gc-libgcrypt.c: Likewise.
77033         * lib/gc-pbkdf2-sha1.c: Likewise.
77034         * lib/getaddrinfo.c: Likewise.
77035         * lib/getdelim.c: Likewise.
77036         * lib/getline.c: Likewise.
77037         * lib/hmac-md5.c: Likewise.
77038         * lib/hmac-sha1.c: Likewise.
77039         * lib/iconvme.c: Likewise.
77040         * lib/md2.c: Likewise.
77041         * lib/md4.c: Likewise.
77042         * lib/memxor.c: Likewise.
77043         * lib/read-file.c: Likewise.
77044         * lib/readline.c: Likewise.
77045         * lib/rijndael-alg-fst.c: Likewise.
77046         * lib/rijndael-api-fst.c: Likewise.
77047         * lib/xgetdomainname.c: Likewise.
77048
77049 2006-10-28  Eric Blake  <ebb9@byu.net>
77050
77051         * lib/xstrndup.c: Assume config.h.
77052
77053 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77054
77055         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
77056         stat-macros.h is now for our own macros, whereas stat_h is for
77057         macros in the <sys/stat.h> name space.
77058         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
77059         (STAT_MACROS_H): Remove.
77060         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
77061         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
77062         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
77063         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
77064         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
77065         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
77066         Move these macros to ...
77067         * lib/stat_.h: here.  Don't include stat-macros.h.
77068         * lib/canonicalize.c: Don't include stat-macros.h.
77069         * lib/chown.c: Likewise.
77070         * lib/euidaccess.c: Likewise.
77071         * lib/file-type.c: Likewise.
77072         * lib/filemode.c: Likewise.
77073         * lib/glob.c: Likewise.
77074         * lib/isapipe.c: Likewise.
77075         * lib/lchown.c: Likewise.
77076         * lib/lstat.c: Likewise.
77077         * lib/mkdir-p.c: Likewise.
77078         * lib/rmdir.c: Likewise.
77079         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
77080         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
77081         unless mkdir isn't declared, to speed up 'configure'.
77082         Always create sys/stat.h, since it's unlikely any real sys/stat.h
77083         would define all the S_* symbols.
77084         * modules/canonicalize (Depends-on):
77085         Depend on sys_stat, not stat-macros.
77086         * modules/chown: Likewise.
77087         * modules/euidaccess: Likewise.
77088         * modules/filemode: Likewise.
77089         * modules/file-type: Likewise.
77090         * modules/glob: Likewise.
77091         * modules/isapipe: Likewise.
77092         * modules/lchown: Likewise.
77093         * modules/lstat: Likewise.
77094         * modules/mkancesdirs: Likewise.
77095         * modules/rmdir: Likewise.
77096         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
77097         * modules/modechange: Likewise.
77098         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
77099         (configure.ac): Remove gl_STAT_MACROS.
77100         * modules/sys_stat (Depends-on): Remove stat-macros.
77101
77102 2006-10-27  Bruno Haible  <bruno@clisp.org>
77103
77104         * m4/signed.m4: Remove file.
77105         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
77106         invocation.
77107         * modules/vasnprintf (Files): Remove m4/signed.m4.
77108
77109 2006-10-27  Bruno Haible  <bruno@clisp.org>
77110
77111         Update to GNU gettext 0.16.
77112         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
77113         m4/inttypes-h.m4, m4/signed.m4.
77114         * m4/gettext.m4: Update to GNU gettext 0.16.
77115         * m4/intl.m4: New file, from GNU gettext.
77116         * m4/intldir.m4: New file, from GNU gettext.
77117         * config/srclist.txt: Update
77118
77119 2006-10-27  Eric Blake  <ebb9@byu.net>
77120
77121         * MODULES.html.sh: Document tempname.
77122         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
77123         dependencies.
77124         (Files): Move lib/tempname.c...
77125         * modules/tempname: ...to this new module.
77126         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
77127         (gl_PREREQ_TEMPNAME): Move...
77128         * m4/tempname.m4: ...to this new file.
77129         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
77130         * modules/sys_stat (Depends-on): Add stat-macros.
77131         * lib/stat_.h (includes): Pick up stat macros.
77132         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
77133         if stat macros are broken.
77134         * lib/tempname.c (includes): No need to include "stat-macros.h".
77135         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
77136         (direxists, __path_search) [!_LIBC]: Don't compile these in
77137         gnulib; the tmpdir module covers that.
77138         * lib/tempname.h: New file.
77139
77140 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
77141
77142         * COPYING: Explain how gnulib-tool converts licence headers.
77143         Almost all wording by Eric Blake.
77144
77145 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
77146
77147         * lib/mbchar.h (is_basic_table): Make read-only.
77148         * lib/mbchar.c (is_basic_table): Likewise.
77149         Reported by John Darrington.
77150
77151 2006-10-25  Bruno Haible  <bruno@clisp.org>
77152
77153         * lib/progname.h (set_program_name): Undefine before defining.
77154
77155 2006-10-25  Bruno Haible  <bruno@clisp.org>
77156
77157         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
77158         false for non-gcc C++ compilers.
77159         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77160
77161 2006-10-24  Bruno Haible  <bruno@clisp.org>
77162
77163         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
77164         iconv implementations like Irix iconv.
77165
77166 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77167
77168         * modules/vararrays: New file.
77169         * m4/vararrays.m4: New file, taken from diffutils.
77170         * MODULES.html.sh: New module vararrays.
77171
77172 2006-10-24  Karl Berry  <karl@gnu.org>
77173
77174         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
77175         Don't call GNU Unix.
77176
77177 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77178
77179         * users.txt: Add Libtool.
77180
77181         Sync from Libtool:
77182
77183         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77184
77185         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
77186         to gnulib's policy of including config.h unconditionally.
77187
77188 2006-10-24  Bruno Haible  <bruno@clisp.org>
77189
77190         * modules/wcwidth (Files): Add m4/wint_t.m4.
77191         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
77192         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
77193
77194 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77195
77196         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
77197         to pacify GCC with some -W flags enabled.  Problem reported by
77198         Bruno Haible.
77199
77200 2006-10-24  Jim Meyering  <jim@meyering.net>
77201
77202         * MODULES.html.sh: Remove uinttostr.  It's not a module.
77203         Reported by Karl Berry.
77204
77205 2006-10-23  Bruno Haible  <bruno@clisp.org>
77206
77207         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
77208
77209 2006-10-24  Bruno Haible  <bruno@clisp.org>
77210
77211         * lib/gl_list.h: Use C comment style, not C++ comment style.
77212
77213 2006-10-23  Eric Blake  <ebb9@byu.net>
77214
77215         * lib/getaddrinfo.c (includes): Add missing include.
77216
77217 2006-10-23  Bruno Haible  <bruno@clisp.org>
77218             Paul Eggert  <eggert@cs.ucla.edu>
77219
77220         Ability to rename obstack_free.
77221         * lib/obstack.h (__obstack_free): New macro. Declare instead of
77222         obstack_free.
77223         (obstack_free): Invoke the __obstack_free macro.
77224         * lib/obstack.c (obstack_free): Use __obstack_free macro.
77225
77226 2006-10-23  Bruno Haible  <bruno@clisp.org>
77227             Paul Eggert  <eggert@cs.ucla.edu>
77228
77229         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
77230         __argc, __argv from the declaration. (They are defined as macros on
77231         mingw.)
77232
77233 2006-10-22  Bruno Haible  <bruno@clisp.org>
77234
77235         * doc/gnulib-intro.texi: New file.
77236         * doc/gnulib.texi: Include it.
77237
77238 2006-10-21  Bruno Haible  <bruno@clisp.org>
77239
77240         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
77241         "Introduction", "Miscellanous Notes", "Particular Modules".
77242
77243 2006-10-21  Bruno Haible  <bruno@clisp.org>
77244
77245         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77246         Change mostlyclean-local rule to avoid sh syntax error from bash
77247         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
77248
77249 2006-10-23  Jim Meyering  <jim@meyering.net>
77250
77251         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
77252         in place of snprintf.
77253
77254         * modules/inttostr (Files): Add lib/uinttostr.c.
77255         * lib/uinttostr.c (inttostr): New file/function.
77256         * lib/inttostr.h (uinttostr): Declare.
77257         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
77258         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77259         Add uinttostr.
77260         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
77261
77262 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77263
77264         * lib/canonicalize.c (ELOOP): Define if not already defined.
77265         Problem reported by Bruno Haible in
77266         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
77267
77268 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77269
77270         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
77271         Problem reported by Perry Smith and Ville Laurikari.
77272
77273         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
77274         uses.
77275
77276 2006-10-19  Bruno Haible  <bruno@clisp.org>
77277
77278         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
77279         for mingw.
77280
77281 2006-10-19  Bruno Haible  <bruno@clisp.org>
77282
77283         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
77284         Needed for mingw.
77285
77286 2006-10-19  Bruno Haible  <bruno@clisp.org>
77287
77288         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
77289
77290 2006-10-19  Bruno Haible  <bruno@clisp.org>
77291
77292         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
77293         it.
77294
77295 2006-10-19  Bruno Haible  <bruno@clisp.org>
77296
77297         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
77298         invocation.
77299
77300 2006-10-19  Bruno Haible  <bruno@clisp.org>
77301
77302         * gnulib-tool (func_create_testdir): Don't include ftruncate and
77303         mountlist by default.
77304
77305 2006-10-16  Bruno Haible  <bruno@clisp.org>
77306
77307         * lib/c-strstr.c: Include c-strstr.h.
77308
77309 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77310
77311         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
77312         in a slash.
77313
77314 2006-10-18  Bruno Haible  <bruno@clisp.org>
77315
77316         * lib/lock.h [C++]: Wrap definitions in extern "C".
77317
77318 2006-10-18  Bruno Haible  <bruno@clisp.org>
77319
77320         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
77321         gl_LIBOBJS list.
77322
77323 2006-10-18  Bruno Haible  <bruno@clisp.org>
77324
77325         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77326
77327 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77328
77329         * lib/xstrtol.h: Include gettext.h.
77330         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77331         Problem reported by Eric Blake.
77332         * modules/xstrtol (Depends-on): Add gettext-h.
77333
77334 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77335
77336         * lib/strftime.c (advance): New macro.
77337         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77338         incomplete type, so you can't add 0 to it.  Problem and patch
77339         reported by Eelco Dolstra for dietlibc.
77340
77341 2006-10-18  Jim Meyering  <jim@meyering.net>
77342
77343         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77344         type for a local, and rename it: s/up/user_proc/.
77345
77346 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77347
77348         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77349         READ_UTMP_USER_PROCESS.
77350         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77351
77352 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77353
77354         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77355         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77356
77357 2006-10-17  Eric Blake  <ebb9@byu.net>
77358
77359         * lib/sigprocmask.c (sigprocmask): Fix typo.
77360
77361         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77362
77363         * modules/clean-temp (Makefile.am): Don't add to make output...
77364         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77365         config.h.
77366
77367 2006-10-17  Bruno Haible  <bruno@clisp.org>
77368
77369         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77370         differently if DEFAULT_TEXT_DOMAIN is set.
77371
77372 2006-10-16  Bruno Haible  <bruno@clisp.org>
77373
77374         * lib/clean-temp.c: Include fwriteerror.h.
77375
77376 2006-10-16  Bruno Haible  <bruno@clisp.org>
77377
77378         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77379
77380 2006-10-16  Bruno Haible  <bruno@clisp.org>
77381
77382         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77383         * lib/sigprocmask.h: Include <sys/types.h>.
77384         (sigset_t): Use the system's definition if present.
77385
77386 2006-10-17  Eric Blake  <ebb9@byu.net>
77387
77388         * lib/xvasprintf.c (includes): Assume config.h.
77389         * lib/xasprintf.c (includes): Likewise.
77390
77391 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77392
77393         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77394         at least as wide as intmax_t.
77395
77396 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77397
77398         (Imported from Automake.)
77399         * build-aux/gnupload: Update to version 1.1 of directive file.
77400
77401 2006-10-16  Eric Blake  <ebb9@byu.net>
77402
77403         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77404         match Automake 1.10a.
77405
77406 2006-10-14  Bruno Haible  <bruno@clisp.org>
77407
77408         * modules/sigprocmask: New file.
77409         * lib/sigprocmask.h: New file.
77410         * lib/sigprocmask.c: New file.
77411         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77412         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77413         request sigprocmask.o.
77414         (gl_PREREQ_SIGPROCMASK): New macro.
77415         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77416         (Depends-on): Add sigprocmask.
77417         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77418         gt_SIGNALBLOCKING. Test for 'raise' only once.
77419         * lib/fatal-signal.c: Include sigprocmask.h.
77420         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77421         unblock_fatal_signals): Define always.
77422         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77423         sigprocmask.
77424
77425 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77426
77427         Sync from Automake.
77428         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77429         which incorrectly sets the mode of an existing destination
77430         directory.  In some cases the unpatched install-sh could do the
77431         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77432         system.  We hope this is rare in practice, but it's clearly worth
77433         fixing.  Problem reported by Alex Unleashed in
77434         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77435         Also, don't bother to check for -m bugs unless we're using -m;
77436         suggested by Stepan Kasal.
77437
77438 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77439
77440         Sync from Automake.
77441         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77442         `-c' flag, so they appear at the same position as in %FASTDEP%
77443         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77444         which ignores unknown options only after the first non-option.
77445         Bug report against M4 by Nelson H. F. Beebe.
77446
77447 2006-10-13  Jim Meyering  <jim@meyering.net>
77448
77449         Fix a bug in yesterday's change.
77450         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77451         p->fts_statp->st_dev would be used uninitialized.
77452         Ensures that we always call fts_stat on the very first entry.
77453         Miklos Szeredi reported that find -xdev stopped working.
77454
77455 2006-10-12  Bruno Haible  <bruno@clisp.org>
77456
77457         * gnulib-tool (func_get_automake_snippet): Append an automatically
77458         computed EXTRA_DIST augmentation.
77459         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77460         * modules/alloca-opt (Makefile.am): Likewise.
77461         * modules/allocsa (Makefile.am): Likewise.
77462         * modules/arcfour (Makefile.am): Likewise.
77463         * modules/arctwo (Makefile.am): Likewise.
77464         * modules/argmatch (Makefile.am): Likewise.
77465         * modules/argz (Makefile.am): Likewise.
77466         * modules/atexit (Makefile.am): Likewise.
77467         * modules/backupfile (Makefile.am): Likewise.
77468         * modules/byteswap (Makefile.am): Likewise.
77469         * modules/c-strtod (Makefile.am): Likewise.
77470         * modules/c-strtold (Makefile.am): Likewise.
77471         * modules/calloc (Makefile.am): Likewise.
77472         * modules/canon-host (Makefile.am): Likewise.
77473         * modules/canonicalize (Makefile.am): Likewise.
77474         * modules/chdir-long (Makefile.am): Likewise.
77475         * modules/chdir-safer (Makefile.am): Likewise.
77476         * modules/check-version (Makefile.am): Likewise.
77477         * modules/chown (Makefile.am): Likewise.
77478         * modules/cloexec (Makefile.am): Likewise.
77479         * modules/close-stream (Makefile.am): Likewise.
77480         * modules/closeout (Makefile.am): Likewise.
77481         * modules/crc (Makefile.am): Likewise.
77482         * modules/csharpexec (Makefile.am): Likewise.
77483         * modules/cycle-check (Makefile.am): Likewise.
77484         * modules/des (Makefile.am): Likewise.
77485         * modules/dev-ino (Makefile.am): Likewise.
77486         * modules/dirfd (Makefile.am): Likewise.
77487         * modules/dirname (Makefile.am): Likewise.
77488         * modules/dup2 (Makefile.am): Likewise.
77489         * modules/eealloc (Makefile.am): Likewise.
77490         * modules/error (Makefile.am): Likewise.
77491         * modules/euidaccess (Makefile.am): Likewise.
77492         * modules/exclude (Makefile.am): Likewise.
77493         * modules/exitfail (Makefile.am): Likewise.
77494         * modules/fcntl-safer (Makefile.am): Likewise.
77495         * modules/fcntl (Makefile.am): Likewise.
77496         * modules/file-type (Makefile.am): Likewise.
77497         * modules/fileblocks (Makefile.am): Likewise.
77498         * modules/filemode (Makefile.am): Likewise.
77499         * modules/filenamecat (Makefile.am): Likewise.
77500         * modules/fnmatch (Makefile.am): Likewise.
77501         * modules/fopen-safer (Makefile.am): Likewise.
77502         * modules/fpending (Makefile.am): Likewise.
77503         * modules/fprintftime (Makefile.am): Likewise.
77504         * modules/free (Makefile.am): Likewise.
77505         * modules/fsusage (Makefile.am): Likewise.
77506         * modules/ftruncate (Makefile.am): Likewise.
77507         * modules/fts (Makefile.am): Likewise.
77508         * modules/gc-arcfour (Makefile.am): Likewise.
77509         * modules/gc-des (Makefile.am): Likewise.
77510         * modules/gc-hmac-md5 (Makefile.am): Likewise.
77511         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
77512         * modules/gc-md4 (Makefile.am): Likewise.
77513         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77514         * modules/gc-sha1 (Makefile.am): Likewise.
77515         * modules/gc (Makefile.am): Likewise.
77516         * modules/getaddrinfo (Makefile.am): Likewise.
77517         * modules/getcwd (Makefile.am): Likewise.
77518         * modules/getdelim (Makefile.am): Likewise.
77519         * modules/getdomainname (Makefile.am): Likewise.
77520         * modules/getgroups (Makefile.am): Likewise.
77521         * modules/gethostname (Makefile.am): Likewise.
77522         * modules/gethrxtime (Makefile.am): Likewise.
77523         * modules/getline (Makefile.am): Likewise.
77524         * modules/getloadavg (Makefile.am): Likewise.
77525         * modules/getlogin_r (Makefile.am): Likewise.
77526         * modules/getndelim2 (Makefile.am): Likewise.
77527         * modules/getopt (Makefile.am): Likewise.
77528         * modules/getpagesize (Makefile.am): Likewise.
77529         * modules/getpass-gnu (Makefile.am): Likewise.
77530         * modules/getpass (Makefile.am): Likewise.
77531         * modules/getsubopt (Makefile.am): Likewise.
77532         * modules/gettime (Makefile.am): Likewise.
77533         * modules/gettimeofday (Makefile.am): Likewise.
77534         * modules/getugroups (Makefile.am): Likewise.
77535         * modules/getusershell (Makefile.am): Likewise.
77536         * modules/glob (Makefile.am): Likewise.
77537         * modules/group-member (Makefile.am): Likewise.
77538         * modules/hard-locale (Makefile.am): Likewise.
77539         * modules/hash (Makefile.am): Likewise.
77540         * modules/hmac-md5 (Makefile.am): Likewise.
77541         * modules/hmac-sha1 (Makefile.am): Likewise.
77542         * modules/human (Makefile.am): Likewise.
77543         * modules/idcache (Makefile.am): Likewise.
77544         * modules/imaxabs (Makefile.am): Likewise.
77545         * modules/imaxdiv (Makefile.am): Likewise.
77546         * modules/inet_ntop (Makefile.am): Likewise.
77547         * modules/inet_pton (Makefile.am): Likewise.
77548         * modules/intprops (Makefile.am): Likewise.
77549         * modules/inttostr (Makefile.am): Likewise.
77550         * modules/inttypes (Makefile.am): Likewise.
77551         * modules/isapipe (Makefile.am): Likewise.
77552         * modules/javaversion (Makefile.am): Likewise.
77553         * modules/lchmod (Makefile.am): Likewise.
77554         * modules/lchown (Makefile.am): Likewise.
77555         * modules/localcharset (Makefile.am): Likewise.
77556         * modules/long-options (Makefile.am): Likewise.
77557         * modules/lstat (Makefile.am): Likewise.
77558         * modules/malloc (Makefile.am): Likewise.
77559         * modules/mathl (Makefile.am): Likewise.
77560         * modules/mbchar (Makefile.am): Likewise.
77561         * modules/md2 (Makefile.am): Likewise.
77562         * modules/md4 (Makefile.am): Likewise.
77563         * modules/md5 (Makefile.am): Likewise.
77564         * modules/memcasecmp (Makefile.am): Likewise.
77565         * modules/memchr (Makefile.am): Likewise.
77566         * modules/memcmp (Makefile.am): Likewise.
77567         * modules/memcoll (Makefile.am): Likewise.
77568         * modules/memcpy (Makefile.am): Likewise.
77569         * modules/memmem (Makefile.am): Likewise.
77570         * modules/memmove (Makefile.am): Likewise.
77571         * modules/mempcpy (Makefile.am): Likewise.
77572         * modules/memrchr (Makefile.am): Likewise.
77573         * modules/memset (Makefile.am): Likewise.
77574         * modules/memxor (Makefile.am): Likewise.
77575         * modules/mkancesdirs (Makefile.am): Likewise.
77576         * modules/mkdir-p (Makefile.am): Likewise.
77577         * modules/mkdir (Makefile.am): Likewise.
77578         * modules/mkdtemp (Makefile.am): Likewise.
77579         * modules/mkstemp (Makefile.am): Likewise.
77580         * modules/mktime (Makefile.am): Likewise.
77581         * modules/modechange (Makefile.am): Likewise.
77582         * modules/mountlist (Makefile.am): Likewise.
77583         * modules/nanosleep (Makefile.am): Likewise.
77584         * modules/obstack (Makefile.am): Likewise.
77585         * modules/openat (Makefile.am): Likewise.
77586         * modules/pagealign_alloc (Makefile.am): Likewise.
77587         * modules/pathmax (Makefile.am): Likewise.
77588         * modules/physmem (Makefile.am): Likewise.
77589         * modules/poll (Makefile.am): Likewise.
77590         * modules/posixtm (Makefile.am): Likewise.
77591         * modules/posixver (Makefile.am): Likewise.
77592         * modules/putenv (Makefile.am): Likewise.
77593         * modules/quote (Makefile.am): Likewise.
77594         * modules/quotearg (Makefile.am): Likewise.
77595         * modules/raise (Makefile.am): Likewise.
77596         * modules/read-file (Makefile.am): Likewise.
77597         * modules/readline (Makefile.am): Likewise.
77598         * modules/readlink (Makefile.am): Likewise.
77599         * modules/readtokens (Makefile.am): Likewise.
77600         * modules/readutmp (Makefile.am): Likewise.
77601         * modules/realloc (Makefile.am): Likewise.
77602         * modules/regex (Makefile.am): Likewise.
77603         * modules/rename-dest-slash (Makefile.am): Likewise.
77604         * modules/rename (Makefile.am): Likewise.
77605         * modules/rijndael (Makefile.am): Likewise.
77606         * modules/rmdir (Makefile.am): Likewise.
77607         * modules/rpmatch (Makefile.am): Likewise.
77608         * modules/safe-read (Makefile.am): Likewise.
77609         * modules/safe-write (Makefile.am): Likewise.
77610         * modules/same-inode (Makefile.am): Likewise.
77611         * modules/same (Makefile.am): Likewise.
77612         * modules/save-cwd (Makefile.am): Likewise.
77613         * modules/savedir (Makefile.am): Likewise.
77614         * modules/setenv (Makefile.am): Likewise.
77615         * modules/settime (Makefile.am): Likewise.
77616         * modules/sha1 (Makefile.am): Likewise.
77617         * modules/sig2str (Makefile.am): Likewise.
77618         * modules/snprintf (Makefile.am): Likewise.
77619         * modules/stat-macros (Makefile.am): Likewise.
77620         * modules/stat-time (Makefile.am): Likewise.
77621         * modules/stdbool (Makefile.am): Likewise.
77622         * modules/stdint (Makefile.am): Likewise.
77623         * modules/stdlib-safer (Makefile.am): Likewise.
77624         * modules/stpcpy (Makefile.am): Likewise.
77625         * modules/stpncpy (Makefile.am): Likewise.
77626         * modules/strcase (Makefile.am): Likewise.
77627         * modules/strcasestr (Makefile.am): Likewise.
77628         * modules/strchrnul (Makefile.am): Likewise.
77629         * modules/strcspn (Makefile.am): Likewise.
77630         * modules/strdup (Makefile.am): Likewise.
77631         * modules/strerror (Makefile.am): Likewise.
77632         * modules/strftime (Makefile.am): Likewise.
77633         * modules/strndup (Makefile.am): Likewise.
77634         * modules/strnlen (Makefile.am): Likewise.
77635         * modules/strpbrk (Makefile.am): Likewise.
77636         * modules/strsep (Makefile.am): Likewise.
77637         * modules/strstr (Makefile.am): Likewise.
77638         * modules/strtod (Makefile.am): Likewise.
77639         * modules/strtoimax (Makefile.am): Likewise.
77640         * modules/strtok_r (Makefile.am): Likewise.
77641         * modules/strtol (Makefile.am): Likewise.
77642         * modules/strtoll (Makefile.am): Likewise.
77643         * modules/strtoul (Makefile.am): Likewise.
77644         * modules/strtoull (Makefile.am): Likewise.
77645         * modules/strtoumax (Makefile.am): Likewise.
77646         * modules/strverscmp (Makefile.am): Likewise.
77647         * modules/sys_socket (Makefile.am): Likewise.
77648         * modules/sys_stat (Makefile.am): Likewise.
77649         * modules/sysexits (Makefile.am): Likewise.
77650         * modules/time_r (Makefile.am): Likewise.
77651         * modules/timegm (Makefile.am): Likewise.
77652         * modules/timespec (Makefile.am): Likewise.
77653         * modules/tmpfile-safer (Makefile.am): Likewise.
77654         * modules/trim (Makefile.am): Likewise.
77655         * modules/unistd-safer (Makefile.am): Likewise.
77656         * modules/unlinkdir (Makefile.am): Likewise.
77657         * modules/unlocked-io (Makefile.am): Likewise.
77658         * modules/userspec (Makefile.am): Likewise.
77659         * modules/utime (Makefile.am): Likewise.
77660         * modules/utimecmp (Makefile.am): Likewise.
77661         * modules/utimens (Makefile.am): Likewise.
77662         * modules/vasnprintf (Makefile.am): Likewise.
77663         * modules/vasprintf (Makefile.am): Likewise.
77664         * modules/vsnprintf (Makefile.am): Likewise.
77665         * modules/xalloc (Makefile.am): Likewise.
77666         * modules/xgetcwd (Makefile.am): Likewise.
77667         * modules/xnanosleep (Makefile.am): Likewise.
77668         * modules/xreadlink (Makefile.am): Likewise.
77669         * modules/xstrtod (Makefile.am): Likewise.
77670         * modules/xstrtol (Makefile.am): Likewise.
77671         * modules/xstrtold (Makefile.am): Likewise.
77672         * modules/yesno (Makefile.am): Likewise.
77673         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
77674
77675 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77676
77677         * modules/error (Makefile.am): Distribute files through
77678         EXTRA_DIST, not lib_SOURCES.
77679
77680 2006-10-12  Eric Blake  <ebb9@byu.net>
77681
77682         * modules/error (Makefile.am): Distribute files in /lib.
77683         * modules/obstack (Makefile.am): Likewise.
77684
77685 2006-10-12  Bruno Haible  <bruno@clisp.org>
77686
77687         * modules/acl (Makefile.am): Distribute all files in lib/ through
77688         EXTRA_DIST.
77689         * modules/arcfour (Makefile.am): Likewise.
77690         * modules/arctwo (Makefile.am): Likewise.
77691         * modules/argmatch (Makefile.am): Likewise.
77692         * modules/argz (Makefile.am): Likewise.
77693         * modules/atexit (Makefile.am): Likewise.
77694         * modules/backupfile (Makefile.am): Likewise.
77695         * modules/c-strtod (Makefile.am): Likewise.
77696         * modules/c-strtold (Makefile.am): Likewise.
77697         * modules/calloc (Makefile.am): Likewise.
77698         * modules/canon-host (Makefile.am): Likewise.
77699         * modules/canonicalize (Makefile.am): Likewise.
77700         * modules/chdir-long (Makefile.am): Likewise.
77701         * modules/chdir-safer (Makefile.am): Likewise.
77702         * modules/check-version (Makefile.am): Likewise.
77703         * modules/chown (Makefile.am): Likewise.
77704         * modules/cloexec (Makefile.am): Likewise.
77705         * modules/close-stream (Makefile.am): Likewise.
77706         * modules/closeout (Makefile.am): Likewise.
77707         * modules/crc (Makefile.am): Likewise.
77708         * modules/cycle-check (Makefile.am): Likewise.
77709         * modules/des (Makefile.am): Likewise.
77710         * modules/dirfd (Makefile.am): Likewise.
77711         * modules/dirname (Makefile.am): Likewise.
77712         * modules/dup2 (Makefile.am): Likewise.
77713         * modules/euidaccess (Makefile.am): Likewise.
77714         * modules/exclude (Makefile.am): Likewise.
77715         * modules/exitfail (Makefile.am): Likewise.
77716         * modules/fcntl-safer (Makefile.am): Likewise.
77717         * modules/file-type (Makefile.am): Likewise.
77718         * modules/fileblocks (Makefile.am): Likewise.
77719         * modules/filemode (Makefile.am): Likewise.
77720         * modules/filenamecat (Makefile.am): Likewise.
77721         * modules/fnmatch (Makefile.am): Likewise.
77722         * modules/fopen-safer (Makefile.am): Likewise.
77723         * modules/fpending (Makefile.am): Likewise.
77724         * modules/fprintftime (Makefile.am): Likewise.
77725         * modules/free (Makefile.am): Likewise.
77726         * modules/fsusage (Makefile.am): Likewise.
77727         * modules/ftruncate (Makefile.am): Likewise.
77728         * modules/fts (Makefile.am): Likewise.
77729         * modules/gc (Makefile.am): Likewise.
77730         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77731         * modules/getaddrinfo (Makefile.am): Likewise.
77732         * modules/getcwd (Makefile.am): Likewise.
77733         * modules/getdelim (Makefile.am): Likewise.
77734         * modules/getdomainname (Makefile.am): Likewise.
77735         * modules/getgroups (Makefile.am): Likewise.
77736         * modules/gethostname (Makefile.am): Likewise.
77737         * modules/gethrxtime (Makefile.am): Likewise.
77738         * modules/getline (Makefile.am): Likewise.
77739         * modules/getloadavg (Makefile.am): Likewise.
77740         * modules/getlogin_r (Makefile.am): Likewise.
77741         * modules/getopt (Makefile.am): Likewise.
77742         * modules/getpass (Makefile.am): Likewise.
77743         * modules/getpass-gnu (Makefile.am): Likewise.
77744         * modules/getsubopt (Makefile.am): Likewise.
77745         * modules/gettime (Makefile.am): Likewise.
77746         * modules/gettimeofday (Makefile.am): Likewise.
77747         * modules/getugroups (Makefile.am): Likewise.
77748         * modules/getusershell (Makefile.am): Likewise.
77749         * modules/glob (Makefile.am): Likewise.
77750         * modules/group-member (Makefile.am): Likewise.
77751         * modules/hard-locale (Makefile.am): Likewise.
77752         * modules/hash (Makefile.am): Likewise.
77753         * modules/hmac-md5 (Makefile.am): Likewise.
77754         * modules/hmac-sha1 (Makefile.am): Likewise.
77755         * modules/human (Makefile.am): Likewise.
77756         * modules/idcache (Makefile.am): Likewise.
77757         * modules/imaxabs (Makefile.am): Likewise.
77758         * modules/imaxdiv (Makefile.am): Likewise.
77759         * modules/inet_ntop (Makefile.am): Likewise.
77760         * modules/inet_pton (Makefile.am): Likewise.
77761         * modules/inttostr (Makefile.am): Likewise.
77762         * modules/isapipe (Makefile.am): Likewise.
77763         * modules/lchown (Makefile.am): Likewise.
77764         * modules/long-options (Makefile.am): Likewise.
77765         * modules/lstat (Makefile.am): Likewise.
77766         * modules/malloc (Makefile.am): Likewise.
77767         * modules/mathl (Makefile.am): Likewise.
77768         * modules/mbchar (Makefile.am): Likewise.
77769         * modules/md2 (Makefile.am): Likewise.
77770         * modules/md4 (Makefile.am): Likewise.
77771         * modules/md5 (Makefile.am): Likewise.
77772         * modules/memcasecmp (Makefile.am): Likewise.
77773         * modules/memchr (Makefile.am): Likewise.
77774         * modules/memcmp (Makefile.am): Likewise.
77775         * modules/memcoll (Makefile.am): Likewise.
77776         * modules/memcpy (Makefile.am): Likewise.
77777         * modules/memmem (Makefile.am): Likewise.
77778         * modules/memmove (Makefile.am): Likewise.
77779         * modules/mempcpy (Makefile.am): Likewise.
77780         * modules/memrchr (Makefile.am): Likewise.
77781         * modules/memset (Makefile.am): Likewise.
77782         * modules/memxor (Makefile.am): Likewise.
77783         * modules/mkancesdirs (Makefile.am): Likewise.
77784         * modules/mkdir (Makefile.am): Likewise.
77785         * modules/mkdir-p (Makefile.am): Likewise.
77786         * modules/mkdtemp (Makefile.am): Likewise.
77787         * modules/mkstemp (Makefile.am): Likewise.
77788         * modules/mktime (Makefile.am): Likewise.
77789         * modules/modechange (Makefile.am): Likewise.
77790         * modules/mountlist (Makefile.am): Likewise.
77791         * modules/nanosleep (Makefile.am): Likewise.
77792         * modules/openat (Makefile.am): Likewise.
77793         * modules/pagealign_alloc (Makefile.am): Likewise.
77794         * modules/physmem (Makefile.am): Likewise.
77795         * modules/poll (Makefile.am): Likewise.
77796         * modules/posixtm (Makefile.am): Likewise.
77797         * modules/posixver (Makefile.am): Likewise.
77798         * modules/putenv (Makefile.am): Likewise.
77799         * modules/quote (Makefile.am): Likewise.
77800         * modules/quotearg (Makefile.am): Likewise.
77801         * modules/raise (Makefile.am): Likewise.
77802         * modules/read-file (Makefile.am): Likewise.
77803         * modules/readline (Makefile.am): Likewise.
77804         * modules/readlink (Makefile.am): Likewise.
77805         * modules/readtokens (Makefile.am): Likewise.
77806         * modules/readutmp (Makefile.am): Likewise.
77807         * modules/realloc (Makefile.am): Likewise.
77808         * modules/regex (Makefile.am): Likewise.
77809         * modules/rename (Makefile.am): Likewise.
77810         * modules/rename-dest-slash (Makefile.am): Likewise.
77811         * modules/rijndael (Makefile.am): Likewise.
77812         * modules/rmdir (Makefile.am): Likewise.
77813         * modules/rpmatch (Makefile.am): Likewise.
77814         * modules/safe-read (Makefile.am): Likewise.
77815         * modules/safe-write (Makefile.am): Likewise.
77816         * modules/same (Makefile.am): Likewise.
77817         * modules/save-cwd (Makefile.am): Likewise.
77818         * modules/savedir (Makefile.am): Likewise.
77819         * modules/setenv (Makefile.am): Likewise.
77820         * modules/settime (Makefile.am): Likewise.
77821         * modules/sha1 (Makefile.am): Likewise.
77822         * modules/sig2str (Makefile.am): Likewise.
77823         * modules/snprintf (Makefile.am): Likewise.
77824         * modules/stdlib-safer (Makefile.am): Likewise.
77825         * modules/stpcpy (Makefile.am): Likewise.
77826         * modules/stpncpy (Makefile.am): Likewise.
77827         * modules/strcase (Makefile.am): Likewise.
77828         * modules/strcasestr (Makefile.am): Likewise.
77829         * modules/strchrnul (Makefile.am): Likewise.
77830         * modules/strcspn (Makefile.am): Likewise.
77831         * modules/strdup (Makefile.am): Likewise.
77832         * modules/strerror (Makefile.am): Likewise.
77833         * modules/strftime (Makefile.am): Likewise.
77834         * modules/strndup (Makefile.am): Likewise.
77835         * modules/strnlen (Makefile.am): Likewise.
77836         * modules/strpbrk (Makefile.am): Likewise.
77837         * modules/strsep (Makefile.am): Likewise.
77838         * modules/strstr (Makefile.am): Likewise.
77839         * modules/strtod (Makefile.am): Likewise.
77840         * modules/strtoimax (Makefile.am): Likewise.
77841         * modules/strtok_r (Makefile.am): Likewise.
77842         * modules/strtol (Makefile.am): Likewise.
77843         * modules/strtoll (Makefile.am): Likewise.
77844         * modules/strtoul (Makefile.am): Likewise.
77845         * modules/strtoull (Makefile.am): Likewise.
77846         * modules/strtoumax (Makefile.am): Likewise.
77847         * modules/strverscmp (Makefile.am): Likewise.
77848         * modules/time_r (Makefile.am): Likewise.
77849         * modules/timegm (Makefile.am): Likewise.
77850         * modules/tmpfile-safer (Makefile.am): Likewise.
77851         * modules/unistd-safer (Makefile.am): Likewise.
77852         * modules/unlinkdir (Makefile.am): Likewise.
77853         * modules/userspec (Makefile.am): Likewise.
77854         * modules/utime (Makefile.am): Likewise.
77855         * modules/utimecmp (Makefile.am): Likewise.
77856         * modules/utimens (Makefile.am): Likewise.
77857         * modules/vasnprintf (Makefile.am): Likewise.
77858         * modules/vasprintf (Makefile.am): Likewise.
77859         * modules/vsnprintf (Makefile.am): Likewise.
77860         * modules/xalloc (Makefile.am): Likewise.
77861         * modules/xgetcwd (Makefile.am): Likewise.
77862         * modules/xnanosleep (Makefile.am): Likewise.
77863         * modules/xreadlink (Makefile.am): Likewise.
77864         * modules/xstrtod (Makefile.am): Likewise.
77865         * modules/xstrtol (Makefile.am): Likewise.
77866         * modules/xstrtold (Makefile.am): Likewise.
77867         * modules/yesno (Makefile.am): Likewise.
77868
77869 2006-10-12  Jim Meyering  <jim@meyering.net>
77870
77871         * m4/getloadavg.m4: Revert the change below.
77872
77873         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
77874         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
77875         fail with a symlink, which is what coreutils' ./bootstrap now
77876         creates by default.
77877
77878 2006-10-12  Bruno Haible  <bruno@clisp.org>
77879
77880         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
77881         mingw.
77882         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
77883         MSVC and mingw explicitly.
77884
77885 2006-10-11  Simon Josefsson  <jas@extundo.com>
77886             Bruno Haible  <bruno@clisp.org>
77887
77888         Add support for multiple gnulib-tool invocations in the scope of a
77889         single configure.ac file.
77890         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
77891         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
77892         with the same contents as the _LIBADD variable.
77893         (func_emit_initmacro_start, func_emit_initmacro_end,
77894         func_emit_initmacro_done): New functions.
77895         (func_import, func_create_testdir): Invoke them. Allow the identifiers
77896         gl_LIBOBJS and gl_LTLIBOBJS.
77897
77898 2006-10-11  Bruno Haible  <bruno@clisp.org>
77899
77900         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
77901         (func_create_testdir): Don't create po/Makefile.am, don't invoke
77902         autoreconf. Instead, invoke autopoint explicitly but move back the
77903         *.m4 files from gnulib.
77904
77905 2006-10-11  Bruno Haible  <bruno@clisp.org>
77906
77907         * gnulib-tool (func_usage): Make module names after --create-testdir
77908         optional.
77909         (func_create_testdir): If no module was specified, use nearly all
77910         modules.
77911
77912 2006-10-12  Jim Meyering  <jim@meyering.net>
77913
77914         Big performance improvement for fts-based tools that use FTS_NOSTAT.
77915         Avoid spurious inode-mismatch problems on non-POSIX file systems.
77916         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
77917         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
77918         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
77919         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
77920         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
77921         (fts_set_stat_required): New function.
77922         (fts_open): Defer the calls to fts_stat, if possible or requested.
77923         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
77924         into fts_stat itself.
77925         (fts_read): Perform any required (deferred) fts_stat call.
77926         (fts_build): Likewise, for the directory we're about to open and read.
77927         In the readdir loop, carefully decide whether each entry will require
77928         an eventual call to fts_stat, using dirent.d_type info if available.
77929         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
77930         a command line argument into this function.  Update all callers.
77931         Map a return value of FTS_DOT to FTS_D for a command line argument.
77932         * modules/fts (Depends-on): Add d-type.  Alphabetize.
77933         Thanks to Miklos Szeredi for his tenacity and for the initial
77934         bug report about "find" failing on a FUSE-based file system.
77935
77936         * lib/fts.c (fts_open): Use consistent indentation.
77937
77938 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77939
77940         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
77941         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
77942         reported by Jim Meyering.  All uses of cache variables renamed
77943         to match Autoconf's.
77944         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
77945         the other one.
77946
77947         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77948         Fix misspelling in diagnostic.
77949
77950 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77951
77952         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
77953         defined.  Problem reported by Matthew Woehlke.
77954
77955         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
77956         Add support for Tandem NonStop R series.
77957         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
77958         Use new macro.
77959
77960         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
77961         (has_trailing_slash): Omit size arg; all callers changed.
77962         Omit 'inline', since it doesn't help performance and we'd
77963         need to configure it.
77964         Don't count //, ///, etc. as having a trailing slash.
77965         As a side effect, this removes a C99ism reported by Matthew Woehlke.
77966         (rpl_rename_dest_slash): On failure, use rename's errno rather
77967         than (in some cases) an incorrect or junk errno.
77968         Simplify code by removing need to compute length; this does
77969         cause it to make two passes instead of one over the file name,
77970         but it's worth it.
77971
77972         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
77973         change, since Autoconf's version may no longer be appropriate now
77974         that we are using CVS Autoconf's version.  Add support for Tandem.
77975
77976 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77977             Bruno Haible  <bruno@clisp.org>
77978
77979         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
77980         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
77981         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
77982         gl_AC_TYPE_LONG_LONG.
77983
77984         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
77985         instead of HAVE_LONG_LONG.
77986         * lib/printf-args.c (printf_fetchargs): Likewise.
77987         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
77988         * lib/vasnprintf.c (VASNPRINTF): Likewise.
77989         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
77990         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
77991         gl_AC_TYPE_LONG_LONG.
77992
77993 2006-10-11  Bruno Haible  <bruno@clisp.org>
77994
77995         * m4/longlong.m4: Add comments.
77996         * m4/ulonglong.m4: Likewise.
77997
77998 2006-10-10  Bruno Haible  <bruno@clisp.org>
77999
78000         Make it possible to #define stpcpy, strdup to aliases.
78001         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
78002         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
78003
78004 2006-10-10  Bruno Haible  <bruno@clisp.org>
78005
78006         Make it possible to #define gcd to an alias.
78007         * lib/gcd.c: Include config.h.
78008
78009 2006-10-10  Bruno Haible  <bruno@clisp.org>
78010
78011         Make it possible to #define c_isascii to an alias.
78012         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
78013         defined. Undefine the macros before defining them, to avoid gcc
78014         warnings.
78015         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
78016         define NO_C_CTYPE_MACROS early.
78017
78018 2006-10-10  Bruno Haible  <bruno@clisp.org>
78019
78020         Make it possible to #define set_program_name to an alias.
78021         * lib/progname.c: Don't undefine set_program_name; instead, undefine
78022         ENABLE_RELOCATABLE early.
78023
78024 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78025
78026         Port to Tandem NSK OSS, which has 64-bit signed int but at most
78027         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
78028         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
78029         More generally, don't assume that 64-bit signed int is available
78030         if unsigned int is, and vice versa.
78031         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
78032         unsigned symbols, not on their signed counterparts.
78033         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
78034         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
78035         (UINT64_C, UINTMAX_C):
78036         Likewise.
78037         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
78038         unsigned counterparts.
78039         (Have_long_long, Unsigned): New macros.
78040         (Int): Renamed from INT.
78041         (strtoimax): Use the new macros.
78042         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
78043         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
78044         * modules/inttypes (inttypes.h): Substitute
78045         HAVE_UNSIGNED_LONG_LONG_INT.
78046         * modules/stdint (stdint.h): Likewise.
78047         (Files): Add m4/ulonglong.m4.
78048
78049 2006-10-10  Bruno Haible  <bruno@clisp.org>
78050
78051         Fix a gcc -Wshadow warning.
78052         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
78053         to 'bucket'.
78054         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
78055         gl_linked_indexof_from_to): Likewise.
78056         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
78057         Likewise.
78058         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
78059         Likewise.
78060         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
78061         Reported by Eric Blake.
78062
78063 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
78064
78065         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
78066         for NetBSD.  Problem reported by Bruno Haible.
78067
78068 2006-10-09  Jim Meyering  <jim@meyering.net>
78069
78070         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
78071         Patch from Bruno Haible.
78072
78073 2006-10-09  Jim Meyering  <jim@meyering.net>
78074
78075         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
78076         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
78077         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
78078
78079 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
78080
78081         Don't include <config.h> twice; this doesn't work in some cases,
78082         e.g., when config.h has "#define intmax_t long long int" and
78083         we include <config.h>, <inttypes.h>, <config.h> in that order.
78084         Problem reported by Matthew Woehlke in:
78085         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
78086         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
78087         * lib/fts-cycle.c: Don't include config.h.
78088         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
78089         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
78090         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
78091         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
78092         inttypes.h.
78093         * lib/xstrtoumax.c: Likewise.
78094         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
78095         __strtol and the like, so that this module is more like its siblings.
78096         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
78097         Remove; no longer needed now that we assume gnulib inttypes.h.
78098
78099 2006-10-08  Bruno Haible  <bruno@clisp.org>
78100
78101         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
78102         option.
78103
78104 2006-10-07  Jim Meyering  <jim@meyering.net>
78105
78106         * modules/inttypes (inttypes.h): Revert what seems to have been
78107         an inadvertent part of today's change: use "|", not "/" in the
78108         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
78109
78110 2006-10-07  Bruno Haible  <bruno@clisp.org>
78111
78112         * modules/sublist: New file.
78113
78114 2006-10-07  Bruno Haible  <bruno@clisp.org>
78115
78116         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
78117         * modules/argz (argz.h): Likewise.
78118         * modules/arpa_inet (arpa/inet.h): Likewise.
78119         * modules/byteswap (byteswap.h): Likewise.
78120         * modules/configmake (configmake.h): Likewise.
78121         * modules/fcntl (fcntl.h): Likewise.
78122         * modules/fnmatch (fnmatch.h): Likewise.
78123         * modules/getopt (getopt.h): Likewise.
78124         * modules/glob (glob.h): Likewise.
78125         * modules/inttypes (inttypes.h): Likewise.
78126         * modules/netinet_in (netinet/in.h): Likewise.
78127         * modules/poll (poll.h): Likewise.
78128         * modules/stdbool (stdbool.h): Likewise.
78129         * modules/stdint (stdint.h): Likewise.
78130         * modules/sys_select (sys/select.h): Likewise.
78131         * modules/sys_socket (sys/socket.h): Likewise.
78132         * modules/sys_stat (sys/stat.h): Likewise.
78133         * modules/sysexits (sysexits.h): Likewise.
78134         * modules/unistd (unistd.h): Likewise.
78135         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78136         Add a "DO NOT EDIT" comment to the generated file.
78137         (func_import): Likewise for gnulib-comp.m4.
78138
78139 2006-10-07  Bruno Haible  <bruno@clisp.org>
78140
78141         * lib/gl_sublist.h: New file.
78142         * lib/gl_sublist.c: New file.
78143
78144 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78145
78146         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
78147         name (relative to the original working directory) and the file
78148         name component (relative to the temporary working directory).  All
78149         callers changed.
78150         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
78151         * lib/mkdir-p.c (make_dir_parents): Likewise.
78152         * lib/mkdir-p.h (make_dir_parents): Likewise.
78153
78154 2006-10-06  Eric Blake  <ebb9@byu.net>
78155
78156         Define several macros for use by the clean-temp module.
78157         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
78158         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
78159         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
78160
78161         * lib/clean-temp.h (close_stream_temp): New declaration.
78162         * lib/clean-temp.c (includes): Pull in headers according to what
78163         other modules are in use.
78164         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
78165
78166 2006-10-06  Bruno Haible  <bruno@clisp.org>
78167
78168         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
78169         instead of fopen, fwriteerror.
78170
78171 2006-10-06  Bruno Haible  <bruno@clisp.org>
78172
78173         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
78174         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
78175         int.
78176         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
78177         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
78178         Return an error indicator.
78179         Suggested by Eric Blake.
78180
78181 2006-10-06  Bruno Haible  <bruno@clisp.org>
78182
78183         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
78184         Reported by Eric Blake.
78185
78186 2006-10-06  Bruno Haible  <bruno@clisp.org>
78187
78188         * modules/closeout (Description): Mention stderr too.
78189
78190 2006-10-06  Bruno Haible  <bruno@clisp.org>
78191         and Paul Eggert  <eggert@cs.ucla.edu>
78192
78193         * lib/closeout.c (close_stdout): Also close stderr.
78194         * lib/closeout.h: Update comment.
78195
78196 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78197
78198         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
78199         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
78200         * lib/dirchownmod.c: Include lchown.h.
78201         * lib/lchown.c: Don't include files that lchown.h now includes.
78202         Don't declare chown, since lchown.h now does that.
78203         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
78204         (lchown): Define to rpl_chown if lchown is declared but
78205         does not exist.  Declare using a prototype if lchown is not
78206         declared.  Add a copyright notice.
78207         * lib/mkstemp.h: Include <unistd.h>.
78208         * lib/openat.c: Include lchown.h.
78209
78210         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
78211         we now test for that separately.
78212         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
78213         rather than O_NOFOLLOW, when testing whether it's possible to
78214         avoid a race condition reliably.
78215         * lib/savewd.c (savewd_chdir): Likewise.
78216
78217         Remove macros that are no longer needed now that stdint.h is
78218         reliable.
78219         * lib/fsusage.c (UINTMAX_MAX): Remove.
78220         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
78221         * lib/utimecmp.c (SIZE_MAX): Remove.
78222
78223         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
78224
78225         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
78226         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
78227         O_NOATIME works.
78228
78229 2006-10-05  Bruno Haible  <bruno@clisp.org>
78230
78231         * lib/gl_list.h (gl_sortedlist_search_from_to,
78232         gl_sortedlist_indexof_from_to): New declarations.
78233         (gl_list_implementation): New fields sortedlist_search_from_to,
78234         sortedlist_indexof_from_to.
78235         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
78236         inline functions.
78237         * lib/gl_list.c (gl_sortedlist_search_from_to,
78238         gl_sortedlist_indexof_from_to): New functions.
78239         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
78240         function.
78241         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
78242         (gl_array_sortedlist_search_from_to): New function.
78243         (gl_array_list_implementation): Update.
78244         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
78245         function.
78246         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
78247         (gl_carray_sortedlist_search_from_to): New function.
78248         (gl_carray_list_implementation): Update.
78249         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
78250         gl_linked_sortedlist_indexof_from_to): New functions.
78251         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78252         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78253         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
78254         gl_tree_sortedlist_indexof_from_to): New functions.
78255         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78256         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78257         Update.
78258         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78259         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
78260         Update.
78261
78262 2006-10-05  Bruno Haible  <bruno@clisp.org>
78263
78264         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
78265         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
78266         (struct gl_list_implementation): Add fields search_from_to,
78267         indexof_from_to. Remove fields search, indexof.
78268         (gl_list_search): Use the search_from_to method.
78269         (gl_list_search_from, gl_list_search_from_to): New functions.
78270         (gl_list_indexof): Use the indexof_from_to method.
78271         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78272         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
78273         (gl_list_search_from, gl_list_search_from_to): New functions.
78274         (gl_list_indexof): Use the indexof_from_to method.
78275         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78276         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
78277         gl_array_indexof. Add start_index, end_index arguments.
78278         (gl_array_search_from_to): Renamed from gl_array_search. Add
78279         start_index, end_index arguments.
78280         (gl_array_remove, gl_array_list_implementation): Update.
78281         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
78282         gl_carray_indexof. Add start_index, end_index arguments.
78283         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
78284         start_index, end_index arguments.
78285         (gl_carray_remove, gl_carray_list_implementation): Update.
78286         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
78287         gl_linked_search. Add start_index, end_index arguments.
78288         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
78289         start_index, end_index arguments.
78290         (gl_linked_remove): Update.
78291         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78292         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78293         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
78294         field to 'size_t'.
78295         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
78296         gl_tree_search. Add start_index, end_index arguments.
78297         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78298         start_index, end_index arguments.
78299         (gl_tree_remove): Update.
78300         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78301         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78302         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
78303         function.
78304         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
78305         gl_tree_search. Add start_index, end_index arguments.
78306         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78307         start_index, end_index arguments.
78308         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78309         Update.
78310         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78311
78312 2006-10-05  Bruno Haible  <bruno@clisp.org>
78313
78314         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
78315
78316         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
78317         fwriteerror_temp): New declarations.
78318         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
78319         (descriptors): New variable.
78320         (cleanup): First, close the descriptors.
78321         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
78322         fclose_temp, fwriteerror_temp): New functions.
78323
78324 2006-10-04  Jim Meyering  <jim@meyering.net>
78325
78326         * lib/fts.c (fts_open): Tiny comment change.
78327
78328 2006-10-04  Bruno Haible  <bruno@clisp.org>
78329
78330         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78331         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78332         gl_LOCK_BODY.
78333         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78334         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78335         gl_LOCK_EARLY_BODY.
78336         (gl_LOCK): Require gl_LOCK_BODY.
78337
78338 2006-10-04  Bruno Haible  <bruno@clisp.org>
78339
78340         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78341         (gl_oset_search_atleast): New declaration.
78342         (struct gl_oset_implementation): Add field 'search_atleast'.
78343         (gl_oset_search_atleast): New inline function.
78344         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78345         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78346         (gl_array_oset_implementation): Update.
78347         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78348         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78349         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78350
78351 2006-10-04  Bruno Haible  <bruno@clisp.org>
78352
78353         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78354
78355 2006-10-03  Bruno Haible  <bruno@clisp.org>
78356
78357         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78358         from gl_avltreehash_list_implementation.
78359
78360 2006-10-03  Bruno Haible  <bruno@clisp.org>
78361
78362         * lib/gl_oset.c (gl_oset_add): Fix return type.
78363
78364 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78365
78366         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78367
78368 2006-10-02  Eric Blake  <ebb9@byu.net>
78369
78370         * modules/strnlen (Depends-on): Add extensions.
78371
78372 2006-10-02  Eric Blake  <ebb9@byu.net>
78373
78374         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78375         definition in 2.60+.
78376
78377 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78378
78379         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78380         checks.
78381
78382 2006-10-02  Bruno Haible  <bruno@clisp.org>
78383
78384         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78385         to the AUTOMAKE_OPTIONS.
78386         Reported by Jim Meyering.
78387
78388 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78389
78390         Work around bug in Solaris 10 /proc file system:
78391         /proc/self/fd/NNN/.. isn't the parent directory of
78392         the directory whose file descriptor is NNN.  This needs to
78393         be worked around at run time, not compile time, since a
78394         program might be built on Solaris 8, where things work, and
78395         run on Solaris 10.
78396         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78397         to use the following interface instead:
78398         (OPENAT_BUFFER_SIZE): New macro.
78399         (openat_proc_name): New function.
78400         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78401         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78402         Likewise.
78403         * lib/openat-proc.c: New file.
78404         * modules/openat (Files): Add lib/openat-proc.c.
78405         (Depends-on): Add same-inode, stdbool.
78406         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78407
78408 2006-09-29  Bruno Haible  <bruno@clisp.org>
78409
78410         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78411         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78412         argument. Set stdout_closed before testing for ferror, not after.
78413         (fwriteerror, fwriteerror_no_ebadf): New functions.
78414
78415 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78416
78417         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78418
78419 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78420
78421         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78422         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78423
78424 2006-09-28  Jim Meyering  <jim@meyering.net>
78425
78426         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78427         Include <unistd.h>.
78428
78429 2006-09-28  Bruno Haible  <bruno@clisp.org>
78430
78431         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78432         * modules/linkedhash-list (Depends-on): Likewise.
78433         * modules/rbtreehash-list (Depends-on): Likewise.
78434
78435 2006-09-28  Bruno Haible  <bruno@clisp.org>
78436
78437         * lib/strndup.h: Simplify the redefinition of strndup.
78438         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78439         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78440
78441 2006-09-28  Bruno Haible  <bruno@clisp.org>
78442
78443         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78444         * lib/gl_linkedhash_list.c: Likewise.
78445         * lib/gl_rbtreehash_list.c: Likewise.
78446
78447 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78448
78449         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78450         getaddrinfo.
78451
78452         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78453         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78454         it causes <stdio_ext.h> to cause a compile-time error.
78455         Problem reported by Nelson H. F. Beebe.
78456         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78457         of HAVE_DECL___PENDING.
78458
78459         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78460         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78461         declaration.
78462
78463 2006-09-27  Jim Meyering  <jim@meyering.net>
78464
78465         This file could end up with a definition for a function
78466         named __strndup, rather than rpl_strndup on a system with
78467         incomplete weak_alias support.
78468         * lib/strndup.c (strndup): Rename from __strndup.
78469         Remove #defines that used to map __strndup to strndup.
78470         Don't use K&R prototypes.
78471         Remove LIBC-related code, since this file is not sync'd with glibc.
78472         * lib/strndup.h: Revamp, accordingly.
78473         * m4/strndup.m4: Modernize.
78474
78475 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78476
78477         * modules/savewd (Depends-on): Add 'raise'.
78478         * lib/savewd.c: Include <signal.h>, for 'raise'.
78479
78480 2006-09-26  Jim Meyering  <jim@meyering.net>
78481
78482         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
78483         when we detect Darwin 8.7.0's acl_get_file bug.
78484         Rearrange to perform the new (below) run-test while $LIBS
78485         contains any acl-related library.  Set USE_ACL at the end.
78486         (gl_ACL_GET_FILE): New function.
78487
78488 2006-09-26  Eric Blake  <ebb9@byu.net>
78489
78490         * lib/verror.c: Include <config.h> unconditionally.
78491
78492 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
78493
78494         * modules/clock-time (Maintainer): Add self.
78495         * modules/getlogin_r (Depends-on): Add extensions.
78496
78497 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78498
78499         * modules/clock-time: New module.
78500         * modules/nanosleep (Depends-on): Add clock-time.
78501         * modules/gethrxtime (Depends-on): Likewise.
78502         * modules/gettime (Depends-on): Likewise.
78503         * modules/settime (Depends-on): Likewise.
78504
78505         * modules/fts-lgpl: Depend on openat.
78506         * modules/mkancesdirs: Depend on savewd.
78507         * modules/mkdir-p: Likewise.
78508
78509 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78510
78511         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
78512
78513         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
78514         `gl_have_arbitrary_file_name_length_limit' to
78515         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
78516         actually works between configure runs.
78517
78518 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78519             Bruno Haible  <bruno@clisp.org>
78520
78521         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
78522
78523 2006-09-25  Jim Meyering  <jim@meyering.net>
78524
78525         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
78526         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
78527
78528 2006-09-25  Eric Blake  <ebb9@byu.net>
78529
78530         * gnulib-tool (func_import, func_create_testdir): Fix typos in
78531         exec's in 2006-09-18 patch when shuffling fds.
78532
78533 2006-09-25  Bruno Haible  <bruno@clisp.org>
78534
78535         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
78536         Reported by Jim Meyering.
78537
78538 2006-09-24  Jim Meyering  <jim@meyering.net>
78539
78540         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
78541         compare a pointer against a literal "0".  That caused failures with
78542         at least HP-UX's hpcc.
78543
78544 2006-09-22  Simon Josefsson  <jas@extundo.com>
78545
78546         * modules/gc-sha1:
78547         * modules/gc-md4:
78548         * modules/gc-hmac-sha1:
78549         * modules/gc-hmac-md5:
78550         * modules/gc-des:
78551         * modules/gc-arcfour: Distribute more files.
78552
78553 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78554
78555         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
78556         (gl_linked_iterator_from_to): Initialize struct completely.
78557         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
78558         (gl_tree_iterator_from_to): Likewise
78559         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
78560         * lib/gl_array_list.c [lint] (gl_array_iterator)
78561         (gl_array_iterator_from_to): Likewise.
78562         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
78563         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
78564         (gl_carray_iterator_from_to): Likewise.
78565
78566         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
78567         * lib/md4.c (md4_process_block): Remove unused variable.
78568         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
78569         parentheses for clarity.
78570
78571 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78572
78573         * modules/bison-i18n (Depends-on): Add gettext.
78574
78575 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78576
78577         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
78578         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
78579         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
78580         also add missing comma that caused broken test.
78581         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
78582         stdlib.h, for `abort'.
78583         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
78584         variables.
78585         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
78586         include unistd.h if present, for `rmdir'.
78587         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
78588         variables.
78589         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
78590         in the process include standard headers for prototypes.
78591         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
78592         gets declared on GNU/Linux.
78593         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
78594         unistd.h, for `rmdir'.
78595         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
78596
78597         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
78598         always true.
78599         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
78600
78601         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
78602
78603 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78604
78605         * gnulib-tool (func_version): Create output all at once.  This
78606         may help avoid triggering unnecessary SIGPIPEs, and at any
78607         rate it doesn't hurt.
78608
78609 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78610             Bruno Haible  <bruno@clisp.org>
78611
78612         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
78613         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
78614         * m4/signed.m4 (bh_C_SIGNED): Likewise.
78615
78616         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
78617         (gl_FUNC_VASPRINTF): Invoke it.
78618
78619 2006-09-22  Bruno Haible  <bruno@clisp.org>
78620
78621         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
78622         getloadavg.c as first argument.
78623
78624 2006-09-22  Bruno Haible  <bruno@clisp.org>
78625
78626         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
78627         at the beginning of the gl_INIT macro.
78628         * modules/getloadavg (configure.ac): Pass $gl_source_base to
78629         gl_GETLOADAVG.
78630
78631 2006-09-22  Bruno Haible  <bruno@clisp.org>
78632
78633         * gnulib-tool (func_create_megatestdir): Don't include the config-h
78634         module.
78635         Suggested by Ralf Wildenhues.
78636
78637 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78638
78639         Import this patch from libc:
78640
78641         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
78642
78643         * lib/regex_internal.c (re_string_reconstruct): Handle
78644         offset < pstr->valid_raw_len && pstr->offsets_needed case.
78645         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
78646         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
78647         re_string_context_at.
78648
78649         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
78650         now requires it.
78651         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
78652         gl_REGEX now does it for us.
78653         (gl_REGEX): Add test taken from
78654         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
78655
78656         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
78657         Check that large offsets work.  Modernize Autoconf usages.
78658         Prefer "yes" to mean a good thing rather than a bad.
78659         Don't put "#define mkstemp" in config.h, as this might interfere
78660         with standard system headers that "#define mkstemp mkstemp64".
78661
78662         * modules/mkstemp (Depends-on): Add extensions, so that
78663         mkstemp is visible on some platforms.
78664         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
78665         (Include): Change to "mkstemp.h" from <stdlib.h>.
78666         (Files): Add mkstemp.h.
78667
78668         * lib/mkstemp.h: New file, since some standard headers
78669         #define mkstemp.
78670         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
78671         Include "mkstemp.h".
78672         Make the _LIBC code resemble glibc original more,
78673         e.g., use K&R style.
78674         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
78675         (mkstemp): Remove, since mkstemp.h does this for us.
78676         * lib/stdlib--.h: Include mkstemp.h.
78677
78678         Import this patch from libc:
78679
78680         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78681
78682         * lib/tempname.c (__gen_tempname): Change attempts_min
78683         into a macro.  Use preprocessor to decide how to initialize
78684         attempts [Coverity CID 67].
78685
78686 2006-09-20  Bruno Haible  <bruno@clisp.org>
78687
78688         * lib/mkdtemp.c: Import from libc.
78689         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78690                 * sysdeps/posix/tempname.c (__gen_tempname): Change
78691                 attempts_min into a macro.  Use preprocessor to decide how to
78692                 initialize attempts [Coverity CID 67].
78693         2001-11-27  Paul Eggert  <eggert@twinsun.com>
78694                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
78695                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
78696
78697 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78698
78699         * gnulib-tool (func_exit): New function, to allow to pass the
78700         exit status portably through the trap.  Use everywhere.
78701         (--help, --version): Signal a write error.
78702         (trap): catch SIGPIPE, for write errors.
78703         Exit at the end of the trap, with the correct exit status.
78704
78705 2006-09-19  Karl Berry  <karl@gnu.org>
78706
78707         * doc/gnulib.texi: note about the license texinfo files.
78708
78709 2006-09-19  Eric Blake  <ebb9@byu.net>
78710
78711         * gnulib-tool: Avoid space-tab.
78712
78713 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78714
78715         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
78716         that prevented coreutils 6.1 from building.  Problem reported
78717         by Petter Reinholdtsen.
78718
78719 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78720
78721         * gnulib-tool (avoidlist): Fix typo that broke options like
78722         --avoid=lock that are used by coreutils bootstrap.
78723
78724 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
78725
78726         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
78727         more systematically.
78728
78729 2006-09-18  Jim Meyering  <jim@meyering.net>
78730
78731         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
78732
78733 2006-09-18  Bruno Haible  <bruno@clisp.org>
78734
78735         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
78736
78737 2006-09-18  Bruno Haible  <bruno@clisp.org>
78738
78739         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
78740         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
78741         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
78742         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
78743         * m4/gettext.m4: Require autoconf >= 2.52.
78744         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
78745         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
78746         of gl_cv_header_inttypes_h.
78747
78748 2006-09-18  Bruno Haible  <bruno@clisp.org>
78749
78750         * lib/javaversion.c: Include configmake.h.
78751
78752 2006-09-18  Bruno Haible  <bruno@clisp.org>
78753
78754         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
78755         avoid that the while loops be executed in a subshell.
78756
78757 2006-09-18  Bruno Haible  <bruno@clisp.org>
78758
78759         * MODULES.html.sh (func_module): Break long lines.
78760         Suggested by Bruce Korb <bkorb@gnu.org>.
78761
78762 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78763
78764         Speed up by a factor of 1.12.
78765         * gnulib-tool (nl): New variable.
78766         (func_import): Rewrite include directive extraction to only read each
78767         directive once.
78768
78769 2006-09-17  Bruno Haible  <bruno@clisp.org>
78770
78771         * modules/javaversion (Makefile.am): Remove DEFS setting.
78772         (Depends-on): Add configmake, for PKGDATADIR definition.
78773
78774 2006-09-17  Bruno Haible  <bruno@clisp.org>
78775
78776         * gnulib-tool (func_create_testdir): Rewrite all files at once.
78777
78778 2006-09-17  Bruno Haible  <bruno@clisp.org>
78779
78780         * gnulib-tool (func_append): New function, stolen from libtool.m4.
78781         (func_modules_transitive_closure, func_modules_add_dummy,
78782         func_modules_to_filelist, func_import, func_create_testdir,
78783         func_create_megatestdir, ...): Use it wherever possible.
78784         Suggested by Ralf Wildenhues.
78785
78786 2006-09-16  Karl Berry  <karl@gnu.org>
78787
78788         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
78789         to avoid sectioning errors.
78790         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
78791         [ifinfo]: blank line after @center-ed titles.
78792         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
78793         Spell FSF address consistently with others.
78794         (These changes approved by rms.)
78795
78796 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78797
78798         Speed up by a factor of 1.61.
78799         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
78800         already checked module names again.
78801
78802 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78803
78804         Speed up by a factor of 1.13.
78805         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
78806         for new_files, and the input to func_add_or_update.
78807
78808 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78809
78810         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
78811         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
78812
78813 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78814
78815         * modules/mkancesdirs (Depends-on): Add fcntl.
78816         * modules/savewd: New file.
78817         * MODULES.html.sh (File system functions): Add savewd.
78818
78819         * modules/configmake (Makefile.am): Add support for the
78820         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
78821
78822 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78823
78824         * m4/savewd.m4: New file.
78825
78826 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78827
78828         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
78829         (dirchownmod): New arg FD.  All callers changed.
78830         Use FD rather than opening the directory ourself, as opening is
78831         now the caller's responsibility.
78832         * lib/dirchownmod.h: Likewise.
78833         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
78834         hosts that require <sys/types.h> before <sys/stat.h>.  Include
78835         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
78836         (test_dir): Remove.
78837         (mkancesdirs): Return length of prefix of FILE that has already
78838         been made, or -2 if there is a child doing the work.  Redo
78839         algorithm so that it is O(N) rather than O(N**2).  Optimize away
78840         ".", and treat ".." specially since it might stray back into
78841         already-created areas.  Use a subprocess if necessary.  New arg
78842         WD; all users changed.  MAKE_DIR function should now return 1
78843         if it creates a directory that is not readable.  Return -2 if
78844         a child process is spun off.
78845         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
78846         Adjust signature to match code.
78847         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
78848         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
78849         all users changed.
78850         * lib/savewd.c, lib/savewd.h: New files.
78851
78852 2006-09-15  Jim Meyering  <jim@meyering.net>
78853
78854         * modules/rename-dest-slash: New module.
78855         * MODULES.html.sh (posix_compat): Add it here.
78856
78857         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
78858
78859 2006-09-15  Jim Meyering  <jim@meyering.net>
78860
78861         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
78862         file.
78863
78864         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
78865
78866 2006-09-15  Jim Meyering  <jim@meyering.net>
78867
78868         * lib/rename-dest-slash.c (has_trailing_slash): Use
78869         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
78870         (rpl_rename_dest_slash): Perform the cheaper trailing slash
78871         test before testing whether SRC is a directory.
78872         Suggestions from Bruno Haible.
78873
78874         Avoid a warning about an unused variable.
78875         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
78876         into the #ifdef block where it's used.
78877
78878         * lib/rename-dest-slash.c: New file.
78879
78880 2006-09-14  Bruno Haible  <bruno@clisp.org>
78881
78882         * lib/allocsa.c: Include <config.h> unconditionally.
78883         * lib/asnprintf.c: Likewise.
78884         * lib/asprintf.c: Likewise.
78885         * lib/c-strcasecmp.c: Likewise.
78886         * lib/c-strcasestr.c: Likewise.
78887         * lib/c-strncasecmp.c: Likewise.
78888         * lib/c-strstr.c: Likewise.
78889         * lib/classpath.c: Likewise.
78890         * lib/clean-temp.c: Likewise.
78891         * lib/concatpath.c: Likewise.
78892         * lib/copy-file.c: Likewise.
78893         * lib/csharpcomp.c: Likewise.
78894         * lib/csharpexec.c: Likewise.
78895         * lib/execute.c: Likewise.
78896         * lib/fatal-signal.c: Likewise.
78897         * lib/findprog.c: Likewise.
78898         * lib/fwriteerror.c: Likewise.
78899         * lib/gl_array_list.c: Likewise.
78900         * lib/gl_array_oset.c: Likewise.
78901         * lib/gl_avltree_list.c: Likewise.
78902         * lib/gl_avltree_oset.c: Likewise.
78903         * lib/gl_avltreehash_list.c: Likewise.
78904         * lib/gl_carray_list.c: Likewise.
78905         * lib/gl_linked_list.c: Likewise.
78906         * lib/gl_linkedhash_list.c: Likewise.
78907         * lib/gl_list.c: Likewise.
78908         * lib/gl_oset.c: Likewise.
78909         * lib/gl_rbtree_list.c: Likewise.
78910         * lib/gl_rbtree_oset.c: Likewise.
78911         * lib/gl_rbtreehash_list.c: Likewise.
78912         * lib/imaxabs.c: Likewise.
78913         * lib/imaxdiv.c: Likewise.
78914         * lib/javacomp.c: Likewise.
78915         * lib/javaexec.c: Likewise.
78916         * lib/javaversion.c: Likewise.
78917         * lib/linebreak.c: Likewise.
78918         * lib/localcharset.c: Likewise.
78919         * lib/lock.c: Likewise.
78920         * lib/mbchar.c: Likewise.
78921         * lib/mbswidth.c: Likewise.
78922         * lib/mkdtemp.c: Likewise.
78923         * lib/pipe.c: Likewise.
78924         * lib/printf-args.c: Likewise.
78925         * lib/printf-parse.c: Likewise.
78926         * lib/progname.c: Likewise.
78927         * lib/progreloc.c: Likewise.
78928         * lib/readlink.c: Likewise.
78929         * lib/sh-quote.c: Likewise.
78930         * lib/stpcpy.c: Likewise.
78931         * lib/stpncpy.c: Likewise.
78932         * lib/strcasecmp.c: Likewise.
78933         * lib/strcasestr.c: Likewise.
78934         * lib/strcspn.c: Likewise.
78935         * lib/striconv.c: Likewise.
78936         * lib/strncasecmp.c: Likewise.
78937         * lib/strnlen1.c: Likewise.
78938         * lib/strstr.c: Likewise.
78939         * lib/strtok_r.c: Likewise.
78940         * lib/tls.c: Likewise.
78941         * lib/tmpdir.c: Likewise.
78942         * lib/unicodeio.c: Likewise.
78943         * lib/unsetenv.c: Likewise.
78944         * lib/vasnprintf.c: Likewise.
78945         * lib/vasprintf.c: Likewise.
78946         * lib/wait-process.c: Likewise.
78947         * lib/xallocsa.c: Likewise.
78948         * lib/xsetenv.c: Likewise.
78949         * lib/xstriconv.c: Likewise.
78950
78951 2006-09-13  Simon Josefsson  <jas@extundo.com>
78952
78953         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
78954         that internally, suggested by Ralf Wildenhues
78955         <Ralf.Wildenhues@gmx.de>.
78956
78957 2006-09-13  Simon Josefsson  <jas@extundo.com>
78958
78959         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
78960         @LIBOBJS@.
78961         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78962
78963 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78964
78965         * lib/_fpending.c: Include <config.h> unconditionally, since we no
78966         longer worry about uses that don't define HAVE_CONFIG_H.
78967         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
78968         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
78969         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
78970         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
78971         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
78972         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
78973         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
78974         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
78975         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
78976         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
78977         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
78978         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
78979         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
78980         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
78981         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
78982         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
78983         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
78984         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
78985         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
78986         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
78987         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
78988         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
78989         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
78990         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
78991         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
78992         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
78993         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
78994         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
78995         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
78996         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
78997         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
78998         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
78999         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
79000         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
79001         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
79002         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
79003         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
79004         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
79005         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
79006         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
79007         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
79008         Likewise.
79009
79010 2006-09-13  Eric Blake  <ebb9@byu.net>
79011
79012         * lib/getopt.c: Fix typo in last commit.
79013
79014 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79015
79016         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
79017         dgettext.
79018
79019 2006-09-12  Jim Meyering  <jim@meyering.net>
79020
79021         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
79022         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
79023         Reported by Nelson H. F. Beebe.
79024
79025 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79026
79027         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
79028         program_invocation_name and program_invocation_short_name are
79029         initialized.
79030         * lib/argp-namefrob.h: Move declarations of program_invocation_name
79031         and program_invocation_short_name to argp.h, so they are visible
79032         to user programs.
79033         * lib/argp.h: Likewise
79034
79035 2006-09-10  Bruno Haible  <bruno@clisp.org>
79036
79037         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79038         m4/inttypes_h.m4, m4/uintmax_t.m4.
79039
79040 2006-09-10  Bruno Haible  <bruno@clisp.org>
79041
79042         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
79043         gl_AC_TYPE_UINTMAX_T.
79044
79045 2006-09-10  Bruno Haible  <bruno@clisp.org>
79046
79047         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
79048
79049 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79050
79051         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
79052         convention.  Text proposed by Bruno Haible.
79053         (struct argp_option): Document the use of N_() wrappers.
79054
79055         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
79056         '\v', and translate the two parts separately, instead of feeding
79057         the whole string to gettext.  This allows to exclude
79058         '\v' from the strings visible to the translator by writing doc
79059         strings as N_("..") "\v" N_("..").
79060
79061 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
79062
79063         * config/srclist.txt: Undo latest change; the bug was fixed.
79064
79065 2006-09-09  Bruno Haible  <bruno@clisp.org>
79066
79067         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
79068         assignments if building a library without libtool.
79069         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
79070         in func_emit_lib_Makefile_am.
79071         (func_import): When building a static library libfoo.a, arrange to
79072         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
79073         (func_create_testdir): Likewise.
79074         * modules/gc (configure.ac, Makefile.am): If building statically,
79075         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
79076         * modules/iconvme (configure.ac, Makefile.am): Likewise.
79077         * modules/striconv (configure.ac, Makefile.am): Likewise.
79078         Based on a suggestion by Ralf Wildenhues.
79079
79080 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79081
79082         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
79083         Check for unistd.h too, since Autoconf doesn't assume POSIX.
79084         Also:
79085
79086         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79087         Add year_2050_test to catch glibc bug 2821
79088         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79089
79090         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79091         Prefer #ifdef to #if.
79092
79093         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
79094         Return from 'main' instead of calling 'exit'.
79095
79096 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79097
79098         * lib/mktime.c (guess_time_tm): Fix bug where mktime
79099         returned the maximum time_t value rather than (time_t) -1.
79100         Problem originally reported by William Bardwell
79101         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79102
79103         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79104         Moved to here ...
79105         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79106         ... from here.
79107
79108 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79109
79110         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
79111         2821 is fixed.
79112
79113 2006-09-08  Jim Meyering  <jim@meyering.net>
79114
79115         Don't make generated files read-only.  That would bother too many
79116         people.  However, do retain the ability to work when targets are
79117         read-only: remove the destination and temporary files before writing
79118         them (when generated via sed or echo), or by using the -f option for
79119         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
79120         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79121         * modules/byteswap, modules/configmake, modules/fcntl:
79122         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79123         * modules/localcharset, modules/netinet_in, modules/poll:
79124         * modules/stdbool, modules/stdint, modules/sys_select:
79125         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79126
79127 2006-09-08  Jim Meyering  <jim@meyering.net>
79128
79129         Avoid new build failure on FreeBSD 6.0.
79130         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
79131         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
79132         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
79133
79134 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79135
79136         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
79137
79138 2006-09-07  Jim Meyering  <jim@meyering.net>
79139
79140         Fix global typo in last change: use chmod u-w, not chmod u-x.
79141         Spotted by Paul Eggert and Bruce Korb.
79142         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79143         * modules/byteswap, modules/configmake, modules/fcntl:
79144         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79145         * modules/localcharset, modules/netinet_in, modules/poll:
79146         * modules/stdbool, modules/stdint, modules/sys_select:
79147         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79148
79149 2006-09-06  Jim Meyering  <jim@meyering.net>
79150
79151         Make generated files be read-only.
79152         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
79153         Ensure that each generated file is now read-only.
79154         * modules/argz: Likewise.
79155         * modules/arpa_inet: Likewise.
79156         * modules/byteswap: Likewise.
79157         * modules/configmake: Likewise.
79158         * modules/fcntl: Likewise.
79159         * modules/fnmatch: Likewise.
79160         * modules/getopt: Likewise.
79161         * modules/glob: Likewise.
79162         * modules/inttypes: Likewise.
79163         * modules/netinet_in: Likewise.
79164         * modules/poll: Likewise.
79165         * modules/stdbool: Likewise.
79166         * modules/stdint: Likewise.
79167         * modules/sys_select: Likewise.
79168         * modules/sys_socket: Likewise.
79169         * modules/sys_stat: Likewise.
79170         * modules/sysexits: Likewise.
79171         * modules/localcharset: Same as above, but continue using temporary
79172         file named "t-$@" (why different?) rather than the "$@-t" used
79173         everywhere else.
79174
79175         * modules/sysexits (Makefile.am): Replace literal occurrences
79176         of "sysexit.h" more readable, and more consistent, "$@".
79177
79178 2006-09-06  Bruno Haible  <bruno@clisp.org>
79179
79180         * modules/striconv: New file.
79181         * modules/xstriconv: New file.
79182         * MODULES.html.sh (Internationalization functions): Add striconv,
79183         xstriconv.
79184
79185 2006-09-06  Bruno Haible  <bruno@clisp.org>
79186
79187         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
79188         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
79189         not using libtool correctly.
79190
79191 2006-09-06  Bruno Haible  <bruno@clisp.org>
79192
79193         * lib/striconv.h: New file.
79194         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
79195         iconvstring.c.
79196         * lib/xstriconv.h: New file.
79197         * lib/xstriconv.c: New file.
79198
79199 2006-09-06  Bruno Haible  <bruno@clisp.org>
79200
79201         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
79202         lib_..._LDFLAGS.
79203
79204 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79205
79206         * lib/argz_.h: Sync from Libtool.
79207
79208         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
79209                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79210
79211         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
79212
79213 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79214
79215         * modules/trim: New file.
79216
79217 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79218
79219         * lib/trim.h: New file.
79220         * lib/trim.c: New file.
79221
79222 2006-09-05  Bruno Haible  <bruno@clisp.org>
79223
79224         * MODULES.html.sh (String handling): Add trim.
79225
79226 2006-09-04  Karl Berry  <karl@gnu.org>
79227
79228         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
79229         until next release.
79230
79231 2006-09-03  Bruno Haible  <bruno@clisp.org>
79232
79233         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
79234         correctly.
79235
79236 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79237
79238         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
79239         not gl_GETLOADAVG.  Omit unneeded semicolons.
79240         Problems reported by Ralf Wildenhues in
79241         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79242         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
79243         at the end, which is the usual gnulib style.
79244
79245         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
79246         of doing all the work ourselves.
79247         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
79248         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
79249
79250 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79251
79252         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
79253         Problem reported by Ralf Wildenhues in
79254         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79255
79256         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
79257         HAVE_STRUCT_STATFS_F_FSTYPENAME.
79258
79259 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79260
79261         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
79262         yesterday's patch by changing test -n to test -z.
79263
79264 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79265
79266         * modules/getloadavg (Files): Add m4/getloadavg.m4.
79267         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
79268         the former is now obsolescent.
79269
79270         * modules/chdir-long (Depends-on): Add fcntl.
79271
79272 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79273
79274         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
79275         obsolescent, and programs should use gnulib instead.
79276         * m4/getloadavg.m4: New file, with contents taken from Autoconf
79277         but with prefixes changed.
79278
79279 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79280
79281         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
79282         or stdbool.h, because they might not exist while configuring.
79283
79284         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
79285         Don't include unistd.h or limits.h; not needed, since chdir-long.h
79286         does that for us.
79287         (O_DIRECTORY): Remove.
79288
79289 2006-08-31  Eric Blake  <ebb9@byu.net>
79290
79291         * gnulib-tool: Don't let emacs change spaces to TAB.
79292
79293 2006-08-31  Bruno Haible  <bruno@clisp.org>
79294
79295         * gnulib-tool: When calling func_import more than once, do it in a
79296         subshell.
79297         Reported by Eric Blake <ebb9@byu.net>.
79298
79299 2006-08-31  Bruno Haible  <bruno@clisp.org>
79300
79301         * gnulib-tool (nl): Remove variable.
79302         (sed_transform_lib_file): Use more robust test for config-h module.
79303         (func_import): Fix typo in 2006-08-25 patch.
79304
79305 2006-08-31  Bruno Haible  <bruno@clisp.org>
79306
79307         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
79308         specified, augment Makefile.am variables instead of assigning them.
79309
79310 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79311
79312         Work around a bug in both the Linux and SunOS 64-bit kernels:
79313         nanosleep mishandles sleeps for longer than 2**31 seconds.
79314         Problem reported by Frank v Waveren in
79315         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79316         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
79317         Check for nanosleep bug.
79318         (LIB_NANOSLEEP): Append clock_gettime library if needed.
79319
79320 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79321
79322         Work around a bug in both the Linux and SunOS 64-bit kernels:
79323         nanosleep mishandles sleeps for longer than 2**31 seconds.
79324         Problem reported by Frank v Waveren in
79325         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79326         * lib/nanosleep.c (BILLION): New constant.
79327         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79328         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79329         implementation.
79330
79331 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79332
79333         * modules/nanosleep (Depends-on): Add gettime.
79334
79335 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79336         and Simon Josefsson  <jas@extundo.com>
79337         and Oskar Liljeblad  <oskar@osk.mine.nu>
79338
79339         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79340         * gnulib-tool (func_import): New license type 'unmodifiable license
79341         text'.
79342         * modules/fdl: Use it.  Longer description.
79343         * module/gpl, module/lgpl: New files.
79344
79345 2006-08-30  Jim Meyering  <jim@meyering.net>
79346
79347         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79348         shadowing the parameter.
79349
79350 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79351
79352         Sync from Libtool:
79353
79354         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79355
79356         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79357         sharing with gnulib.  Report by Eric Blake.
79358
79359 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79360
79361         * modules/isapipe: New file.
79362         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79363
79364 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79365
79366         * modules/configmake (Makefile.am): Add a comment, and omit
79367         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79368         by Bruno Haible.
79369
79370 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79371
79372         * m4/isapipe.m4: New file.
79373
79374 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79375
79376         * lib/isapipe.c, lib/isapipe.h: New files.
79377
79378 2006-08-29  Jim Meyering  <jim@meyering.net>
79379
79380         * modules/configmake (Makefile.am): Make configmake.h depend on
79381         Makefile.  Otherwise, a stale configmake.h could hang around.
79382
79383 2006-08-29  Eric Blake  <ebb9@byu.net>
79384
79385         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79386         resolution of upstream bug 3044.
79387
79388 2006-08-29  Bruno Haible  <bruno@clisp.org>
79389
79390         * modules/localcharset (Depends-on): Add configmake.
79391         (Makefile.am): Remove setting of LIBDIR through DEFS.
79392
79393 2006-08-29  Bruno Haible  <bruno@clisp.org>
79394
79395         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79396         defined.
79397
79398 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79399
79400         * modules/fcntl: New file.
79401         * modules/chdir-safer (Depends-on): Add fcntl.
79402         * modules/fts: Likewise.
79403         * modules/mkdir-p: Likewise.
79404
79405         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79406         This undoes the most recent change, since we're now addressing the
79407         problem in a different way.
79408
79409         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79410         into output, since the output might be called Makefile.am even
79411         if $makefile_name is something different.
79412         (func_import): Use $makefile_am rather than
79413         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79414         empty.
79415
79416         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79417
79418 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79419
79420         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79421         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79422         recent change to stdint.m4, since we're now addressing the problem in a
79423         different way.
79424
79425 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79426
79427         * m4/fcntl_h.m4: New file.
79428
79429 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79430
79431         * lib/fcntl_.h: New file.
79432         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79433         the fcntl module.
79434         * lib/dirchownmod.c: Likewise.
79435         * lib/fts.c: Likewise.
79436
79437         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79438         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79439         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79440         just before including <inttypes.h>, to avoid circular inclusion.
79441
79442 2006-08-28  Jim Meyering  <jim@meyering.net>
79443
79444         * doc/visibility.texi: Actually read and correct the grammar of the
79445         sentence affected by yesterday's change.
79446
79447 2006-08-28  Eric Blake  <ebb9@byu.net>
79448
79449         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79450         needs wrapper.
79451
79452 2006-08-28  Eric Blake  <ebb9@byu.net>
79453
79454         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79455
79456 2006-08-28  Eric Blake  <ebb9@byu.net>
79457
79458         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79459
79460 2006-08-28  Bruno Haible  <bruno@clisp.org>
79461
79462         * modules/c-strstr: New file, from GNU gettext.
79463         * MODULES.html.sh (String handling): Add c-strstr.
79464
79465 2006-08-28  Bruno Haible  <bruno@clisp.org>
79466
79467         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79468         macros.
79469         Reported by Eric Blake.
79470
79471 2006-08-28  Bruno Haible  <bruno@clisp.org>
79472
79473         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79474         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79475         * lib/vasprintf.c: Include errno.h, limits.h.
79476         (EOVERFLOW): New fallback definition.
79477         (vasprintf): Test here whether the string length is > INT_MAX.
79478         * lib/vsnprintf.c: Include errno.h, limits.h.
79479         (EOVERFLOW): New fallback definition.
79480         (vsnprintf): Fix bug when generated string was too long for the buffer.
79481         Test here whether the string length is > INT_MAX.
79482
79483 2006-08-28  Bruno Haible  <bruno@clisp.org>
79484
79485         * lib/inttypes_.h (SCNX*): Remove definitions.
79486         Reported by Eric Blake.
79487
79488 2006-08-28  Bruno Haible  <bruno@clisp.org>
79489
79490         * lib/c-strstr.h: New file, from GNU gettext.
79491         * lib/c-strstr.c: New file, from GNU gettext.
79492
79493 2006-08-28  Bruno Haible  <bruno@clisp.org>
79494
79495         * gnulib-tool: Reorder some statements.
79496
79497 2006-08-28  Bruno Haible  <bruno@clisp.org>
79498
79499         * gnulib-tool: New option --makefile-name.
79500         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
79501         $makefile_name.
79502         (func_import): Write $makefile_name to the cache file, and read it from
79503         there unless explicitly specified. Use $makefile_name as file name
79504         instead of Makefile.am. Adjust the recommendations accordingly.
79505
79506 2006-08-28  Bruno Haible  <bruno@clisp.org>
79507
79508         * gnulib-tool (func_verify_module): Check against misapplying patch.
79509
79510 2006-08-28  Bruno Haible  <bruno@clisp.org>
79511
79512         * gnulib-tool (func_relativize, func_relconcat): New functions.
79513         Give an error if --local-dir is given with --update.
79514         Remove trailing slashes from $local_gnulib_dir.
79515         (func_import): Store the relativized $local_gnulib_dir in
79516         gnulib-cache.m4, and read it from there if not specified explicitly.
79517
79518 2006-08-28  Bruno Haible  <bruno@clisp.org>
79519
79520         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
79521         is the current directory. Respect also $local_gnulib_dir.
79522
79523 2006-08-28  Bruno Haible  <bruno@clisp.org>
79524             Simon Josefsson  <jas@extundo.com>
79525
79526         BeOS portability.
79527         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
79528
79529 2006-08-27  Jim Meyering  <jim@meyering.net>
79530
79531         * doc/visibility.texi: Remove duplicate word: "pointer".
79532
79533 2006-08-26  Bruno Haible  <bruno@clisp.org>
79534
79535         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
79536         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
79537         (Makefile.am): Create inttypes.h from inttypes_.h.
79538         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
79539
79540         * modules/imaxabs: New file.
79541
79542         * modules/imaxdiv: New file.
79543
79544 2006-08-26  Bruno Haible  <bruno@clisp.org>
79545
79546         * m4/inttypes.m4: New file.
79547         * m4/_inttypes_h.m4: Remove file.
79548         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
79549         PRI_MACROS_BROKEN.
79550         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
79551
79552         * m4/imaxabs.m4: New file.
79553
79554         * m4/imaxdiv.m4: New file.
79555
79556 2006-08-26  Bruno Haible  <bruno@clisp.org>
79557
79558         * lib/inttypes_.h: New file.
79559         * lib/inttypes.h: Remove file.
79560         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
79561
79562         * lib/imaxabs.c: New file.
79563
79564         * lib/imaxdiv.c: New file.
79565
79566 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79567
79568         New config-h module, so that "make" output needn't be cluttered
79569         by -DHAVE_CONFIG_H.
79570         * MODULES.html.sh (Support for building libraries and executables):
79571         Add config-h.
79572         * modules/config-h: New file.
79573         * gnulib-tool (nl, sed_transform_lib_file): New vars.
79574         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
79575         the config-h module is used.
79576
79577         New configmake module, so that "make" output needn't be cluttered
79578         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
79579         * MODULES.html.sh (Support for building libraries and executables):
79580         Add configmake.
79581         * modules/configmake: New file.
79582
79583 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79584
79585         * m4/config-h.m4: New file.
79586
79587 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79588
79589         * config/srclist.txt: Add elisp-comp.
79590
79591 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79592
79593         * MODULES.html.sh (Support for building libraries and executables):
79594         Add elisp-comp.
79595         * build-aux/elisp-comp: New file.
79596         * modules/elisp-comp: New file.
79597
79598 2006-08-24  Bruno Haible  <bruno@clisp.org>
79599
79600         * gnulib-tool (func_create_testdir): Use non-default values of
79601         sourcebase and m4base.
79602
79603 2006-08-24  Bruno Haible  <bruno@clisp.org>
79604
79605         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
79606         HTML structure.
79607
79608 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79609
79610         * modules/openat (Depends-on): Add lchown.
79611
79612 2006-08-23  Bruno Haible  <bruno@clisp.org>
79613
79614         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
79615         of gl_LOCK_EARLY instead of gl_LOCK.
79616
79617 2006-08-23  Bruno Haible  <bruno@clisp.org>
79618
79619         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
79620         on OSF/1 to no.
79621         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
79622
79623 2006-08-23  Bruno Haible  <bruno@clisp.org>
79624
79625         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
79626         as unusable.
79627
79628         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
79629         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
79630         (gl_LOCK): New macro.
79631
79632 2006-08-22  Simon Josefsson  <jas@extundo.com>
79633
79634         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
79635         to md5 module.
79636
79637 2006-08-22  Simon Josefsson  <jas@extundo.com>
79638
79639         * MODULES.html.sh: Add "Support for maintaining and release
79640         projects".
79641
79642         * build-aux/gnupload: New file, from coreutils.
79643
79644 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79645
79646         Avoid the need for AC_LIBSOURCES in m4 macros.
79647         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
79648         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
79649         * modules/check-version (EXTRA_DIST): Add check-version.h.
79650         * modules/crc (EXTRA_DIST): Add crc.h.
79651         * modules/des (EXTRA_DIST): Add des.h.
79652         * modules/gc (EXTRA_DIST): Add gc.h.
79653         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
79654         * modules/getline (EXTRA_DIST): Add getline.h.
79655         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
79656         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
79657         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
79658         * modules/md2 (EXTRA_DIST): Add md2.h.
79659         * modules/md4 (EXTRA_DIST): Add md4.h.
79660         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
79661         * modules/read-file (EXTRA_DIST): Add read-file.h.
79662         * modules/readline (EXTRA_DIST): Add readline.h.
79663         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
79664         rijndael-api-fst.h.
79665
79666 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79667
79668         * m4/rijndael.m4 (gl_ARCFOUR):
79669         * m4/arctwo.m4 (gl_ARCTWO):
79670         * m4/check-version.m4 (gl_CHECK_VERSION):
79671         * m4/crc.m4 (gl_CRC):
79672         * m4/des.m4 (gl_DES):
79673         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
79674         * m4/gc.m4 (gl_GC):
79675         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
79676         * m4/getline.m4 (gl_FUNC_GETLINE):
79677         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
79678         * m4/hmac-md5.m4 (gl_HMAC_MD5):
79679         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
79680         * m4/md2.m4 (gl_MD2):
79681         * m4/md4.m4 (gl_MD4):
79682         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
79683         * m4/read-file.m4 (gl_FUNC_READ_FILE):
79684         * m4/readline.m4 (gl_FUNC_READLINE):
79685         * m4/rijndael.m4 (gl_RIJNDAEL):
79686         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79687         to get the necessary .h files and whatnot.
79688
79689 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79690
79691         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
79692         gnulib rather than the other way around.
79693         * config/srclistvars.sh (COREUTILS): Remove.
79694
79695 2006-08-22  Jim Meyering  <jim@meyering.net>
79696
79697         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
79698
79699         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
79700
79701 2006-08-22  Eric Blake  <ebb9@byu.net>
79702
79703         * modules/regexprops-generic: New file.
79704         * MODULES.html.sh (Support for building documentation): List it.
79705
79706 2006-08-22  Eric Blake  <ebb9@byu.net>
79707
79708         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
79709         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
79710         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
79711         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
79712
79713 2006-08-22  Bruno Haible  <bruno@clisp.org>
79714
79715         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
79716         and lib_LTLIBRARIES like the other lib_* variables.
79717
79718 2006-08-22  Bruno Haible  <bruno@clisp.org>
79719
79720         * build-aux/x-to-1.in: New file, from GNU gettext.
79721
79722 2006-08-22  Bruno Haible  <bruno@clisp.org>
79723
79724         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
79725         <utmpx.h> exists.
79726
79727 2006-08-22  Bruno Haible  <bruno@clisp.org>
79728
79729         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
79730         <utmpx.h> exists.
79731
79732 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79733
79734         BeOS portability.
79735         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
79736         exist.
79737         Problem reported by Bruno Haible.
79738
79739 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79740
79741         Avoid the need for AC_LIBSOURCES in m4 macros.
79742         * modules/acl (EXTRA_DIST): Add acl.h.
79743         * modules/argmatch (Files): Add m4/argmatch.m4.
79744         (configure.ac): Add gl_ARGMATCH.
79745         (EXTRA_DIST): Renamed from lib_SOURCES, for
79746         consistency with the other modules.  Remove argmatch.c.
79747         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
79748         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
79749         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
79750         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
79751         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
79752         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
79753         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
79754         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
79755         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
79756         * modules/closeout (EXTRA_DIST): Add closeout.h.
79757         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
79758         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
79759         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
79760         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
79761         dirname.h; remove basename.c and stripslash.c.
79762         * modules/exclude (EXTRA_DIST): Add exclude.h.
79763         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
79764         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
79765         * modules/file-type (EXTRA_DIST): Add file-type.h.
79766         * modules/filemode (EXTRA_DIST): Add filemode.h.
79767         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
79768         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79769         * modules/fpending (EXTRA_DIST): Add __fpending.h.
79770         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
79771         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
79772         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
79773         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
79774         * modules/getdate (EXTRA_DIST): Add getdate.c.
79775         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
79776         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
79777         * modules/getpass (EXTRA_DIST): Add getpass.h.
79778         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
79779         * modules/group-member (EXTRA_DIST): Add group-member.h.
79780         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
79781         * modules/hash (EXTRA_DIST): Add hash.h.
79782         * modules/human (EXTRA_DIST): Add human.h.
79783         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
79784         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
79785         * modules/lchown (EXTRA_DIST): Add lchown.h.
79786         * modules/long-options (EXTRA_DIST): Add long-options.h.
79787         * modules/lstat (EXTRA_DIST): Add lstat.h.
79788         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
79789         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
79790         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
79791         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
79792         * modules/memxor (EXTRA_DIST): Add memxor.h.
79793         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
79794         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
79795         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
79796         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
79797         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
79798         * modules/physmem (EXTRA_DIST): Add physmem.h.
79799         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
79800         * modules/posixver (EXTRA_DIST): Add posixver.h.
79801         * modules/quote (EXTRA_DIST): Add quote.h.
79802         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
79803         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
79804         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
79805         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
79806         regex_internal.h regexec.c.
79807         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
79808         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
79809         * modules/same (EXTRA_DIST): Add same.h.
79810         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
79811         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
79812         * modules/savedir (EXTRA_DIST): Add savedir.h.
79813         * modules/sha1 (EXTRA_DIST): Add sha1.h.
79814         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
79815         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
79816         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
79817         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
79818         * modules/strdup (EXTRA_DIST): Add strdup.h.
79819         * modules/strftime (EXTRA_DIST): Add strftime.h.
79820         * modules/strndup (EXTRA_DIST): Add strndup.h.
79821         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
79822         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
79823         * modules/time_r (EXTRA_DIST): Add time_r.h.
79824         * modules/timespec (EXTRA_DIST): Add timespec.h.
79825         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79826         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
79827         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
79828         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
79829         * modules/userspec (EXTRA_DIST): Add userspec.h.
79830         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
79831         * modules/utimens (EXTRA_DIST): Add utimens.h.
79832         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
79833         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
79834         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
79835         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
79836         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
79837         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
79838         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
79839         * modules/yesno (EXTRA_DIST): Add yesno.h.
79840
79841 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79842
79843         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
79844
79845         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
79846         * m4/dev-ino.m4, same-inode.m4: Remove.
79847
79848         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
79849         * m4/acl.m4 (AC_FUNC_ACL):
79850         * m4/backupfile.m4 (gl_BACKUPFILE):
79851         * m4/c-strtod.m4 (gl_C99_STRTOLD):
79852         * m4/canon-host.m4 (gl_CANON_HOST):
79853         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
79854         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
79855         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
79856         * m4/cloexec.m4 (gl_CLOEXEC):
79857         * m4/close-stream.m4 (gl_CLOSE_STREAM):
79858         * m4/closeout.m4 (gl_CLOSEOUT):
79859         * m4/dirfd.m4 (gl_FUNC_DIRFD):
79860         * m4/dirname.m4 (gl_DIRNAME):
79861         * m4/exclude.m4 (gl_EXCLUDE):
79862         * m4/exitfail.m4 (gl_EXITFAIL):
79863         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
79864         * m4/file-type.m4 (gl_FILE_TYPE):
79865         * m4/filemode.m4 (gl_FILEMODE):
79866         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
79867         * m4/fpending.m4 (gl_FUNC_FPENDING):
79868         * m4/fprintftime.m4 (gl_FPRINTFTIME):
79869         * m4/fts.m4 (gl_FUNC_FTS):
79870         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
79871         * m4/getdate.m4 (gl_GETDATE):
79872         * m4/gethrxtime.m4 (gl_GETHRXTIME):
79873         * m4/getpagesize.m4 (gl_GETPAGESIZE):
79874         * m4/getpass.m4 (gl_FUNC_GETPASS):
79875         * m4/gettime.m4 (gl_GETTIME):
79876         * m4/getugroups.m4 (gl_GETUGROUPS):
79877         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
79878         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
79879         * m4/hard-locale.m4 (gl_HARD_LOCALE):
79880         * m4/hash.m4 (gl_HASH):
79881         * m4/idcache.m4 (gl_IDCACHE):
79882         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
79883         * m4/lchown.m4 (gl_FUNC_LCHOWN):
79884         * m4/long-options.m4 (gl_LONG_OPTIONS):
79885         * m4/lstat.m4 (gl_FUNC_LSTAT):
79886         * m4/md5.m4 (gl_MD5):
79887         * m4/memcasecmp.m4 (gl_MEMCASECMP):
79888         * m4/memcoll.m4 (gl_MEMCOLL):
79889         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
79890         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
79891         * m4/memxor.m4 (gl_MEMXOR):
79892         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
79893         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
79894         * m4/modechange.m4 (gl_MODECHANGE):
79895         * m4/mountlist.m4 (gl_MOUNTLIST):
79896         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
79897         * m4/openat.m4 (gl_FUNC_OPENAT):
79898         * m4/pathmax.m4 (gl_PATHMAX):
79899         * m4/physmem.m4 (gl_PHYSMEM):
79900         * m4/posixtm.m4 (gl_POSIXTM):
79901         * m4/posixver.m4 (gl_POSIXVER):
79902         * m4/quote.m4 (gl_QUOTE):
79903         * m4/quotearg.m4 (gl_QUOTEARG):
79904         * m4/readtokens.m4 (gl_READTOKENS):
79905         * m4/readutmp.m4 (gl_READUTMP):
79906         * m4/regex.m4 (gl_REGEX):
79907         * m4/safe-read.m4 (gl_SAFE_READ):
79908         * m4/safe-write.m4 (gl_SAFE_WRITE):
79909         * m4/same.m4 (gl_SAME):
79910         * m4/save-cwd.m4 (gl_SAVE_CWD):
79911         * m4/savedir.m4 (gl_SAVEDIR):
79912         * m4/settime.m4 (gl_SETTIME):
79913         * m4/sha1.m4 (gl_SHA1):
79914         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
79915         * m4/stat-macros.m4 (gl_STAT_MACROS):
79916         * m4/stat-time.m4 (gl_STAT_TIME):
79917         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
79918         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
79919         * m4/strdup.m4 (gl_FUNC_STRDUP):
79920         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
79921         * m4/strndup.m4 (gl_FUNC_STRNDUP):
79922         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
79923         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
79924         * m4/time_r.m4 (gl_TIME_R):
79925         * m4/timespec.m4 (gl_TIMESPEC):
79926         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
79927         * m4/unlinkdir.m4 (gl_UNLINKDIR):
79928         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
79929         * m4/userspec.m4 (gl_USERSPEC):
79930         * m4/utimecmp.m4 (gl_UTIMECMP):
79931         * m4/utimens.m4 (gl_UTIMENS):
79932         * m4/xalloc.m4 (gl_XALLOC):
79933         * m4/xgetcwd.m4 (gl_XGETCWD):
79934         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
79935         * m4/xreadlink.m4 (gl_XREADLINK):
79936         * m4/xstrtod.m4 (gl_XSTRTOD):
79937         * m4/yesno.m4 (gl_YESNO):
79938         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79939         to get the necessary .h files and whatnot.
79940
79941 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
79942             Bruno Haible  <bruno@clisp.org>
79943
79944         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
79945         /bin/sh understanding of '!' conditional negation.
79946
79947 2006-08-21  Jim Meyering  <jim@meyering.net>
79948
79949         * modules/openat (Depends-on): Really alphabetize.
79950
79951         * modules/acl (Depends-on): Add error and quote.
79952
79953         * check-module (find_included_lib_files): Add at-func.c to the
79954         ok-to-include-more-than-once white list.
79955
79956         * modules/openat (Depends-on): Add lstat.  Alphabetize.
79957
79958 2006-08-21  Bruno Haible  <bruno@clisp.org>
79959
79960         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79961         Emit a pkgdata_DATA variable only if some snippets add contents to it.
79962         Reported by Martin Lambers <marlam@marlam.de>.
79963
79964 2006-08-21  Bruno Haible  <bruno@clisp.org>
79965
79966         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
79967         specify an installation location, don't emit a noinst_LIBRARIES or
79968         noinst_LTLIBRARIES assignment.
79969
79970 2006-08-21  Bruno Haible  <bruno@clisp.org>
79971
79972         BeOS portability.
79973         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
79974         BeOS has mbrtowc() but no <wctype.h>.
79975
79976 2006-08-21  Bruno Haible  <bruno@clisp.org>
79977
79978         BeOS portability.
79979         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
79980         exist.
79981
79982 2006-08-21  Bruno Haible  <bruno@clisp.org>
79983
79984         BeOS portability.
79985         * lib/mbchar.h: Include <wctype.h> only if it exists.
79986
79987 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79988
79989         Remove files that are no longer needed by their respective modules.
79990         * m4/obstack.m4: Remove.
79991         * m4/strerror_r.m4: Remove.
79992         * m4/uint32_t.m4: Remove.
79993         * m4/uintptr_t.m4: Remove.
79994         * m4/ullong_max.m4: Remove.
79995         * m4/xstrtoimax.m4: Remove.
79996         * m4/xstrtoumax.m4: Remove.
79997
79998         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
79999         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
80000         dependencies now capture this.
80001
80002         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
80003         Do not use AC_LIBSOURCES, since gnulib modules now do this.
80004         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
80005         * m4/human.m4 (gl_HUMAN): Likewise.
80006         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
80007         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
80008
80009         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
80010
80011         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
80012         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
80013         stdint.
80014         * m4/human.m4 (gl_HUMAN): Likewise.
80015         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
80016         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
80017         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80018         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80019         * m4/xstrtol (gl_XSTRTOL): Likewise.
80020
80021         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
80022         AC_TYPE_LONG_LONG_INT.
80023         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80024         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
80025         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
80026         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80027
80028         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
80029         on stdbool.
80030
80031         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
80032         (gl_PREREQ_XSTRTOUL): Remove.
80033
80034         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
80035
80036         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
80037         mode.
80038
80039 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80040
80041         Add and change modules to make it easier for coreutils to use
80042         gnulib-tool.
80043         * modules/backupfile (Files): Remove m4/d-ino.m4.
80044         (Depends-on): Add d-ino.
80045         * modules/cycle-check (Depends-on): Add stdint.
80046         (lib_SOURCES): Add cycle-check.h.
80047         * modules/d-ino: New module.
80048         * modules/d-type: New module.
80049         * modules/error (Files): Remove m4/strerror_r.m4.
80050         * modules/filemode (Files): Add m4/st_dm_mode.m4.
80051         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
80052         m4/inttypes_h.m4, m4/uintmax_t.m4.
80053         (Depends-on): Add stdint.
80054         (lib_SOURCES): Add fsusage.h.
80055         * modules/getcwd (Files): Remove d-ino.m4.
80056         (Depends-on): Add d-ino.
80057         * modules/getndelim2 (Depends-on): Add stdint.
80058         * modules/glob (Files): Remove m4/d-type.m4.
80059         (Depends-on): Add d-type.
80060         * modules/host-os: New module.
80061         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
80062         m4/inttypes_h.m4, m4/uintmax_t.m4.
80063         * Depends-on: Add stdint.
80064         (lib_SOURCES): Add human.h.
80065         * modules/inttostr (Files): Remove m4/intmax_t.m4,
80066         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
80067         m4/uintmax_t.m4, m4/ulonglong.m4.
80068         (Depends-on): Add stdint.
80069         (EXTRA_DIST): Add inttostr.h.
80070         * modules/lchmod: New module.
80071         * modules/link-follow: New module.
80072         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
80073         (Depends-on): Add lchmod.
80074         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
80075         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
80076         (Depends-on): Add stdint.
80077         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
80078         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
80079         (Depends-on): Add stdint.
80080         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
80081         * modules/perl: New module.
80082         * modules/regex (Depends-on): Add stdint.
80083         * modules/rmdir-errno: New module.
80084         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80085         m4/intmax_t.m4.
80086         (Depends-on): Add stdint.
80087         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80088         m4/uintmax_t.m4.
80089         (Depends-on): Add stdint.
80090         * modules/unlink-busy: New module.
80091         * modules/utimecmp (Depends-on): Add stdint.
80092         * modules/uptime: New module.
80093         * modules/winsz-ioctl: New module.
80094         * modules/winsz-termios: New module.
80095         * modules/xnanosleep (Depends-on): Add nanosleep.
80096         * modules/ullong_max: Remove.
80097         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
80098         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
80099         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
80100         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
80101         (Depends-on): Add inttypes.
80102         (lib_SOURCES): Add xstrtol.h.
80103         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
80104         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
80105         * MODULES.html.sh: Move 'assert' into the assert section.
80106         Move 'dummy' into the linking section.
80107         Remove ullong_max.
80108         Add section for compatibility checks for POSIX:2001 functions,
80109         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
80110         winsz-ioctl, and winsz-termios into it.
80111         Add lchmod.
80112         Add top-level Misc section and put host-os, perl, and uptime
80113         into it.
80114
80115 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80116
80117         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
80118         now assume the stdint module.  Do not include inttypes.h.
80119         * lib/fsusage.h: Likewise.
80120         * lib/getndelim2.c: Likewise.
80121         * lib/human.h: Likewise.
80122         * lib/inttostr.h: Likewise.
80123         * lib/obstack.c: Likewise.
80124         * lib/regex_internal.h: Likewise.
80125         * lib/tempname.c: Likewise.
80126         * lib/utimecmp.c: Likewise.
80127         * lib/xstrtol.h: Likewise.
80128
80129         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
80130
80131         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
80132         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
80133         * lib/xtime.h: Likewise.
80134
80135 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80136
80137         * modules/openat (Files): Add lib/fchmodat.c.
80138         Fixes problem reported by Jay Youngman.
80139
80140 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80141
80142         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
80143         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
80144
80145 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
80146             Bruno Haible  <bruno@clisp.org>
80147
80148         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
80149         and is a script that invokes bison. Tighten the code. Add comments.
80150
80151 2006-08-18  Jim Meyering  <jim@meyering.net>
80152
80153         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
80154         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
80155         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
80156         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
80157
80158 2006-08-18  Bruno Haible  <bruno@clisp.org>
80159
80160         * modules/bison-i18n: New file.
80161         * MODULES.html.sh (Internationalization functions): Add it.
80162
80163 2006-08-18  Bruno Haible  <bruno@clisp.org>
80164
80165         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
80166         sys/statvfs.h. When getmntinfo was found, check its declaration and
80167         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
80168
80169 2006-08-18  Bruno Haible  <bruno@clisp.org>
80170
80171         * m4/bison-i18n.m4: New file, from bison.
80172
80173 2006-08-18  Bruno Haible  <bruno@clisp.org>
80174
80175         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
80176         (ME_DUMMY): Treat "kernfs" as a dummy.
80177         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
80178
80179 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80180
80181         Update from coreutils.
80182
80183         2006-08-15  Jim Meyering  <jim@meyering.net>
80184
80185         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
80186
80187         2006-01-17  Jim Meyering  <jim@meyering.net>
80188
80189         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
80190
80191         2006-01-11  Jim Meyering  <jim@meyering.net>
80192
80193         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
80194         Check for the lchmod function.
80195
80196 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80197
80198         Update from coreutils.
80199
80200         * lib/__fpending.h: Add copyright notice.
80201         * lib/fprintftime.h: Likewise.
80202         * lib/savedir.c: Use (C) in copyright notice.
80203         * lib/savedir.h: Likewise.
80204
80205         2006-08-15  Jim Meyering  <jim@meyering.net>
80206
80207         * lib/at-func.c: New file, with the logic of all emulated at-functions.
80208         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
80209         in support of the EXPECTED_ERRNO macro.
80210         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
80211         definitions.  Instead, define the appropriate symbols and include
80212         "at-func.c".
80213         * lib/mkdirat.c (mkdirat): Likewise.
80214         * lib/fchmodat.c (fchmodat): Likewise.
80215         (ENOSYS): Remove definition.
80216         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
80217         it.  Don't include "unistd--.h" -- it wasn't ever used.
80218
80219         2006-01-17  Jim Meyering  <jim@meyering.net>
80220
80221         Rewrite fts.c not to change the current working directory,
80222         by using openat, fstatat, fdopendir, etc..
80223
80224         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
80225         (HAVE_OPENAT_SUPPORT): Define.
80226         [_LIBC] (fchdir): Don't undef or define; no longer used.
80227         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
80228         Now, this `function' always succeeds, and consumes its file descriptor
80229         parameter -- so callers must not close such FDs.  Update callers.
80230         (diropen_fd, opendirat, cwd_advance_fd): New functions.
80231         (diropen): Add parameter, SP.  Adjust all callers.
80232         Implement using diropen_fd, rather than open.
80233         (fts_open): Initialize new member, fts_cwd_fd.
80234         Remove fts_rft-setting code.
80235         (fts_close): Close fts_cwd_fd, if necessary.
80236         (__opendir2): Define in terms of opendir or opendirat,
80237         depending on whether the FST_NOCHDIR flag is set.
80238         (fts_build): Since fts_safe_changedir consumes its FD, and since
80239         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
80240         and close the dup'd file descriptor upon failure.
80241         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
80242         (fts_safe_changedir): Tweak semantics to reflect that this function
80243         now calls cwd_advance_fd and hence consumes its FD argument.
80244         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
80245         [struct FTS] (fts_rft): Remove now-unused member.
80246         [struct FTS] (fts_cycle.state): Improve comment.
80247
80248         * lib/openat.c (openat_needs_fchdir): New function.
80249         * lib/openat.h (openat_needs_fchdir): Declare it.
80250
80251 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80252
80253         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
80254         Problem and fix reported by Pádraig Brady in
80255         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
80256
80257 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80258
80259         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
80260
80261 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80262
80263         * lib/memcoll.c (memcoll): Optimize for the common case where the
80264         arguments are bytewise equal.
80265
80266 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80267
80268         * doc/regexprops-generic.texi: Add a copyright notice.
80269
80270 2006-08-15  Bruno Haible  <bruno@clisp.org>
80271
80272         * modules/tmpdir (License): Change to LGPL.
80273
80274 2006-08-15  Bruno Haible  <bruno@clisp.org>
80275
80276         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
80277         module.
80278
80279 2006-08-14  Simon Josefsson  <jas@extundo.com>
80280
80281         * config/srclist.txt: Add gnupload.
80282
80283 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80284
80285         Change copyright notice from LGPL 2 to GPL 2, since that's the
80286         standard form used in the gnulib repository.
80287         * tests/test-lock.c: Likewise.
80288         * tests/test-stdint.c: Likewise.
80289         * tests/test-tls.c: Likewise.
80290
80291         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
80292         prelude-manager.  User shorter URLs for GNU projects, without '?'.
80293         Add copyright notice.
80294
80295         * check-module: Add copyright notice.  Output a copyright
80296         notice if "--version" is specified.
80297         * modules/COPYING: New file.
80298         * tests/test-getaddrinfo.c: Add copyright notice.
80299         * tests/test-verify.c: Likewise.
80300
80301 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80302
80303         Change copyright notice from LGPL 2 to GPL 2, since that's the
80304         standard form used in the gnulib repository.
80305         * lib/lock.c: LGPL -> GPL.
80306         * lib/lock.h: Likewise.
80307         * lib/strnlen1.c: Likewise.
80308         * lib/strnlen1.h: Likewise.
80309         * lib/tls.c: Likewise.
80310         * lib/tls.h: Likewise.
80311         * lib/tmpdir.c: Likewise.
80312
80313         * lib/TODO: Remove; this belongs only in coreutils.
80314
80315 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80316
80317         Add copyright notices to long-enough files that lack them, since
80318         otherwise the files aren't clearly free.  Use the same notice that
80319         getdate.texi already uses.
80320         * doc/alloca-opt.texi: Add copyright notice.
80321         * doc/alloca.texi: Likewise.
80322         * doc/ctime.texi: Likewise.
80323         * doc/functions.texi: Likewise.
80324         * doc/gcd.texi: Likewise.
80325         * doc/gnulib-tool.texi: Likewise.
80326         * doc/inet_ntoa.texi: Likewise.
80327         * doc/visibility.texi: Likewise.
80328
80329         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80330         * doc/quote.texi: Add copyright notice.
80331
80332         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80333         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80334         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80335         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80336         is now obsolete, and give a pointer to the Sun list.
80337         Add copyright notice.
80338
80339 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80340
80341         * config/srclistvars.sh: Add copyright notice.
80342
80343 2006-08-14  Eric Blake  <ebb9@byu.net>
80344
80345         Import the following change from libc:
80346
80347         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80348
80349         Upstream bug 2997.
80350         * lib/misc/error.c: Add space between program name and message if file
80351         name is missing.
80352
80353 2006-08-12  Karl Berry  <karl@gnu.org>
80354
80355         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80356         remove, these originate in gnulib now.
80357
80358 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80359
80360         * doc/Makefile (standards.info standards.html standards.dvi):
80361         Also depend on make-stds.texi.
80362
80363 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80364
80365         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80366         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80367
80368         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80369         in wchar_t.  Problem reported by Eric Blake.
80370
80371         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80372         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80373         Also, help the compiler to keep LEN in a register.
80374
80375 2006-08-11  Eric Blake  <ebb9@byu.net>
80376
80377         * users.txt: Sort.  Add tar.
80378
80379 2006-08-11  Bruno Haible  <bruno@clisp.org>
80380
80381         * users.txt: New file.
80382
80383 2006-08-11  Bruno Haible  <bruno@clisp.org>
80384
80385         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80386         before <wchar.h>. Needed for OSF/1 and BSD/OS.
80387
80388 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80389
80390         * modules/snprintf (Depends-on): Remove minmax.
80391         (Maintainer): Add self and Bruno.
80392
80393 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80394
80395         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80396         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80397         (EOVERFLOW): Define if the system does not.
80398         Do not include "minmax.h"; it wasn't used.
80399         (snprintf): Don't assume size_t promotes to an unsigned type.
80400         Fix bug when generated string was too long for the buffer: the
80401         buffer's contents are supposed to be the initial prefix of the
80402         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80403         exceeds INT_MAX; do the check ourselves.
80404
80405         Import the following changes from libc:
80406
80407         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80408
80409         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80410         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80411         set wc to the byte which couldn't be converted.
80412         (re_string_reconstruct): Don't clear valid_raw_len before calling
80413         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80414         tip_context using re_string_context_at.
80415
80416         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80417
80418         * lib/posix/regex.h: g++ still cannot handled [restrict].
80419
80420         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80421
80422         * lib/posix/regex.h: Remove special handling for VMS.
80423
80424 2006-08-10  Jim Meyering  <jim@meyering.net>
80425
80426         * modules/same-inode: New module.
80427         * modules/dev-ino: New module.
80428         * modules/cycle-check: Depend on these modules, rather than simply
80429         including their .h files.
80430         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80431         required via m4/cycle-check.m4.
80432         * modules/same: Depend on new same-inode module, rather than
80433         including same-inode.h.
80434         * modules/chdir-safer: New file.
80435
80436         * modules/chown (Depends-on): Add stat-macros.
80437
80438 2006-08-10  Jim Meyering  <jim@meyering.net>
80439
80440         * m4/cycle-check.m4: New file.
80441         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80442         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80443
80444 2006-08-10  Eric Blake  <ebb9@byu.net>
80445
80446         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80447         in from original proposal.
80448
80449 2006-08-10  Eric Blake  <ebb9@byu.net>
80450         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80451
80452         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80453         namespace.
80454
80455 2006-08-10  Bruno Haible  <bruno@clisp.org>
80456
80457         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80458         as well.
80459
80460 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80461
80462         Sync from coreutils.
80463
80464         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80465
80466         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80467         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80468
80469 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80470
80471         * modules/restrict: Remove; no longer needed now that we assume
80472         Autoconf 2.59 or later.
80473         * MODULES.html.sh: Remove 'restrict'.
80474         * modules/argp (Depends-on): Remove 'restrict'.
80475         * modules/base64 (Depends-on): Likewise.
80476         * modules/gc (Depends-on): Likewise.
80477         * modules/getaddrinfo (Depends-on): Likewise.
80478         * modules/glob (Depends-on): Likewise.
80479         * modules/inet_ntop (Depends-on): Likewise.
80480         * modules/inet_pton (Depends-on): Likewise.
80481         * modules/memxor (Depends-on): Likewise.
80482         * modules/regex (Depends-on): Likewise.
80483         * modules/strtok_r (Depends-on): Likewise.
80484         * modules/time_r (Depends-on): Likewise.
80485
80486 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80487
80488         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
80489         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
80490         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80491         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
80492         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
80493         * m4/memxor.m4 (gl_MEMXOR): Likewise.
80494         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
80495         gl_C_RESTRICT replaced by AC_C_RESTRICT.
80496
80497         Merge from coreutils.
80498         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
80499         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
80500         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
80501         * m4/time_r.m4 (gl_TIME_R): Likewise.
80502
80503 2006-08-09  Karl Berry  <karl@gnu.org>
80504
80505         * config/srclist.txt: no more gettext-tools, per Bruno.
80506
80507 2006-08-08  Eric Blake  <ebb9@byu.net>
80508
80509         * modules/verror: New module.
80510         * MODULES.html.sh: Document it.
80511
80512 2006-08-08  Eric Blake  <ebb9@byu.net>
80513
80514         * lib/verror.h, lib/verror.c: New files.
80515
80516 2006-08-08  Eric Blake  <ebb9@byu.net>
80517
80518         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
80519         verror_at_line output complies with GNU Coding Standards even when
80520         file is NULL.
80521
80522 2006-08-07  Bruno Haible  <bruno@clisp.org>
80523
80524         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
80525         versions of AIX.
80526         Reported by Ralf Wildenhues.
80527
80528 2006-08-07  Bruno Haible  <bruno@clisp.org>
80529
80530         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
80531         in an AC_DEFUN. Needed so that the autoconf snippets can use
80532         AC_REQUIRE.
80533
80534 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80535
80536         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80537         Initialize pkgdata_DATA.
80538         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
80539         overriding it.
80540
80541 2006-08-06  Eric Blake  <ebb9@byu.net>
80542
80543         * lib/error.h: Fold in some upstream changes from glibc.
80544         * lib/error.c: Likewise.
80545
80546 2006-08-04  Bruno Haible  <bruno@clisp.org>
80547
80548         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80549         Make the mostlyclean-local rule depend on mostlyclean-generic.
80550         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
80551
80552 2006-07-31  Bruno Haible  <bruno@clisp.org>
80553
80554         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
80555         <stdlib.h>, <string.h>.
80556
80557 2006-07-30  Bruno Haible  <bruno@clisp.org>
80558
80559         * modules/readlink (License): Change to LGPL.
80560
80561 2006-07-30  Bruno Haible  <bruno@clisp.org>
80562
80563         * modules/javaversion (Makefile.am): Distribute javaversion.java and
80564         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
80565         set PKGDATADIR to point to it.
80566
80567 2006-07-30  Bruno Haible  <bruno@clisp.org>
80568
80569         * modules/csharpexec (configure.ac): Comment out macro invocation.
80570         * modules/javaexec (configure.ac): Likewise.
80571         * modules/javacomp-script (configure.ac): Likewise.
80572
80573         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
80574
80575 2006-07-30  Bruno Haible  <bruno@clisp.org>
80576
80577         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
80578         linked-list.
80579
80580 2006-07-30  Bruno Haible  <bruno@clisp.org>
80581
80582         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
80583
80584 2006-07-30  Bruno Haible  <bruno@clisp.org>
80585
80586         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80587         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
80588         get removed.
80589
80590 2006-07-29  Bruno Haible  <bruno@clisp.org>
80591
80592         Make it possible for gnulib-tool to work with locally modified or
80593         augmented gnulib repositories.
80594         * gnulib-tool (func_usage): Document --local-dir option.
80595         (local_gnulib_dir): New variable.
80596         Handle --local-dir option.
80597         (func_lookup_file): New function.
80598         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
80599         (func_get_description, func_get_filelist, func_get_description,
80600         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
80601         func_get_automake_snippet, func_get_include_directive,
80602         func_get_license, func_get_maintainer): Use func_lookup_file.
80603         (func_import, func_create_testdir): Use func_lookup_file.
80604
80605 2006-07-29  Bruno Haible  <bruno@clisp.org>
80606
80607         * modules/setenv (Depends-on): Add unistd.
80608
80609 2006-07-29  Bruno Haible  <bruno@clisp.org>
80610
80611         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
80612
80613 2006-07-29  Bruno Haible  <bruno@clisp.org>
80614
80615         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
80616
80617 2006-07-29  Bruno Haible  <bruno@clisp.org>
80618
80619         * gnulib-tool (import, update): If there is no Makefile.am, look at
80620         aclocal.m4, instead of bailing out.
80621
80622 2006-07-29  Bruno Haible  <bruno@clisp.org>
80623
80624         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
80625         Categorize the options by when they are useful.
80626
80627 2006-07-29  Bruno Haible  <bruno@clisp.org>
80628
80629         * gnulib-tool (func_usage): Document option --no-libtool.
80630         Handle option --no-libtool.
80631         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
80632         for changed semantics of $libtool variable.
80633         (func_import): Likewise. If libtool is not used, show this through
80634         an option --no-libtool.
80635         (func_create_testdir): Update.
80636
80637 2006-07-29  Bruno Haible  <bruno@clisp.org>
80638
80639         * gnulib-tool (func_import): Extend error message about missing
80640         --doc-base.
80641
80642 2006-07-29  Bruno Haible  <bruno@clisp.org>
80643
80644         * gnulib-tool (func_import): Don't create the $docbase directory if
80645         there is no file to store there.
80646
80647 2006-07-29  Bruno Haible  <bruno@clisp.org>
80648
80649         * gnulib-tool (autoconf_minversion): If a --dir option is given and
80650         relevant, look for configure.ac there, not in the current directory.
80651         Also use a simple search for AC_PREREQ, not "autoconf --trace".
80652
80653 2006-07-29  Bruno Haible  <bruno@clisp.org>
80654
80655         * gnulib-tool (SORT): New variable.
80656         (func_usage): Undocument --assume-autoconf option.
80657         Remove --assume-autoconf option handling.
80658         (autoconf_minversion): Determine from the contents of configure.ac.
80659         (func_import): Remove autoconf_minversion handling.
80660         Suggested by Eric Blake.
80661
80662 2006-07-29  Bruno Haible  <bruno@clisp.org>
80663
80664         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
80665
80666 2006-07-29  Bruno Haible  <bruno@clisp.org>
80667
80668         * config/srclist.txt (*setenv.[ch]): Remove rules.
80669
80670 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80671
80672         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
80673
80674 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80675
80676         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
80677         arpa/inet.h.
80678
80679 2006-07-28  Simon Josefsson  <jas@extundo.com>
80680
80681         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
80682         * modules/inet_pton (Depends-on): Likewise.
80683
80684 2006-07-28  Simon Josefsson  <jas@extundo.com>
80685
80686         * m4/netinet_in_h.m4: New file.
80687
80688 2006-07-28  Simon Josefsson  <jas@extundo.com>
80689
80690         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
80691         #include's.
80692
80693 2006-07-28  Simon Josefsson  <jas@extundo.com>
80694
80695         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
80696         #include's.
80697
80698 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
80699
80700         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
80701         setgid on directories only if they set these bits.
80702         * lib/modechange.h: Remove obsolete comment about masks.
80703
80704 2006-07-28  Eric Blake  <ebb9@byu.net>
80705
80706         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
80707         macro expansion.
80708
80709 2006-07-28  Bruno Haible  <bruno@clisp.org>
80710
80711         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
80712
80713 2006-07-28  Bruno Haible  <bruno@clisp.org>
80714
80715         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
80716
80717 2006-07-28  Bruno Haible  <bruno@clisp.org>
80718
80719         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
80720         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
80721         Define fallbacks.
80722         Avoids link error on FreeBSD 4.x.
80723         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80724
80725         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
80726         encoding.
80727         * lib/mbswidth.c (iswcntrl): Likewise.
80728
80729 2006-07-27  Bruno Haible  <bruno@clisp.org>
80730
80731         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
80732         test.
80733
80734 2006-07-27  Bruno Haible  <bruno@clisp.org>
80735
80736         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
80737         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
80738         defined.
80739
80740 2006-07-26  Eric Blake  <ebb9@byu.net>
80741
80742         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
80743
80744 2006-07-26  Eric Blake  <ebb9@byu.net>
80745
80746         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
80747         like mingw that lack mkstemp.
80748         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
80749         avoid compilation warning on mingw.
80750
80751 2006-07-26  Bruno Haible  <bruno@clisp.org>
80752
80753         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
80754         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
80755         INT_FAST*_MIN, INTPTR_MIN.
80756
80757 2006-07-25  Bruno Haible  <bruno@clisp.org>
80758
80759         * modules/version-etc (Depends-on): Add stdarg.
80760
80761 2006-07-25  Bruno Haible  <bruno@clisp.org>
80762
80763         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
80764         complex commands.
80765
80766 2006-07-25  Bruno Haible  <bruno@clisp.org>
80767
80768         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
80769         defined in <stdarg.h> or config.h.
80770
80771 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80772
80773         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
80774         (gl_STDIO_SAFER): Remove.
80775
80776 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80777
80778         * MODULES.html.sh (File stream based Input/Output):
80779         Add fopen-safer, tmpfile-safer; remove stdio-safer.
80780         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
80781         * modules/fopen-safer, modules/tmpfile-safer: New files.
80782         * modules/stdio-safer: Remove.
80783
80784 2006-07-24  Bruno Haible  <bruno@clisp.org>
80785
80786         * modules/tmpdir: New file.
80787         * MODULES.html.sh (File system functions): Add it.
80788
80789 2006-07-24  Bruno Haible  <bruno@clisp.org>
80790
80791         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
80792         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
80793
80794 2006-07-24  Bruno Haible  <bruno@clisp.org>
80795
80796         * modules/clean-temp: New file.
80797
80798 2006-07-24  Bruno Haible  <bruno@clisp.org>
80799
80800         * m4/tmpdir.m4: New file, from GNU gettext.
80801
80802 2006-07-24  Bruno Haible  <bruno@clisp.org>
80803
80804         * lib/tmpdir.h: New file, from GNU gettext.
80805         * lib/tmpdir.c: New file, from GNU gettext.
80806
80807 2006-07-24  Bruno Haible  <bruno@clisp.org>
80808
80809         * lib/clean-temp.h: New file, from GNU gettext.
80810         * lib/clean-temp.c: New file, from GNU gettext.
80811
80812 2006-07-23  Eric Blake  <ebb9@byu.net>
80813
80814         * modules/stdio-safer (Files): Add tmpfile-safer.c.
80815         (Depends-on): Add binary-io.
80816
80817 2006-07-23  Eric Blake  <ebb9@byu.net>
80818
80819         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
80820
80821 2006-07-23  Eric Blake  <ebb9@byu.net>
80822
80823         * lib/tmpfile-safer.c: New file.
80824         * lib/stdio-safer.h (fopen_safer): Add prototype.
80825         * lib/stdio--.h (tmpfile): Make safer.
80826
80827 2006-07-23  Bruno Haible  <bruno@clisp.org>
80828
80829         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
80830         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
80831         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
80832         gl_linked_remove_at): Use it.
80833
80834 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80835         and Simon Josefsson <jas@extundo.com>
80836
80837         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
80838
80839         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
80840
80841 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80842
80843         * modules/close-stream: New file.
80844         * modules/closeout (Description): Make it clear that it exits
80845         with a diagnostic on error.
80846         (Depends-on): Add close-stream.  Remove fpending, stdbool.
80847         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
80848
80849 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80850
80851         * m4/close-stream.m4: New file.
80852
80853 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80854
80855         * lib/close-stream.c, lib/close-stream.h: New files.
80856
80857 2006-07-22  Bruno Haible  <bruno@clisp.org>
80858
80859         Merge from GNU gettext 0.15.
80860
80861         2006-05-01  Bruno Haible  <bruno@clisp.org>
80862
80863                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
80864
80865         2006-07-22  Bruno Haible  <bruno@clisp.org>
80866
80867                 * modules/javaversion: New file.
80868                 * MODULES.html.sh (Java): Add javaversion.
80869
80870         2006-03-12  Bruno Haible  <bruno@clisp.org>
80871
80872                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
80873
80874         2005-12-04  Bruno Haible  <bruno@clisp.org>
80875
80876                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
80877                 (untested).
80878
80879         2006-06-21  Bruno Haible  <bruno@clisp.org>
80880
80881                 Avoid warnings from recent versions of mcs.
80882                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
80883                 -o, -L, -r any more. Use options documented since mcs-1.0
80884                 instead. Similarly for -g.
80885
80886         2005-12-04  Bruno Haible  <bruno@clisp.org>
80887
80888                 * build-aux/csharpcomp.sh.in: Suffix for resources is
80889                 .resources, not .resource.
80890
80891         2005-07-09  Bruno Haible  <bruno@clisp.org>
80892
80893                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
80894                 add a .dll suffix.
80895                 Reported by Mark Junker <mjscod@gmx.de>.
80896
80897         2006-07-22  Bruno Haible  <bruno@clisp.org>
80898
80899                 * modules/gettext: Upgrade to gettext-0.15.
80900                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
80901                 m4/visibility.m4.
80902                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
80903
80904 2006-07-22  Bruno Haible  <bruno@clisp.org>
80905
80906         Merge from GNU gettext 0.15.
80907
80908         2006-03-25  Bruno Haible  <bruno@clisp.org>
80909
80910                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
80911
80912         2006-07-21  Bruno Haible  <bruno@clisp.org>
80913
80914                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
80915                 "1.1".
80916
80917         2006-05-09  Bruno Haible  <bruno@clisp.org>
80918
80919                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
80920                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
80921                 for the conftestver execution.
80922
80923         2006-05-01  Bruno Haible  <bruno@clisp.org>
80924
80925                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
80926                 optional target-version argument. Verify that the compiler
80927                 groks source of the specified source-version, or add -source
80928                 option as necessary. Verify that the compiler produces
80929                 bytecode in the specified target-version, or add -target and
80930                 -source options as necessary. Make the result of the test
80931                 available as variable CONF_JAVAC. Also log error output in
80932                 config.log.
80933
80934         2006-03-11  Bruno Haible  <bruno@clisp.org>
80935
80936                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
80937
80938         2006-05-09  Bruno Haible  <bruno@clisp.org>
80939
80940                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
80941                 CLASSPATH_SEPARATOR to a semicolon.
80942
80943         2006-03-12  Bruno Haible  <bruno@clisp.org>
80944
80945                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
80946                 available as variable CONF_JAVA, for subsequent autoconf
80947                 tests. Also log error output in config.log.
80948
80949         2006-07-19  Bruno Haible  <bruno@clisp.org>
80950
80951                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
80952                 that getline works on glibc2 systems. Needed to avoid trouble
80953                 in relocatable.c.
80954                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
80955
80956         2005-12-04  Bruno Haible  <bruno@clisp.org>
80957
80958                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
80959                 launcher (untested).
80960
80961         2005-12-04  Bruno Haible  <bruno@clisp.org>
80962
80963                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
80964
80965         2006-07-22  Bruno Haible  <bruno@clisp.org>
80966
80967                 * gettext.m4: Update from GNU gettext-0.15.
80968                 * nls.m4: Likewise.
80969                 * po.m4: Likewise.
80970                 * inttypes-pri.m4: Likewise.
80971                 * inttypes-h.m4: Renamed from inttypes.m4.
80972                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
80973
80974 2006-07-22  Bruno Haible  <bruno@clisp.org>
80975
80976         Merge from GNU gettext 0.15.
80977
80978         2005-07-05  Bruno Haible  <bruno@clisp.org>
80979
80980                 * printf-args.c (printf_fetchargs): Work around broken
80981                 definition of wint_t on mingw.
80982
80983         2005-02-12  Bruno Haible  <bruno@clisp.org>
80984
80985                 * xallocsa.h: Add extern "C" for C++.
80986
80987         2006-05-17  Bruno Haible  <bruno@clisp.org>
80988
80989                 Cygwin portability.
80990                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
80991
80992         2006-04-30  Bruno Haible  <bruno@clisp.org>
80993
80994                 * progreloc.c: Include <mach-o/dyld.h> if available.
80995                 (find_executable): Use _NSGetExecutablePath when possible.
80996
80997         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
80998
80999                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
81000                 function.
81001
81002         2005-12-29  Bruno Haible  <bruno@clisp.org>
81003
81004                 * progreloc.c (set_program_name_and_installdir): Fix
81005                 compilation error.
81006
81007         2005-12-04  Bruno Haible  <bruno@clisp.org>
81008
81009                 Cygwin portability.
81010                 * progreloc.c: Include <windows.h> also on Cygwin.
81011                 (find_executable): Add support for Cygwin.
81012                 (set_program_name_and_installdir): Handle also platforms with
81013                 nonempty EXEEXT.
81014
81015         2006-07-11  Bruno Haible  <bruno@clisp.org>
81016
81017                 * javacomp.c: Fix a comment.
81018                 Reported by Jim Meyering.
81019
81020         2006-04-30  Bruno Haible  <bruno@clisp.org>
81021
81022                 * javacomp.h (compile_java_class): Add source_version,
81023                 target_version arguments.
81024                 * javacomp.c: Rewritten to choose only a compiler that
81025                 respects the specified source_version and target_version.
81026
81027         2006-06-27  Bruno Haible  <bruno@clisp.org>
81028
81029                 Assume correct S_ISDIR macro.
81030                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
81031
81032         2006-07-22  Bruno Haible  <bruno@clisp.org>
81033
81034                 * javaversion.h: New file, from GNU gettext.
81035                 * javaversion.c: New file, from GNU gettext.
81036                 * javaversion.java: New file, from GNU gettext.
81037                 * javaversion.class: New file, from GNU gettext.
81038
81039         2006-05-17  Bruno Haible  <bruno@clisp.org>
81040
81041                 Cygwin portability.
81042                 * javaexec.c (execute_java_class): Test for jview program
81043                 also on Cygwin.
81044
81045         2006-04-09  Bruno Haible  <bruno@clisp.org>
81046
81047                 * fatal-signal.c: Don't include string.h.
81048                 (at_fatal_signal): Use a copying loop instead of memcpy.
81049
81050         2005-12-04  Bruno Haible  <bruno@clisp.org>
81051
81052                 * csharpexec.c: Add support for 'clix' launcher (untested).
81053                 (execute_csharp_using_sscli): New function.
81054                 (execute_csharp_program): Call it.
81055
81056         2006-06-21  Bruno Haible  <bruno@clisp.org>
81057
81058                 Avoid warnings from recent versions of mcs.
81059                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
81060                 -o, -L, -r any more. Use options documented since mcs-1.0
81061                 instead. Similarly for -g.
81062
81063         2005-07-09  Bruno Haible  <bruno@clisp.org>
81064
81065                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
81066                 add a .dll suffix.
81067                 Reported by Mark Junker <mjscod@gmx.de>.
81068
81069         2006-06-17  Bruno Haible  <bruno@clisp.org>
81070
81071                 * config.charset: Update for NetBSD 3.0.
81072
81073         2006-05-17  Bruno Haible  <bruno@clisp.org>
81074
81075                 Cygwin portability.
81076                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
81077
81078         2006-05-16  Bruno Haible  <bruno@clisp.org>
81079
81080                 * localcharset.c [CYGWIN]: Include <windows.h>.
81081                 (get_charset_aliases): For Cygwin, return the same CPxxx
81082                 aliases list as under WIN32.
81083                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
81084                 the environment variables. Fall back to GetACP().
81085
81086         2006-04-05  Bruno Haible  <bruno@clisp.org>
81087
81088                 * config.charset: Update Juan Manuel Guerrero's address.
81089
81090         2005-02-12  Bruno Haible  <bruno@clisp.org>
81091
81092                 * allocsa.h: Add extern "C" for C++.
81093
81094         2005-02-10  Bruno Haible  <bruno@clisp.org>
81095
81096                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
81097                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
81098
81099         2006-07-22  Bruno Haible  <bruno@clisp.org>
81100
81101                 * gettext.h: Update to GNU gettext-0.15.
81102
81103 2006-07-22  Bruno Haible  <bruno@clisp.org>
81104
81105         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
81106         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
81107         lib-prefix.m4, longdouble.m4, ssize_t.m4.
81108
81109 2006-07-21  Eric Blake  <ebb9@byu.net>
81110
81111         * modules/stdlib-safer: New file.
81112         * MODULES.html.sh (File stream based Input/Output): Add
81113         stdlib-safer.
81114
81115 2006-07-21  Eric Blake  <ebb9@byu.net>
81116
81117         * lib/stdlib-safer.h: New file from coreutils, required by
81118         stdlib--.h.
81119
81120 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
81121
81122         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
81123
81124 2006-07-20  Bruno Haible  <bruno@clisp.org>
81125
81126         * gnulib-tool: Recognize new option --assume-autoconf.
81127         (autoconf_minversion): New variable.
81128         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
81129
81130 2006-07-20  Bruno Haible  <bruno@clisp.org>
81131
81132         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
81133
81134 2006-07-19  Derek R. Price  <derek@ximbiot.com>
81135
81136         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
81137         Reindent and repaginate.
81138
81139 2006-07-19  Derek Price  <derek@ximbiot.com>
81140
81141         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
81142         Correct grammar.
81143
81144 2006-07-17  Bruno Haible  <bruno@clisp.org>
81145
81146         * modules/list: New file.
81147         * modules/array-list: New file.
81148         * modules/carray-list, modules/carray-list-tests: New files.
81149         * modules/linked-list, modules/linked-list-tests: New files.
81150         * modules/avltree-list, modules/avltree-list-tests: New files.
81151         * modules/rbtree-list, modules/rbtree-list-tests: New files.
81152         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
81153         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
81154         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
81155         * modules/oset: New file.
81156         * modules/array-oset: New file.
81157         * modules/avltree-oset, modules/avltree-oset-tests: New files.
81158         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
81159         * tests/test-carray_list.c: New file.
81160         * tests/test-linked_list.c: New file.
81161         * tests/test-avltree_list.c: New file.
81162         * tests/test-rbtree_list.c: New file.
81163         * tests/test-linkedhash_list.c: New file.
81164         * tests/test-avltreehash_list.c: New file.
81165         * tests/test-rbtreehash_list.c: New file.
81166         * tests/test-avltree_oset.c: New file.
81167         * tests/test-rbtree_oset.c: New file.
81168         * MODULES.html.sh (Container data structures): New section.
81169
81170 2006-07-17  Bruno Haible  <bruno@clisp.org>
81171
81172         * m4/gl_list.m4: New file.
81173
81174 2006-07-17  Bruno Haible  <bruno@clisp.org>
81175
81176         * lib/gl_list.h: New file.
81177         * lib/gl_list.c: New file.
81178         * lib/gl_array_list.h: New file.
81179         * lib/gl_array_list.c: New file.
81180         * lib/gl_carray_list.h: New file.
81181         * lib/gl_carray_list.c: New file.
81182         * lib/gl_linked_list.h: New file.
81183         * lib/gl_linked_list.c: New file.
81184         * lib/gl_anylinked_list1.h: New file.
81185         * lib/gl_anylinked_list2.h: New file.
81186         * lib/gl_avltree_list.h: New file.
81187         * lib/gl_avltree_list.c: New file.
81188         * lib/gl_anyavltree_list1.h: New file.
81189         * lib/gl_anyavltree_list2.h: New file.
81190         * lib/gl_rbtree_list.h: New file.
81191         * lib/gl_rbtree_list.c: New file.
81192         * lib/gl_anyrbtree_list1.h: New file.
81193         * lib/gl_anyrbtree_list2.h: New file.
81194         * lib/gl_anytree_list1.h: New file.
81195         * lib/gl_anytree_list2.h: New file.
81196         * lib/gl_linkedhash_list.h: New file.
81197         * lib/gl_linkedhash_list.c: New file.
81198         * lib/gl_anyhash_list1.h: New file.
81199         * lib/gl_anyhash_list2.h: New file.
81200         * lib/gl_avltreehash_list.h: New file.
81201         * lib/gl_avltreehash_list.c: New file.
81202         * lib/gl_rbtreehash_list.h: New file.
81203         * lib/gl_rbtreehash_list.c: New file.
81204         * lib/gl_anytreehash_list1.h: New file.
81205         * lib/gl_anytreehash_list2.h: New file.
81206
81207         * lib/gl_oset.h: New file.
81208         * lib/gl_oset.c: New file.
81209         * lib/gl_array_oset.h: New file.
81210         * lib/gl_array_oset.c: New file.
81211         * lib/gl_avltree_oset.h: New file.
81212         * lib/gl_avltree_oset.c: New file.
81213         * lib/gl_rbtree_oset.h: New file.
81214         * lib/gl_rbtree_oset.c: New file.
81215         * lib/gl_anytree_oset.h: New file.
81216
81217 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81218
81219         * m4/mkancesdirs.m4: New file.
81220         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
81221         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
81222         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
81223         it.
81224
81225 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81226
81227         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
81228         * lib/mkancesdirs.h: New files.
81229         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
81230         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
81231         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
81232         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
81233         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
81234         callers changed.  Revamp internals significantly, by not
81235         attempting to create directories that are temporarily more
81236         permissive than the final results.  Do not attempt to use
81237         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
81238         This removes some race conditions, fixes some bugs, and simplifies
81239         things.  Use new dirchownmod function to do owner and mode changes.
81240         * lib/mkdir-p.h: Likewise.
81241         * lib/modechange.c (octal_to_mode): New function.
81242         (struct mode_change): New member mentioned.
81243         (make_node_op_equals): New arg mentioned.  All callers changed.
81244         (mode_compile): Keep track of which mode bits the user has explicitly
81245         mentioned.
81246         (mode_adjust): New arg DIR, so that we implement the X op correctly.
81247         New arg PMODE_BITS, to keep track of which mode bits the user
81248         mentioned; it treats S_ISUID and S_ISGID speciall.
81249         All callers changed.
81250         * lib/modechange.h: Likewise.
81251
81252 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81253
81254         * MODULES.html.sh: Add mkancestors.
81255         * modules/mkancesdirs: New module.
81256         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
81257         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
81258         The chdir-safer and afs files are now orphans; I'll remove them
81259         unless someone speaks up.
81260         Add lib/dirchownmod.c, lib/dirchownmod.h.
81261         (Depends-on): Remove alloca, chown, save-cwd, dirname.
81262         Add lchown, mkancesdirs.
81263         (Maintainer): Add self.
81264
81265 2006-07-15  Karl Berry  <karl@gnu.org>
81266
81267         * gnulib-tool: help message wording/arrangement.
81268
81269 2006-07-14  Simon Josefsson  <jas@extundo.com>
81270
81271         * doc/gnulib.texi (Libtool and Windows): New section.
81272
81273 2006-07-12  Simon Josefsson  <jas@extundo.com>
81274
81275         * modules/gendocs (License): Fix license, approved by Karl.
81276
81277 2006-07-12  Eric Blake  <ebb9@byu.net>
81278
81279         * MODULES.html.sh: Add gendocs.
81280
81281 2006-07-11  Eric Blake  <ebb9@byu.net>
81282
81283         * modules/fdl: New module, to install doc/fdl.texi.
81284         * MODULES.html.sh: Add new section for documentation modules.
81285         * gnulib-tool: Avoid space-tab.
81286         (--doc-base): New option, to manage files from doc.
81287
81288 2006-07-11  Eric Blake  <ebb9@byu.net>
81289
81290         * m4/absolute-header.m4: Fix comments to match recent change.
81291
81292 2006-07-11  Eric Blake  <ebb9@byu.net>
81293
81294         * gnulib-tool: List --doc-base before --tests-base.
81295
81296 2006-07-11  Derek R. Price  <derek@ximbiot.com>
81297
81298         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
81299
81300 2006-07-11  Bruno Haible  <bruno@clisp.org>
81301
81302         * README: Mention where to put documentation.
81303
81304 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81305
81306         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
81307
81308 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81309
81310         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
81311         to stdint.m4.
81312
81313 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81314
81315         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
81316         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
81317         "no/such/file/stdint.h" when there is no such file, so that
81318         the resulting C code can be parsed by dodgy compilers.
81319         Problems reported by Bob Proulx.
81320
81321 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81322
81323         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81324         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81325         macros into the GNU _D_EXACT_NAMLEN.
81326         * lib/savedir.c:  Likewise.
81327         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81328
81329 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81330         and Paul Eggert  <eggert@cs.ucla.edu>
81331
81332         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81333         * m4/savedir.m4:
81334         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81335         macros into the GNU _D_EXACT_NAMLEN.
81336
81337 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81338
81339         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81340         around the absolute name, to work around a problem with the HP-UX
81341         11.23 native C compiler, reported by Bob Proulx.
81342
81343 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81344
81345         * doc/maintain.texi, make-stds.texi: Sync from
81346         <http://savannah.gnu.org/projects/gnustandards>.
81347
81348 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81349
81350         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81351
81352 2006-07-09  Jim Meyering  <jim@meyering.net>
81353
81354         * m4/glob.m4: Remove a doubled word in a comment.
81355
81356 2006-07-09  Jim Meyering  <jim@meyering.net>
81357
81358         * lib/argp-pv.c: Remove a doubled word in a comment.
81359         * lib/check-version.c (check_version): Likewise.
81360         * lib/javacomp.c (compile_java_class): Likewise.
81361
81362 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81363
81364         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81365         for the benefit of people using Autoconf 2.60.  If you want to
81366         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81367         (or m4/onceonly.m4, if pre-2.57) manually.
81368
81369 2006-07-08  Jim Meyering  <jim@meyering.net>
81370
81371         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81372         comment.
81373         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81374         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81375         comment.
81376
81377 2006-07-08  Jim Meyering  <jim@meyering.net>
81378
81379         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81380
81381 2006-07-07  Simon Josefsson  <jas@extundo.com>
81382
81383         * tests/test-crc.c: Change expected crc value, the test vector
81384         were probably computed using the old broken crc.c?
81385
81386 2006-07-06  Simon Josefsson  <jas@extundo.com>
81387
81388         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
81389         now the canonical place for the M4 file).
81390
81391         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
81392         from the sys_socket dependency now.
81393
81394         * modules/inet_pton (Files): Ditto.
81395
81396         * modules/inet_ntop (Files): Ditto.
81397
81398 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81399
81400         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81401         not gl_PREREQ_GETUSERSHELL.
81402
81403 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81404
81405         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81406         with only one argument, for Autoconf 2.60.
81407         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81408         expand to nothing, so add a shell command to avoid syntax error.
81409         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81410
81411 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81412
81413         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81414
81415 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81416
81417         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81418         no longer needed.  Check for isblank decl.
81419         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81420         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81421         of existence.
81422
81423 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81424
81425         * lib/getloadavg.c: Use __VMS, not VMS.
81426         * lib/getopt.c: Likewise.
81427         * lib/getpagesize.h: Likewise.
81428         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81429         and probably does not work.
81430
81431 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81432
81433         * lib/.cppi-disable: Add wcwidth.
81434         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81435         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81436         (ISGRAPH): Remove.  All uses changed to isgraph.
81437         (FOLD) [!defined _LIBC]: Remove special case.
81438         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81439         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81440         HAVE_ISBLANK.
81441         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81442         case.
81443
81444 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81445
81446         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81447         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81448         brackets.  Other minor changes to suppress some compiler
81449         warnings.
81450
81451 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81452         and Paul Eggert  <eggert@cs.ucla.edu>
81453
81454         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81455         of invoking obsolescent AC_HEADER_DIRENT macro.
81456         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81457         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81458         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81459         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81460         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81461         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81462         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81463         * m4/readdir.m4: Remove; no longer needed.
81464
81465 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81466         and Paul Eggert  <eggert@cs.ucla.edu>
81467
81468         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81469         Don't worry about this obsolete case any more.
81470         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81471         directories.
81472         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81473         worry about this obsolete case any more.
81474         * lib/fts.c: Likewise.
81475         * lib/getcwd.c: Likewise.
81476         * lib/glob.h: Likewise.
81477         * lib/savedir.c: Likewise.
81478
81479 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81480
81481         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
81482         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
81483         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
81484         needed.
81485         All uses removed.
81486         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81487         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81488         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
81489         needed.
81490         * m4/getdate.m4 (gl_GETDATE): Likewise.
81491         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81492         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81493         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81494         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81495         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81496         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81497         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
81498         needed.
81499
81500 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81501
81502         * lib/memcasecmp.c: Include <limits.h>.
81503         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
81504         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
81505         Don't assume isdigit succeeds only on '0' through '9'.
81506
81507 2006-07-05  Eric Blake  <ebb9@byu.net>
81508
81509         * modules/getaddrinfo (Depends-on): Add snprintf.
81510
81511 2006-07-05  Eric Blake  <ebb9@byu.net>
81512
81513         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
81514         to avoid 'header present but could not be compiled' on cygwin.
81515
81516 2006-07-05  Eric Blake  <ebb9@byu.net>
81517
81518         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
81519         missing from netdb.h.
81520         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
81521
81522 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81523
81524         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
81525         no longer needed.
81526         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
81527         * m4/getdate.m4 (gl_GETDATE): Likewise.
81528         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81529         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81530         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81531         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81532         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81533
81534 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81535
81536         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
81537         All uses of is_space replaced by isspace.
81538         * lib/exit.h: Don't talk about STDC_HEADERS.
81539         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
81540         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
81541         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
81542         replaced by isprint etc.
81543         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
81544         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81545         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
81546         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
81547         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
81548         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81549
81550 2006-07-05  Bruno Haible  <bruno@clisp.org>
81551
81552         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
81553         the function exists, before testing against AIX.
81554         Reported by Martin Lambers <marlam@marlam.de>.
81555
81556 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81557
81558         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
81559         From Mark D. Baushke.
81560
81561 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81562
81563         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
81564         to the absolute name, not just one, to bypass Sun C 5.8's
81565         "warning: #include of /usr/include/... may be non-portable".
81566
81567 2006-07-04  Eric Blake  <ebb9@byu.net>
81568
81569         * modules/dirname-tests: New test module.
81570         * tests/test-dirname.c: New file, replacing dirname.c
81571         TEST_DIRNAME section that was recently deleted.
81572
81573 2006-07-04  Bruno Haible  <bruno@clisp.org>
81574
81575         Assume ANSI C header files and <ctype.h> functions.
81576         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
81577         (mbsnwidth): Use isprint, iscntrl instead.
81578
81579 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81580
81581         Merge from coreutils.
81582         * MODULES.html.sh: Add xstrtold.
81583         * modules/xstrtold: New file.
81584         * modules/cycle-check (Files): Add lib/same-inode.h.
81585         * modules/dirname (Files): Add m4/double-slash-root.m4.
81586         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
81587         * modules/mkdir-p (Files): Add lib/same-inode.h.
81588         * modules/same (Files): Add lib/same-inode.h.
81589
81590 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81591
81592         * m4/absolute-header.m4: Renamed from full-header-path.m4.
81593         This is to keep the terminology clean; POSIX talks about
81594         "absolute pathnames", not "full pathnames", but the GNU
81595         Coding Standards say to use "path" for something else;
81596         so use "absolute" to keep both sides happy.
81597         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
81598         Set gl_absolute_header, not gl_full_header_path.
81599         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
81600         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
81601         All uses changed.
81602
81603         Merge from coreutils.
81604
81605         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81606
81607         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
81608         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
81609         want to require the building of c-strtod.o.
81610         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
81611         needs -lm directly.
81612         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
81613
81614         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81615
81616         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
81617         --as-needed option if available.  Problem reported by Albert Chin in
81618         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
81619         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
81620         cc merely issues a bunch of annoying warnings for --as-needed
81621         (this problem was reported by Bob Proulx).  Also, try linking with
81622         -lm to detect a bug in binutils 2.16 (this problem was reported
81623         by Ralf Wildenhues).
81624
81625         2006-06-18  Jim Meyering  <jim@meyering.net>
81626
81627         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
81628         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
81629         macro.
81630         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
81631         also check for glibc-2.4's abort-inducing bug.
81632
81633         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
81634         Low-probability clean-up should be to use rmdir to get rid of
81635         the just-created directory, not unlink.
81636
81637         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
81638         configure fail, and request a bug report to inform us about it.
81639         Add a comment that, barring reports to the contrary, in 2007 we'll
81640         assume ftruncate is universally available.
81641
81642         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81643
81644         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
81645
81646         2006-03-12  Jim Meyering  <jim@meyering.net>
81647
81648         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
81649         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
81650         * m4/same.m4 (gl_SAME): Likewise.
81651         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
81652
81653         2006-03-11  Eric Blake  <ebb9@byu.net>
81654
81655         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
81656         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
81657         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
81658         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
81659
81660 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81661
81662         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
81663         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
81664         reported by Mark D. Baushke, one in
81665         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
81666
81667         Merge from coreutils.
81668
81669         * lib/.cppi-disable: Add stdint_.h.
81670         * lib/.cvsignore: Add stdint.h.
81671
81672         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81673
81674         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
81675         both double and long double versions.
81676         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
81677         * lib/xstrtold.c: New file.
81678         * lib/xstrtod.h (xstrtold): New decl.
81679
81680         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81681
81682         * lib/filemode.c (setst): Remove.
81683         (strmode): Rewrite to avoid setst.  This makes the code shorter,
81684         (arguably) clearer, and the generated code is a bit smaller on my
81685         Debian GNU/Linux stable x86 host.
81686
81687         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81688
81689         * lib/filemode.c: Include "filemode.h" first, to test the interface.
81690         Assume that filemode.h includes sys/types.h and sys/stat.h.
81691         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
81692         (ftypelet): Reorder to put common cases first, for efficiency.
81693         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
81694         to do 'M'.
81695         (strmode): Renamed from mode_string, and now stores 12 bytes instead
81696         of 10, for compatibility with FreeBSD.  All callers changed.
81697         (filemodestring): Now stores 12 bytes instead of 10, and sets file
81698         types that can't be deduced solely from st_mode.  First arg is now a
81699         const pointer.
81700         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
81701         (strmode): Renamed from mode_string.
81702         (filemodestring): New decl.
81703         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
81704         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
81705         needed.
81706         (S_ISPORT, S_ISWHT): New macros, if not already defined.
81707
81708         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81709
81710         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
81711         fsusage.h now does that.  Include fsusage.h first, to test interface.
81712         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
81713         at most one method (the old code could have generated decls that
81714         didn't conform to C89, not that this was ever exercised).
81715         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
81716
81717         2006-03-19  Jim Meyering  <jim@meyering.net>
81718
81719         Work even in a chroot where d_ino values for entries in "/"
81720         don't match the stat.st_ino values for the same names.
81721         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
81722         number, iterate through all entries again, using lstat instead.
81723         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
81724         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
81725
81726         * lib/getcwd.c (__getcwd): Clarify a comment.
81727         Use memcpy in place of a call to strcpy.
81728
81729         2006-03-12  Jim Meyering  <jim@meyering.net>
81730
81731         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
81732         matches that of the current directory (which we're about to chdir ".."
81733         out of), then save the dev-ino of the parent, instead.
81734
81735         * lib/same-inode.h (SAME_INODE): New file/macro.
81736         * lib/chdir-safer.c (SAME_INODE): Remove definition.
81737         Include "same-inode.h", instead.
81738         * lib/same.c: Likewise.
81739         * lib/cycle-check.h: Include "same-inode.h".
81740         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
81741         * lib/cycle-check.c (SAME_INODE): Remove definition.
81742         * lib/root-dev-ino.h: Include "same-inode.h".
81743
81744         2006-03-11  Eric Blake  <ebb9@byu.net>
81745
81746         * lib/same.c (same_name): s/base_name/last_component/
81747         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
81748         * lib/filenamecat.c (file_name_concat): Likewise.
81749
81750         2006-03-11  Eric Blake  <ebb9@byu.net>,
81751                     Paul Eggert  <eggert@cs.ucla.edu>
81752
81753         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
81754         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
81755         drive prefix.
81756         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
81757         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
81758         (last_component): New method.
81759         * lib/dirname.c (dir_len): Determine when drive letters need a
81760         subsequent slash.  Preserve // when it is special.
81761         (dir_name): Don't append dot when drive letter is absolute.
81762         [TEST_DIRNAME]: Move into a full-blown gnulib test.
81763         * lib/basename.c (base_name): New semantics - malloc the result.
81764         Preserve // when it is special.  Preserve relative files that look
81765         like drive letters.
81766         (base_len): Preserve // when it is special.
81767         (last_component): New method, similar to old base_name semantics.
81768         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
81769         base_name.  Strip redundant slashes from ///.
81770
81771 2006-07-03  Jim Meyering  <jim@meyering.net>
81772
81773         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
81774         macro is used before the first cycle_check call.
81775
81776 2006-07-03  Eric Blake  <ebb9@byu.net>
81777
81778         * modules/dirname (Depends-on): Add xstrndup.
81779
81780 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81781
81782         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
81783         test cases, so that config.log is a bit easier to follow.
81784
81785 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81786
81787         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
81788         both are 64 bits, since this seems to be the tradition, and this
81789         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
81790         we ever run into a host that prefers long long to long in this
81791         case, we'll need another configure-time test.  Problem reported by
81792         Jim Meyering.
81793
81794 2006-07-02  Eric Blake  <ebb9@byu.net>
81795
81796         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
81797
81798 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81799
81800         * modules/inttypes (Depends-on): No longer depends on stdint.
81801         * modules/stdint (Description): Say more about assumptions.
81802         Say that the fast types might differ.  Say macros are used.
81803         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
81804         (Makefile.am): Revise list of substituted symbols to match
81805         new stdint.m4.
81806         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
81807         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
81808         * tests/test-stdint.c (verify_same_types)
81809         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
81810         the code conforms to C99/C89.
81811         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
81812         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
81813
81814 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81815
81816         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
81817         but fix a bug, by requiring at least 64 bits.
81818         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
81819         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
81820         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
81821         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81822
81823         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
81824         changes.  Make 2.59 a prerequisite.  Check and substitute for
81825         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
81826         inttypes.h.  Do not use special include files; just use the
81827         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
81828         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
81829         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
81830         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
81831         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
81832         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
81833         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
81834         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
81835         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
81836         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
81837         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
81838         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
81839         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
81840         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
81841         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
81842         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
81843         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
81844         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
81845         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
81846         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
81847         WINT_MAX.  Check for C99 conformance more strictly, by detecting
81848         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
81849         not check for things that C99 does not require, e.g., int8_t.  If
81850         a test isn't needed unless <stdint.h> isn't working, and is
81851         unlikely to be needed for any other reason, then don't do it
81852         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
81853         size_t, since we assume C89 freestanding at least.  Do not check
81854         for sig_atomic_t, wchar_t, or wint_t, since the code now does
81855         the right thing even if the types are not defined.  Instead use:
81856         (gl_STDINT_TYPE_PROPERTIES): New macro.
81857         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
81858         testing whether <sys/types.h> clashes, as Autoconf does this for
81859         us now.  All uses removed.
81860         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
81861         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
81862         (gl_CHECK_TYPE_SAME):
81863         Remove; no longer needed.
81864         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
81865         exists, since we'll return 0 anyway in that case.
81866         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
81867
81868 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81869
81870         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
81871         possible collision with system files.
81872         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
81873         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
81874         WCHAR_MIN and WCHAR_MAX in this case.
81875         (<stddef.h>): Do not include; no longer needed.
81876         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
81877         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
81878         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
81879         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
81880         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
81881         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
81882         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
81883         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
81884         !defined(__c99))]: Include in this case too, since it's harmless
81885         now.
81886         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
81887         dangerous to do so.
81888         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
81889         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
81890         (_STDINT_MIN, _STDINT_MAX): New macros.
81891         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
81892         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
81893         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
81894         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
81895         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
81896         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
81897         macros, not typedefs; this simplifies things quite a bit.
81898         Use long int for all types narrower than int64_t.
81899         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
81900         Define in terms of long long int or int64_t or long int,
81901         not int64_t or int32_t.  This saves some compile-time testing.
81902         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
81903         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
81904         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
81905         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
81906         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
81907         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
81908         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
81909         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
81910         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
81911         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
81912         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81913         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81914         undef any previous version and define our own version, for
81915         simplicity and consistency with the new macros for types.
81916         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81917         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81918         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
81919         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
81920         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
81921         @WINT_T_SUFFIX@ to keep things simple here.
81922         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
81923         Simplify by assuming typical 8/16/32/64 host, since we're
81924         already doing that elsewhere anyway.
81925         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
81926         and assume long long int is 64 bits if available.  This
81927         speeds up 'configure'.
81928
81929 2006-07-01  Eric Blake  <ebb9@byu.net>
81930
81931         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
81932         Reported by Andreas Buening.
81933
81934 2006-07-01  Eric Blake  <ebb9@byu.net>
81935
81936         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
81937
81938 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81939
81940         * lib/getaddrinfo.c: fixed typo
81941
81942 2006-06-29  Jim Meyering  <jim@meyering.net>
81943
81944         * modules/strftime (Maintainer): Add my name, since with the
81945         FPRINTFTIME changes strftime.c has forked from glibc.
81946
81947 2006-06-29  Eric Blake  <ebb9@byu.net>
81948
81949         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
81950
81951 2006-06-29  Eric Blake  <ebb9@byu.net>
81952
81953         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
81954
81955 2006-06-29  Eric Blake  <ebb9@byu.net>
81956
81957         * lib/stat_.h: New file.
81958
81959 2006-06-29  Eric Blake  <ebb9@byu.net>
81960
81961         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
81962         unused static function.
81963
81964 2006-06-29  Eric Blake  <ebb9@byu.net>
81965
81966         * doc/functions.texi (Function Portability): Document missing lstat
81967         on mingw.
81968
81969 2006-06-29  Eric Blake  <ebb9@byu.net>
81970
81971         * MODULES.html.sh: Add sys_stat.
81972         * modules/sys_stat: New module.
81973         * modules/mkstemp (Depends-on): Add sys_stat.
81974
81975 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81976
81977         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
81978
81979 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81980
81981         * m4/c-bs-a.m4: Removed.
81982
81983 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81984
81985         * lib/strftime.c: Assume strftime() exists.
81986
81987 2006-06-29  Derek Price  <derek@ximbiot.com>
81988
81989         * modules/c-bs-a: Removed - \a is C89.
81990         * MODULES.html.sh: Remove c-bs-a.
81991
81992 2006-06-29  Bruno Haible  <bruno@clisp.org>
81993
81994         * modules/wcwidth (License): Change to LGPL.
81995
81996 2006-06-28  Simon Josefsson  <jas@extundo.com>
81997
81998         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
81999         on _WIN32.
82000
82001         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
82002         getnameinfo.
82003
82004 2006-06-28  Simon Josefsson  <jas@extundo.com>
82005
82006         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
82007
82008 2006-06-28  Simon Josefsson  <jas@extundo.com>
82009
82010         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
82011         functions there.  It will succeed on Windows XP, but on Windows
82012         2000 and (presumably) earlier, it will fail, and use the internal
82013         re-implementation.
82014         (use_win32_p): New function.
82015         (getaddrinfo): Use strtoul on servname, to support numeric ports.
82016         Support AI_NUMERICSERV to disable getservbyname.
82017         (getnameinfo): New function, only supports
82018         NI_NUMERICHOST|NI_NUMERICSERV for now.
82019
82020         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
82021         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
82022         getnameinfo.
82023
82024 2006-06-28  Eric Blake  <ebb9@byu.net>
82025
82026         * modules/wcwidth: New file.
82027         * modules/mbchar (Depends-on): Add wcwidth.
82028         * modules/mbswidth (Depends-on): Add wcwidth.
82029         * MODULES.html.sh: Add wcwidth.
82030
82031 2006-06-28  Eric Blake  <ebb9@byu.net>
82032
82033         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
82034         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
82035
82036 2006-06-28  Eric Blake  <ebb9@byu.net>
82037
82038         * lib/xvasprintf.h: Fix comments.
82039
82040 2006-06-28  Eric Blake  <ebb9@byu.net>
82041
82042         * lib/mbchar.h (wcwidth): Include wcwidth.h.
82043         * lib/mbswidth.c (wcwidth): Move from here...
82044         * lib/wcwidth.h: ...to this new file.
82045
82046 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82047
82048         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
82049
82050         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
82051         it's obsolete.
82052         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
82053
82054 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82055
82056         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
82057         Autoconf 2.60 says this stuff was obsolete.
82058
82059 2006-06-28  Bruno Haible  <bruno@clisp.org>
82060
82061         * modules/wcwidth (Files): Add m4/wchar_t.m4.
82062
82063 2006-06-28  Bruno Haible  <bruno@clisp.org>
82064
82065         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
82066         gt_TYPE_WCHAR_T.
82067
82068 2006-06-28  Bruno Haible  <bruno@clisp.org>
82069
82070         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
82071         declaration for wcwidth.
82072         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
82073
82074 2006-06-28  Bruno Haible  <bruno@clisp.org>
82075
82076         * lib/mkdtemp.c [MINGW]: Include <io.h>.
82077         (mkdir): Define using _mkdir.
82078
82079 2006-06-28  Bruno Haible  <bruno@clisp.org>
82080
82081         * lib/getaddrinfo.h: Fix POSIX URL.
82082         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
82083         _WIN32.
82084         (use_win32_p): Make static.
82085         (getaddrinfo): Reject service name if it is empty or does not consist
82086         solely of decimal digits, or if its value is > 65535.
82087         (getnameinfo): Remove useless casts.
82088
82089 2006-06-27  Simon Josefsson  <jas@extundo.com>
82090
82091         * modules/sys_select: New file, suggested by Bruno Haible, Paul
82092         Eggert and Martin Lambers.
82093
82094 2006-06-27  Simon Josefsson  <jas@extundo.com>
82095
82096         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
82097         Eggert and Martin Lambers.
82098
82099 2006-06-27  Bruno Haible  <bruno@clisp.org>
82100
82101         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
82102         result to 0, not to empty.
82103         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
82104
82105 2006-06-27  Bruno Haible  <bruno@clisp.org>
82106
82107         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
82108
82109 2006-06-26  Simon Josefsson  <jas@extundo.com>
82110
82111         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
82112         present.
82113
82114 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
82115
82116         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
82117         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
82118         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
82119
82120 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
82121
82122         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
82123
82124 2006-06-26  Bruno Haible  <bruno@clisp.org>
82125
82126         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
82127
82128 2006-06-26  Bruno Haible  <bruno@clisp.org>
82129
82130         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
82131
82132 2006-06-26  Bruno Haible  <bruno@clisp.org>
82133
82134         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
82135         SGI C compiler in pre-C99 mode.
82136         Suggested by Mark D. Baushke and Larry Jones.
82137
82138 2006-06-26  Bruno Haible  <bruno@clisp.org>
82139
82140         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
82141         WCHAR_MAX.
82142         Reported by Mark D. Baushke and Larry Jones.
82143
82144 2006-06-26  Bruno Haible  <bruno@clisp.org>
82145
82146         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
82147         in pre-C99 mode.
82148         Suggested by Mark D. Baushke and Larry Jones.
82149
82150 2006-06-23  Simon Josefsson  <jas@extundo.com>
82151             Bruno Haible  <bruno@clisp.org>
82152
82153         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
82154         Emit mostlyclean-local rule.
82155         (func_emit_tests_Makefile_am): Likewise.
82156         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
82157
82158 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
82159
82160         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
82161
82162 2006-06-23  Bruno Haible  <bruno@clisp.org>
82163
82164         * tests/test-stdint.c: Update to match ISO C 99 Technical
82165         Corrigendum 1.
82166
82167 2006-06-23  Bruno Haible  <bruno@clisp.org>
82168
82169         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
82170
82171 2006-06-23  Bruno Haible  <bruno@clisp.org>
82172
82173         * lib/stdint_.h: Treat IRIX like OpenBSD.
82174
82175 2006-06-23  Bruno Haible  <bruno@clisp.org>
82176
82177         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
82178         ISO C 99 Technical Corrigendum 1.
82179
82180 2006-06-22  Simon Josefsson  <jas@extundo.com>
82181
82182         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
82183         MinGW.
82184
82185 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82186
82187         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
82188         needed.  Some compiler complained about some of them.  Problem reported
82189         by Larry Jones in
82190         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
82191
82192 2006-06-21  Simon Josefsson  <jas@extundo.com>
82193
82194         * tests/test-getaddrinfo.c: New file.
82195
82196         * modules/getaddrinfo-tests: New file.
82197
82198         * MODULES.html.sh: Add inet_pton.
82199
82200         * modules/inet_pton: New file.
82201
82202 2006-06-21  Simon Josefsson  <jas@extundo.com>
82203
82204         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
82205         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
82206         of using the (limited) gnulib implementation on Windows XP.
82207
82208         * m4/inet_pton.m4: New file.
82209
82210 2006-06-21  Simon Josefsson  <jas@extundo.com>
82211
82212         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
82213         variable.
82214
82215         * lib/socket_.h: Don't define WINVER.
82216
82217         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
82218         slightly modified to work in gnulib.
82219
82220 2006-06-21  Simon Josefsson  <jas@extundo.com>
82221
82222         * doc/gnulib.texi (Windows sockets): Add.
82223
82224 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
82225
82226         * lib/read-file.c (fread_file): Start with buffer allocation of
82227         0 bytes rather than 1 byte; this simplifies the code.
82228         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
82229         code to free buffer and save/restore errno.
82230         (internal_read_file): Remove unused local.
82231
82232 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
82233
82234         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
82235         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
82236         Problem reported by Denis Excoffier in
82237         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
82238
82239 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82240
82241         * modules/sys_socket, modules/socklen: Include sys/types since
82242         FreeBSD 4.x's sys/socket.h needs it.
82243
82244 2006-06-19  Simon Josefsson  <jas@extundo.com>
82245
82246         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
82247
82248 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82249
82250         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
82251
82252 2006-06-19  Bruno Haible  <bruno@clisp.org>
82253
82254         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
82255         and FULL_PATH_INTTYPES_H in angle brackets.
82256         Reported by Mark D. Baushke <mdb@gnu.org>.
82257
82258 2006-06-17  Eric Blake  <ebb9@byu.net>
82259
82260         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
82261         errno.
82262
82263 2006-06-17  Bruno Haible  <bruno@clisp.org>
82264
82265         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
82266         <sys/inttypes.h>.
82267
82268 2006-06-17  Bruno Haible  <bruno@clisp.org>
82269
82270         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
82271         whether errno is declared. Assume <errno.h> declares errno.
82272
82273 2006-06-17  Bruno Haible  <bruno@clisp.org>
82274
82275         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
82276
82277 2006-06-17  Bruno Haible  <bruno@clisp.org>
82278
82279         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
82280         problem on Solaris 2.5.1.
82281
82282 2006-06-16  Eric Blake  <ebb9@byu.net>
82283
82284         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
82285         * lib/unicodeio.c [!defined errno]: Likewise.
82286         * lib/strtol.c [!defined errno]: Likewise.
82287         * lib/strtod.c [!defined errno]: Likewise.
82288
82289 2006-06-15  Eric Blake  <ebb9@byu.net>
82290
82291         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
82292
82293 2006-06-15  Eric Blake  <ebb9@byu.net>
82294
82295         * config/srclist.txt (ssize_t.m4): Lose sync.
82296
82297 2006-06-15  Bruno Haible  <bruno@clisp.org>
82298
82299         * modules/stdint (Files): Include m4/full-header-path.m4,
82300         m4/size_max.m4, m4/wchar_t.m4.
82301         (Makefile.am): Many more substitutions.
82302         * modules/stdint-tests: New file.
82303         * tests/test-stdint.c: New file.
82304
82305 2006-06-15  Bruno Haible  <bruno@clisp.org>
82306
82307         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
82308         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
82309         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
82310         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
82311         gl_CHECK_TYPE_SAME): New macros.
82312
82313 2006-06-15  Bruno Haible  <bruno@clisp.org>
82314
82315         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
82316
82317 2006-06-15  Bruno Haible  <bruno@clisp.org>
82318
82319         * lib/stdint_.h: Rewritten to be fully auto-configured.
82320         Fixes bug on HP-UX/IA64.
82321
82322 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
82323
82324         * lib/getdate.y (__attribute__): Don't define if already defined.
82325         Problem reported by Larry Jones.
82326         * lib/utimens.c (__attribute__): Likewise.
82327
82328 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82329
82330         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82331         reported by Andreas Schwab.
82332
82333 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82334             Bruno Haible  <bruno@clisp.org>
82335
82336         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82337         check for the declaration of strnlen and a run test that exposes the
82338         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82339         rpl_strndup.
82340
82341 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82342             Bruno Haible  <bruno@clisp.org>
82343
82344         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82345
82346 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82347
82348         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82349         compile test, for Tru64 4.0D.
82350
82351 2006-05-28  Karl Berry  <karl@gnu.org>
82352
82353         * config/srclist.txt (printf-args.c): lose sync.
82354
82355 2006-05-26  Martin Lambers  <marlam@marlam.de>
82356
82357         * lib/getpass.c: Updates the test for the native W32 API, and adds
82358         missing includes, thus fixing compilation warnings.
82359
82360 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82361
82362         * lib/exclude.c (exclude_fnmatch): New function.
82363         (excluded_file_name): Call exclude_fnmatch.
82364         * lib/exclude.h (excluded_file_name): New prototype
82365
82366 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82367
82368         * lib/tempname.c (small_open, large_open): New macros.
82369         (__open, __open64) [!_LIBC]: Remove.
82370         (__gen_tempname): Use small_open and large_open instead of __open
82371         and __open64.  This fixes a portability bug on HP-UX 11.11i
82372         reported by Simon Wing-Tang in
82373         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82374
82375 2006-05-24  Bruno Haible  <bruno@clisp.org>
82376
82377         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82378         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82379         Reported by Thorsten Maerz <torte@netztorte.de> via
82380         Aaron Stone <aaron@serendipity.cx>.
82381
82382 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82383
82384         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82385         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82386         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
82387         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
82388         not really conditional on the cache.
82389         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
82390
82391 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82392
82393         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82394         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82395         (my_usleep): Don't mishandle maximum value.
82396
82397 2006-05-19  Jim Meyering  <jim@meyering.net>
82398
82399         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82400
82401 2006-05-17  Bruno Haible  <bruno@clisp.org>
82402
82403         Cygwin portability.
82404         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82405
82406 2006-05-17  Bruno Haible  <bruno@clisp.org>
82407
82408         * lib/stdint_.h: Fix recognition of Cygwin.
82409
82410 2006-05-15  Bruno Haible  <bruno@clisp.org>
82411
82412         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82413         on libtool patch by Ralf Wildenhues.
82414
82415 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82416
82417         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82418         test for C99 conformance; (bool) 0.5 is an integer constant
82419         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82420         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82421
82422 2006-05-11  Simon Josefsson  <jas@extundo.com>
82423
82424         * m4/xvasprintf.m4: Fix obvious typo.
82425
82426 2006-05-11  Jim Meyering  <jim@meyering.net>
82427
82428         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82429         James Lemley.
82430
82431 2006-05-10  Simon Josefsson  <jas@extundo.com>
82432
82433         * lib/md4.c: Typo fix, update copyright years.
82434         (K1, K2): Don't use L because it turn computations into 64-bit on
82435         64-bit platforms.
82436
82437 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82438
82439         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82440         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82441         unwanted sign propagation, e.g., on hosts with 64-bit int.
82442         There still are some problems with reeelly weird theoretical hosts
82443         (e.g., 33-bit int) but it's not worth worrying about now.
82444         * lib/sha1.c (rol): Likewise.
82445         (K1, K2, K3, K4): Remove unnecessary L suffix.
82446
82447 2006-05-10  Bruno Haible  <bruno@clisp.org>
82448
82449         * lib/des.c: Cast to avoid warnings.
82450
82451 2006-05-09  Bruno Haible  <bruno@clisp.org>
82452
82453         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82454         (Depends-on): Depend also on xsize, stdarg.
82455         (configure.ac): Add gl_XVASPRINTF.
82456
82457 2006-05-09  Bruno Haible  <bruno@clisp.org>
82458
82459         * m4/xvasprintf.m4: New file.
82460
82461 2006-05-09  Bruno Haible  <bruno@clisp.org>
82462
82463         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82464         (EOVERFLOW): Define fallback value.
82465         (xstrcat): New function.
82466         (xvasprintf): Recognize the special case of a string concatenation.
82467
82468 2006-05-08  Eric Blake  <ebb9@byu.net>
82469
82470         * gnulib-tool (func_version): Base copyright year on CVS date.
82471         (func_emit_copyright_notice): New function.
82472         (func_emit_lib_Makefile_am): Use it.
82473         (func_emit_tests_Makefile_am): Likewise.
82474         (func_import): Likewise.
82475
82476 2006-05-08  Bruno Haible  <bruno@clisp.org>
82477
82478         * modules/stdarg: New file.
82479         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
82480
82481 2006-05-08  Bruno Haible  <bruno@clisp.org>
82482
82483         * m4/stdarg.m4: New file, from GNU gettext.
82484
82485 2006-05-08  Bruno Haible  <bruno@clisp.org>
82486
82487         * config/srclist.txt (build-aux/config.rpath): different from latest
82488         release.
82489
82490 2006-05-08  Bruno Haible  <bruno@clisp.org>
82491
82492         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
82493
82494 2006-05-05  Jim Meyering  <jim@meyering.net>
82495
82496         * m4/warning.m4: New file, derived from bison's file by the same name.
82497
82498 2006-05-03  Bruno Haible  <bruno@clisp.org>
82499
82500         * lib/stdint_.h: Shorter URL.
82501         * lib/inttypes.h: Likewise.
82502
82503 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82504
82505         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
82506
82507 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82508
82509         * lib/verify.h: Document the internals better.  Most of this change
82510         was written by Bruno Haible.
82511
82512 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82513
82514         * doc/verify.texi: New file, partly based on a proposal by
82515         Bruno Haible.
82516
82517 2006-05-02  Bruno Haible  <bruno@clisp.org>
82518
82519         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
82520         test from here...
82521         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
82522
82523 2006-04-29  Bruno Haible  <bruno@clisp.org>
82524
82525         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
82526         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
82527
82528 2006-04-29  Bruno Haible  <bruno@clisp.org>
82529
82530         * gnulib-tool: Make --update option actually work.
82531
82532 2006-04-29  Bruno Haible  <bruno@clisp.org>
82533
82534         * doc/gcd.texi: New file.
82535         * doc/gnulib.texi: Include it.
82536
82537 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
82538
82539         * lib/getdate.y (get_date): When adding relative date, start with the
82540         initial time, not with the result of the first mktime call.
82541
82542 2006-04-25  Bruno Haible  <bruno@clisp.org>
82543
82544         * gnulib-tool (func_import): Output the include directives in three
82545         blocks, sorted separately.
82546         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82547
82548 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82549
82550         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
82551         to define main with arguments, for C++.  Reported by Eric Blake.
82552         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
82553         Prefer 'int main ()' to 'int main (void)', for C++.
82554         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
82555         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
82556         for 'main', for C99 and C++.
82557
82558 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82559
82560         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
82561         Don't assume that exit status -1 is valid.
82562         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82563         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
82564         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
82565         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
82566         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
82567         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
82568         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
82569         functions can be used without declaring them, or that you can
82570         exit with status -1.
82571         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
82572
82573 2006-04-24  Karl Berry  <karl@gnu.org>
82574
82575         * config/srclist.txt (longdouble.m4): sync lost.
82576
82577 2006-04-24  Eric Blake  <ebb9@byu.net>
82578
82579         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
82580
82581 2006-04-24  Bruno Haible  <bruno@clisp.org>
82582
82583         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
82584         poll() implementation in AIX.
82585         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82586
82587 2006-04-24  Bruno Haible  <bruno@clisp.org>
82588
82589         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
82590         assigned exactly once.
82591
82592 2006-04-23  Claudio Fontana  <claudio@gnu.org>
82593             Bruno Haible  <bruno@clisp.org>
82594
82595         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
82596         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
82597         for AM_CPPFLAGS.
82598
82599 2006-04-23  Bruno Haible  <bruno@clisp.org>
82600
82601         * modules/copy-file: Depend on unistd.
82602         * modules/execute: Likewise.
82603         * modules/fatal-signal: Likewise.
82604         * modules/findprog: Likewise.
82605         * modules/mkdtemp : Likewise.
82606         * modules/pipe: Likewise.
82607         * modules/wait-process: Likewise.
82608
82609 2006-04-23  Bruno Haible  <bruno@clisp.org>
82610
82611         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
82612         condition was already detected.
82613         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82614
82615 2006-04-23  Bruno Haible  <bruno@clisp.org>
82616
82617         * lib/copy-file.c: Include <unistd.h> unconditionally.
82618         * lib/execute.c: Likewise.
82619         * lib/fatal-signal.c: Likewise.
82620         * lib/findprog.c: Likewise.
82621         * lib/mkdtemp.c: Likewise.
82622         * lib/pipe.h: Likewise.
82623         * lib/pipe.c: Likewise.
82624         * lib/wait-process.h: Likewise.
82625
82626 2006-04-23  Bruno Haible  <bruno@clisp.org>
82627
82628         * gnulib-tool (func_usage): Fix --import description. Document
82629         --update.
82630         (func_import): Create temporary file in a temporary directory, if
82631         --dry-run is specified. Silence errors from 'grep' when there are no
82632         m4 files in $m4dir.
82633         (func_create_testdir): Silence errors from 'grep' when there are no
82634         m4 files in $m4dir.
82635         Reported by Karl Berry <karl@freefriends.org>.
82636
82637 2006-04-20  Bruno Haible  <bruno@clisp.org>
82638
82639         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
82640         one argument, so that the code will be portable to Autoconf 2.60.
82641         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
82642         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
82643         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
82644
82645 2006-04-19  Derek Price  <derek@ximbiot.com>
82646             Eric Blake  <ebb9@byu.net>
82647
82648         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
82649         rather than "/full/path.h".  Update comment to match.  Shorten &
82650         generalize m4_translit call via AS_TR_CPP.
82651
82652 2006-04-19  Derek Price  <derek@ximbiot.com>
82653             Eric Blake  <ebb9@byu.net>
82654
82655         * lib/inttypes.h: Correct grammar in comment.
82656
82657 2006-04-18  Derek Price  <derek@ximbiot.com>
82658             Paul Eggert  <eggert@cs.ucla.edu>
82659
82660         * modules/inttypes: New file.
82661         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
82662
82663 2006-04-18  Derek Price  <derek@ximbiot.com>
82664             Paul Eggert  <eggert@cs.ucla.edu>
82665
82666         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
82667         New files.
82668
82669 2006-04-18  Derek Price  <derek@ximbiot.com>
82670             Paul Eggert  <eggert@cs.ucla.edu>
82671
82672         * lib/inttypes.h: New file.
82673         * lib/strtoimax.c: Assume <inttypes.h>.
82674
82675 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
82676
82677         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
82678         isn't mounted.  Problem reported by Kir Kolyshkin.
82679
82680 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82681
82682         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
82683         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
82684         Derek R. Price.
82685         * lib/regex.h (RE_DUP_MAX): Update comment to match current
82686         implementation.
82687
82688 2006-04-12  Eric Blake  <ebb9@byu.net>
82689
82690         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
82691         is now done automatically by the corresponding Autoconf macro.
82692
82693 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
82694
82695         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
82696         time_r.h.
82697
82698 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82699
82700         Merge regex changes from libc, removing some of our
82701         POSIX-conformance changes that were rejected and redoing them in a
82702         less-intrusive way.
82703
82704         * lib/regcomp.c (re_compile_internal, init_dfa):
82705         Length arg is now size_t, not Idx.  All uses changed.
82706         (peek_token): Forward decl now says internal_function.
82707         (__re_error_msgid, __re_error_msgid_idx):
82708         Now static rather than extern with attribute_hidden.
82709         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
82710         For some reason libc prefers K&R style defns for external functions.
82711         (regerror) [!defined _LIBC]: Likewise.
82712         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
82713         (seek_collating_symbol_entry, lookup_collation_sequence_value):
82714         (build_range_exp, build_collating_symbol):
82715         Use K&R-style defn.
82716         (re_compile_fastmap): Use '\0' to memset, not 0.
82717         (utf8_sb_map): Make the calculations more obvious.
82718         (init_dfa, parse_bracket_exp, build_charclass_op):
82719         Call calloc and cast result, as glibc does.
82720         (init_word_char, fetch_token, peek_token, peek_token_bracket):
82721         (build_range_exp, build_collating_symbol):
82722         Now internal functions.
82723
82724         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
82725
82726         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
82727         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
82728         Don't depend on VMS; depend on __VMS instead, for POSIX
82729         namespace cleanness.
82730         (regoff_t): Define to ssize_t, not long int.
82731
82732         Remove the REG_ macros named below.  Instead, make the old names
82733         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
82734         __USE_GNU_REGEX.
82735         (REG_BACKSLASH_ESCAPE_IN_LISTS):
82736         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
82737         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
82738         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
82739         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
82740         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
82741         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
82742         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
82743         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
82744         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
82745         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
82746         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
82747         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
82748         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
82749         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
82750         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
82751         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
82752         (REG_NREGS):
82753         Remove.  All uses replaced by the old RE_* names.
82754         (RE_BACKSLASH_ESCAPE_IN_LISTS):
82755         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
82756         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
82757         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
82758         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
82759         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
82760         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
82761         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
82762         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
82763         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
82764         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
82765         Don't bother having these macros be independent of each others'
82766         values, since they no longer exist in the POSIX name space.
82767
82768         Rename the following member names back to their old names,
82769         unless !__USE_GNU_REGEX.  All uses changed back.
82770         (buffer): Renamed from re_buffer.
82771         (allocated): Renamed from re_allocated.
82772         (used): Renamed from re_used.
82773         (syntax): Renamed from re_syntax.
82774         (fastmap): Renamed from re_fastmap.
82775         (translate): Renamed from re_translate.
82776         (can_be_null): Renamed from re_can_be_null.
82777         (regs_allocated): Renamed from re_regs_allocated.
82778         (fastmap_accurate): Renamed from re_fastmap_accurate.
82779         (no_sub): Renamed from re_no_sub.
82780         (not_bol): Renamed from re_not_bol.
82781         (not_eol): Renamed from re_not_eol.
82782         (newline_anchor): Renamed from re_newline_anchor.
82783         (num_regs): Renamed from rm_num_regs.
82784         (start): Renamed from rm_start.
82785         (end): Renamed from rm_end.
82786
82787         (free_state): Move up a bit.
82788
82789         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
82790         #define to be empty.
82791         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
82792         when that is what is intended.
82793         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
82794         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
82795         (MAX): New macro.
82796         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
82797         All uses changed back to re_malloc, etc.  It's now the caller's
82798         responsibility to check for overflow; all callers changed.
82799         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
82800         (re_x2nrealloc): Remove.
82801         (free_state): Remove decl.
82802
82803         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
82804         (re_set_registers, re_exec):
82805         Use K&R-style defn.
82806
82807         2006-01-31  Roland McGrath  <roland@redhat.com>
82808
82809         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
82810         Reported by Mike Frysinger <vapier@gentoo.org>.
82811
82812         2006-01-15  Andreas Jaeger  <aj@suse.de>
82813
82814         [BZ #1950]
82815         * lib/regex_internal.c (re_string_reconstruct): Adjust for
82816         build_wcs_upper_buffer change.
82817         (build_wcs_upper_buffer): Change return type.
82818
82819         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
82820
82821         * lib/regex_internal.h: Include <stdint.h> if available.
82822
82823         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
82824
82825         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
82826
82827         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
82828
82829         * lib/regcomp.c: Adjust for changed secondary hash function.
82830
82831         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
82832
82833         * lib/regex.h: Pretty printing.
82834         Clean up namespace a bit.
82835
82836         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
82837
82838         * lib/regexec.c (update_cur_sifted_state, check_arrival,
82839         check_arrival_add_next_nodes): Avoid using uninitialized variable.
82840
82841         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82842                     Ulrich Drepper  <drepper@redhat.com>
82843
82844         [BZ #1302]
82845         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
82846         changed.
82847         (bitset_word_t): Renamed from bitset_word.  All uses changed.
82848
82849         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
82850
82851         [BZ #281]
82852         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
82853         * lib/regcomp.c: Remove unnecessary uses of
82854         unsigned RE_TRANSLATE_TYPE.
82855         * lib/regex_internal.h: Likewise.
82856         * lib/regex_internal.c: Likewise.
82857         * lib/regexec.c: Likewise.
82858         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
82859
82860         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
82861
82862         * lib/regexec.c (find_recover_state): Remove unnecessary
82863         initialization.
82864         (transit_state_bkref): Make DFA a const pointer.
82865         (get_subexp): Likewise.
82866         (check_arrival): Likewise.
82867         (update_cur_sifted_state): Likewise.
82868         (re_search_internal): Likewise.
82869         (prune_impossible_nodes): Likewise.
82870         (acquire_init_state_context): Likewise.
82871         (proceed_next_node): Likewise.
82872         (set_regs): Likewise.
82873         (free_fail_stack_return): Likewise.
82874         (check_arrival_expand_ecl): Mark DFA parameter as const.
82875         (check_arrival_expand_ecl_sub): Likewise.
82876         (check_subexp_limits): Likewise.
82877         (sub_epsilon_src_nodes):  Likewise.
82878         (add_epsilon_src_nodes):  Likewise.
82879         (merge_state_array): Likewise.
82880         (update_regs): Likewise.
82881         (build_trtable): Likewise.
82882         (sift_states_backward): Mark MCTX parameter as const.
82883         (build_sifted_states): Likewise.
82884         (update_cur_sifted_state): Likewise.
82885         (sift_states_mkref): Likewise.
82886         (check_arrival_expand_ecl): Mark eclosure as const.
82887         (check_dst_limits_calc_pos_1): Likewise.
82888         * lib/regex_internal.h (re_match_context_t): Make dfa a const
82889         pointer.
82890
82891         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
82892
82893         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
82894         (transit_state_sb): Likewise.
82895         (transit_state_mb): Likewise.
82896         (sift_states_iter_mb): Likewise.
82897         (check_arrival_add_next_nodes): Likewise.
82898         (check_node_accept_bytes): Change first parameter to pointer-to-const.
82899         [_LIBC] (re_search_2_stub): Use mempcpy.
82900
82901         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
82902         mbrtowc for very simple UTF-8 case.
82903
82904         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
82905         a pointer-to-const.
82906         (re_acquire_state_context): Likewise.
82907         * lib/regex_internal.h: Adjust prototypes.
82908
82909         * lib/regex.c: Prevent using C++ compilers.
82910
82911         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
82912         (re_acquire_state_context): Likewise.
82913
82914 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82915
82916         * modules/regex (Depends-on): Add ssize_t.
82917
82918 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82919
82920         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
82921         translation table.
82922
82923 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82924
82925         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
82926
82927 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
82928             Bruno Haible  <bruno@clisp.org>
82929
82930         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
82931         <sys/types.h> and <inttypes.h>.
82932
82933 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82934
82935         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
82936         `__error_t_defined', so argp.h will not typedef the former.
82937
82938 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
82939
82940         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
82941         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
82942         glibc names.  Even if glibc is changed to conform to POSIX, the
82943         traditional names will be available anyway, since regex depends on
82944         the extensions module.  Also, fix a longstanding typo in the
82945         implementation of Spencer ERE test #75 from grep 2.3.  Problems
82946         reported by Emanuele Giaquinta.  Also, change sense of cached
82947         variable, so that the message makes sense.
82948
82949 2006-03-24  Simon Josefsson  <jas@extundo.com>
82950
82951         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
82952         including some doc fixes.
82953         (base64_encode_alloc): Fix +1 bug on allocation failures.
82954
82955 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82956
82957         * lib/base64.c (base64_encode): Do not read past end of array with
82958         unsanitized input on systems with CHAR_BIT > 8.
82959
82960 2006-03-24  Eric Blake  <ebb9@byu.net>
82961
82962         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
82963
82964 2006-03-22  Karl Berry  <karl@gnu.org>
82965
82966         * config/srclist.txt (*setenv.[ch]): get from coreutils.
82967         * config/srclistvars.sh (COREUTILS): new var.
82968
82969 2006-03-17  Jim Meyering  <jim@meyering.net>
82970
82971         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
82972         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
82973
82974 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82975
82976         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
82977         no longer needs it.  Instead, check that regoff_t is as least
82978         as wide as ptrdiff_t.
82979
82980         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
82981         so that our regex.h stays compatible with the installed regex.
82982         This is helpful for installers who configure --without-included-regex.
82983         Problem reported by Emanuele Giaquinta.
82984
82985 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82986
82987         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
82988         Typedef to long int, not to off_, as POSIX will likely change
82989         in that direction.
82990
82991 2006-03-15  Eric Blake  <ebb9@byu.net>
82992
82993         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
82994
82995 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82996
82997         * lib/argp-help.c (validate_uparams): Fix typo
82998         * lib/argp-parse.c (argp_default_options): Consistently begin help
82999         messages with a lowercase letter.
83000
83001 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
83002
83003         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
83004         overrun buffers and shouldn't be used (much as gets shouldn't be
83005         used).
83006         * lib/time_r.c (asctime_r, ctime_r): Likewise.
83007
83008 2006-03-08  Simon Josefsson  <jas@extundo.com>
83009
83010         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
83011         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83012
83013 2006-03-08  Simon Josefsson  <jas@extundo.com>
83014
83015         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
83016         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83017
83018 2006-03-08  Simon Josefsson  <jas@extundo.com>
83019
83020         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
83021         signal that configure disabled the device.
83022
83023 2006-03-08  Simon Josefsson  <jas@extundo.com>
83024
83025         * build-aux/maint.mk: Fix refresh-po, to handle no translated
83026         languages.
83027
83028 2006-03-07  Simon Josefsson  <jas@extundo.com>
83029
83030         * modules/getopt (Depends-on): Add unistd.
83031
83032         * modules/unistd: New file.
83033
83034 2006-03-07  Simon Josefsson  <jas@extundo.com>
83035
83036         * modules/gc-random: New file.
83037
83038 2006-03-07  Simon Josefsson  <jas@extundo.com>
83039
83040         * m4/unistd_h.m4: New file.
83041
83042 2006-03-07  Simon Josefsson  <jas@extundo.com>
83043
83044         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
83045         test to be side-effect free by storing the result in the cache
83046         variable gl_cv_lib_readline, and moving the assignment of
83047         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
83048         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83049
83050 2006-03-07  Simon Josefsson  <jas@extundo.com>
83051
83052         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
83053         error on missing devices (the functions will return an error).
83054
83055         * m4/gc.m4: Move random stuff to gc-random.m4
83056
83057 2006-03-07  Simon Josefsson  <jas@extundo.com>
83058
83059         * lib/unistd_.h: New file.
83060
83061 2006-03-07  Simon Josefsson  <jas@extundo.com>
83062
83063         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
83064
83065 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83066
83067         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
83068         Problem reported by Juan Manuel Guerrero.
83069
83070 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83071
83072         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
83073         the unistd module.
83074         * lib/getlogin_r.c: Likewise.
83075         * lib/getlogin_r.h: Likewise.
83076         * lib/glob.c: Likewise.
83077         * lib/pagealign_alloc.c: Likewise.
83078         * lib/unistd_.h: Remove; no longer needed.
83079
83080 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83081
83082         * MODULES.html.sh (Support for systems lacking POSIX:2001):
83083         Add unistd.
83084         * modules/c-stack (Depends-on): Add unistd.
83085         * modules/getlogin_r: Likewise.
83086         * modules/glob: Likewise.
83087         * modules/pagealign_alloc: Likewise.
83088         * modules/unistd (Files): Remove lib/unistd_.h.
83089         (EXTRA_DIST): Remove.
83090         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
83091         need unistd_.h.
83092         (MOSTLYCLEANFILES): Remove unistd.h-t.
83093
83094 2006-03-03  Simon Josefsson  <jas@extundo.com>
83095
83096         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
83097
83098 2006-03-03  Simon Josefsson  <jas@extundo.com>
83099
83100         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
83101         libidn and bison.
83102
83103 2006-03-03  Simon Josefsson  <jas@extundo.com>
83104
83105         * build-aux/maint.mk: Add indent target.
83106
83107 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
83108
83109         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
83110         our replacement poll.h in any case, to avoid a differing
83111         declaration from a system header.  Seen on AIX.
83112
83113 2006-03-01  Simon Josefsson  <jas@extundo.com>
83114
83115         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
83116         <kasal@ucw.cz>.
83117
83118 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83119
83120         * modules/gettime (Depends-on): Add extensions module.
83121         * modules/nanosleep (Depends-on): Likewise.
83122         * modules/settime (Depends-on): Likewise.
83123
83124 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83125
83126         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
83127         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
83128         pedantically.
83129         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83130         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
83131
83132         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
83133         not "==".  Reported by Ralf Wildenhues.
83134
83135 2006-03-01  Karl Berry  <karl@gnu.org>
83136
83137         * doc/Copyright/request-*: new files, synced from gnuorg.
83138
83139 2006-03-01  Karl Berry  <karl@gnu.org>
83140
83141         * config/srclist.txt (Copyright/*): new entries.
83142
83143 2006-02-28  Simon Josefsson  <jas@extundo.com>
83144
83145         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
83146
83147 2006-02-27  Simon Josefsson  <jas@extundo.com>
83148
83149         * lib/base64.h: Indent #define's.  From Jim Meyering
83150         <jim@meyering.net>.
83151
83152 2006-02-27  Jim Meyering  <jim@meyering.net>
83153
83154         Revert the change of 2006-02-24, so these files can continue
83155         to be sync'd from gettext.
83156         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
83157         of `config.h'.
83158
83159 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83160
83161         * modules/intprops: New file.
83162         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
83163         Add intprops.
83164         * modules/getloadavg (Files): Remove lib/intprops.h.
83165         (Depends-on): Add intprops.
83166         * modules/human: Likewise.
83167         * modules/inttostr: Likewise.
83168         * modules/openat: Likewise.
83169         * modules/sig2str: Likewise.
83170         * modules/userspec: Likewise.
83171         * modules/utimecmp: Likewise.
83172         * modules/xnanosleep: Likewise.
83173         * modules/xstrtol: Likewise.
83174
83175 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
83176
83177         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
83178         * modules/lock-tests (TESTS): Use $(EXEEXT).
83179         * modules/tls-tests: Likewise.
83180         * modules/argp-tests: Likewise.
83181         (check_PROGRAMS): New var, replacing...
83182         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
83183
83184 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83185
83186         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
83187         `config.h'.
83188
83189 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
83190
83191         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
83192
83193 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83194
83195         Sync from coreutils.
83196         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
83197         gl_CHDIR_SAFER.
83198
83199 2006-02-22  Jim Meyering  <jim@meyering.net>
83200
83201         Sync from coreutils.
83202         * m4/chdir-safer.m4: New file.
83203
83204 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
83205
83206         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
83207         AT_FDCWD exceeds INT_MAX.
83208         * lib/openat.h (AT_FDCWD): Likewise.
83209
83210 2006-02-17  Eric Blake  <address@hidden>
83211
83212         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
83213
83214 2006-02-16  Simon Josefsson  <jas@extundo.com>
83215
83216         * modules/getaddrinfo (Depends-on): Add sys_socket.
83217
83218 2006-02-15  Simon Josefsson  <jas@extundo.com>
83219
83220         * build-aux/maint.mk: Add dsyntax-check rule.
83221
83222 2006-02-15  Eric Blake  <ebb9@byu.net>
83223
83224         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
83225         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
83226         'present but cannot compile' warnings on cygwin.
83227         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
83228         use ws2tcpip.h if sys/socket.h works.
83229         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
83230         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
83231
83232 2006-02-14  Simon Josefsson  <jas@extundo.com>
83233
83234         * modules/maintainer-makefile (Files): Rename.
83235
83236         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
83237         and (the local) Makefile.cfg to maint-cfg.mk.
83238
83239         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
83240         to the latter.
83241
83242         * modules/maintainer-makefile: New module.
83243
83244         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
83245         severaly stripped to make it possible to build it up from scratch
83246         with reliable tests.
83247
83248         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
83249         fixes to permit overriding the default actions when configure and
83250         makefile are not available.
83251
83252 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
83253
83254         Sync from coreutils.
83255         * modules/lstat (Depends-on): Don't depend on xalloc.
83256         (License): Change from GPL to LGPL, since this is now simply a
83257         replacement for a libc function.
83258
83259 2006-02-14  Jim Meyering  <jim@meyering.net>
83260
83261         Sync from coreutils.
83262
83263         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
83264         failure on deficient systems, and simplify gnulib lgpl dependencies.
83265         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
83266         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
83267
83268         * lib/xalloc-die.c: Remove unused definition of N_.
83269
83270 2006-02-14  Jim Meyering  <jim@meyering.net>
83271
83272         Sync from coreutils.
83273         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
83274         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
83275         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
83276         double-quote uses of that variable, to accommodate the rare case in
83277         which getmntent is available in none of the libraries checked.  This
83278         happens at least on FreeBSD 5.0.
83279
83280 2006-02-13  Simon Josefsson  <jas@extundo.com>
83281
83282         * gnulib-tool (Usage): Fix --import, from
83283         karl@freefriends.org (Karl Berry).
83284
83285 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83286
83287         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
83288
83289 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
83290
83291         * lib/argp-namefrob.h: Restore changes accidentally lost during the
83292         "autoupdate" on 2005-12-12.
83293
83294 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83295
83296         * modules/closeout (Depends-on): Remove atexit.
83297
83298 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83299
83300         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
83301         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
83302
83303 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83304
83305         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
83306         __EXTENSIONS__ if this causes compilation to fail.  Problem
83307         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
83308         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
83309
83310 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83311
83312         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
83313         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
83314         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
83315         All uses changed.
83316
83317 2006-01-26  Simon Josefsson  <jas@extundo.com>
83318
83319         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
83320         prototype is visible on mingw32.
83321
83322         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
83323         for mingw32.
83324
83325         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83326         mingw32).
83327
83328 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83329
83330         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83331         attempt to open for write; this always fails, at least on POSIX
83332         hosts.  This reinstates the 2006-01-09 change, which was
83333         inadvertently removed.
83334
83335 2006-01-26  Bruno Haible  <bruno@clisp.org>
83336
83337         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83338         Reported by Paul Eggert.
83339
83340 2006-01-26  Bruno Haible  <bruno@clisp.org>
83341             Paul Eggert  <eggert@cs.ucla.edu>
83342
83343         * lib/stdbool_.h (_Bool)
83344         [(! (defined __cplusplus || defined __BEOS__)
83345           && !defined __GNUC__
83346           && !(defined __HP_cc || defined __xlc__
83347                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83348                || defined __sgi))]:
83349         #define to signed char in these cases too; this simplifies
83350         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83351         etc., separately) and makes it more conservative.
83352
83353 2006-01-25  Simon Josefsson  <jas@extundo.com>
83354
83355         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83356         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83357         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83358
83359 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83360
83361         * lib/argp-namefrob.h: Bugfix. Remove stray #
83362
83363 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83364
83365         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83366         so that we test the test.
83367         Check for yet another HP-UX cc bug involving *bool |= bool.
83368
83369 2006-01-25  Karl Berry  <karl@gnu.org>
83370
83371         * config/srclist.txt (vasnprintf.c): sync lost.
83372
83373 2006-01-25  Jim Meyering  <jim@meyering.net>
83374
83375         Sync from the stable (b5) branch of coreutils:
83376
83377         * lib/fts.c (fts_children): Don't let close() clobber errno from
83378         failed fchdir().
83379
83380         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83381         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83382         a dangling symlink.  That can also happen at least for ELOOP.
83383         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83384         FYI, this bug predates the inclusion of fts.c in coreutils.
83385
83386         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
83387         in their own block, so pre-c99 compilers don't object.
83388
83389         Avoid the double-free (first in fts_read, second in fts_close) that
83390         would occur when an `active' directory is made inaccessible (e.g.,
83391         via chmod a-x) during a traversal.
83392         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83393         before returning.  Reproduce this failure by
83394         mkdir -p a/b; cd a; chmod a-x . b
83395         Reported by Stavros Passas.
83396
83397 2006-01-25  Jim Meyering  <jim@meyering.net>
83398
83399         * lib/fileblocks.c: Remove more useless parentheses.
83400         * lib/readutmp.h: Likewise.
83401
83402 2006-01-25  Bruno Haible  <bruno@clisp.org>
83403
83404         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83405         warnings.
83406         Reported by Paul Eggert.
83407
83408 2006-01-25  Bruno Haible  <bruno@clisp.org>
83409
83410         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83411         rid of a trap command. For Solaris sh.
83412         Reported by Mark D. Baushke <mdb@gnu.org>.
83413
83414 2006-01-24  Simon Josefsson  <jas@extundo.com>
83415
83416         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83417         Bruno.
83418
83419 2006-01-24  Karl Berry  <karl@gnu.org>
83420
83421         * config/srclist.txt (argp-namefrob.h): sync lost.
83422
83423 2006-01-24  Jim Meyering  <jim@meyering.net>
83424
83425         * modules/openat (Files): Add lib/intprops.h.
83426         From Mark D. Baushke.
83427
83428 2006-01-24  Jim Meyering  <jim@meyering.net>
83429
83430         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83431         Reported by Mark D. Baushke.
83432
83433 2006-01-24  Jim Meyering  <jim@meyering.net>
83434
83435         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83436
83437 2006-01-24  Bruno Haible  <bruno@clisp.org>
83438
83439         * modules/strnlen (Maintainer): Change from glibc to all.
83440
83441 2006-01-24  Bruno Haible  <bruno@clisp.org>
83442
83443         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83444         Patch by Paul Eggert.
83445
83446 2006-01-24  Bruno Haible  <bruno@clisp.org>
83447
83448         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83449         already has it.
83450         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83451         2005-11-26.
83452
83453         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83454         'signed char' to avoid problems with the built-in _Bool type.
83455         Reported by Paul Eggert on 2005-11-26.
83456
83457 2006-01-24  Bruno Haible  <bruno@clisp.org>
83458
83459         * gnulib-tool (func_import): Avoid constructing complicated sed
83460         expressions inside backquote.
83461         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83462
83463 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83464
83465         These changes imported from libc.
83466         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83467         test and two separate function calls.
83468         * lib/strndup.c (__strndup): Add libc_hidden_def.
83469
83470 2006-01-23  Simon Josefsson  <jas@extundo.com>
83471
83472         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83473         Remove the test_*_SOURCES variable: automake infers it by default.
83474         * modules/tls-tests: Likewise.
83475
83476 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83477
83478         Work around porting bugs reported by Dieter in
83479         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
83480         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
83481         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
83482         Include "getopt.h" first, to check interface.
83483         (getenv): Declare only if defined HAVE_DECL_GETENV &&
83484         !HAVE_DECL_GETENV.
83485         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
83486         (__strndup): Revert to K&R-style function dfns, the glibc style.
83487         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
83488         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
83489         Include strnlen.h first, to get prototype properly.
83490         (strnlen): Renamed from __strnlen.
83491         Remove weak alias.
83492
83493 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83494
83495         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
83496
83497 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83498
83499         * config/srclist.txt: Adjust to reflect glibc reorganization.
83500         This affects only comments.
83501
83502 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83503
83504          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
83505          Reported by Bruce Korb <bkorb@gnu.org>.
83506
83507 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
83508
83509         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
83510         to pacify gcc -Wswitch-default.
83511
83512 2006-01-22  Bruno Haible  <bruno@clisp.org>
83513
83514         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
83515         temporary buffer for sprintf, take into account the precision also
83516         for 'd', 'i', 'u', 'o', 'x', 'X'.
83517
83518 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83519
83520         * modules/argp-tests: New module
83521         * tests/test-argp.c: New file
83522         * tests/test-argp-2.sh: New file
83523
83524 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83525
83526         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
83527         (__argp_base_name): Removed
83528         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
83529         typo.
83530         (__argp_base_name): Provide macro definition or extern declaration
83531         depending on the configuration
83532
83533 2006-01-20  Simon Josefsson  <jas@extundo.com>
83534
83535         * modules/inet_ntop (Depends-on): Depend on sys_socket.
83536
83537 2006-01-20  Simon Josefsson  <jas@extundo.com>
83538
83539         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
83540
83541 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83542
83543         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
83544         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
83545         Suggested by Bruno Haible.
83546
83547 2006-01-20  Karl Berry  <karl@gnu.org>
83548
83549         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
83550         until changes propagate, I guess.
83551
83552 2006-01-19  Simon Josefsson  <jas@extundo.com>
83553
83554         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
83555
83556 2006-01-19  Simon Josefsson  <jas@extundo.com>
83557
83558         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
83559
83560 2006-01-19  Simon Josefsson  <jas@extundo.com>
83561
83562         * gnulib-tool: Set check_PROGRAMS.
83563
83564         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83565         modules/des-tests, modules/gc-arcfour-tests,
83566         modules/gc-arctwo-tests, modules/gc-des-tests,
83567         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83568         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83569         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83570         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83571         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83572         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
83573         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
83574         test_*_SOURCES.
83575
83576 2006-01-18  Simon Josefsson  <jas@extundo.com>
83577
83578         * modules/socklen (Depends-on): Depend on sys_socket.
83579
83580 2006-01-18  Simon Josefsson  <jas@extundo.com>
83581
83582         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83583         modules/des-tests, modules/gc-arcfour-tests,
83584         modules/gc-arctwo-tests, modules/gc-des-tests,
83585         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83586         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83587         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83588         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83589         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83590         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
83591         $(EXEEXT) to automake TESTS variable, for mingw32.
83592
83593 2006-01-17  Simon Josefsson  <jas@extundo.com>
83594
83595         * modules/socklen (Include): Need sys/socket.h.
83596
83597 2006-01-17  Bruno Haible  <bruno@clisp.org>
83598
83599         * modules/ssize_t (Include): Add <sys/types.h>.
83600
83601 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
83602
83603         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
83604         it's not portable and it doesn't work with cross-compiles.
83605         Problem reported by Bruno Haible.  Fix missing-$ typo in
83606         'test "gl_cv_ignore_unused_libraries" ...' that prevented
83607         -zignore from being used with Sun's C compiler.
83608
83609 2006-01-12  Simon Josefsson  <jas@extundo.com>
83610
83611         * lib/base64.c: Fix warning, reported by Bruno Haible
83612         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
83613
83614 2006-01-12  Bruno Haible  <bruno@clisp.org>
83615
83616         * modules/ldd: New file.
83617         * build-aux/ldd.sh.in: New file.
83618         * MODULES.html.sh (Support for building libraries and executables): Add
83619         ldd.
83620
83621 2006-01-12  Bruno Haible  <bruno@clisp.org>
83622
83623         * m4/ldd.m4: New file.
83624
83625 2006-01-12  Bruno Haible  <bruno@clisp.org>
83626
83627         * gnulib-tool (func_import, func_create_testdir): Don't go into an
83628         endless loop while replacing $auxdir with build-aux.
83629
83630 2006-01-11  Simon Josefsson  <jas@extundo.com>
83631
83632         * lib/stdint_.h (SIZE_MAX): Add missing (.
83633
83634 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
83635
83636         Sync from coreutils.
83637         * lib/md5.c: Fix commentary typos.
83638         (alignof, UNALIGNED_P): No need for a GCC-specific version.
83639         * lib/md5.h (__attribute__): Remove; unused.
83640         * lib/sha1.c: Fix commentary to match md5 better.
83641         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
83642         so that we don't need to worry about alignment.  All uses changed.
83643         This merges the 2005-10-28 md5 change into sha1.
83644
83645 2006-01-11  Jim Meyering  <jim@meyering.net>
83646
83647         Sync from coreutils.
83648         * lib/md5.c (OP): Fix spacing.
83649
83650 2006-01-11  Bruno Haible  <bruno@clisp.org>
83651
83652         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83653         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
83654         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
83655
83656 2006-01-11  Bruno Haible  <bruno@clisp.org>
83657
83658         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83659         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
83660         the "early" section as well.
83661
83662 2006-01-11  Bruno Haible  <bruno@clisp.org>
83663
83664         Avoid "ar: no archive members specified" error on MacOS X.
83665         * gnulib-tool (func_modules_add_dummy): New function.
83666         (func_import, func_create_testdir): Invoke it.
83667
83668 2006-01-11  Bruno Haible  <bruno@clisp.org>
83669
83670         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
83671         with $auxdir in AC_CONFIG_FILES statements.
83672
83673 2006-01-11  Bruno Haible  <bruno@clisp.org>
83674
83675         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
83676         Initialize also noinst_HEADERS to empty.
83677
83678 2006-01-11  Bruno Haible  <bruno@clisp.org>
83679
83680         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
83681         variables.
83682         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
83683         autoreconf.
83684
83685 2006-01-11  Bruno Haible  <bruno@clisp.org>
83686
83687         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
83688         overridable by the user.
83689         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83690
83691 2006-01-10  Simon Josefsson  <jas@extundo.com>
83692
83693         * modules/sys_socket: New file.
83694
83695 2006-01-10  Simon Josefsson  <jas@extundo.com>
83696
83697         * m4/sys_socket_h.m4: New file.
83698
83699 2006-01-10  Simon Josefsson  <jas@extundo.com>
83700
83701         * lib/socket_.h: New file.
83702
83703 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83704
83705         * modules/readutmp (Maintainer): Add myself.
83706
83707 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83708
83709         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
83710         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
83711         People who are still concerned with buggy memcmp implementations
83712         can invoke gl_FUNC_MEMCMP themselves.
83713
83714 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83715
83716         * lib/regex_internal.h (BITSET_WORD_BITS):
83717         Work around a bug in 64-bit PGC (before version 6.1-2), where the
83718         preprocessor mishandles large unsigned values as if they were signed.
83719         Problem reported by Claudio Fontana in
83720         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
83721
83722 2006-01-10  Jim Meyering  <jim@meyering.net>
83723
83724         Avoid the double-free (first in fts_read, second in fts_close) that
83725         would occur when an `active' directory is made inaccessible (e.g.,
83726         via chmod a-x) during a traversal.
83727         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83728         before returning.  Reproduce this failure by
83729         mkdir -p a/b; cd a; chmod a-x . b
83730         Reported by Stavros Passas.
83731
83732         Sync from coreutils.
83733         * lib/sha1.c: Tweak grammar in a comment.
83734
83735 2006-01-10  Jim Meyering  <jim@meyering.net>
83736
83737         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
83738         Patch by Joerg Sonnenberger.
83739
83740 2006-01-10  Bruno Haible  <bruno@clisp.org>
83741
83742         * modules/readutmp: Depend on module free.
83743         * modules/strtok_r: Depend on module restrict.
83744
83745 2006-01-10  Bruno Haible  <bruno@clisp.org>
83746
83747         * modules/gettext (configure.ac): Add an invocation of
83748         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
83749
83750 2006-01-10  Bruno Haible  <bruno@clisp.org>
83751
83752         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
83753         Reported by Werner Lemberg <wl@gnu.org>.
83754
83755 2006-01-10  Bruno Haible  <bruno@clisp.org>
83756
83757         * lib/localcharset.c: Update from GNU gettext.
83758
83759 2006-01-10  Bruno Haible  <bruno@clisp.org>
83760
83761         * lib/argp.h (__const): Remove macro. Use const instead.
83762         * lib/argp-fmtstream.h (__const): Likewise.
83763         * lib/glob_.h (__const): Remove macro.
83764         * lib/glob-libc.h: Use const instead of __const.
83765
83766 2006-01-10  Bruno Haible  <bruno@clisp.org>
83767
83768         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
83769         variable.
83770         Needed to avoid an automake error regarding the 'gettext' module.
83771
83772 2006-01-09  Simon Josefsson  <jas@extundo.com>
83773
83774         * modules/inet_ntop (Depends-on): Add restrict.
83775
83776 2006-01-09  Simon Josefsson  <jas@extundo.com>
83777
83778         * modules/gc-rijndael-tests (License): Put under LGPL.
83779
83780         * modules/gc-des-tests (License): Likewise.
83781
83782         * modules/gc-arcfour-tests (License): Likewise.
83783
83784         * modules/gc-arctwo-tests (License): Likewise.
83785
83786         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
83787
83788         * modules/gc-hmac-sha1-tests (Files): Likewise.
83789
83790         * modules/gc-hmac-md5-tests (License): Likewise.
83791
83792         * modules/gc-sha1-tests (License): Likewise.
83793
83794         * modules/gc-md5-tests (License): Likewise.
83795
83796         * modules/gc-md4-tests (License): Likewise.
83797
83798         * modules/gc-md2-tests (License): Likewise.
83799
83800         * modules/gc-tests (License): Likewise.
83801
83802         * modules/des-tests (License): Likewise.
83803
83804         * modules/md4-tests (License): Likewise.
83805
83806         * modules/md2-tests (License): Likewise.
83807
83808 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83809
83810         Sync from coreutils:
83811
83812         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
83813         * modules/lib-ignore: New file.
83814         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
83815         chdir-safer.m4, lchmod.m4.
83816         * modules/openat: Add mkdirat.c, openat-priv.h.
83817
83818 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83819
83820         Sync from coreutils.
83821         * m4/lib-ignore.m4: New file.
83822         * m4/lchmod.m4: New file.
83823
83824 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83825
83826         Sync from coreutils.
83827         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
83828         for write access: POSIX says that must fail.
83829         * lib/fts.c (diropen): Likewise.
83830         * lib/save-cwd.c (save_cwd): Likewise.
83831         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
83832         well, for minor improvements on hosts that lack O_DIRECTORY.
83833         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
83834         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
83835         Fall back on chown if open failed with EACCES.
83836
83837         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
83838         Report an error at compile-time if only a 1-second nominal clock
83839         resolution is found.
83840
83841         * lib/lchmod.h: New file.
83842         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
83843         (make_dir_parents): Use lchown rather than chown, and
83844         lchmod rather than chmod.
83845
83846         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
83847         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
83848         "proc" reported by n0dalus.
83849
83850         * lib/mountlist.c: Include <limits.h>.
83851         (dev_from_mount_options)
83852         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
83853         New function.  It no longer assumes "dev=" has the System V meaning
83854         on Linux (since it doesn't).  It also parses "dev=" more carefully.
83855         (read_file_system_list)
83856         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
83857         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
83858         dev= in that case.
83859
83860         * lib/posixtm.h (PDS_PRE_2000): New macro.
83861         * lib/posixtm.c (year): Arg is now syntax_bits rather than
83862         allow_century.  All usages changed.  Reject dates outside the range
83863         1969-1999 if PDS_PRE_2000 is used.
83864
83865 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83866
83867         Sync from coreutils.
83868         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
83869         (Time of day items): Mention the possibility of leap seconds.
83870         Problem reported by Dr. David Alan Gilbert.
83871
83872 2006-01-09  Jim Meyering  <jim@meyering.net>
83873
83874         Sync from coreutils.
83875
83876         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
83877
83878         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
83879
83880         * lib/modechange.c (mode_compile): Reject an invalid mode string
83881         that starts with an octal digit.  From Andreas Gruenbacher.
83882
83883         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
83884         and dup to open_safer and dup_safer, respectively.
83885         (openat_permissive): Fix typo in comment.
83886
83887         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
83888         "gettext.h"; either no longer needed or are guaranteed by openat.h.
83889         (_): Remove; no longer needed.
83890         (openat): Renamed from rpl_openat; no need for rpl_openat
83891         since openat.h renames openat for us.
83892         Replace most of the body with a call to openat_permissive,
83893         to avoid duplicate code.
83894         Port to (probably hypothetical) environments were mode_t is
83895         wider than int.
83896         (openat_permissive): Require mode arg, so that we can check
83897         types better.  Put it just after flags.  Change cwd failure
83898         indicator from pointer-to-bool to pointer-to-errno-value.
83899         All callers changed.
83900         Invoke openat_save_fail and/or openat_restore_fail if
83901         cwd_errno is null, so that openat can call us.
83902         (openat_permissive, fdopendir, fstatat, unlinkat):
83903         Simplify errno handling to avoid some duplicate code,
83904         as it's OK to set errno on success.
83905         * lib/openat.h: Revamp code so that function macros depend on
83906         __OPENAT_PREFIX only, not also on AT_FDCWD.
83907         (openat_ro): Remove.  Caller changed to use openat_permissive.
83908         (openat_permissive): Now a macro, if not a function.
83909         (openat_restore_fail, openat_save_fail): Now always functions,
83910         since mkdirat needs them even if __OPENAT_PREFIX is defined.
83911
83912         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
83913         and openat.c.
83914         * lib/mkdirat.c: Include openat-priv.h.
83915         Remove definitions of macros defined therein.
83916         * lib/openat.c: Likewise.
83917
83918         * lib/mkdirat.c (mkdirat): New file and function.
83919         * lib/openat.h (mkdirat): Declare.
83920
83921         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
83922
83923         * lib/openat.h (openat_permissive): Declare.
83924         (openat_ro): Define.
83925
83926         * lib/openat.c (EXPECTED_ERRNO): New macro.
83927         (openat_permissive): New function -- used in remove.c rewrite.
83928         (all functions): Set errno just before returning, only if there
83929         was an actual failure.
83930         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
83931
83932         Emulate openat-family functions using Linux's procfs, if possible.
83933         Idea and some code based on Ulrich Drepper's glibc changes.
83934
83935         * lib/openat.c: (BUILD_PROC_NAME): New macro.
83936         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
83937         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
83938         before falling back on save_cwd and restore_cwd.
83939         (fdopendir, fstatat, unlinkat): Likewise.
83940
83941         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
83942         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
83943
83944         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
83945         as second argument to va_arg.  Otherwise, some versions of gcc
83946         warn that `if this code is reached, the program will abort'.
83947
83948 2006-01-09  Jim Meyering  <jim@meyering.net>
83949
83950         Sync from coreutils.
83951         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
83952         Require openat-priv.h.
83953
83954 2006-01-09  Bruno Haible  <bruno@clisp.org>
83955
83956         * modules/strnlen (Include): Use strnlen.h.
83957
83958 2006-01-09  Bruno Haible  <bruno@clisp.org>
83959
83960         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
83961
83962 2006-01-09  Bruno Haible  <bruno@clisp.org>
83963
83964         * lib/sysexit_.h (EX_OK): New macro.
83965         Suggested by Martin Lambers <marlam@marlam.de>.
83966
83967 2006-01-09  Bruno Haible  <bruno@clisp.org>
83968
83969         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
83970         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
83971
83972 2006-01-09  Bruno Haible  <bruno@clisp.org>
83973
83974         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
83975         numbers.
83976
83977 2006-01-09  Bruno Haible  <bruno@clisp.org>
83978
83979         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
83980         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
83981         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
83982         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
83983
83984 2006-01-09  Bruno Haible  <bruno@clisp.org>
83985
83986         * build-aux/javacomp.sh.in: New file, moved from lib/.
83987         * modules/javacomp-script (Files): Update.
83988         (configure.ac): Add AC_CONFIG_FILES invocation.
83989         (EXTRA_DIST): Remove variable.
83990
83991         * build-aux/javaexec.sh.in: New file, moved from lib/.
83992         * modules/javaexec (Files): Update.
83993         (configure.ac): Add AC_CONFIG_FILES invocation.
83994         (EXTRA_DIST): Remove javaexec.sh.in.
83995
83996         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
83997         * modules/csharpcomp-script (Files): Update.
83998         (configure.ac): Add AC_CONFIG_FILES invocation.
83999         (EXTRA_DIST): Remove variable.
84000
84001         * build-aux/csharpexec.sh.in: New file, moved from lib/.
84002         * modules/csharpexec (Files): Update.
84003         (configure.ac): Add AC_CONFIG_FILES invocation.
84004         (EXTRA_DIST): Remove csharpexec.sh.in.
84005
84006 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84007
84008         Sync from coreutils.
84009
84010         Add POSIX ACL support
84011         * lib/acl.h (copy_acl, set_acl): Add declarations.
84012         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
84013         systems other than Linux.
84014         (chmod_or_fchmod): New function: use fchmod when possible,
84015         and chmod otherwise.
84016         (file_has_acl): Add a POSIX ACL implementation, with a
84017         Linux-specific subcase.
84018         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
84019         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
84020         acls are unsupported.
84021         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
84022         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
84023         are unsupported.
84024
84025 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84026
84027         Sync from coreutils.
84028         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
84029
84030 2006-01-07  Bruno Haible  <bruno@clisp.org>
84031
84032         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
84033         gl_EARLY.
84034
84035 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84036
84037         * lib/strftime.c (tzname): Don't declare if it is already #defined.
84038         Problem reported for Mingw by Mark Junker.
84039
84040 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84041
84042         * README: Gnulib normally doesn't generate a tarball.
84043
84044 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
84045
84046         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
84047         long int, not int, for nanosecond counts, so that people who are
84048         used to POSIX struct timespec won't be surprised.  Reported by Jim
84049         Meyering.
84050
84051 2005-12-28  Bruno Haible  <bruno@clisp.org>
84052
84053         * build-aux/config.rpath: Update from GNU gettext.
84054
84055 2005-12-16  Jim Meyering  <jim@meyering.net>
84056
84057         * modules/fprintftime: New module.
84058         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
84059
84060 2005-12-16  Jim Meyering  <jim@meyering.net>
84061
84062         * m4/fprintftime.m4: New file.
84063
84064 2005-12-16  Jim Meyering  <jim@meyering.net>
84065
84066         * lib/fprintftime.c, lib/fprintftime.h: New files.
84067
84068 2005-12-15  Simon Josefsson  <jas@extundo.com>
84069
84070         * modules/socklen (configure.ac): Fix M4 macro name, to align with
84071         new m4/socklen.m4.
84072
84073 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84074
84075         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
84076         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
84077
84078 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84079
84080         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
84081         * lib/argp-help.c (fill_in_uparams): Check if the constructed
84082         struct uparams is valid. Fall back to the default values if it is
84083         not.
84084
84085 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84086
84087         * modules/argp (Files): Add argp-pin.c
84088         (Depends-on): dirname
84089         (lib_SOURCES): Add argp-pin.c
84090
84091 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84092
84093         * m4/argp.m4:  Check if program_invocation_name and
84094         program_invocation_short_name are declared and define appropriate
84095         macros if they are not.
84096
84097 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84098
84099         * lib/argp-help.c (__argp_base_name): New function
84100         (__argp_short_program_name): Rewrite using __argp_base_name
84101         * lib/argp-namefrob.h: Define program_invocation_name and
84102         program_invocation_short_name if requested
84103         (__argp_base_name): Add prototype
84104         * lib/argp-parse.c (argp_def): Use gettext wrappers
84105         (argp_default_parser): Use __argp_base_name
84106         * lib/argp-pin.c: New file. Defines program_invocation_name and
84107         program_invocation_short_name on systems that lack them.
84108
84109 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84110
84111         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
84112         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84113         porting problem reported by Georg Schwarz in
84114         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84115
84116 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84117
84118         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
84119         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84120         porting problem reported by Georg Schwarz in
84121         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84122
84123 2005-12-05  Bruno Haible  <bruno@clisp.org>
84124
84125         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
84126         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
84127         Reported by Mark Junker <mjscod@gmx.de>.
84128
84129 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
84130
84131         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
84132         Use implementation from Albert Chin, with some
84133         comments/corrections by Stepan Kasal and myself.
84134
84135 2005-12-02  Bruno Haible  <bruno@clisp.org>
84136
84137         * gnulib-tool (func_import): Accept GPLed build tool modules when
84138         --lgpl is given.
84139         * modules/csharpcomp-script: New file.
84140         * modules/csharpcomp: Depend on it.
84141         * modules/javacomp-script: New file.
84142         * modules/javacomp: Depend on it.
84143         Suggested by Simon Josefsson.
84144
84145 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
84146
84147         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
84148         statement, to work around an HP-UX 10.20 compiler bug reported by
84149         Peter O'Gorman.
84150
84151 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84152
84153         * modules/savedir (Depends-on): Add openat.
84154
84155 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84156
84157         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
84158         (uintmax_t) [defined uintmax_t]: Do not declare.
84159         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
84160         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
84161         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
84162         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
84163         sake of portability to weird hosts that C allows (though we don't
84164         know of any practical examples).
84165
84166         * lib/savedir.h (fdsavedir): New decl.
84167         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
84168         contains most of the former guts of savedir.
84169         (savedir): Use savedirstream.
84170         Include "openat.h".
84171
84172 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84173
84174         * modules/obstack (Files): Add m4/ulonglong.m4.
84175         Problem reported by Davide Angelocola.
84176
84177 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
84178
84179         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
84180         coreutils no longer futzes with rounding modes.
84181
84182 2005-11-14  Jim Meyering  <jim@meyering.net>
84183
84184         * lib/mkstemp-safer.c: Include <config.h>, required for possible
84185         replacement of mkstemp.
84186
84187 2005-11-10  Simon Josefsson  <jas@extundo.com>
84188
84189         * lib/readline.c: Remove EOL.
84190
84191 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84192
84193         * modules/gethrxtime (Depends-on): Add gettime.
84194
84195 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84196
84197         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
84198         or gettimeofday; no longer needed.
84199
84200 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84201
84202         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
84203         time business.
84204         (gethrxtime) [! (HAVE_NANOUPTIME
84205         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
84206         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
84207         our own approximation.
84208
84209 2005-11-08  Eric Blake  <ebb9@byu.net>
84210
84211         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84212
84213 2005-11-08  Eric Blake  <ebb9@byu.net>
84214
84215         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84216
84217 2005-11-04  Bruno Haible  <bruno@clisp.org>
84218
84219         * gnulib-tool: Implement --update mode.
84220
84221 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84222
84223         Fix porting problem reported by Theodoros V. Kalamatianos.
84224         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
84225         Don't assume that futimes failing means we must fail.
84226
84227 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84228
84229         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
84230         variables to suggest the intended function of the PATH_MAX check.
84231
84232 2005-10-30  Kean Johnston  <jkj@sco.com>
84233
84234         Trivial changes to support SCO systems.
84235         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
84236         as PATH_MAX.
84237         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
84238         where __ptr is null when no I/O is pending.
84239
84240 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84241
84242         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
84243         leave errno alone.  Problem reported by Dmitry V. Levin.
84244
84245 2005-10-28  Simon Josefsson  <jas@extundo.com>
84246
84247         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
84248         Test more.
84249
84250         * tests/test-gc-md2.c, tests/test-md2.c: New files.
84251
84252         * modules/md2, modules/md2-tests: New files.
84253
84254 2005-10-28  Simon Josefsson  <jas@extundo.com>
84255
84256         * m4/inet_ntop.m4: More tests.
84257
84258         * m4/gc-md2.m4, md2.m4: New file.
84259
84260 2005-10-28  Simon Josefsson  <jas@extundo.com>
84261
84262         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
84263         "restrict" keywords, as per POSIX.  Protect the function
84264         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
84265         Don't use K&R prototypes.  Check the sprintf return values.
84266         Re-define EAFNOSUPPORT if not present.  Indent.
84267
84268         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
84269         suggested by Bruno Haible <bruno@clisp.org>.
84270
84271         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
84272
84273         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
84274
84275         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
84276         libgcrypt).
84277
84278         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
84279
84280         * lib/md2.h, lib/md2.c: New files.
84281
84282 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
84283
84284         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
84285         errno alone.  Problem reported by Frederic Jolliton.
84286
84287 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
84288
84289         * modules/verify (License): Change from GPL to LGPL.  This is a
84290         tiny module and there are apparently near-equivalents that are
84291         under the BSD license.
84292
84293 2005-10-24  Simon Josefsson  <jas@extundo.com>
84294
84295         * modules/sha1: Relicense to LGPL.
84296
84297 2005-10-24  Simon Josefsson  <jas@extundo.com>
84298
84299         * lib/md4.h: Shrink buffer size, now that we changed the type.
84300
84301 2005-10-23  Simon Josefsson  <jas@extundo.com>
84302
84303         * gnulib-tool (func_import): Fix --tests-base.
84304
84305 2005-10-22  Simon Josefsson  <jas@extundo.com>
84306
84307         * modules/arcfour (Depends-on): Need stdint.
84308
84309 2005-10-22  Simon Josefsson  <jas@extundo.com>
84310
84311         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
84312         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
84313
84314 2005-10-22  Simon Josefsson  <jas@extundo.com>
84315
84316         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
84317         suggested by Bruno Haible <bruno@clisp.org>.
84318
84319 2005-10-22  Simon Josefsson  <jas@extundo.com>
84320
84321         * lib/crc.h: Include stddef.h, for size_t.
84322
84323 2005-10-22  Simon Josefsson  <jas@extundo.com>
84324
84325         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84326         arcfour_context struct (simplify test vector testing in GNU
84327         Shishi).
84328
84329 2005-10-21  Simon Josefsson  <jas@extundo.com>
84330
84331         * modules/des, modules/des-tests: New files.
84332
84333         * modules/gc-des, modules/gc-des-tests: New files.
84334
84335         * tests/test-des.c, tests/test-gc-des.c: New file.
84336
84337 2005-10-21  Simon Josefsson  <jas@extundo.com>
84338
84339         * modules/arctwo, modules/arctwo-tests: New files.
84340
84341         * tests/test-arctwo.c: New file.
84342
84343         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84344
84345         * tests/test-gc-arctwo.c: New file.
84346
84347 2005-10-21  Simon Josefsson  <jas@extundo.com>
84348
84349         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84350         Bruno Haible <bruno@clisp.org>.
84351
84352         * m4/gc-des.m4: New file.
84353
84354 2005-10-21  Simon Josefsson  <jas@extundo.com>
84355
84356         * m4/arctwo.m4: New file.
84357
84358         * m4/gc-arctwo.m4: New file.
84359
84360 2005-10-21  Simon Josefsson  <jas@extundo.com>
84361
84362         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84363         block.
84364
84365 2005-10-21  Simon Josefsson  <jas@extundo.com>
84366
84367         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84368         <bruno@clisp.org>.
84369
84370         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84371
84372         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84373         Bruno Haible <bruno@clisp.org>.
84374
84375         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84376         <bruno@clisp.org>.
84377
84378 2005-10-21  Simon Josefsson  <jas@extundo.com>
84379
84380         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84381
84382 2005-10-21  Simon Josefsson  <jas@extundo.com>
84383
84384         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84385
84386 2005-10-21  Simon Josefsson  <jas@extundo.com>
84387
84388         * lib/des.h, lib/des.c: New files.
84389
84390         * lib/gc-gnulib.c: Support DES.c
84391
84392 2005-10-21  Simon Josefsson  <jas@extundo.com>
84393
84394         * lib/arctwo.h, lib/arctwo.c: New files.
84395
84396         * lib/gc-gnulib.c: Support ARCTWO.
84397
84398 2005-10-21  Simon Josefsson  <jas@extundo.com>
84399
84400         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84401         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84402
84403 2005-10-21  Simon Josefsson  <jas@extundo.com>
84404
84405         * gnulib-tool (func_import, func_create_testdir): Define automake
84406         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84407         Makefile.am snippet),
84408         suggested by Bruno Haible <bruno@clisp.org>.
84409
84410         * modules/gc (Makefile.am): Use it.
84411
84412 2005-10-21  Bruno Haible  <bruno@clisp.org>
84413
84414         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84415         patch.
84416
84417 2005-10-19  Simon Josefsson  <jas@extundo.com>
84418
84419         * tests/test-gc-rijndael.c: New file.
84420
84421         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84422
84423 2005-10-19  Simon Josefsson  <jas@extundo.com>
84424
84425         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84426         interface too.
84427
84428 2005-10-19  Simon Josefsson  <jas@extundo.com>
84429
84430         * tests/test-gc-arcfour.c: New file.
84431
84432         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84433
84434 2005-10-19  Simon Josefsson  <jas@extundo.com>
84435
84436         * modules/gc-md4, modules/gc-md4-tests: New file.
84437
84438         * tests/test-gc-md4.c: New file.
84439
84440 2005-10-19  Simon Josefsson  <jas@extundo.com>
84441
84442         * m4/gc-md4.m4: New file.
84443
84444 2005-10-19  Simon Josefsson  <jas@extundo.com>
84445
84446         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84447         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84448         <kasal@ucw.cz>.
84449
84450 2005-10-19  Simon Josefsson  <jas@extundo.com>
84451
84452         * m4/gc-arcfour.m4: New file.
84453
84454         * m4/gc-rijndael.m4: New file.
84455
84456 2005-10-19  Simon Josefsson  <jas@extundo.com>
84457
84458         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84459
84460 2005-10-19  Simon Josefsson  <jas@extundo.com>
84461
84462         * lib/gc-gnulib.c: Support ARCFOUR.
84463
84464 2005-10-19  Simon Josefsson  <jas@extundo.com>
84465
84466         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84467         support.
84468
84469         * lib/gc.h: Add ECB enum type.
84470
84471         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84472
84473 2005-10-18  Simon Josefsson  <jas@extundo.com>
84474
84475         * tests/test-md5.c: New file.
84476
84477         * modules/md5-tests: New file.
84478
84479 2005-10-18  Simon Josefsson  <jas@extundo.com>
84480
84481         * tests/test-md4.c: New file.
84482
84483         * modules/md4, modules/md4-tests: New files.
84484
84485 2005-10-18  Simon Josefsson  <jas@extundo.com>
84486
84487         * m4/md4.m4: New file.
84488
84489 2005-10-18  Simon Josefsson  <jas@extundo.com>
84490
84491         * lib/md4.h, lib/md4.c: New files, based on md5.?.
84492
84493 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
84494
84495         * gnulib-tool (func_create_testdir): Omit the second check whether
84496         BUILT_SOURCES in nonempty.
84497
84498 2005-10-17  Simon Josefsson  <jas@extundo.com>
84499
84500         * tests/test-rijndael.c: New file.
84501
84502 2005-10-17  Simon Josefsson  <jas@extundo.com>
84503
84504         * modules/sha1: Depend on stdint instead of md5.
84505
84506         * modules/md5: Depend on stdint, remove uint32_t.
84507
84508 2005-10-17  Simon Josefsson  <jas@extundo.com>
84509
84510         * modules/gc-sha1-tests: New file.
84511
84512         * tests/test-gc-sha1.c: New file.
84513
84514 2005-10-17  Simon Josefsson  <jas@extundo.com>
84515
84516         * m4/md5.m4: Remove call to uint32_t.m4.
84517
84518 2005-10-17  Simon Josefsson  <jas@extundo.com>
84519
84520         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
84521
84522         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
84523         md5.h.
84524
84525         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
84526
84527         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
84528
84529 2005-10-17  Simon Josefsson  <jas@extundo.com>
84530
84531         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
84532
84533 2005-10-17  Simon Josefsson  <jas@extundo.com>
84534
84535         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
84536
84537 2005-10-17  Simon Josefsson  <jas@extundo.com>
84538
84539         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
84540
84541         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
84542
84543 2005-10-17  Bruno Haible  <bruno@clisp.org>
84544
84545         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
84546         that it can also be used in a test.
84547
84548 2005-10-16  Bruno Haible  <bruno@clisp.org>
84549
84550         * gnulib-tool (func_emit_tests_Makefile_am): Also define
84551         TESTS_ENVIRONMENT, so that individual tests can augment it.
84552
84553         * gnulib-tool (func_create_testdir): Use an intermediate target for
84554         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
84555         macros, like $(ALLOCA_H), which cannot be passed through the command
84556         line.
84557
84558 2005-10-15  Simon Josefsson  <jas@extundo.com>
84559
84560         * modules/rijndael-tests: New file.
84561
84562         * modules/rijndael: New file.
84563
84564 2005-10-15  Simon Josefsson  <jas@extundo.com>
84565
84566         * m4/rijndael.m4: New file.
84567
84568 2005-10-15  Simon Josefsson  <jas@extundo.com>
84569
84570         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
84571
84572         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
84573
84574 2005-10-14  Simon Josefsson  <jas@extundo.com>
84575
84576         * tests/test-arcfour.c: New file.
84577
84578         * modules/arcfour, modules/arcfour-tests: New files.
84579
84580 2005-10-14  Simon Josefsson  <jas@extundo.com>
84581
84582         * m4/arcfour.m4: New file.
84583
84584 2005-10-14  Simon Josefsson  <jas@extundo.com>
84585
84586         * lib/arcfour.h, lib/arcfour.c: New files.
84587
84588 2005-10-14  Roland McGrath  <roland@redhat.com>
84589
84590         Import from libc.  [BZ #1331]
84591         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
84592         macro argument.
84593         Reported by Matej Vela <vela@debian.org>.
84594
84595 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84596
84597         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
84598         include <wchar.h>; no longer needed.
84599
84600 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84601
84602         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
84603
84604 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
84605         and  Ulrich Drepper  <drepper@redhat.com>
84606
84607         Import from libc.
84608         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
84609         instead of inline stream orientation test and two separate
84610         function calls.  Pay no attention to USE_IN_LIBIO.
84611
84612 2005-10-13  Simon Josefsson  <jas@extundo.com>
84613
84614         * modules/gc-hmac-md5-tests: New file.
84615
84616         * tests/test-gc-hmac-sha1.c: New file.
84617
84618         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
84619
84620         * modules/gc-hmac-md5-tests: New file.
84621
84622         * tests/test-gc-md5.c: New file.
84623
84624         * modules/gc-md5-tests: New file.
84625
84626 2005-10-13  Simon Josefsson  <jas@extundo.com>
84627
84628         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
84629         Move memory allocation outside of loop.
84630
84631 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
84632
84633         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
84634         intermediate directory is in a read-only file system.  Problem
84635         reported by Eric Blake.
84636
84637 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
84638
84639         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
84640
84641 2005-10-12  Simon Josefsson  <jas@extundo.com>
84642
84643         * tests/test-hmac-sha1.c: New file.
84644
84645         * modules/hmac-sha1-tests: New file.
84646
84647         * modules/hmac-sha1: New file.
84648
84649 2005-10-12  Simon Josefsson  <jas@extundo.com>
84650
84651         * modules/gc-sha1: New file.
84652
84653 2005-10-12  Simon Josefsson  <jas@extundo.com>
84654
84655         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
84656
84657         * tests/test-gc-pbkdf2-sha1.c: New file.
84658
84659 2005-10-12  Simon Josefsson  <jas@extundo.com>
84660
84661         * modules/gc-md5, modules/gc-hmac-md5: New files.
84662
84663         * modules/gc (Files): Remove md5, memxor and hmac files.
84664
84665 2005-10-12  Simon Josefsson  <jas@extundo.com>
84666
84667         * m4/gc-pbkdf2-sha1.m4: New file.
84668
84669         * m4/gc-hmac-sha1.m4: New file.
84670
84671         * m4/gc-sha1: New file.
84672
84673         * m4/hmac-sha1.m4: New file.
84674
84675 2005-10-12  Simon Josefsson  <jas@extundo.com>
84676
84677         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
84678
84679         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
84680
84681 2005-10-12  Simon Josefsson  <jas@extundo.com>
84682
84683         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
84684         suggested by Bruno Haible <bruno@clisp.org>.
84685
84686 2005-10-12  Simon Josefsson  <jas@extundo.com>
84687
84688         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
84689
84690 2005-10-12  Simon Josefsson  <jas@extundo.com>
84691
84692         * lib/gc-pbkdf2-sha1.c: New file.
84693
84694         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
84695
84696 2005-10-12  Simon Josefsson  <jas@extundo.com>
84697
84698         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
84699
84700         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
84701
84702 2005-10-12  Simon Josefsson  <jas@extundo.com>
84703
84704         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
84705         GC_USE_HMAC_MD5, respectively.
84706
84707         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
84708         (gc_md5): Fix typo.
84709
84710         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
84711
84712         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
84713
84714         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
84715
84716 2005-10-12  Bruno Haible  <bruno@clisp.org>
84717
84718         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
84719         Reported by Stepan Kasal <kasal@ucw.cz>.
84720
84721 2005-10-11  Simon Josefsson  <jas@extundo.com>
84722
84723         * tests/test-crc.c: New file.
84724
84725         * modules/crc, modules/crc-tests: New files.
84726
84727 2005-10-11  Simon Josefsson  <jas@extundo.com>
84728
84729         * m4/crc.m4: New file.
84730
84731 2005-10-11  Simon Josefsson  <jas@extundo.com>
84732
84733         * lib/gc.h: Add gc_hash and gc_hash_buffer.
84734
84735         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
84736
84737         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
84738
84739 2005-10-11  Simon Josefsson  <jas@extundo.com>
84740
84741         * lib/crc.h, lib/crc.c: New files.
84742
84743         * lib/gc.h (gc_hash_buffer): Add doc.
84744
84745 2005-10-11  Bruno Haible  <bruno@clisp.org>
84746
84747         * modules/c-strcasestr: New file.
84748         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
84749
84750 2005-10-11  Bruno Haible  <bruno@clisp.org>
84751
84752         * modules/c-strcase: New file.
84753         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
84754
84755 2005-10-11  Bruno Haible  <bruno@clisp.org>
84756
84757         * lib/strcasecmp.c: Include limits.h.
84758         (strcasecmp): Avoid integer overflow on exotic platforms.
84759         * lib/strncasecmp.c: Include limits.h.
84760         (strncasecmp): Avoid integer overflow on exotic platforms.
84761         Reported by Paul Eggert.
84762
84763 2005-10-11  Bruno Haible  <bruno@clisp.org>
84764
84765         * lib/c-strcasestr.h: New file, from GNU gettext.
84766         * lib/c-strcasestr.c: New file, from GNU gettext.
84767
84768 2005-10-11  Bruno Haible  <bruno@clisp.org>
84769
84770         * lib/c-strcase.h: New file, from GNU gettext.
84771         * lib/c-strcasecmp.c: New file, from GNU gettext.
84772         * lib/c-strncasecmp.c: New file, from GNU gettext.
84773
84774 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84775
84776         * modules/mempcpy (License): GPL -> LGPL.
84777         * modules/strchrnul (License): Likewise.
84778         * modules/sysexits (License): Likewise.
84779
84780 2005-10-08  Simon Josefsson  <jas@extundo.com>
84781
84782         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
84783
84784 2005-10-07  Simon Josefsson  <jas@extundo.com>
84785
84786         * m4/memxor.m4: Remove gl_C_RESTRICT call.
84787
84788 2005-10-06  Simon Josefsson  <jas@extundo.com>
84789
84790         * tests/test-hmac-md5.c: New file.
84791
84792         * modules/hmac-md5-tests: New file.
84793
84794         * modules/hmac-md5: New file.
84795
84796 2005-10-06  Simon Josefsson  <jas@extundo.com>
84797
84798         * m4/hmac-md5.m4: New file.
84799
84800         * m4/memxor.m4: Require gl_C_RESTRICT.
84801
84802 2005-10-06  Simon Josefsson  <jas@extundo.com>
84803
84804         * lib/memxor.c (memxor): Avoid casts and warnings.
84805
84806 2005-10-06  Simon Josefsson  <jas@extundo.com>
84807
84808         * lib/hmac-md5.c: New file.
84809
84810         * lib/hmac.h: New file.
84811
84812 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84813
84814         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
84815         promotes to int, not unsigned int, to catch the AIX 5.3
84816         compiler bug.
84817
84818 2005-10-05  Simon Josefsson  <jas@extundo.com>
84819
84820         * modules/memxor: New file.
84821
84822         * modules/iconv (Files): Move config.rpath to havelib, it is used
84823         there.
84824
84825         * modules/havelib (Files): Add config.rpath.
84826
84827 2005-10-05  Simon Josefsson  <jas@extundo.com>
84828
84829         * m4/memxor.m4: New file.
84830
84831 2005-10-05  Simon Josefsson  <jas@extundo.com>
84832
84833         * lib/memxor.c (memxor): Fix compiler error.
84834
84835         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
84836         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
84837
84838         * lib/memxor.h, lib/memxor.c: New files.
84839
84840         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
84841         we assume all systems have it, suggested by Jim Meyering
84842         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
84843         any systems lack sys/socket.h; mingw32 is known to lack it, but we
84844         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
84845         same reasons.
84846
84847 2005-10-05  Simon Josefsson  <jas@extundo.com>
84848
84849         * config/srclist.txt: Add glibc bug 1423 for md5.h.
84850
84851 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
84852
84853         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
84854         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
84855         needed, since the source code now assumes these .h files.
84856
84857 2005-10-05  Derek Price  <derek@ximbiot.com>
84858
84859         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
84860
84861 2005-10-05  Bruno Haible  <bruno@clisp.org>
84862
84863         * modules/stdint (License): Change to LGPL.
84864
84865 2005-10-04  Simon Josefsson  <jas@extundo.com>
84866
84867         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
84868         D. Baushke" <mdb@gnu.org>.
84869
84870 2005-10-04  Bruno Haible  <bruno@clisp.org>
84871
84872         * lib/verify.h (verify_true): Provide alternative definition for C++.
84873
84874 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
84875
84876         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
84877         (SSIZE_MAX): New macro, if not already defined.
84878         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
84879         than 2 GiB.
84880
84881 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84882
84883         Sync from coreutils.
84884         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
84885         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
84886         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
84887         ULLONG_MAX doesn't work with 2.7.2.1.
84888
84889 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84890
84891         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
84892         From Ben Pfaff.
84893
84894         * modules/exclude (Depends-on): Depend on verify.
84895         * modules/strtoimax (Depends-on): Likewise.
84896         * modules/utimecmp (Depends-on): Likewise.
84897
84898 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84899
84900         * lib/exclude.c: Include verify.h.
84901         (verify): Remove.  All callers changed to use verify.h's version.
84902         * lib/strtoimax.c: Likewise.
84903         * lib/utimecmp.c: Likewis.e
84904
84905         Sync from coreutils.
84906         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
84907         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
84908         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
84909         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
84910         bother returning ENOSYS if settimeofday or stime fails; just let
84911         them return whatever errno they want to return.
84912         * lib/utimens.c: Include unistd.h, for dup2.
84913         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
84914         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
84915
84916 2005-10-02  Jim Meyering  <jim@meyering.net>
84917
84918         Sync from coreutils.
84919         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
84920         from glibc-2.2.5 that fails for read-only files.
84921
84922 2005-10-02  Jim Meyering  <jim@meyering.net>
84923
84924         Sync from coreutils.
84925         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
84926         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
84927         `#if HAVE_CONFIG_H'.
84928         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
84929         Remove AT_FDCWD test.
84930         Do not consume the fd unless successful.
84931         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
84932         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
84933         block, so that we don't even try to compile it if settimeofday is
84934         available.  This works around a compilation failure on OSF1 V5.1,
84935         due to stime requiring a `long int*' while tv_sec is `int'.
84936
84937 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
84938
84939         Sync from coreutils.
84940         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
84941         against `yes', rather than just testing for nonempty.
84942
84943 2005-10-01  Simon Josefsson  <jas@extundo.com>
84944
84945         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
84946         and Darwin.
84947
84948         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
84949         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
84950         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
84951         freeaddrinfo and gai_strerror are declared by the POSIX headers.
84952         Check if struct addrinfo is declared.
84953
84954 2005-10-01  Simon Josefsson  <jas@extundo.com>
84955
84956         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
84957         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
84958         AI_* and EAI_* definitions.  Protect function declarations.
84959
84960 2005-10-01  Jim Meyering  <jim@meyering.net>
84961
84962         Sync from coreutils.
84963
84964         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
84965         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
84966         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
84967         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84968         in the inet and nsl libraries.  Required on Solaris 5.7.
84969
84970 2005-10-01  Jim Meyering  <jim@meyering.net>
84971
84972         Sync from coreutils.
84973         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84974         in the inet and nsl libraries.  Required on Solaris 5.7.
84975
84976 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
84977
84978         * lib/getdelim.c (getdelim): Remove unused variables.
84979
84980 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
84981
84982         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
84983         so that the code works even with ancient cpp.  Portability problem
84984         with GCC 2.7.2.1 reported by Thomas M.Ott.
84985
84986 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
84987
84988         * modules/regex (Depends-on): Add strcase.
84989
84990         * modules/gethostname (Licence): Change from GPL to LGPL, since
84991         gethostname.c is a trivial implementation of a standard library
84992         function.
84993         * modules/poll (License): Change from GPL to LGPL, since it's
84994         derived from LGPL code.
84995
84996 2005-09-27  Jim Meyering  <jim@meyering.net>
84997
84998         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
84999         HAVE_CONFIG_H.
85000
85001         * lib/intprops.h (signed_type_or_expr__): Define.
85002         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
85003         for unsigned types.
85004
85005 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
85006
85007         * lib/verify.h (verify_expr): Remove, replacing with:
85008         (verify_true): New macro that returns true instead of void.
85009         (verify_type__): Remove.
85010         (verify): Use verify_true rather than verify_type__.
85011
85012 2005-09-26  Bruno Haible  <bruno@clisp.org>
85013
85014         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
85015         is necessary.
85016         (lib_SOURCES): Remove mbchar.c.
85017         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
85018         (Files): Add m4/mbrtowc.m4.
85019         * modules/mbiter: Likewise.
85020         * modules/mbuiter: Likewise.
85021
85022 2005-09-26  Bruno Haible  <bruno@clisp.org>
85023
85024         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
85025         compile mbchar.c if they are not both present.
85026         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
85027         * m4/mbiter.m4 (gl_MBITER): Likewise.
85028         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
85029         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
85030         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
85031
85032 2005-09-25  Jim Meyering  <jim@meyering.net>
85033
85034         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
85035         also uses socklen_t.
85036
85037 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
85038
85039         * lib/utimens.c (ENOSYS): Define if not already defined.
85040         (futimens): Support having a null PATH if the file descriptor
85041         is nonnegative.
85042
85043         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
85044         Remove.
85045         (__attribute): Define to empty unless GCC 3.1 or later.
85046         This works around a core dump on OpenBSD 3.4, which has GCC
85047         2.95.3, which dumps core when given __attribute__(()).  It also
85048         simplifies other tests, since we really don't want to bother with
85049         worrying about which ancient version of GCC supported what.
85050         Original problem reported by Yoann Vandoorselaere, with part of
85051         the fix suggested by Derek Price.
85052
85053 2005-09-24  Jim Meyering  <jim@meyering.net>
85054
85055         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
85056         so we can once again use a positive bitfield width of 1 -- now we
85057         don't have to explain why we were using a bitfield width of 2.
85058
85059 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85060
85061         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
85062         and similarly for the other external symbols.  Problem reported
85063         by James Gallager.
85064
85065         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
85066         bug reported by Jim Meyering.
85067
85068         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
85069         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
85070         not needed, since socklen is a prerequisite module.
85071
85072 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85073
85074         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
85075         Problem reported by Eric Blake.
85076         (getaddrinfo): Initialize se so that it's not garbage.
85077         Redo internal storage allocation so that it doesn't make unportable
85078         assumptions about alignment.
85079         Fix a memory leak.
85080
85081         * lib/utimens.c (futimens): Use futimesat if available.
85082         Prefer it to futimes since it doesn't have the futimes bug.
85083
85084         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
85085         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
85086         Instead, declare a function that returns a pointer to an array,
85087         and use verify_type__ to declare the size of the array.
85088         Problem and germ of a solution reported by Bruno Haible.
85089         (verify_type__): Use 2, not 1, for bitfield size, to avoid
85090         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
85091
85092 2005-09-23  Jim Meyering  <jim@meyering.net>
85093
85094         Sync from coreutils.
85095         Correct build failure (socklen_t not defined) on at least
85096         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
85097         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
85098
85099 2005-09-23  Jim Meyering  <jim@meyering.net>
85100
85101         * modules/getaddrinfo (Depends-on): Add socklen.
85102
85103 2005-09-23  Bruno Haible  <bruno@clisp.org>
85104
85105         * tests/test-verify.c: New file.
85106
85107 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85108
85109         Sync from coreutils.
85110
85111         * modules/argmatch (Depends-on): Add verify.
85112         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
85113         unistd-safer.
85114         * modules/save-cwd (Depends-on): Likewise.
85115
85116         * modules/openat (Files): Add lib/openat-die.c.
85117         (Depends-on): Remove error, exitfail.
85118         Add dirname.
85119
85120         * modules/verify: New file.
85121         * MODULES.html.sh (Diagnostics <assert.h>): New section,
85122         with "verify" module.
85123
85124 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85125
85126         Sync from coreutils.
85127
85128         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
85129         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
85130         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
85131         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
85132         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
85133         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
85134         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
85135         Don't bother checking for string.h, stdlib.h, unistd.h.
85136         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
85137         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
85138         module's job.
85139         * m4/jm-macros.m4 (gl_MACROS): Likewise.
85140         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
85141
85142         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
85143         (gl_GETDATE): Use it.
85144
85145         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
85146
85147 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85148
85149         Sync from coreutils.
85150
85151         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
85152         stat-time.h.
85153         * lib/argmatch.h: Include verify.h
85154         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
85155         (ARGMATCH_ASSERT): Remove; unused.
85156         * lib/canonicalize.c: Assume STDC_HEADERS.
85157         * lib/exclude.c: Include "strcase.h".
85158         * lib/regex_internal.h [!defined _LIBC]: Likewise.
85159         * lib/getusershell.c: Include stdio--.h rather than stdio.h
85160         and stdio-safer.h.
85161         (getusershell): Call fopen, not fopen_safer.
85162         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
85163         Do not include unistd-safer.h.
85164         (save_cwd): Don't call fd_safer; no longer needed
85165         now that we include fcntl--.h.
85166
85167         * lib/getdate.y (relative_time): New type.
85168         (RELATIVE_TIME_0): New constant.
85169         (parser_control): Use relative_time instead of doing it ourselves.
85170         (%union): Add new relative_time rel member.
85171         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
85172         Now typeless.
85173         (relunit, relunit_snumber): Now of type rel.
85174         (zone, rel, relunit, get_date): Adjust to above changes.
85175
85176         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
85177         Do not include unistd-safer.h.
85178         (getloadavg): Don't call fd_safer; no longer needed
85179         now that we include fcntl--.h.
85180
85181         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
85182         (make_dir_parents): Treat ENOSYS like EEXIST.
85183
85184         Improve quality of diagnostics on restore_cwd failure.
85185         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
85186         (make_dir_parents): Last arg is now int * (for errno), not bool *.
85187         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
85188         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
85189         each time through the loop.  Do not diagnose restore_cwd failure;
85190         that is the caller's job (and perhaps the caller does not care).
85191
85192         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
85193         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
85194         If the file already exists but is not a directory, don't bother
85195         to try to make its parents.
85196         Close potential file descriptor leak if we can't chdir("/") (!).
85197         Don't always return true if chdir($PWD) fails; return true only
85198         if the requested action was done successfully (except for the
85199         chdir($PWD)).
85200         Don't log final directory unless we actually made it.
85201         Refactor to avoid duplicate code to fix up permissions.
85202         Don't attempt to fix up parent permissions if chdir($PWD) fails.
85203
85204         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
85205         to make it a bit faster and (I hope) clearer.
85206         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
85207         Fix bug in formats like %2N.
85208
85209         * lib/verify.h: New file.
85210
85211 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85212
85213         Sync from coreutils.
85214         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
85215
85216 2005-09-22  Jim Meyering  <jim@meyering.net>
85217
85218         Sync from coreutils.
85219
85220         * m4/lstat.m4 (gl_FUNC_LSTAT):
85221         Use AC_LIBSOURCES to require lstat.c and lstat.h.
85222         Remove obsolete comment.
85223         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
85224         * m4/xstrtod.m4: Likewise.
85225
85226         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
85227
85228 2005-09-22  Jim Meyering  <jim@meyering.net>
85229
85230         Sync from coreutils.
85231
85232         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
85233
85234         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
85235         the .tm_year member, since otherwise gcc-4.0 would now warn about
85236         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
85237
85238         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
85239         order to avoid an unsuppressible warning from gcc on 64-bit systems.
85240
85241         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
85242         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
85243         when run in a time zone for which daylight savings time is in effect
85244         for the starting date.
85245
85246         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
85247         stop us from restricting permissions of just-created absolute-named
85248         directories.
85249         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
85250         to restore initial working directory.
85251         * lib/mkdir-p.c (make_dir_parents): New parameter:
85252         different_working_dir, to tell caller if/when we change the working
85253         directory and are unable to return to the initial one.
85254         * lib/mkdir-p.h (make_dir_parents): Update prototype.
85255         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
85256         `return false'.  This fixes a bug introduced on 2004-07-30.
85257
85258         * lib/openat.c (fdopendir): Be sure to close the supplied
85259         file descriptor before returning.  This makes our replacement
85260         implementation a little closer to Solaris's, where fdopendir
85261         ties the file descriptor to the returned DIR* pointer.
85262         * lib/openat.c (unlinkat): New function.
85263         * lib/openat.h (unlinkat): Add prototype.
85264         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
85265         (openat_restore_fail): Rename from openat_restore_die.
85266         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
85267
85268         Provide an alternative to exiting immediately upon save_cwd or
85269         restore_cwd failure.  Now, an application can arrange e.g.,
85270         to perform a longjump in that case.
85271         * lib/openat.c: Include dirname.h.
85272         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
85273         (rpl_openat, fdopendir, fstatat): Call openat_save_die
85274         and openat_restore_die rather than calling error directly.
85275         Don't include "error.h" or "exitfail.h"; they're no longer needed.
85276
85277         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
85278         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
85279         define.
85280
85281         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
85282         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
85283                             int utc, int nanoseconds);
85284         Background:
85285         date should not have to allocate a megabyte of virtual memory to
85286         handle a format argument like +%1048575T.  When implemented with
85287         strftime, it must allocate such a buffer, use strftime to fill it
85288         in, print it, then free it.
85289         With fprintftime, it simply prints everything and exits.
85290         With no need for memory allocation, that's one fewer way to fail.
85291         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
85292         optional field width, not before, so we accept %9:z, not %:9z.
85293         (my_strftime): Be sure to use L_('x') for literals.
85294
85295         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
85296         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
85297         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
85298         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
85299         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
85300         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
85301         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
85302         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
85303         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
85304         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
85305         * lib/xgethostname.c, lib/xreadlink.c:
85306         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
85307
85308         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
85309         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
85310         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
85311         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85312         and don't include <sys/file.h>).
85313
85314 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
85315
85316         Sync from coreutils.
85317
85318         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
85319         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
85320         [!LDAV_DONE]: Avoid unused variable warning.
85321
85322 2005-09-21  Bruno Haible  <bruno@clisp.org>
85323
85324         * lib/unicodeio.h (unicode_to_mb): New declaration.
85325
85326 2005-09-20  Derek Price  <derek@ximbiot.com>
85327
85328         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85329         getaddrinfo.h.
85330
85331 2005-09-20  Bruno Haible  <bruno@clisp.org>
85332
85333         * gnulib-tool: Remove trailing slashes from the values specified for
85334         --source-base, --m4-base, --tests-base, --aux-dir.
85335         Suggested by Simon Josefsson <jas@extundo.com>.
85336
85337 2005-09-20  Bruno Haible  <bruno@clisp.org>
85338
85339         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85340         func_modules_to_filelist, func_import, func_create_testdir): Make all
85341         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85342         change when gnulib-tool is invoked in a different locale.
85343
85344 2005-09-19  Simon Josefsson  <jas@extundo.com>
85345
85346         * m4/socklen.m4: Fix typo.
85347
85348 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85349
85350         Use a consistent style for including <config.h>.
85351         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85352         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85353         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85354         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85355         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85356         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85357         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85358         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85359         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85360         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85361         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85362         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85363         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85364         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85365         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85366         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85367         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85368         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85369         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85370         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85371         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85372         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85373         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85374         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85375         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85376         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85377         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85378         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85379         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85380         lib/xstrtoumax.c, lib/yesno.c:
85381         Standardize inclusion of config.h.
85382         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85383         lib/inttostr.h:  Removed inclusion of config.h from header files.
85384         * lib/inttostr.c:  Adjusted in-tree users.
85385         * lib/timespec.h: Remove superfluous warning to include config.h.
85386         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
85387         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
85388         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
85389         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
85390         config.h with HAVE_CONFIG_H.
85391
85392 2005-09-19  Jim Meyering  <jim@meyering.net>
85393
85394         * modules/pathmax (License): Change to LGPL.
85395
85396 2005-09-19  Derek Price  <derek@ximbiot.com>
85397
85398         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85399
85400 2005-09-19  Bruno Haible  <bruno@clisp.org>
85401
85402         * gnulib-tool (import): Provide default for --tests-base.
85403
85404 2005-09-19  Bruno Haible  <bruno@clisp.org>
85405
85406         * doc/quote.texi: New file, extracted from gnulib.texi.
85407         * doc/ctime.texi: New file, extracted from gnulib.texi.
85408         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85409         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85410         * doc/gnulib.texi: Include them.
85411
85412 2005-09-18  Bruno Haible  <bruno@clisp.org>
85413
85414         Portability fix.
85415         * gnulib-tool (func_readlink): New function.
85416         (func_ln_if_changed): Use it.
85417
85418 2005-09-18  Bruno Haible  <bruno@clisp.org>
85419
85420         * gnulib-tool: Support --with-tests also with --import.
85421         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85422         (func_import): Use variables $testsbase and $inctests. Emit a
85423         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85424         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85425         SUBDIRS += $testsdir.
85426         (func_create_testdir): Update.
85427
85428 2005-09-18  Bruno Haible  <bruno@clisp.org>
85429
85430         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85431         instead of $dry_run.
85432         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85433         (func_ln_if_changed): Don't handle dry-run here.
85434         (func_import): In dry-run mode, detect more precisely which actions
85435         would be performed, and don't use "...ing" verbs.
85436
85437 2005-09-18  Bruno Haible  <bruno@clisp.org>
85438
85439         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85440         (func_import): Use join on two temporary files instead of three nested
85441         loops, in order to determine which files are new or old.
85442
85443 2005-09-18  Bruno Haible  <bruno@clisp.org>
85444
85445         * gnulib-tool (func_import): Comment out code that spits out the
85446         new files with --dry-run.
85447
85448 2005-09-18  Bruno Haible  <bruno@clisp.org>
85449
85450         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85451
85452 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85453
85454         * lib/stat-time.h: New file.
85455         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85456         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85457         in a different way.
85458         (timespec_cmp): New function.
85459         * lib/utimecmp.c: Include stat-time.h.
85460         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85461         members exist, not on the obsolescent ST_MTIM_NSEC.
85462         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85463
85464 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85465
85466         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85467
85468 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85469
85470         * MODULES.html.sh (File system functions): Add stat-time.
85471         * modules/stat-time: New file.
85472         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85473         is now done in a different way, by the stat-time module.
85474         * modules/utimecmp (Depends-on): Add stat-time.
85475
85476 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
85477
85478         * m4/st_mtim.m4: Remove.  Superseded by...
85479         * m4/stat-time.m4: New file.
85480         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
85481         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
85482
85483 2005-09-15  Derek Price  <derek@ximbiot.com>
85484
85485         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
85486
85487 2005-09-15  Derek Price  <derek@ximbiot.com>
85488
85489         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
85490         * lib/regex_internal.c: Ditto, using this...
85491         (__GNUC_PREREQ): ...new macro.
85492         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
85493         using...
85494         (__GNUC_PREREQ): ...this new macro.
85495
85496         * lib/strstr.h: Include string.h. Define strstr as a macro here.
85497
85498 2005-09-15  Derek Price  <derek@ximbiot.com>
85499             Paul Eggert  <eggert@cs.ucla.edu>
85500
85501         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
85502         changes, consolidating in...
85503         * lib/regex_internal.h: ...this file.
85504
85505 2005-09-13  Jim Meyering  <jim@meyering.net>
85506
85507         * lib/canon-host.c: Filter through gnu indent and reword comments
85508         slightly.
85509         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
85510
85511 2005-09-13  Derek Price  <derek@ximbiot.com>
85512
85513         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
85514         failure.
85515         Reported by Jim Meyering  <jim@meyering.net>.
85516
85517 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85518
85519         * lib/base64.c: Typo.
85520         (base64_encode): Put b64str in initialized data section.
85521
85522 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
85523
85524         Merge glibc and coreutils changes into gnulib, plus a few
85525         extra fixes.
85526         * lib/md5.c: Use #error rather than a string.
85527         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
85528         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
85529         (__attribute__): Define to empty for non recent-GCC.
85530         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
85531         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
85532         Renamed from their non-__ counterparts, with new macros replacing
85533         them if not _LIBC.  Add __THROW attribute.
85534         (rol): Remove.
85535         (struct md5_ctx): Align buffer if using GCC.
85536         * lib/sha1.h (struct sha1_ctx): Likewise.
85537         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
85538         The old name was backwards.
85539         (NOTSWAP): Remove; not used.
85540         (rol): New macro, moved here from md5.h.
85541         (sha1_process_block): Remove a FIXME that doesn't make sense.
85542
85543 2005-09-12  Derek Price  <derek@ximbiot.com>
85544
85545         Return usable errors from canon-host.
85546         * lib/canon-host.h: New file.
85547         * lib/canon-host.c (canon_host): Wrap...
85548         (canon_host_r): ...this new function, which now relies exclusively on
85549         getaddrinfo.
85550         (ch_strerror): New function.
85551         (last_cherror): New global.
85552         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
85553         interface.
85554         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
85555         void *.
85556         (freeaddrinfo): Free ai->ai_canonname when set.
85557
85558 2005-09-12  Derek Price  <derek@ximbiot.com>
85559
85560         Make canon-host require getaddrinfo.
85561         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
85562         AC_LIBSOURCE canon-host.h.  Call...
85563         (gl_PREREQ_CANON_HOST): ...this new function, which requires
85564         gl_GETADDRINFO.
85565         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
85566
85567 2005-09-12  Derek Price  <derek@ximbiot.com>
85568
85569         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
85570         LGPL.
85571         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
85572
85573 2005-09-12  Derek Price  <derek@ximbiot.com>
85574
85575         * lib/gai_strerror.c: Include config.h when available.  Include
85576         getaddrinfo.h before other headers to test interface.
85577         Reported by Larry Jones <lawrence.jones@ugs.com>.
85578
85579 2005-09-12  Derek Price  <derek@ximbiot.com>
85580             Paul Eggert  <eggert@cs.ucla.edu>
85581
85582         * modules/glob (Files): Add glob-libc.h.
85583
85584 2005-09-12  Derek Price  <derek@ximbiot.com>
85585             Paul Eggert  <eggert@cs.ucla.edu>
85586
85587         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
85588         glob_.h, glob-libc.h.
85589         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
85590
85591 2005-09-12  Derek Price  <derek@ximbiot.com>
85592             Paul Eggert  <eggert@cs.ucla.edu>
85593
85594         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
85595         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
85596         protecting things that should be done only in gnulib contexts.
85597         * lib/glob_.h: New file, containing only the glob things needed for
85598         gnulib.
85599         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
85600         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
85601         (glob, globfree, glob_pattern_p): Now defined simply in terms of
85602         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
85603         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
85604         and to respect the namespace rules better.
85605
85606 2005-09-08  Simon Josefsson  <jas@extundo.com>
85607
85608         * modules/socklen: New file.
85609
85610 2005-09-08  Simon Josefsson  <jas@extundo.com>
85611
85612         * m4/socklen.m4: New file.
85613
85614 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85615
85616         * modules/utimens (Files): Add m4/utimbuf.m4, since
85617         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
85618         Reported by Sergey Poznyakoff.
85619
85620 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85621
85622         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
85623         definitions, since that's the preferred style in glibc.
85624         Fix a minor spacing issue, and update copyright notice to match
85625         glibc's.
85626
85627 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85628
85629         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
85630
85631 2005-09-06  Simon Josefsson  <jas@extundo.com>
85632
85633         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
85634         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
85635
85636 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85637
85638         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
85639         warning.
85640
85641 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85642
85643         * config/srclist.txt: Add glibc bug 1302.
85644
85645 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
85646
85647         Change bitset word type from unsigned int to unsigned long int,
85648         as this has better performance on typical 64-bit hosts.
85649         Port bitset code to hosts with unusual word sizes.
85650         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
85651         (build_collating_symbol):
85652         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
85653         argument is a bitset.  This is merely a style issue, but it makes
85654         it clearer that an entire array is expected.
85655         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
85656         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
85657         Port to the case where bitset_word is not the same as unsigned int.
85658         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85659         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
85660         Likewise.
85661         * lib/regexec.c (check_dst_limits_calc_pos_1,
85662         check_subexp_matching_top):
85663         (build_trtable, group_nodes_into_DFAstates):
85664         Likewise.
85665         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
85666         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
85667         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
85668         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
85669         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
85670         * lib/regcomp.c (optimize_subexps, lower_subexp):
85671         Work even if bitset_word has holes in its bitwise representation.
85672         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
85673         * lib/regexec.c (check_dst_limits_calc_pos_1,
85674         check_subexp_matching_top):
85675         Likewise.
85676         * lib/regex_internal.c (re_string_reconstruct):
85677         Don't assume UCHAR_MAX == 255.
85678         * lib/regex_internal.h (bitset_set_all): Likewise.
85679         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
85680         All uses changed.
85681         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
85682         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
85683         All uses changed.
85684         (BITSET_WORD_MAX): New macro.
85685         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
85686         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
85687         (bitset_empty, bitset_copy):
85688         Prefer sizeof (bitset) to multiplying it out ourselves.
85689         (bitset_not_merge): Remove; unused.
85690         (bitset_contain): Return bool, not unsigned int with one bit on.
85691         All callers changed.
85692         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
85693         alignment than re_node_set; do this by defining a new internal
85694         type struct dests_alloc and using it to allocate memory.
85695
85696 2005-09-05  Bruno Haible  <bruno@clisp.org>
85697
85698         * gnulib-tool (func_import): Fix comparison in handling of symbolic
85699         links.
85700
85701 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
85702
85703         * modules/size_max (Makefile.am): Add size_max.h
85704
85705 2005-09-04  Derek Price  <derek@ximbiot.com>
85706
85707         * gnulib-tool (func_import): Fix reversed $symbolic logic.
85708
85709 2005-09-03  Simon Josefsson  <jas@extundo.com>
85710
85711         * gnulib-tool: Fix typo.
85712
85713 2005-09-03  Simon Josefsson  <jas@extundo.com>
85714
85715         * config/srclist.txt: Add glibc bug 1293.
85716
85717 2005-09-03  Derek Price  <derek@ximbiot.com>
85718
85719         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
85720         From Larry Jones <lawrence.jones@ugs.com>.
85721
85722 2005-09-02  Simon Josefsson  <jas@extundo.com>
85723
85724         * modules/socklen: New file.
85725
85726 2005-09-02  Simon Josefsson  <jas@extundo.com>
85727
85728         * modules/havelib: New module.
85729
85730         * modules/gettext, modules/iconv, modules/lock, modules/readline:
85731         Use havelib.
85732
85733 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85734
85735         Check for arithmetic overflow when calculating sizes, to prevent
85736         some buffer-overflow issues.  These patches are conservative, in the
85737         sense that when I couldn't determine whether an overflow was possible,
85738         I inserted a run-time check.
85739         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
85740         macros.
85741         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
85742         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
85743         (re_xnrealloc, re_x2nrealloc): New inline functions.
85744         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
85745         parse_bracket_exp):
85746         (build_equiv_class, build_charclass): Check for arithmetic overflow
85747         in size expression calculations.
85748         * lib/regex_internal.c (re_string_realloc_buffers):
85749         (build_wcs_upper_buffer, re_node_set_add_intersect):
85750         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
85751         (re_dfa_add_node, register_state): Likewise.
85752         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
85753         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
85754         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
85755         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
85756
85757 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85758
85759         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85760         m4/ulonglong.m4.  Problem reported by Martin Lambers.
85761
85762 2005-09-02  Bruno Haible  <bruno@clisp.org>
85763
85764         Support for lib vs. lib64 distinction on biarch platforms.
85765         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
85766         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
85767         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
85768
85769 2005-09-02  Bruno Haible  <bruno@clisp.org>
85770
85771         * gnulib-tool (import): In the other first-use case, provide defaults
85772         as well.
85773
85774 2005-09-02  Bruno Haible  <bruno@clisp.org>
85775
85776         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
85777         patches not yet found in the latest gettext release.
85778
85779 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85780
85781         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
85782         to avoid a collision with bits/local_lim.h in glibc.
85783         All uses changed.  Problem reported by Dmitry V. Levin in
85784         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
85785
85786         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
85787         bugs in int versus size_t comparisons.
85788         (re_string_context_at): Fix bug where the code assumed that
85789         Idx is signed.
85790
85791         Use bool where appropriate.
85792         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
85793         All callers changed.
85794         (calc_eclosure_iter): Likewise, for ROOT arg.
85795         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
85796         (build_charclass_op): Likewise, for NON_MATCH arg.
85797         * lib/regex_internal.c (re_string_allocate, re_string_construct):
85798         (re_string_construct_common): Likewise, for ICASE arg.
85799         * lib/regexec.c (re_search_2_stub, re_search_stub):
85800         Likewise, for RET_LEN arg.
85801         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
85802         (set_regs): Likewise, for FL_BACKTRACK arg.
85803         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
85804         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
85805         (calc_eclosure_iter, parse_bracket_exp):
85806         Use bool for internal variables that are booleans.
85807         * lib/regexec.c (re_search_internal, check_matching,
85808         proceed_next_node):
85809         (set_regs, build_sifted_states, sift_states_bkref):
85810         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
85811         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85812         (find_collation_sequence_value):
85813         Likewise.
85814         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
85815         (re_node_set_compare):
85816         Return bool, not int. All callers changed.
85817         * lib/regexec.c (check_halt_node_context, check_dst_limits):
85818         (build_trtable, check_node_accept): Likewise.
85819         * lib/regex_internal.h: Include stdbool.h.
85820
85821         Fix bugs uncovered when converting to bool.
85822         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
85823         failure instead of charging ahead blindly.
85824         * lib/regex_internal.c (register_state): Likewise.
85825         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
85826         for freeing internal storage.
85827         (group_nodes_into_DFA_states): Use unsigned int, not int, for
85828         bitset pieces used as boolean, to avoid undefined behavior
85829         on hosts that do int overflow checking.
85830
85831 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85832
85833         * config/srclist.txt: Add glibc bugs 1285-1287.
85834
85835 2005-09-01  Jim Meyering  <jim@meyering.net>
85836
85837         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
85838         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
85839         Require gl_STAT_MACROS, too.
85840
85841 2005-09-01  Bruno Haible  <bruno@clisp.org>
85842
85843         * gnulib-tool (import): In the first-use case, provide defaults.
85844
85845 2005-09-01  Bruno Haible  <bruno@clisp.org>
85846
85847         * gnulib-tool (func_import): Remove the .tmp files.
85848
85849 2005-09-01  Bruno Haible  <bruno@clisp.org>
85850
85851         * gnulib-tool (func_import): Fix handling of symbolic links.
85852
85853 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85854
85855         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
85856         old glibc regex code mishandles strings longer than 2**31 bytes.
85857         This patch fixes this when the regex code is used in gnulib
85858         (i.e., outside glibc).
85859
85860         This patch should not affect the use of the regex code inside
85861         glibc.  No doubt this problem also needs to be handled for glibc
85862         as well, but the result will be an incompatible change to the
85863         glibc ABI, and the old ABI will have to be supported too.  That
85864         can be the the subject for another patch.
85865
85866         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
85867         governing whether the rest of this patch is active.  By default,
85868         the macro is disabled and the patch has no effect.
85869         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
85870         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
85871         (struct re_pattern_buffer, re_search, re_search_2, re_match):
85872         (re_match_2, re_set_registers): Use the new types.
85873         * lib/regex_internal.h (Idx, re_hashval_t): New types.
85874         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
85875         New macros.
85876         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
85877         (re_string_context_at, bin_tree_t, re_dfastate_t):
85878         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
85879         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
85880         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
85881         (re_string_char_size_at, re_string_wchar_at):
85882         (re_string_elem_size_at):
85883         Use the new types and macros to port to 64-bit hosts.
85884         Use unsigned types for internal values, so that the code
85885         mostly works even for arrays larger than SSIZE_MAX.
85886         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
85887         (search_duplicated_node, calc_eclosure_iter, fetch_number):
85888         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
85889         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
85890         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
85891         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
85892         (calc_inveclosure, parse_dup_op, build_range_exp):
85893         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
85894         (fetch_number, create_token_tree, mark_opt_subexp):
85895         Likewise.
85896         * lib/regex_internal.c (re_string_construct_common,
85897         create_ci_newstate):
85898         (create_cd_newstate, re_string_allocate, re_string_construct):
85899         (re_string_realloc_buffers, build_wcs_upper_buffer):
85900         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85901         (re_string_reconstruct, re_string_peek_byte_case):
85902         (re_string_fetch_byte_case, re_string_context_at):
85903         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85904         (re_node_set_init_copy, re_node_set_add_intersect):
85905         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85906         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85907         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85908         (re_acquire_state, re_acquire_state_context, register_state):
85909         Likewise.
85910         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
85911         search_cur_bkref_entry):
85912         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
85913         (re_search_internal, re_search_2_stub, re_search_stub)
85914         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
85915         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
85916         (update_cur_sifted_state, check_dst_limits):
85917         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85918         (check_subexp_limits, sift_states_bkref, merge_state_array):
85919         (check_subexp_matching_top, get_subexp, get_subexp_sub):
85920         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
85921         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85922         (expand_bkref_cache, check_node_accept_bytes):
85923         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
85924         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
85925         (acquire_init_state_context, check_halt_node_context):
85926         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
85927         (sift_states_backward, clean_state_log_if_needed):
85928         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
85929         (find_recover_state, transit_state_sb, transit_state_mb):
85930         (transit_state_bkref, build_trtable, match_ctx_clean):
85931         Likewise.
85932         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
85933         to work around an assumption that REG_MISSING is negative.
85934
85935         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
85936         (seek_collating_symbol_entry) [defined _LIBC]:
85937         (lookup_collation_sequence_value) [defined _LIBC]:
85938         (build_range_exp, build_collating_symbol) [defined _LIBC]:
85939         Use prototypes rather than old-style function definitions.
85940         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
85941         (transit_state_sb) [0]:
85942         (find_collation_sequence_value) [defined _LIBC]: Likewise.
85943
85944         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
85945         rm_eo.
85946
85947         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
85948         (optimize_subexps, lower_subexp):
85949         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
85950         since the signed shift might overflow.  Use 1u<<31 instead.
85951         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85952         Likewise.
85953         * lib/regexec.c (check_dst_limits_calc_pos_1,
85954         check_subexp_matching_top): Likewise.
85955
85956         * lib/regcomp.c (optimize_subexps, lower_subexp):
85957         Use CHAR_BIT rather than 8, for clarity.
85958         * lib/regexec.c (check_dst_limits_calc_pos_1):
85959         (check_subexp_matching_top): Likewise.
85960         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
85961         have to worry about portability issues when shifting it left.
85962         Remove no-longer-needed test for table_size > 0.
85963         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
85964         in a word, as the resulting behavior is undefined.
85965         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
85966         in one case, a <= should have been an <, and in another case the
85967         whole test was missing.
85968         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
85969         the standard name CHAR_BIT.
85970         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
85971         this is not true on one's complement and signed-magnitude hosts.
85972
85973         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
85974         next_last_offset.
85975         (struct re_dfa_t): Remove unused member states_alloc.
85976         * lib/regcomp.c (init_dfa): Don't initialize unused members.
85977
85978 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85979
85980         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
85981         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
85982         and large-file glibc and in 32-bit large-file Solaris.
85983
85984 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85985
85986         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
85987         lengths fit in regoff_t; this isn't true if regoff_t is the same
85988         width as size_t.
85989         * lib/regex.c (re_search_internal): 5th arg is LAST_START
85990         (= START + RANGE) instead of RANGE.  This avoids overflow
85991         problems when regoff_t is the same width as size_t.
85992         All callers changed.
85993         (re_search_2_stub): Check for overflow when adding the
85994         sizes of the two strings.
85995         (re_search_stub): Check for overflow when adding START
85996         to RANGE; if it occurs, substitute the extreme value.
85997
85998 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85999
86000         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
86001
86002 2005-08-31  Jim Meyering  <jim@meyering.net>
86003
86004         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
86005         a pointer-to-const.
86006         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
86007         (register_state): Likewise.
86008         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
86009         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86010         (group_nodes_into_DFAstates): Likewise.
86011
86012 2005-08-31  Jim Meyering  <jim@meyering.net>
86013
86014         * check-module: Add a FIXME comment.
86015
86016 2005-08-31  Eric Blake  <ebb9@byu.net>
86017
86018         * modules/unistd-safer (Files): Add unistd--.h.
86019         * modules/stdio-safer (Files): Add stdio--.h.
86020
86021 2005-08-31  Derek Price  <derek@ximbiot.com>
86022
86023         * lib/getdelim.c (getdelim): Return EOF on EOF.
86024         Reported by Larry Jones <lawrence.jones@ugs.com>.
86025
86026 2005-08-31  Bruno Haible  <bruno@clisp.org>
86027
86028         Avoid unnecessary diffs in the generated lib/Makefile.am.
86029         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
86030         the generated files.
86031         (func_import): Don't set cmd.
86032
86033 2005-08-31  Bruno Haible  <bruno@clisp.org>
86034
86035         * lib/strstr.c: Include <stddef.h>, for NULL.
86036         * lib/strcasestr.c: Likewise.
86037         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86038
86039 2005-08-31  Bruno Haible  <bruno@clisp.org>
86040
86041         * gnulib-tool: New option --macro-prefix.
86042         (func_import): Use macro_prefix.
86043         (import): Handle option --macro-prefix.
86044
86045 2005-08-31  Bruno Haible  <bruno@clisp.org>
86046
86047         * gnulib-tool (import): Rename most ac_* variables to cached_*.
86048         Also use new variables cached_lgpl, cached_libtool.
86049
86050 2005-08-31  Bruno Haible  <bruno@clisp.org>
86051
86052         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
86053         always instantiating them.
86054
86055 2005-08-31  Bruno Haible  <bruno@clisp.org>
86056
86057         * gnulib-tool (func_import): Read the previous cached settings
86058         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
86059         earlier added by gnulib but are now dropped. Warn when a gnulib file
86060         overwrites a non-gnulib file.
86061
86062 2005-08-31  Bruno Haible  <bruno@clisp.org>
86063
86064         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
86065         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
86066         projects that don't keep autogenerated files in CVS. Put into
86067         actioncmd only the specified modules, not the transitive closure.
86068
86069 2005-08-31  Bruno Haible  <bruno@clisp.org>
86070
86071         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
86072         Create directories that shall be filled.
86073         (import): Don't look for gl_* macros in configure.ac. Recurse across
86074         all directories containing a gnulib-cache.m4 files, if meaningful.
86075
86076 2005-08-31  Bruno Haible  <bruno@clisp.org>
86077
86078         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
86079         (import): Set seen_libtool when we see gl_LIBTOOL.
86080
86081 2005-08-31  Bruno Haible  <bruno@clisp.org>
86082
86083         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
86084         declaration macro definitions from generated gnulib.m4.
86085
86086 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
86087
86088         * lib/iconvme.h: Add prototype for iconv_alloc.
86089
86090 2005-08-29  Simon Josefsson  <jas@extundo.com>
86091
86092         * lib/iconvme.c: Fix errno.
86093
86094 2005-08-29  Bruno Haible  <bruno@clisp.org>
86095
86096         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
86097         that it works when the directory contains spaces.
86098
86099 2005-08-29  Bruno Haible  <bruno@clisp.org>
86100
86101         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
86102
86103 2005-08-29  Bruno Haible  <bruno@clisp.org>
86104
86105         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
86106         Emit more advice.
86107
86108 2005-08-29  Bruno Haible  <bruno@clisp.org>
86109         and Stepan Kasal  <kasal@ucw.cz>
86110
86111         * check-module: If more parameters are given, check each of them
86112         separately; add more exceptions, as noted by Jim Meyering.
86113         (check_module): New procedure.
86114         (%exempt_header): Now contains all exceptions.
86115
86116 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
86117
86118         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
86119
86120 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86121
86122         * lib/iconvme.c: Split iconv_string into iconv_alloc.
86123
86124 2005-08-28  Bruno Haible  <bruno@clisp.org>
86125
86126         * m4/gnulib-tool.m4: New file.
86127
86128 2005-08-27  Jim Meyering  <jim@meyering.net>
86129
86130         * modules/unistd-safer (Files): Add pipe-safer.c.
86131         * modules/fcntl-safer (Files): Add creat-safer.c.
86132
86133 2005-08-27  Jim Meyering  <jim@meyering.net>
86134
86135         * m4/stdlib-safer.m4: New file.  From coreutils.
86136         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
86137         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
86138         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
86139         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
86140         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
86141
86142 2005-08-27  Jim Meyering  <jim@meyering.net>
86143
86144         * lib/fopen-safer.c: Merge minor changes from coreutils.
86145         * lib/dup-safer.c: Likewise.
86146         * lib/fd-safer.c: Likewise.
86147
86148         Merge from coreutils.
86149         * lib/stdio--.h: New file.
86150         * lib/stdlib--.h: New file.
86151         * lib/mkstemp-safer.c: New file.
86152
86153         GNU tar needs these.
86154         * lib/pipe-safer.c: New file.
86155         * lib/creat-safer.c: New file.
86156         * lib/fcntl--.h (creat): Define to creat_safer.
86157         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
86158         * lib/unistd--.h (pipe): Define to pipe_safer.
86159         * lib/unistd-safer.h: Declare pipe_safer.
86160
86161 2005-08-26  Simon Josefsson  <jas@extundo.com>
86162
86163         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
86164         Haible <bruno@clisp.org>.
86165
86166 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
86167
86168         * lib/regex_internal.h: Remove all references to
86169         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
86170         or better.
86171         (bitset_not, bitset_merge, bitset_not_merge):
86172         (bitset_mask, re_string_allocate, re_string_construct):
86173         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
86174         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
86175         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
86176         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
86177         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86178         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86179         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
86180         (re_acquire_state_context):
86181         Remove unnecessary forward decls.
86182         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
86183         Put __attribute at function definition,
86184         now that the function decl has been removed.
86185         * lib/regex_internal.c (re_string_peek_byte_case):
86186         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
86187         Likewise.
86188
86189 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
86190
86191         * m4/regex.m4: Add AC_PREREQ(2.50).
86192         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
86193
86194 2005-08-25  Simon Josefsson  <jas@extundo.com>
86195
86196         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
86197         __fsetlocking.
86198
86199 2005-08-25  Simon Josefsson  <jas@extundo.com>
86200
86201         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
86202         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
86203         GLIBC specific code.
86204
86205 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86206
86207         Make regex safe for g++.  This fixes one real bug (an "err"
86208         that should have been "*err").  g++ problem reported by
86209         Sam Steingold.
86210         * lib/regex_internal.h (re_calloc): New macro, consistent with
86211         re_malloc etc.  All callers of calloc changed to use re_calloc.
86212         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
86213         not int.  All callers changed.
86214         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
86215         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
86216         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
86217         (find_recover_state): Change "err" to "*err"; this fixes what
86218         appears to be a real bug.
86219         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
86220         versus int.
86221
86222 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86223
86224         * modules/regex (Depends-on): Add malloc, since the code
86225         assumes that !malloc(0) means failure.
86226
86227 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86228
86229         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
86230
86231         alloca modernization/simplification for regex.
86232         * lib/regex.c: Remove portability cruft for alloca.  This no longer
86233         needs to be at the start of the file, and can be moved into
86234         regex_internal.h and simplified.
86235         * lib/regex_internal.h: Include <alloca.h>.
86236         (__libc_use_alloca) [!defined _LIBC]: New macro.
86237         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
86238         now works outside glibc.
86239
86240 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86241
86242         * config/srclist.txt: Add glibc bugs 1241, 1245.
86243
86244 2005-08-25  Jim Meyering  <jim@meyering.net>
86245
86246         * lib/open-safer.c: Include <config.h>.
86247         Otherwise, we'd lose LARGEFILE support in any file using
86248         e.g. "fcntl--.h"
86249
86250 2005-08-25  Bruno Haible  <bruno@clisp.org>
86251
86252         * m4/minmax.m4: Require autoconf 2.52.
86253         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
86254         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
86255         alternatives of translit over the alphabet.
86256         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
86257
86258 2005-08-24  Simon Josefsson  <jas@extundo.com>
86259
86260         * tests/test-getpass.c: New file.
86261
86262 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86263
86264         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
86265         for GNU regex features.
86266
86267 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86268
86269         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
86270         * lib/regex.h (regerror): Likewise.
86271
86272         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
86273         requires this.  (The code never needed it.)
86274
86275         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
86276         All uses of recently-renamed identifiers changed to use the new,
86277         POSIX-compliant names.  The code will build and run just fine
86278         without these changes, but it's better to eat our own dog food
86279         and use the standard-conforming names.
86280
86281         * lib/regex.h: Fix a multitude of POSIX name space violations.
86282         These changes have an effect only for programs that define
86283         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
86284         do not change anything for programs compiled in the normal way.
86285         Also, there is no effect on the ABI.
86286
86287         (_REGEX_SOURCE): New macro.
86288         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
86289         defined and _GNU_SOURCE is not; this fixes a name space violation.
86290
86291         Rename the following macros to obey POSIX requirements.
86292         The old names are still visible as macros if _REGEX_SOURCE is defined.
86293         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
86294         RE_BACKSLASH_ESCAPE_IN_LISTS.
86295         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
86296         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
86297         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
86298         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
86299         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
86300         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
86301         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
86302         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
86303         (REG_INTERVALS): renamed from RE_INTERVALS.
86304         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
86305         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
86306         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
86307         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
86308         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
86309         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
86310         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
86311         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
86312         RE_UNMATCHED_RIGHT_PAREN_ORD.
86313         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
86314         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
86315         (REG_DEBUG): renamed from RE_DEBUG.
86316         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
86317         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
86318         unusual, since we can't clash with the POSIX REG_ICASE.
86319         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
86320         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
86321         (REG_NO_SUB): renamed from RE_NO_SUB.
86322         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
86323         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86324         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86325         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86326         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86327         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86328         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86329         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86330         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86331         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86332         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86333         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86334         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86335         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86336         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86337         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86338         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86339         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86340         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86341         (REG_FIXED): Renamed from REGS_FIXED.
86342         (REG_NREGS): Renamed from RE_NREGS.
86343
86344         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86345         of other REG_* macros, since POSIX says the user is allowed to
86346         #undef these macros selectively.
86347
86348         (reg_errcode_t): Update comment stating what other tables need
86349         to be consistent.
86350
86351         Rename the following enum values to obey POSIX requirements.
86352         The old names are still visible as macros.
86353         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86354         is not defined, since GNU is supposed to be a superset of POSIX as
86355         much as possible, and since we want reg_errcode_t to be a signed
86356         type for implementation consistency.
86357         (_REG_NOERROR): Renamed from REG_NOERROR.
86358         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86359         (_REG_BADPAT): Renamed from REG_BADPAT.
86360         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86361         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86362         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86363         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86364         (_REG_EBRACK): Renamed from REG_EBRACK.
86365         (_REG_EPAREN): Renamed from REG_EPAREN.
86366         (_REG_EBRACE): Renamed from REG_EBRACE.
86367         (_REG_BADBR): Renamed from REG_BADBR.
86368         (_REG_ERANGE): Renamed from REG_ERANGE.
86369         (_REG_ESPACE): Renamed from REG_ESPACE.
86370         (_REG_BADRPT): Renamed from REG_BADRPT.
86371         (_REG_EEND): Renamed from REG_EEND.
86372         (_REG_ESIZE): Renamed from REG_ESIZE.
86373         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86374         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86375         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86376         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86377         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86378
86379         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86380         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86381         changed.  But support the old name if the new one is not defined
86382         and if _REGEX_SOURCE.
86383
86384         Change the following member names in struct re_pattern_buffer.
86385         The old names are still supported if !_REGEX_SOURCE.
86386         The new names are always supported, regardless of _REGEX_SOURCE.
86387         (re_buffer): Renamed from buffer.
86388         (re_allocated): Renamed from allocated.
86389         (re_used): Renamed from used.
86390         (re_syntax): Renamed from syntax.
86391         (re_fastmap): Renamed from fastmap.
86392         (re_translate): Renamed from translate.
86393         (re_can_be_null): Renamed from can_be_null.
86394         (re_regs_allocated): Renamed from regs_allocated.
86395         (re_fastmap_accurate): Renamed from fastmap_accurate.
86396         (re_no_sub): Renamed from no_sub.
86397         (re_not_bol): Renamed from not_bol.
86398         (re_not_eol): Renamed from not_eol.
86399         (re_newline_anchor): Renamed from newline_anchor.
86400
86401         Change the following member names in struct re_registers.
86402         The old names are still supported if !_REGEX_SOURCE.
86403         The new names are always supported, regardless of _REGEX_SOURCE.
86404         (rm_num_regs): Renamed from num_regs.
86405         (rm_start): Renamed from start.
86406         (rm_end): Renamed from end.
86407
86408         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86409         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86410         Prepend __ to parameter names.
86411
86412         Undo yesterday's changes.
86413
86414 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86415
86416         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86417         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86418         lib/regex.c.
86419
86420 2005-08-24  Jim Meyering  <jim@meyering.net>
86421
86422         Sync from coreutils.
86423         * m4/fcntl-safer.m4: New file.
86424
86425         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86426         and object files for this module.
86427
86428 2005-08-24  Jim Meyering  <jim@meyering.net>
86429
86430         Sync from coreutils.
86431         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86432
86433 2005-08-24  Jim Meyering  <jim@meyering.net>
86434
86435         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86436         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86437
86438 2005-08-24  Jim Meyering  <jim@meyering.net>
86439
86440         * modules/fcntl-safer: New module.
86441         * modules/fts (Depends-on): Add fcntl-safer.
86442         * MODULES.html.sh (File descriptor based Input/Output):
86443         Add fcntl-safer.
86444
86445 2005-08-24  Bruno Haible  <bruno@clisp.org>
86446
86447         Support for unit test modules.
86448         * modules/README: Mention tests modules.
86449         * modules/TEMPLATE-TESTS: New file.
86450         * gnulib-tool: New options --extract-tests-module, --with-tests and
86451         --tests-base (unused for the moment).
86452         (testsbase, inctests): New variables.
86453         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86454         (func_verify_module): Exclude TEMPLATE-TESTS.
86455         (func_verify_nontests_module, func_verify_tests_module): New functions.
86456         (func_get_dependencies): Add implicit dependency for tests modules.
86457         (func_get_tests_module): New function.
86458         (func_modules_transitive_closure): When --with-tests was specified,
86459         include the unit tests as well, unless explicitly avoided.
86460         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86461         (func_emit_tests_Makefile_am): New function.
86462         (func_create_testdir): When --with-tests was specified, emit a
86463         tests/ directory.
86464         * MODULES.html.sh (Future developments): Update.
86465
86466 2005-08-24  Bruno Haible  <bruno@clisp.org>
86467
86468         * modules/tls-tests: New file.
86469         * tests/test-tls.c: New file, from GNU gettext.
86470
86471 2005-08-24  Bruno Haible  <bruno@clisp.org>
86472
86473         * modules/lock-tests: New file.
86474         * tests/test-lock.c: New file, from GNU gettext.
86475
86476 2005-08-24  Bruno Haible  <bruno@clisp.org>
86477
86478         * lib/lock.h: Add multiple inclusion guard.
86479         * lib/tls.h: Add multiple inclusion guard.
86480
86481 2005-08-24  Bruno Haible  <bruno@clisp.org>
86482
86483         * gnulib-tool: Add support for the --aux-dir option to
86484         --create-testdir, --create-megatestdir, --test, --megatest.
86485         (func_create_testdir, func_create_megatestdir): Optionally emit a
86486         AC_CONFIG_AUX_DIR directive.
86487         (create-testdir, create-megatestdir, test, megatest): Provide a
86488         default value for $auxdir.
86489
86490 2005-08-24  Bruno Haible  <bruno@clisp.org>
86491
86492         * gnulib-tool (import): Use compound statement instead of subshell
86493         where possible.
86494
86495 2005-08-24  Bruno Haible  <bruno@clisp.org>
86496
86497         * gnulib-tool (import): Change --aux-dir default to "build-aux".
86498
86499 2005-08-24  Bruno Haible  <bruno@clisp.org>
86500
86501         * gnulib-tool (func_version): Update.
86502
86503 2005-08-24  Bruno Haible  <bruno@clisp.org>
86504
86505         * gnulib-tool (func_import, func_create_testdir,
86506         func_create_megatestdir): Quote all autoconf macro arguments.
86507
86508 2005-08-24  Bruno Haible  <bruno@clisp.org>
86509
86510         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
86511         option --force, because --force causes the aclocal.m4 of each
86512         subdirectory to be newer than the corresponding config.h.in.
86513
86514 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86515
86516         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
86517         All contents moved to gl_REGEX.
86518         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
86519         assume that it does.
86520
86521 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86522
86523         * lib/regex.h (REG_NOSYS)
86524         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
86525         Define, since POSIX requires it as of 2001.
86526         (_REG_ENOSYS)
86527         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
86528         New private symbol, used to keep the enum signed in all cases.
86529         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
86530         Youngman in
86531         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
86532
86533         * lib/regex_internal.c (re_string_skip_chars, register_state):
86534         (calc_state_hash):
86535         Remove forward decls; no longer needed now that we use prototypes.
86536         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
86537         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
86538         (clean_state_log_if_needed): Likewise.
86539
86540 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86541
86542         * config/srclist.txt: Add glibc bugs 1231-1233.
86543
86544 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86545
86546         Fix problems reported by Sam Steingold in
86547         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
86548         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
86549         assumed that reg_errcode_t is a signed type, which is not
86550         necessarily true if _XOPEN_SOURCE is not defined.
86551         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
86552         since some compilers warn about it otherwise.
86553
86554 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86555
86556         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
86557         (init_word_char, create_initial_state, duplicate_node_closure):
86558         (fetch_token, peek_token_bracket, build_range_exp):
86559         (build_collating_symbol): Remove forward decls; no longer needed
86560         now that we use prototypes.
86561
86562         * lib/regcomp.c:
86563         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
86564         (re_compile_fastmap_iter, regcomp, regerror, regfree):
86565         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
86566         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
86567         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
86568         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
86569         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
86570         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
86571         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
86572         (build_range_exp, build_collating_symbol, parse_bracket_exp):
86573         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
86574         (build_charclass, build_charclass_op, fetch_number, create_tree):
86575         (create_token_tree, mark_opt_subexp, duplicate_tree):
86576         Use prototypes rather than old-style definitions.
86577
86578         * lib/regex_internal.c:
86579         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
86580         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
86581         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86582         (re_string_reconstruct, re_string_peek_byte_case):
86583         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
86584         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86585         (re_node_set_init_copy, re_node_set_add_intersect):
86586         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86587         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86588         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86589         (re_acquire_state, re_acquire_state_context, register_state):
86590         (create_ci_newstate, create_cd_newstate, free_state):
86591         Likewise.
86592         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
86593         re_search_2):
86594         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
86595         (re_search_internal, prune_impossible_nodes):
86596         (acquire_init_state_context, check_matching, static):
86597         (check_halt_node_context, check_halt_state_context, proceed_next_node):
86598         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
86599         (update_regs, sift_states_backward, build_sifted_states):
86600         (clean_state_log_if_needed, merge_state_array):
86601         (update_cur_sifted_state, add_epsilon_src_nodes):
86602         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
86603         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
86604         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
86605         (find_recover_state, check_subexp_matching_top, transit_state_mb):
86606         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
86607         (check_arrival, check_arrival_add_next_nodes):
86608         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86609         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86610         (check_node_accept_bytes, check_node_accept, extend_buffers):
86611         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
86612         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
86613         (sift_ctx_init):
86614         Likewise.
86615
86616         * lib/regex_internal.h:
86617         (re_string_allocate, re_string_construct, re_string_reconstruct):
86618         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
86619         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
86620         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
86621         (re_string_context_at, re_string_peek_byte_case):
86622         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
86623         is defined, since we now use prototypes always.
86624
86625         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
86626         C89 or better.  All uses removed.
86627
86628 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86629
86630         * config/srclist.txt: Add glibc bugs 1220-1227.
86631
86632 2005-08-20  Jim Meyering  <jim@meyering.net>
86633
86634         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
86635         of unused local, dfa.
86636
86637 2005-08-20  Bruno Haible  <bruno@clisp.org>
86638
86639         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
86640
86641 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86642
86643         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
86644         (re_node_set_insert_last, re_dfa_add_node):
86645         Rename local variables to avoid GCC shadowing warnings.
86646
86647 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86648
86649         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
86650         [defined lint]: Suppress bogus uninitialized-variable warnings.
86651
86652         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
86653         and let the caller return REG_ESPACE if out of space.  This
86654         removes an uninitialied-variable warning with GCC 4.0.1, and also
86655         avoids taking the address of a local variable.  All callers
86656         changed.
86657
86658 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86659
86660         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
86661         $LIBCSRC/posix/regexec.c.
86662         Add glibc bug 1217 for regcomp.c.
86663
86664 2005-08-19  Jim Meyering  <jim@meyering.net>
86665
86666         * lib/regexec.c (proceed_next_node): Redo local variables to
86667         avoid GCC shadowing warnings.
86668
86669 2005-08-18  Bruno Haible  <bruno@clisp.org>
86670
86671         * lib/strstr.c (strstr): Fix return value in multibyte case.
86672         * lib/strcasestr.c (strcasestr): Likewise.
86673
86674 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86675
86676         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
86677
86678 2005-08-17  Jim Meyering  <jim@meyering.net>
86679
86680         Make the %s format (seconds since the epoch) work for a negative
86681         number and when used with a zero-padded field width, e.g. %015s.
86682
86683         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
86684         label so that it precedes the code to set `digits'.  Otherwise,
86685         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
86686         print `00-22'.  Now, it prints `-0022', as it should.
86687
86688 2005-08-17  Bruno Haible  <bruno@clisp.org>
86689
86690         * modules/strstr (Files): Add m4/mbrtowc.m4.
86691         (Depends-on): Add mbuiter.
86692
86693 2005-08-17  Bruno Haible  <bruno@clisp.org>
86694
86695         * modules/strcasestr: New file.
86696         * MODULES.html.sh (String handling, based on ANSI C 89): Add
86697         strcasestr.
86698
86699 2005-08-17  Bruno Haible  <bruno@clisp.org>
86700
86701         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
86702
86703 2005-08-17  Bruno Haible  <bruno@clisp.org>
86704
86705         * modules/mbuiter: New file.
86706         * MODULES.html.sh (Extended multibyte and wide character utilities):
86707         Add mbuiter.
86708
86709 2005-08-17  Bruno Haible  <bruno@clisp.org>
86710
86711         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
86712         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
86713
86714 2005-08-17  Bruno Haible  <bruno@clisp.org>
86715
86716         * m4/strcasestr.m4: New file.
86717
86718 2005-08-17  Bruno Haible  <bruno@clisp.org>
86719
86720         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
86721         * lib/strstr.c: Completely rewritten, with multibyte locale support.
86722
86723 2005-08-17  Bruno Haible  <bruno@clisp.org>
86724
86725         * lib/strcasestr.h: New file.
86726         * lib/strcasestr.c: New file.
86727
86728 2005-08-17  Bruno Haible  <bruno@clisp.org>
86729
86730         * lib/strcasecmp.c: Use mbuiter.h.
86731
86732 2005-08-17  Bruno Haible  <bruno@clisp.org>
86733
86734         * lib/mbuiter.h: New file.
86735
86736 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
86737
86738         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
86739         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
86740         and gl_GETOPT are both invoked via different paths (as happens
86741         with GNU tar CVS because it uses both argp and getopt), the former
86742         wins.
86743
86744 2005-08-16  Bruno Haible  <bruno@clisp.org>
86745
86746         * modules/tls: New file.
86747         * MODULES.html.sh (Multithreading): Add tls.
86748
86749 2005-08-16  Bruno Haible  <bruno@clisp.org>
86750
86751         * modules/strnlen1: New file.
86752         * MODULES.html.sh (String handling): Add strnlen1.
86753
86754 2005-08-16  Bruno Haible  <bruno@clisp.org>
86755
86756         * modules/strcase (Files): Add m4/mbrtowc.m4.
86757         (Depends-on): Add strnlen1, mbchar.
86758
86759 2005-08-16  Bruno Haible  <bruno@clisp.org>
86760
86761         * modules/mbiter: New file.
86762         * MODULES.html.sh (Extended multibyte and wide character utilities):
86763         Add mbiter.
86764
86765 2005-08-16  Bruno Haible  <bruno@clisp.org>
86766
86767         * modules/mbfile: New file.
86768         * MODULES.html.sh (Extended multibyte and wide character utilities):
86769         Add mbfile.
86770
86771 2005-08-16  Bruno Haible  <bruno@clisp.org>
86772
86773         * modules/mbchar: New file.
86774         * MODULES.html.sh (Extended multibyte and wide character utilities):
86775         New section.
86776
86777 2005-08-16  Bruno Haible  <bruno@clisp.org>
86778
86779         * m4/tls.m4: New file, from GNU gettext.
86780
86781 2005-08-16  Bruno Haible  <bruno@clisp.org>
86782
86783         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
86784         always.
86785         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
86786
86787 2005-08-16  Bruno Haible  <bruno@clisp.org>
86788
86789         * m4/mbiter.m4: New file.
86790
86791 2005-08-16  Bruno Haible  <bruno@clisp.org>
86792
86793         * m4/mbfile.m4: New file.
86794
86795 2005-08-16  Bruno Haible  <bruno@clisp.org>
86796
86797         * m4/mbchar.m4: New file.
86798
86799 2005-08-16  Bruno Haible  <bruno@clisp.org>
86800
86801         * lib/tls.h: New file, from GNU gettext.
86802         * lib/tls.c: New file, from GNU gettext.
86803
86804 2005-08-16  Bruno Haible  <bruno@clisp.org>
86805
86806         * lib/strnlen1.h: New file.
86807         * lib/strnlen1.c: New file.
86808
86809 2005-08-16  Bruno Haible  <bruno@clisp.org>
86810
86811         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
86812         (mbi_init): Update.
86813         (mbi_avail, mbi_advance): Let the iteration end before the terminating
86814         NUL byte, not after it.
86815
86816 2005-08-16  Bruno Haible  <bruno@clisp.org>
86817
86818         * lib/strcase.h (strcasecmp): Add note in comments.
86819         * lib/strncasecmp.c: Use code from strcasecmp.c.
86820         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
86821         (strcasecmp): Work correctly in multibyte locales.
86822
86823 2005-08-16  Bruno Haible  <bruno@clisp.org>
86824
86825         * lib/mbiter.h: New file.
86826
86827 2005-08-16  Bruno Haible  <bruno@clisp.org>
86828
86829         * lib/mbfile.h: New file.
86830
86831 2005-08-16  Bruno Haible  <bruno@clisp.org>
86832
86833         * lib/mbchar.h: New file.
86834         * lib/mbchar.c: New file.
86835
86836 2005-08-16  Bruno Haible  <bruno@clisp.org>
86837
86838         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
86839         the valid ones. Makes the comparison operations transitive:
86840         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
86841         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
86842
86843 2005-08-15  Simon Josefsson  <jas@extundo.com>
86844
86845         * modules/ssize_t (License): Change to 'unlimited'.
86846
86847         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
86848
86849 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86850
86851         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
86852         Add comments for each pending glibc patch.
86853
86854 2005-08-15  Bruno Haible  <bruno@clisp.org>
86855
86856         * lib/regex.h (__restrict_arr): Don't define to __restrict if
86857         __cplusplus is defined.
86858
86859 2005-08-14  Jim Meyering  <jim@meyering.net>
86860
86861         Sync from coreutils.
86862
86863         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
86864         Use the hash-table-based cycle-detection code not just when
86865         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
86866         Reported by James Youngman in
86867         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
86868         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
86869         FTS_TIGHT_CYCLE_CHECK.
86870         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
86871         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
86872         once again.
86873         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
86874         * lib/fts.c (fd_safer): Remove decl.
86875         Include fcntl--.h rather than unistd-safer.h
86876         (fts_safe_changedir): Don't call fd_safer; no longer needed
86877         now that we include fcntl--.h.
86878
86879 2005-08-12  Simon Josefsson  <jas@extundo.com>
86880
86881         * modules/getndelim2: Use ssize_t module.
86882         * modules/getnline: Likewise.
86883         * modules/safe-read: Likewise.
86884         * modules/xreadlink: Likewise.
86885
86886         * modules/ssize_t: New file.
86887
86888 2005-08-12  Simon Josefsson  <jas@extundo.com>
86889
86890         * m4/readline.m4: Look for termcap, curses or ncurses if required.
86891
86892 2005-08-12  Simon Josefsson  <jas@extundo.com>
86893
86894         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86895         ssize_t.
86896
86897 2005-08-12  Simon Josefsson  <jas@extundo.com>
86898
86899         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
86900         readline, getdelim and check_version.
86901         (Support for systems lacking ISO C 99: Sizes of integer types):
86902         Add size_max.
86903
86904 2005-08-12  Bruno Haible  <bruno@clisp.org>
86905
86906         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
86907
86908 2005-08-11  Simon Josefsson  <jas@extundo.com>
86909
86910         * modules/readline: New file.
86911
86912         * modules/strnlen (Files): Add strnlen.h.
86913
86914 2005-08-11  Simon Josefsson  <jas@extundo.com>
86915
86916         * m4/readline.m4: New file.
86917
86918 2005-08-11  Simon Josefsson  <jas@extundo.com>
86919
86920         * lib/readline.h, readline.c: New file.
86921
86922 2005-08-11  Simon Josefsson  <jas@extundo.com>
86923
86924         * doc/gnulib.texi (Initial import, Finishing touches): Mention
86925         gl_AVOID.
86926
86927 2005-08-11  Bruno Haible  <bruno@clisp.org>
86928
86929         * lib/strnlen.h (strnlen): Change parameter name to match comment.
86930
86931 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
86932
86933         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
86934
86935 2005-08-10  Simon Josefsson  <jas@extundo.com>
86936
86937         * tests/test-iconvme.c: New file.
86938
86939 2005-08-10  Simon Josefsson  <jas@extundo.com>
86940
86941         * m4/strnlen.m4: New file.
86942
86943         * m4/strndup.m4: Don't check for strnlen declaration, done in
86944         strnlen.m4.
86945
86946 2005-08-10  Simon Josefsson  <jas@extundo.com>
86947
86948         * lib/strndup.c: Use strnlen.h.
86949
86950         * lib/strnlen.h: New file.
86951
86952 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86953
86954         * README: Typos.
86955
86956 2005-08-02  Simon Josefsson  <jas@extundo.com>
86957
86958         * modules/readline: New file.
86959
86960 2005-08-02  Simon Josefsson  <jas@extundo.com>
86961
86962         * modules/getdelim: New file.
86963
86964         * modules/getline: Rewrite, don't use getndelim2.
86965
86966 2005-08-02  Simon Josefsson  <jas@extundo.com>
86967
86968         * m4/getline.m4: Separate out getdelim stuff into separate module.
86969
86970         * m4/getdelim.m4: New file.
86971
86972 2005-08-02  Simon Josefsson  <jas@extundo.com>
86973
86974         * lib/getline.h, getline.c: Rewrite.
86975
86976         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
86977
86978 2005-07-31  Bruno Haible  <bruno@clisp.org>
86979
86980         * lib/lock.h (gl_lock_initializer): New macro.
86981         (gl_lock_define_initialized): Use it.
86982         (gl_rwlock_initializer): New macro.
86983         (gl_rwlock_define_initialized): Use it.
86984         (gl_recursive_lock_initializer): New macro.
86985         (gl_recursive_lock_define_initialized): Use it.
86986
86987 2005-07-30  Karl Berry  <karl@gnu.org>
86988
86989         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
86990         Report from Ben Pfaff, regarding getopt.
86991
86992 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
86993
86994         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
86995         normal way.
86996         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
86997         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
86998         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
86999         (gl_GETOPT): Use the new macros.  Most of the implementation
87000         is moved to the new macros.  This is for programs like Emacs
87001         that don't want all the functionality of gl_GETOPT.
87002
87003 2005-07-26  Bruno Haible  <bruno@clisp.org>
87004
87005         * m4/lock.m4: Update from GNU gettext.
87006
87007 2005-07-26  Bruno Haible  <bruno@clisp.org>
87008
87009         * lib/lock.h: Update from GNU gettext.
87010         * lib/lock.c: Update from GNU gettext.
87011
87012 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
87013
87014         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
87015         obsolescent AC_TRY_RUN.  Include the default includes files, for
87016         'exit'.
87017
87018 2005-07-24  Bruno Haible  <bruno@clisp.org>
87019
87020         * modules/visibility: New file.
87021         * MODULES.html.sh (Misc): Add visibility.
87022
87023 2005-07-24  Bruno Haible  <bruno@clisp.org>
87024
87025         * m4/visibility.m4: New file.
87026
87027 2005-07-24  Bruno Haible  <bruno@clisp.org>
87028
87029         * doc/visibility.texi: New file.
87030
87031 2005-07-22  Bruno Haible  <bruno@clisp.org>
87032
87033         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
87034         $(ALLOCA_H), redundant through BUILT_SOURCES.
87035         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
87036         redundant through BUILT_SOURCES.
87037         * modules/byteswap (Makefile.am): Remove explicit dependency on
87038         $(BYTESWAP_H), redundant through BUILT_SOURCES.
87039         * modules/fnmatch (Makefile.am): Remove explicit dependency on
87040         $(FNMATCH_H), redundant through BUILT_SOURCES.
87041         * modules/getopt (Makefile.am): Remove explicit dependency on
87042         $(GETOPT_H), redundant through BUILT_SOURCES.
87043         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
87044         redundant through BUILT_SOURCES.
87045         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
87046         redundant through BUILT_SOURCES.
87047         * modules/stdbool (Makefile.am): Remove explicit dependency on
87048         $(STDBOOL_H), redundant through BUILT_SOURCES.
87049         * modules/stdint (Makefile.am): Remove explicit dependency on
87050         $(STDINT_H), redundant through BUILT_SOURCES.
87051         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
87052         Remove explicit dependency on $(SYSEXITS_H).
87053         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
87054
87055 2005-07-18  Simon Josefsson  <jas@extundo.com>
87056
87057         * lib/check-version.c (check_version): Accept identical versions too.
87058
87059 2005-07-18  Bruno Haible  <bruno@clisp.org>
87060
87061         * modules/lock: New file.
87062         * MODULES.html.sh (Multithreading): New section.
87063
87064 2005-07-18  Bruno Haible  <bruno@clisp.org>
87065
87066         * m4/lock.m4: New file, from GNU gettext.
87067
87068 2005-07-18  Bruno Haible  <bruno@clisp.org>
87069
87070         * lib/lock.h: New file, from GNU gettext.
87071         * lib/lock.c: New file, from GNU gettext.
87072
87073 2005-07-18  Bruno Haible  <bruno@clisp.org>
87074
87075         * lib/lock.h (gl_once_t): New type.
87076         (gl_once_define, gl_once): New macros.
87077         * lib/lock.c (fresh_once): New variable.
87078         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
87079         functions.
87080
87081 2005-07-16  Simon Josefsson  <jas@extundo.com>
87082
87083         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
87084         workaround, suggested by Bruno.
87085
87086 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87087
87088         * modules/xalloc (Depends-on): Add xalloc-die.
87089         * modules/xvasprintf (Depends-on): Add xalloc-die.
87090
87091 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87092
87093         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
87094         with a minor change.
87095
87096 2005-07-15  Bruno Haible  <bruno@clisp.org>
87097
87098         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
87099         When using lib/poll.c, define poll as rpl_poll.
87100
87101 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
87102
87103         * modules/argp (Depends-on): Remove unlocked-io.
87104
87105 2005-07-14  Derek Price  <derek@ximbiot.com>
87106
87107         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
87108         for glob symlink bug.
87109
87110 2005-07-14  Bruno Haible  <bruno@clisp.org>
87111
87112         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
87113         Instead, test for *_unlocked function declarations directly.
87114
87115 2005-07-11  Simon Josefsson  <jas@extundo.com>
87116
87117         * modules/size_max: New file.
87118
87119         * modules/xsize: Depend on size_max module for size_max.m4.
87120
87121 2005-07-11  Simon Josefsson  <jas@extundo.com>
87122
87123         * lib/size_max.h: New file.
87124
87125 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
87126
87127         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
87128         copyright symbol and the year.
87129         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
87130         (version_etc_va): Use parameterized copyright notice.
87131         Reword to conform to the current GNU coding standards.
87132
87133 2005-07-11  Karl Berry  <karl@gnu.org>
87134
87135         * doc/gnulib.texi (Quoting): new node.
87136         (Initial import): more info, from Patrice.
87137
87138 2005-07-11  Bruno Haible  <bruno@clisp.org>
87139
87140         * gnulib-tool (func_usage): Document option --avoid.
87141         (Command line options): Handle --avoid.
87142         (func_acceptable): New function.
87143         (func_modules_transitive_closure): Use it.
87144
87145 2005-07-11  Bruno Haible  <bruno@clisp.org>
87146
87147         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
87148         Reported by Jim Meyering.
87149
87150 2005-07-10  Bruno Haible  <bruno@clisp.org>
87151
87152         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
87153         Needed when size_t is smaller than 'unsigned int'.
87154         Reported by Paul Eggert.
87155
87156 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87157
87158         * modules/argp (Depends-on): Add unlocked-io
87159
87160 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87161
87162         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
87163         block of defines.
87164
87165 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
87166
87167         * config/srclist.txt: Comment out regcomp.c, since we have a porting
87168         fix now.
87169
87170 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
87171         and Paul Eggert  <eggert@cs.ucla.edu>
87172
87173         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
87174         in wint_t, not wchar_t.  Remove now-unnecessary cast.
87175
87176 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87177
87178         * modules/regex (Files): Add lib/regex_internal.c,
87179         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
87180         (Depends-on): Add extensions.
87181         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
87182
87183 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87184
87185         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
87186         pathconf.
87187         * m4/same.m4 (gl_SAME): Likewise.
87188         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
87189
87190         * m4/regex.m4: Adjust to new libc regex implementation.
87191         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
87192         all the .c and .h parts of (the new) regex.
87193         Quote the m4 stuff better.
87194         Check for RE_ICASE bug of old gnulib.
87195         Check for REG_STARTEND of recent libc.
87196         Rename local variables from jm_* to gl_*.
87197         Quote operand of "test -f".
87198         Say "recent enough" version of libc, not "version 2".
87199         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
87200         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
87201         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
87202         Remove check for btowc, isascii.
87203         Require AM_LANGINFO_CODESET.
87204
87205 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87206
87207         * lib/regex.c, regex.h: Sync from libc.
87208         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
87209         * lib/regexec.c:
87210         New files, synced from libc, except that regex_internal.h
87211         currently has a small porting fix.
87212
87213 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87214
87215         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
87216         regex_internal.c, regexec.c.
87217         Add regex_internal.h too, but as a comment, since the libc version
87218         is currently broken in gnulib mode.
87219
87220 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
87221
87222         Support programs like Emacs that use gnulib but not gettext.
87223         * MODULES.html.sh (Internationalization functions): Add gettext-h.
87224         * modules/gettext-h: New file.
87225         * modules/gettext (Files): Remove lib/gettext.h.
87226         (Depends-on): Add gettext-h.
87227         (Makefile.am): Remove lib_SOURCES.
87228         * modules/argmatch, modules/c-stack, modules/closeout:
87229         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
87230         * modules/execute, modules/file-type, modules/getaddrinfo:
87231         * modules/getopt, modules/human, modules/javacomp:
87232         * modules/javaexec, modules/mkdir-p, modules/obstack:
87233         * modules/openat, modules/pagealign_alloc, modules/pipe:
87234         * modules/quotearg, modules/regex, modules/rpmatch:
87235         * modules/unicodeio, modules/userspec, modules/version-etc:
87236         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
87237         * modules/xsetenv:
87238         Depend on gettext-h, not gettext.
87239
87240 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
87241
87242         * gnulib-tool (func_import): Add support for 'public domain' license.
87243         * modules/alloca, modules/atexit, modules/memmove:
87244         Now public domain, not GPL.
87245         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
87246         * modules/realloc, modules/strerror, modules/strtod:
87247         Now LGPL, not GPL.
87248
87249 2005-07-05  Bruno Haible  <bruno@clisp.org>
87250
87251         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
87252         autoconf CVS. Needed for mingw.
87253
87254 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87255
87256         Remove the dependency of the strftime module on the tzset module.
87257         * modules/strftime (Depends-on): Remove dependency on tzset.
87258
87259 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87260
87261         Remove the dependency of the strftime module on the tzset module.
87262         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
87263         gl_FUNC_TZSET_CLOBBER.
87264
87265 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87266
87267         Remove the dependency of the strftime module on the tzset module.
87268         * lib/strftime.c (my_strftime)
87269         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
87270         Copy the input structure, to work around some of the bug with
87271         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
87272         Solaris releases, you should also use the tzset module, but we won't
87273         require it as a dependency any more since we don't want LGPLed code
87274         to depend on GPLed code.
87275
87276 2005-07-02  Jim Meyering  <jim@meyering.net>
87277
87278         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
87279         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
87280         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
87281         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
87282
87283 2005-07-02  Jim Meyering  <jim@meyering.net>
87284
87285         * lib/backupfile.c (backup_args): Change a `0' to NULL.
87286
87287 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
87288
87289         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
87290         declares only 'struct timespec;' (!).
87291
87292 2005-07-01  Jim Meyering  <jim@meyering.net>
87293
87294         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
87295         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
87296         * lib/save-cwd.c, tempname.c:
87297         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
87298         and don't include <sys/file.h>).
87299
87300 2005-06-29  Jim Meyering  <jim@meyering.net>
87301
87302         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
87303         type name.  Use the variable name instead.
87304         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
87305         Likewise.
87306
87307 2005-06-28  Simon Josefsson  <jas@extundo.com>
87308
87309         * modules/check-version (Files): Add check-version.m4.
87310
87311 2005-06-28  Simon Josefsson  <jas@extundo.com>
87312
87313         * m4/check-version.m4: New file, suggested by Jim Meyering
87314         <jim@meyering.net>.
87315
87316 2005-06-28  Simon Josefsson  <jas@extundo.com>
87317
87318         * lib/check-version.h, lib/check-version.c: New files.
87319
87320 2005-06-28  Simon Josefsson  <jas@extundo.com>
87321
87322         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
87323         collision with global variable.  Better indentation.  Don't
87324         increment buffer pointer beyond buffer end.  Based on comments
87325         from Paul Eggert <eggert@cs.ucla.edu>.
87326
87327         * lib/base64.h: Indent.
87328
87329 2005-06-28  Simon Josefsson  <jas@extundo.com>
87330
87331         * doc/gnulib.texi (Library version handling): New section.
87332
87333 2005-06-28  Jim Meyering  <jim@meyering.net>
87334
87335         * check-module (find_included_lib_files): Hard-code another
87336         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87337         but modules/fts-lgpl (correctly) does not list those files.
87338
87339         * modules/canonicalize (Files): Add lib/pathmax.h.
87340
87341 2005-06-25  Simon Josefsson  <jas@extundo.com>
87342
87343         * modules/check-version: New file.
87344
87345 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87346
87347         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87348         initializer of struct addrinfo, as an indication that we don't
87349         care how many members the structure has.
87350
87351 2005-06-24  Derek Price  <derek@ximbiot.com>
87352         and Bruno Haible  <bruno@clisp.org>
87353
87354         Remove stat module & update lstat.
87355         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87356         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87357         * m4/stat.m4: Remove this file.
87358
87359 2005-06-24  Derek Price  <derek@ximbiot.com>
87360         and Bruno Haible  <bruno@clisp.org>
87361
87362         Remove stat module & update lstat.
87363         * lib/stat.c: Remove this file...
87364         (slash_aware_lstat): ...moving this content and its support...
87365         * lib/lstat.c (rpl_lstat): ...into here.
87366         * lib/lstat.h: New file.
87367
87368 2005-06-24  Derek Price  <derek@ximbiot.com>
87369         and Bruno Haible  <bruno@clisp.org>
87370
87371         Remove stat module & update lstat.
87372         * config/srclist.txt (libc sources): Remove stat.
87373
87374 2005-06-24  Derek Price  <derek@ximbiot.com>
87375         and Bruno Haible  <bruno@clisp.org>
87376
87377         Remove stat module & update lstat.
87378         * MODULES.html.sh (stat): Remove.
87379         * MODULES.html: Regenerated.
87380         * modules/lstat (Description): Correct function name.
87381         (Files): Add "lstat.h".
87382         (Depends-on): Remove stat, add xalloc, stat-macros.
87383         * modules/stat: Remove this file.
87384         (Include): Add "lstat.h", remove <sys/stat.h>.
87385
87386 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87387
87388         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
87389         (ranged_convert): Don't save conversion in a temporary struct.
87390         This causes a warning with GCC 4.0.0, and anyway in the typical
87391         case it's not worth the extra 100 bytes or so of code.
87392         (ranged_convert, __mktime_internal): When calling a function via a
87393         pointer P, use P () rather than (*P) (), as we now assume C89 or
87394         better.
87395
87396 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87397
87398         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87399         "who -r" failed to give output.  Problem reported by Tim Waugh.
87400
87401         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87402         (xcalloc): Use it to avoid needless tests.
87403         Problem reported by Jim Meyering.
87404
87405 2005-06-20  Derek Price  <derek@ximbiot.com>
87406
87407         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87408         unnecessary for Autoconfs > 2.59c.
87409
87410 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87411
87412         * lib/argp.h (__option_is_short): Check upper limit of
87413         __key. Isprint() requires its argument to have the value
87414         of an unsigned char or EOF.
87415
87416 2005-06-16  Jim Meyering  <jim@meyering.net>
87417
87418         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87419         when either N or S is zero.
87420
87421 2005-06-16  Derek Price  <derek@ximbiot.com>
87422
87423         * m4/bison.m4: Declare YACC & YFLAGS precious.
87424
87425 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87426
87427         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87428         multibyte string or pattern, fall back on unibyte matching.
87429         Problem reported by James Youngman.
87430
87431 2005-06-08  Bruno Haible  <bruno@clisp.org>
87432
87433         * modules/csharpcomp: New file.
87434         * MODULES.html.sh (C#): Add csharpcomp.
87435
87436 2005-06-08  Bruno Haible  <bruno@clisp.org>
87437
87438         * m4/csharpcomp.m4: New file, from GNU gettext.
87439
87440 2005-06-08  Bruno Haible  <bruno@clisp.org>
87441
87442         * lib/csharpcomp.h: New file, from GNU gettext.
87443         * lib/csharpcomp.c: New file, from GNU gettext.
87444         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87445
87446 2005-06-08  Bruno Haible  <bruno@clisp.org>
87447
87448         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87449         warning on mingw.
87450
87451 2005-06-07  Derek Price  <derek@ximbiot.com>
87452
87453         Sync from CVS.
87454         * lib/glob_.h: Indent nested #ifdef.
87455
87456 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87457
87458         Sync from coreutils.
87459         Use "file name" when talking about file names, instead of "filename"
87460         or "path", as per the GNU coding standards.
87461         * lib/mkdir-p.c: Renamed from makepath.c.
87462         (make_dir_parents): Renamed from make_path.  All callers changed.
87463         * lib/mkdir-p.h: Likewise.  All includers changed.
87464         * lib/filenamecat.c: Renamed from path-concat.c.
87465         (file_name_concat): Renamed from path_concat.  All callers changed.
87466         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87467         * lib/filenamecat.h: Likewise.  All includers changed.
87468         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87469         in comments or local variable names.
87470         * lib/basename.c: Likewise.
87471         * lib/canonicalize.c, canonicalize.h: Likewise.
87472         * lib/dirname.c, dirname.h: Likewise.
87473         * lib/euidaccess.c: Likewise.
87474         * lib/exclude.c: Likewise
87475         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87476         * lib/fsusage.c, fsuage.h: Likewise.
87477         * lib/fts.c, fts_.h: Likewise.
87478         * lib/getcwd.c: Likewise.
87479         * lib/getloadavg.c: Likewise.
87480         * lib/mkstemp.c: Likewise.
87481         * lib/mountlist.c, mountlist.h: Likewise.
87482         * lib/openat.c, openat.h: Likewise.
87483         * lib/readlink-stub.c: Likewise.
87484         * lib/readutmp.c, readutmp.h: Likewise.
87485         * lib/rename.c: Likewise.
87486         * lib/rmdir.c: Likewise.
87487         * lib/same.c: Likewise.
87488         * lib/savedir.c: Likewise.
87489         * lib/stripslash.c: Likewise.
87490         * lib/tempname.c: Likewise.
87491         * lib/xreadlink.c: Likewise.
87492         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
87493         All uses changed.
87494         * lib/exclude.h: Likewise.
87495
87496         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
87497         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87498         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
87499         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87500         * lib/pathmax.h: Include <limits.h> unconditionally, since other
87501         files have been getting away with it for years (MORE/BSD 4.3
87502         is extinct now).
87503         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
87504         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87505
87506         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
87507         Define to 256, not 255, as per modern POSIX.
87508
87509 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87510
87511         Sync from coreutils.
87512         Use "file name" when talking about file names, instead of "filename"
87513         or "path", as per the GNU coding standards.
87514         * MODULES.html.sh: mkdir-p renamed from makepath.
87515         filenamecat renamed from path-concat.
87516         * modules/filenamecat: Renamed from modules/path-concat.
87517         (Files): filenamecat.h and filenamecat.c renamed from
87518         path-concat.h and path-concat.c.
87519         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
87520         (Include): filenamecat.h, not path-concat.h.
87521         * modules/mkdir-p: Renamed from modules/makepath.
87522         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
87523         makepath.c.
87524         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
87525         (Include): mkdir-p.h, not makepath.h.
87526
87527 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87528
87529         Sync from coreutils.
87530         * m4/mkdir-p.m4: Renamed from makepath.m4.
87531         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
87532         Rename files from makepath.c to mkdir-p.c, and from
87533         makepath.h to mkdir-p.h.
87534         * m4/filenamecat.m4: Renamed from path-concat.m4.
87535         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
87536         Rename files from path-concat.c to filenamecat.c,
87537         and from path-concat.h to filenamecat.h.
87538         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
87539         "file name" in local variables or comments.
87540         * m4/rename.m4: Likewise.
87541
87542 2005-06-01  Bruno Haible  <bruno@clisp.org>
87543
87544         * modules/csharpexec: New file.
87545         * MODULES.html.sh (C#): New section.
87546
87547 2005-06-01  Bruno Haible  <bruno@clisp.org>
87548
87549         * m4/csharp.m4: New file, from GNU gettext.
87550         * m4/csharpexec.m4: New file, from GNU gettext.
87551
87552 2005-06-01  Bruno Haible  <bruno@clisp.org>
87553
87554         * lib/csharpexec.h: New file, from GNU gettext.
87555         * lib/csharpexec.c: New file, from GNU gettext.
87556         * lib/csharpexec.sh.in: New file, from GNU gettext.
87557
87558 2005-05-31  Derek Price  <derek@ximbiot.com>
87559             Paul Eggert  <eggert@cs.ucla.edu>
87560
87561         Sync from cvs.
87562         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87563
87564 2005-05-31  Derek Price  <derek@ximbiot.com>
87565             Paul Eggert  <eggert@cs.ucla.edu>
87566
87567         Sync from cvs.
87568         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87569
87570 2005-05-29  Derek Price  <derek@ximbiot.com>
87571
87572         * config/srclist.txt (glob_.h, glob.c): Add these files.
87573
87574 2005-05-29  Derek Price  <derek@ximbiot.com>
87575
87576         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
87577         * modules/glob: New file.
87578         * modules/getlogin_r: Add link to POSIX spec in description.
87579
87580 2005-05-29  Derek Price  <derek@ximbiot.com>
87581             Paul Eggert  <eggert@cs.ucla.edu>
87582
87583         * m4/glob.m4: New file.
87584
87585 2005-05-29  Derek Price  <derek@ximbiot.com>
87586             Paul Eggert  <eggert@cs.ucla.edu>
87587
87588         * lib/glob_.h, lib/glob.c: New files.
87589
87590 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87591
87592         * modules/fts (Files): Remove m4/inttypes-pri.m4.
87593         * modules/fts-lgpl (Depends-on): Remove gettext.
87594
87595 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87596
87597         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
87598         and don't require gt_INTTYPES_PRI.
87599
87600 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87601
87602         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
87603
87604         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
87605         the configuration hassle isn't worth it.
87606         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
87607         (LONGEST_MODIFIER, PRIuMAX): Remove.
87608
87609 2005-05-27  Bruno Haible  <bruno@clisp.org>
87610
87611         * lib/getlogin_r.h: Remove second include of <stddef.h>.
87612
87613 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
87614
87615         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
87616         _POSIX_PTHREAD_SEMANTICS for Solaris.
87617
87618 2005-05-25  Derek Price  <derek@ximbiot.com>
87619
87620         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
87621
87622 2005-05-25  Derek Price  <derek@ximbiot.com>
87623             Paul Eggert  <eggert@cs.ucla.edu>
87624
87625         * modules/getlogin_r, m4/getlogin_r.m4: New files.
87626         * lib/getlogin_r.c, getlogin_r.h: New files.
87627
87628 2005-05-25  Bruno Haible  <bruno@clisp.org>
87629             Derek Price  <derek@ximbiot.com>
87630
87631         * lib/getlogin_r.h: Simplify API documentation.
87632
87633 2005-05-23  Derek Price  <derek@ximbiot.com>
87634
87635         * modules/minmax (Files): Add m4/minmax.m4.
87636         (configure.ac): Add gl_MINMAX.
87637
87638 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
87639
87640         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
87641         so that unistd-safer.h (GPL'ed code) need not be included.
87642
87643 2005-05-22  Bruno Haible  <bruno@clisp.org>
87644
87645         * m4/minmax.m4: New file.
87646         Based on a patch by Derek Price <derek@ximbiot.com>.
87647
87648 2005-05-22  Bruno Haible  <bruno@clisp.org>
87649
87650         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
87651         (INT64_MIN): Fix definition.
87652         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
87653
87654         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
87655         NEED_SIGNED_INT_TYPES.
87656
87657         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
87658         HAVE_SYSTEM_INTTYPES.
87659
87660 2005-05-22  Bruno Haible  <bruno@clisp.org>
87661
87662         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
87663         Also include <sys/param.h> if it defines MIN, MAX.
87664         Based on a patch by Derek Price <derek@ximbiot.com>.
87665
87666 2005-05-21  Jim Meyering  <jim@meyering.net>
87667
87668         * modules/fts (Files): Add m4/inttypes-pri.m4.
87669         (Depends-on): Add lstat and remove gettext.  Alphabetize.
87670
87671 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87672
87673         New fts module.
87674         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
87675         (setup_dir, free_dir): New functions.
87676         (enter_dir, leave_dir): Define trivial
87677         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
87678         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
87679         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
87680         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
87681         Move to fts-cycle.c.
87682         (fts_open): Use setup_dir.
87683         (fts_close): Use free_dir.
87684         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
87685         This adds a label and some gotos, but the alternatives were messier.
87686         Check for memory allocation failure when entering a dir.
87687         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
87688         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
87689         (FTS): New member fts_cycle, that is a union that contains the
87690         old active_dir_ht and cycle_state.  All uses changed to mention
87691         fts_cycle.ht and fts_cycle.state.
87692         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
87693         fts.c, with the following changes:
87694         (setup_dir, free_dir): New functions.
87695         (enter_dir): Now returns bool.  Return true if successful, false
87696         if memory exhausted.  All callers changed.
87697         Do not bother partly cleaning up on
87698         memory allocation failure; that is free_dir's job.
87699         However, free ad if hash_insert fails, to avoid memory leak.
87700         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
87701         fts->fts_options to see which union member to use.
87702
87703 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87704
87705         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
87706         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
87707
87708 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87709
87710         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
87711
87712 2005-05-20  Jim Meyering  <jim@meyering.net>
87713
87714         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
87715         Now a macro, to pacify GCC.
87716
87717 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87718
87719         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
87720         of -1.
87721
87722 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87723
87724         * lib/chown.c (rpl_chown): Return -1 on failure.
87725
87726 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87727
87728         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
87729         Don't check for stddef.h.
87730         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
87731         don't use its results.
87732         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
87733         since we include them unconditionally.  Don't require
87734         AM_STDBOOL_H, since stdbool is a prerequisite.
87735         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
87736         since we assume C89 or better.
87737         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
87738         as we don't use their results.
87739         Don't check for fchdir, memmove, memset, strrchr, as we use
87740         them unconditionally.
87741         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
87742         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
87743
87744 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87745
87746         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
87747         Include <stddef.h> unconditionally, since we assume C89 now.
87748         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
87749         * lib/fts.c: Include fts_.h first, to check interface.
87750         Do not include intprops.h; no longer needed.
87751         Include cycle-check.h and hash.h, since fts_.h no longer does.
87752         Remove unnecessary casts of closedir to void.
87753         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
87754         decide whether to decrement nlinks.
87755         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
87756         (FTS): Use struct hash_table * instead of Hash_table, so that
87757         we no longer need to include hash.h here.
87758
87759 2005-05-18  Jim Meyering  <jim@meyering.net>
87760
87761         * modules/dirfd (License): Change to LGPL.  Most of the code
87762         is already in the public domain.
87763
87764 2005-05-18  Jim Meyering  <jim@meyering.net>
87765
87766         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
87767         Reported by Yoann Vandoorselaere.
87768
87769 2005-05-17  Jim Meyering  <jim@meyering.net>
87770
87771         * m4/fts.m4: New file, from coreutils.
87772
87773 2005-05-17  Jim Meyering  <jim@meyering.net>
87774
87775         * lib/fts.c, lib/fts_.h: New files, from coreutils.
87776
87777 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87778
87779         Sync from coreutils.
87780         * m4/unlinkdir.m4: New file.
87781
87782 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87783
87784         Sync from coreutils.
87785         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
87786         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
87787         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
87788         White space changes only.
87789         * lib/makepath.c (make_path): Port to hosts where leading "//" is
87790         special.
87791         * lib/yesno.c: Include getline.h, not ctype.h.
87792         (yesno): Don't remove leading white space; POSIX doesn't allow it.
87793         Use getline to remove arbitrary restriction on response length.
87794
87795 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87796
87797         * config/srclist-update: Spell out "Street" in FSF postal
87798         mail address; this is the style the FSF seems to prefer.
87799
87800         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
87801         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
87802         this updates FSF postal mail address.
87803
87804         Sync from coreutils.
87805         * modules/unlinkdir: New file.
87806         * modules/yesno (Depends-on): Add getline.
87807         * MODULES.html.sh (File system functions): Add unlinkdir.
87808
87809 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87810
87811         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
87812         lib/strsep.h:
87813         Change the initial comment to refer to GPL, not LGPL.
87814         gnulib-tool will change it to LGPL as needed.
87815
87816         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
87817         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
87818         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
87819         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
87820         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
87821         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
87822         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
87823         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
87824         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
87825         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
87826         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
87827         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
87828         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
87829         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
87830         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
87831         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
87832         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
87833         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
87834         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
87835         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
87836         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
87837         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
87838         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
87839         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
87840         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
87841         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
87842         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
87843         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
87844         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
87845         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
87846         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
87847         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
87848         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
87849         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
87850         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
87851         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
87852         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
87853         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
87854         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
87855         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
87856         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
87857         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
87858         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
87859         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
87860         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
87861         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
87862         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
87863         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
87864         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
87865         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
87866         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87867         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
87868         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
87869         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
87870         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
87871         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
87872         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
87873         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
87874         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
87875         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
87876         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
87877         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
87878         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
87879         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
87880         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
87881         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
87882         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
87883         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
87884         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
87885         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
87886         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
87887         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
87888         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
87889         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
87890         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
87891         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
87892         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
87893         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
87894         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
87895         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
87896         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
87897         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
87898         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
87899         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
87900         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
87901         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
87902         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
87903         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
87904         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
87905         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
87906         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
87907         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
87908         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
87909         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
87910         lib/yesno.c, lib/yesno.h:
87911         Update FSF postal mail address.
87912
87913 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87914
87915         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
87916         tests/test-memmem.c, tests/test-stpncpy.c:
87917         Update FSF postal mail address.
87918
87919 2005-05-13  Bruno Haible  <bruno@clisp.org>
87920
87921         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
87922         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
87923         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
87924         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
87925         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
87926         Add support for 64-bit integers in the MSVC compiler.
87927
87928 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87929
87930         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
87931
87932 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
87933
87934         * gnulib-tool (func_import): Sort and uniquify recommended includes.
87935
87936 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
87937
87938         * doc/getdate.texi (General date syntax): Don't say that date
87939         date --iso-8601=ns generates acceptable dates; it doesn't yet.
87940         Problem reported by Nic Ferrier.
87941
87942 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87943
87944         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
87945         specified in ai_socktype. Fix invalid ai_protocol
87946         check. ai_protocol is usually set to 0 or depending on
87947         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
87948         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
87949         ai_socktype / ai_protocol in the returned addrinfo structure.
87950
87951 2005-05-10  Simon Josefsson  <jas@extundo.com>
87952
87953         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
87954         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87955
87956 2005-05-10  Karl Berry  <karl@gnu.org>
87957
87958         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
87959         (from http://www.gnu.org/licenses).
87960         * doc/COPYING.LIB: also rename to COPYING.LESSER.
87961         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
87962         fdl.texi suffices.
87963
87964 2005-05-10  Karl Berry  <karl@gnu.org>
87965
87966         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
87967         (COPYING.DOC): remove.
87968
87969         * config/srclist-update: new FSF address.
87970
87971 2005-05-10  Derek Price  <derek@ximbiot.com>
87972
87973         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
87974         possible.
87975
87976 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87977             Bruno Haible  <bruno@clisp.org>
87978
87979         * modules/inet_ntop: New file.
87980         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87981         inet_ntop.
87982
87983 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87984             Bruno Haible  <bruno@clisp.org>
87985
87986         * m4/inet_ntop.m4: New file.
87987
87988 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87989             Bruno Haible  <bruno@clisp.org>
87990
87991         * lib/inet_ntop.h: New file.
87992         * lib/inet_ntop.c: New file, from glibc with modifications.
87993
87994 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
87995
87996         * modules/time_r (License): Change to LGPL.
87997         * modules/extensions (License): Change to LGPL.  Actually,
87998         the license is more permissive than that, but currently gnulib-tool
87999         doesn't know how to handle more-permissive licenses.
88000
88001         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
88002         Problem reported by Dave Love.
88003
88004 2005-05-08  Jim Meyering  <jim@meyering.net>
88005
88006         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
88007         blank.
88008
88009 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88010
88011         * modules/argmatch (Depends-on): Add stdbool.
88012         * modules/backupfile (Depends-on): Likewise.
88013         * modules/chdir-long (Depends-on): Likewise.
88014         * modules/closeout (Depends-on): Likewise.
88015         * modules/cycle-check (Depends-on): Likewise.
88016         * modules/dirname (Depends-on): Likewise.
88017         * modules/fnmatch (Depends-on): Likewise.
88018         * modules/fsusage (Depends-on): Likewise.
88019         * modules/fwriteerror (Depends-on): Likewise.
88020         * modules/getcwd (Depends-on): Likewise.
88021         * modules/getloadavg (Depends-on): Likewise.
88022         * modules/hard-locale (Depends-on): Likewise.
88023         * modules/makepath (Depends-on): Likewise.
88024         * modules/mountlist (Depends-on): Likewise.
88025         * modules/nanosleep (Depends-on): Likewise.
88026         * modules/posixtm (Depends-on): Likewise.
88027         * modules/quotearg (Depends-on): Likewise.
88028         * modules/readtokens (Depends-on): Likewise.
88029         * modules/readtokens0 (Depends-on): Likewise.
88030         * modules/readutmp (Depends-on): Likewise.
88031         * modules/save-cwd (Depends-on): Likewise.
88032         * modules/strftime (Depends-on): Likewise.
88033         * modules/userspec (Depends-on): Likewise.
88034         * modules/utimecmp (Depends-on): Likewise.
88035         * modules/xgetcwd (Depends-on): Likewise.
88036         * modules/xnanosleep (Depends-on): Likewise.
88037         * modules/xstrtod (Depends-on): Likewise.
88038         * modules/yesno (Depends-on): Likewise.
88039
88040 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
88041
88042         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
88043         needless checks.
88044
88045 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88046
88047         Merge from coreutils.  Among other things,
88048         add bulletproofing for cases where stdin, stdout, or stderr are closed.
88049         * lib/fd-safer.c: New file.
88050         * lib/fcntl-safer.h, open-safer.c: Remove.
88051         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
88052         * lib/dup-safer.c: Include unistd-safer.h first.
88053         Don't include errno.h.
88054         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
88055         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
88056         * lib/file-type.c: Rely on file-type.h change.
88057         * lib/getloadavg.c: Include unistd-safer.h.
88058         (getloadavg): Use safer open.
88059         * lib/getusershell.c: Include "stdio-safer.h".
88060         (getusershell): Use safer fopen.
88061         * lib/long-options.c (long_options): Use NULL rather than 0.
88062         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
88063         'free'.
88064         * lib/modechange.c: Likewise.
88065         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
88066         (MODE_DONE): New constant.
88067         (struct mode_change): Remove 'next' member.
88068         (make_node_op_equals): New function; like the old one of the
88069         same name, except it allocates an array.
88070         (mode_compile, mode_create_from_ref): Use it.
88071         (mode_compile): Allocate result as an array, not a linked list.
88072         Parse octal string ourself, so that we catch mistakes like "+0".
88073         (mode_adjust): Arg is an array, not a linked list.
88074         * lib/modechange.c: Include stat-macros.h, xalloc.h.
88075         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
88076         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
88077         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
88078         Remove.  This is now stat-macros.h's job.
88079         (talloc): Remove.  All callers replaced by xalloc, so that
88080         our invokers don't have to worry about reporting memory failures.
88081         (make_node_op_equals): Remove.
88082         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88083         New constants.
88084         (struct mode_change): Moved here from modechange.h.
88085         (mode_append_entry): Remove.
88086         (mode_compile): Remove MASKED_OPS arg, since it encouraged
88087         apps to have incorrect behavior.  Use simpler algorithm for head
88088         and tail.  Don't futz with umask; that's now the job of mode_adjust.
88089         Detect more invalid usages rather than having somewhat-random behavior.
88090         Don't insert an "a=" action, as that leads to incorrect behavior.
88091         (mode_compile, mode_create_from_ref): Return NULL on error instead
88092         of an enum, since now there's only one way to have an error.  All
88093         callers changed.
88094         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
88095         at the correct time.  Simplify calculation of "+u" and its ilk.
88096         Don't mishandle "+X".
88097         (mode_free): Remove "register" and localize decls.
88098         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88099         (struct mode_change): Move to modechange.c; callers don't
88100         need to see this stuff.
88101         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
88102         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
88103         (mode_change, mode_adjust): Reflect the new signatures noted above.
88104         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
88105         that might redefine system include files.
88106         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
88107         (my_usleep): Use NULL rather than (void *) 0.
88108         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
88109         Use siginterrupt to specify that system calls should be interrupted.
88110         (rpl_nanosleep): Move initialization of suspended closer to call of
88111         my_usleep.
88112         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
88113         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
88114         (desirable_utmp_entry): New function.
88115         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
88116         using x2nrealloc, to simplify logic.
88117         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
88118         size calculation.  Do not assume utmp file is a regular file.
88119         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
88120         (READ_UTMP_CHECK_PIDS): New constant.
88121         * lib/save-cwd.c: Include unistd-safer.h.
88122         (save_cwd): Use fd_safer.
88123         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
88124         [!_LIBC] Include "stat-macros.h" instead.
88125         * lib/unistd-safer.h (fd_safer): New decl.
88126
88127 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88128
88129         * modules/getloadavg (Depends-on): Add unistd-safer.
88130         * modules/getusershell (Depends-on): Add stdio-safer.
88131         * modules/lstat (Depends-on): Remove xalloc.
88132         * modules/mkstemp (Depends-on): Add stat-macros.
88133         * modules/modechange (Depends-on): Remove xstrtol.
88134         Add stat-macros, xalloc.
88135         * modules/save-cwd (Depends-on): Add unistd-safer.
88136         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
88137         * modules/unistd-safer (Files): Add lib/fd-safer.c
88138         (Makefile.am): Remove lib_SOURCES.
88139
88140         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
88141         Remove fcntl-safer; unistd-safer supersedes it.
88142
88143 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88144
88145         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
88146         AC_HEADER_STAT.
88147         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
88148         (gl_PREREQ_CHOWN): Remove.
88149         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
88150         it.  Don't require AC_HEADER_STAT.
88151         (gl_PREREQ_LSTAT): Remove.
88152         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
88153         Don't require AC_HEADER_STAT.
88154         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
88155         (gl_PREREQ_RMDIR): Remove.
88156         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
88157         mention stat-macros.h or AC_HEADER_STAT, since we'll make
88158         the stat-macros module a prerequisite.
88159         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
88160         * m4/filemode.m4 (gl_FILEMODE): Likewise.
88161         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
88162         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
88163         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
88164         variable names.
88165         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
88166         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
88167         variable prefixes.
88168         * m4/fcntl-safer.m4: Remove.
88169         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
88170         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
88171         Invoke gl_PREREQ_FD_SAFER.
88172         (gl_PREREQ_FD_SAFER): New macro.
88173         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
88174         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
88175         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
88176         Remove duplicate call to AC_LIBOBJ(readutmp).
88177         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
88178
88179         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
88180         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
88181
88182 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88183
88184         * MODULES.html.sh (Misc): Add byteswap.
88185
88186 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88187
88188         * modules/getcwd (Depends-on): Add extensions.
88189         * modules/openat (Depends-on): Likewise.
88190
88191 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88192
88193         * modules/byteswap: New file.
88194
88195 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88196
88197         * m4/byteswap.m4: New file.
88198
88199 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88200
88201         * lib/byteswap_.h: New file.
88202
88203 2005-04-25  Karl Berry  <karl@gnu.org>
88204
88205         * m4/gettext.m4: Update from GNU gettext 0.14.4.
88206
88207 2005-04-25  Albert Chin  <china@thewrittenword.com>
88208
88209         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
88210         Toolkit C bug.
88211
88212 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
88213
88214         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
88215         (func_ln_if_changed): Remove forcibly for no error message
88216         in case file does not exist.
88217
88218 2005-04-19  Simon Josefsson  <jas@extundo.com>
88219
88220         * gnulib-tool (Options): Make --symlink mean --symbolic.
88221
88222 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
88223
88224         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
88225
88226 2005-04-16  Simon Josefsson  <jas@extundo.com>
88227
88228         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
88229
88230 2005-04-15  Simon Josefsson  <jas@extundo.com>
88231
88232         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
88233
88234 2005-04-15  Simon Josefsson  <jas@extundo.com>
88235
88236         * gnulib-tool: Rename --symlink to --symbolic.
88237
88238 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
88239
88240         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
88241         symbolic links to files instead of copying/moving.  Add --aux-dir,
88242         specifying directory relative --dir where auxiliary build tools
88243         are placed.
88244
88245 2005-04-14  Bruno Haible  <bruno@clisp.org>
88246
88247         * modules/allocsa (License): Change to LGPL.
88248         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88249
88250 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88251
88252         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
88253         that "UTC +1 second" continues to work.  Problem reported
88254         by Dmitry V. Levin.
88255         (relunit_snumber): New rule.
88256         (relunit): Use it.
88257
88258 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
88259
88260         * lib/getdate.y (universal_time_zone_table): New constant.
88261         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
88262         universal_time_zone_table.
88263         (lookup_zone): Prefer universal_time_zone_table to
88264         local_time_zone_table, so that "GMT" time stamps are allowed in
88265         London during the summer.  Problem reported by Ian Abbott.
88266
88267 2005-04-12  Jim Meyering  <jim@meyering.net>
88268
88269         * lib/human.c (humblock): Set *options even when returning due to
88270         xstrtoumax conversion failure.  Thanks to a used-uninitialized
88271         warning from gcc-4.
88272
88273 2005-04-09  Jim Meyering  <jim@meyering.net>
88274
88275         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
88276         -Wuninitialized: initialize tm0.tm_year.
88277
88278 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
88279
88280         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
88281         count, since there's no maximum.  All uses changed.
88282         Add member dsts_seen.
88283         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
88284         not being INT_MAX.
88285         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
88286         Use pc_rels_seen to decide whether a date is absolute.
88287
88288         * lib/getdate.y (number): Don't overwrite year.
88289         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
88290         check.
88291
88292 2005-04-02  Simon Josefsson  <jas@extundo.com>
88293
88294         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
88295         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
88296
88297 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
88298
88299         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
88300         where no absolute path name can be longer than PATH_MAX.
88301
88302 2005-03-27  Jim Meyering  <jim@meyering.net>
88303
88304         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
88305
88306 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
88307
88308         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
88309         "one's complement" -> "ones' complement" in comment, as per Knuth.
88310         "value of type" -> "type or expression" in comment.
88311         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
88312
88313 2005-03-26  Jim Meyering  <jim@meyering.net>
88314
88315         Comment nits.
88316         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
88317         Correct typos: s/or/of/.
88318
88319 2005-03-26  Jim Meyering  <jim@meyering.net>
88320
88321         * modules/check-include-files: Move to ../ and rename to...
88322         * check-module: ...this.
88323
88324 2005-03-25  Jim Meyering  <jim@meyering.net>
88325
88326         * modules/xvasprintf (Files): Add xalloc.h.
88327
88328 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88329
88330         * modules/gettext (Files): config/config.rpath ->
88331         build-aux/config.rpath
88332         * modules/iconv (Files): Likewise.
88333         Problem reported by Oskar Liljeblad.
88334
88335 2005-03-23  Jim Meyering  <jim@meyering.net>
88336
88337         * modules/check-include-files: New script to check for
88338         missing dependencies, multiple includes, etc.
88339
88340         * modules/c-strtold (Depends-on): Add xalloc.
88341         * modules/c-strtod (Depends-on): Add xalloc.
88342         * modules/hash (Depends-on): Add xalloc.
88343         (Files): Remove lib/xalloc.h.
88344
88345         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88346         * modules/userspec (Files): Add lib/inttostr.h.
88347
88348 2005-03-23  Jim Meyering  <jim@meyering.net>
88349
88350         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88351
88352 2005-03-22  Jim Meyering  <jim@meyering.net>
88353
88354         * modules/stat-macros: New module.
88355         * modules/canonicalize, modules/euidaccess, modules/file-type,
88356         * modules/filemode, modules/lchown, modules/makepath,
88357         * modules/rmdir, modules/stat: Depend on new stat-macros module
88358         rather than listing lib/stat-macros.h manually.
88359         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88360
88361 2005-03-22  Jim Meyering  <jim@meyering.net>
88362
88363         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88364
88365 2005-03-22  Bruno Haible  <bruno@clisp.org>
88366
88367         * config/srclist.txt: Replace target directory 'config' with
88368         'build-aux'.
88369         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88370         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88371         ../build-aux/.
88372
88373 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88374
88375         * modules/chdir-long (Depends-on): Add mempcpy.
88376
88377         * modules/acl, modules/backupfile, modules/c-strtod,
88378         modules/c-strtold, modules/canon-host, modules/canonicalize,
88379         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88380         modules/exclude, modules/exitfail, modules/file-type,
88381         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88382         modules/getdate, modules/getline, modules/getpagesize,
88383         modules/getpass, modules/getugroups, modules/group-member,
88384         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88385         modules/inttostr, modules/long-options, modules/makepath,
88386         modules/md5, modules/memcasecmp, modules/memcoll,
88387         modules/modechange, modules/mountlist, modules/path-concat,
88388         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
88389         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
88390         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
88391         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
88392         modules/strftime, modules/strndup, modules/strverscmp,
88393         modules/timespec, modules/unlocked-io, modules/userspec,
88394         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88395         modules/yesno:
88396         Remove lib_SOURCES line from Makefile.am section, as this is now
88397         done automatically by the corresponding Autoconf macro.
88398
88399 2005-03-21  Jim Meyering  <jim@meyering.net>
88400
88401         Changes imported from coreutils.
88402
88403         * lib/cycle-check.c: Don't include xalloc.h.
88404
88405         * lib/path-concat.c: Don't include assert.h.
88406         (path_concat): Remove assertion that would have triggered
88407         for ABASE starting with more than one slash.
88408         Reported by Andreas Schwab.
88409
88410         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88411         properly when ABASE is an absolute file name.
88412         Correct the description of this function.
88413         Include <assert.h>.
88414         Add an assertion and a test driver.
88415         This fixes a bug introduced on 2004-07-02.
88416         Andreas Schwab reported the resulting failure of cp --parents:
88417         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88418
88419 2005-03-21  Jim Meyering  <jim@meyering.net>
88420
88421         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88422         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88423
88424 2005-03-21  Jim Meyering  <jim@meyering.net>
88425         and  Paul Eggert  <eggert@cs.ucla.edu>
88426
88427         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88428         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88429         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88430         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88431         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88432         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88433         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88434         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88435         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88436         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88437         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88438         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88439         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88440         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88441         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88442         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88443         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88444         for these modules.
88445
88446 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88447
88448         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88449         (which shouldn't happen), generate nothing instead of returning 0
88450         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88451
88452 2005-03-16  Bruno Haible  <bruno@clisp.org>
88453
88454         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88455         HAVE_LONGLONG_64BIT.
88456
88457 2005-03-16  Bruno Haible  <bruno@clisp.org>
88458
88459         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88460         HAVE_LONGLONG_64BIT.
88461
88462 2005-03-16  Bruno Haible  <bruno@clisp.org>
88463
88464         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88465         HAVE_LONGLONG_64BIT.
88466
88467 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88468
88469         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88470         reliably distinguish strftime failure from empty output on POSIX
88471         hosts.
88472
88473 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88474
88475         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88476         (iconv_string): Don't guess a size-zero buffer, as that might cause
88477         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
88478         result would be 'too large', where 'too large' is (heuristically)
88479         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
88480         overflow concerns.  This will prevent some unwanted malloc failures
88481         when the inputs are very large.
88482
88483 2005-03-15  Karl Berry  <karl@gnu.org>
88484
88485         * config/srclist.txt (config.rpath): from gettext.
88486         * config/config.rpath: update.
88487
88488 2005-03-15  Bruno Haible  <bruno@clisp.org>
88489
88490         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
88491         to 'negate'.
88492
88493         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
88494         variable.
88495
88496         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
88497         results.
88498
88499 2005-03-14  Simon Josefsson  <jas@extundo.com>
88500
88501         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
88502         <fx@gnu.org>.
88503
88504 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
88505
88506         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
88507         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
88508         intprops.h.
88509         * lib/strtol.c: Likewise.
88510
88511 2005-03-14  Jim Meyering  <jim@meyering.net>
88512
88513         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
88514         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
88515         to be nonzero so that we (and caller) can detect the difference
88516         between a valid zero-length expansion and an error return, even
88517         when the underlying strftime fails before writing anything into
88518         that location.
88519
88520 2005-03-14  Bruno Haible  <bruno@clisp.org>
88521
88522         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
88523         Update from GNU gettext 0.14.3.
88524
88525 2005-03-10  Jim Meyering  <jim@meyering.net>
88526
88527         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
88528
88529 2005-03-10  Jim Meyering  <jim@meyering.net>
88530
88531         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
88532         so that this module works on systems without fchdir.
88533
88534 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
88535
88536         Factor int-properties macros into a single file, except for
88537         glibc-related files.
88538         * lib/intprops.h: New file.
88539         * lib/getloadavg.c: Include it instead of limits.h.
88540         (INT_STRLEN_BOUND): Remove.
88541         * lib/human.c: Include intprops.h.
88542         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
88543         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
88544         302/1000.
88545         * lib/inttostr.h: Include intprops.h instead of limits.h.
88546         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
88547         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
88548         for consistency with intprops.h.
88549         (time_t_is_integer, twos_complement_arithmetic): Use them.
88550         * lib/sig2str.h: Include <signal.h>, intprops.h.
88551         (INT_STRLEN_BOUND): Remove.
88552         * lib/strftime.c (TYPE_SIGNED): Remove.
88553         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
88554         * lib/strtol.c: Adjust comments to match intprops.h.
88555         * lib/userspec.c: Include intprops.h.
88556         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
88557         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
88558         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
88559         instead of rolling our own expressions.
88560         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
88561
88562         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
88563         instead of int.
88564         (my_strftime): Do not mishandle years close to INT_MAX, by doing
88565         the right thing even if adding 1900 would overflow.  Similarly
88566         for tm_mon + 1 and tm_yday + 1.
88567         Make %Y always equivalent to %C%y, and similarly for %G and %g.
88568         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
88569         (DO_SIGNED_NUMBER): New macro.
88570         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
88571
88572 2005-03-07  Bruno Haible  <bruno@clisp.org>
88573
88574         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
88575
88576 2005-03-07  Bruno Haible  <bruno@clisp.org>
88577
88578         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
88579
88580 2005-03-04  Derek R. Price  <derek@ximbiot.com>
88581
88582         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
88583         (func_import): Only replace files via --import when they have actually
88584         changed.
88585
88586 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88587
88588         * m4/mmap-anon.m4: New file.
88589         * m4/pagealign_alloc.m4: New file.
88590
88591 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88592             Bruno Haible  <bruno@clisp.org>
88593
88594         * modules/pagealign_alloc: New file.
88595         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
88596
88597 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88598             Bruno Haible  <bruno@clisp.org>
88599
88600         * lib/pagealign_alloc.h: New file.
88601         * lib/pagealign_alloc.c: New file.
88602
88603 2005-03-03  Bruno Haible  <bruno@clisp.org>
88604
88605         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
88606         Use an all-permissive copyright notice, recommended by RMS.
88607
88608 2005-03-02  Bruno Haible  <bruno@clisp.org>
88609
88610         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
88611         of AIX, the replacement has to be done only after <string.h> is
88612         included, therefore not in config.h. stpncpy.h does the replacement,
88613         and stpncpy.c uses it.
88614
88615 2005-03-02  Bruno Haible  <bruno@clisp.org>
88616
88617         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
88618         stpncpy.c uses it.
88619
88620 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88621
88622         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
88623         The workaround isn't strictly needed for POSIX conformance, and
88624         it's too much of a pain to configure and maintain.  We'll ask
88625         people to fix their kernels instead.
88626         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
88627         (NANOSLEEP_BUG_WORKAROUND): Remove.
88628         (xnanosleep): Remove the workaround.
88629
88630 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88631
88632         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
88633         Reported by Derek Price.
88634         (Include): Add "timespec.h".
88635
88636         * modules/xnanosleep (Depends-on): Remove gethrxtime.
88637
88638 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88639
88640         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
88641         to detect nanosleep bug.
88642
88643 2005-03-01  Bruno Haible  <bruno@clisp.org>
88644
88645         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
88646
88647 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
88648
88649         * modules/gethrxtime: New file.
88650         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
88651         (Depends-on): Add gethrxtime.
88652         (configure.ac): Add gl_XNANOSLEEP.
88653         (Makefile.am): Remove lib_SOURCES line.
88654
88655 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88656
88657         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
88658         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
88659
88660 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88661
88662         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
88663         * lib/timespec.h (gettime): Return void, since it always
88664         succeeds now.  All uses changed.
88665         * lib/gettime.c (gettime): Likewise.
88666         [HAVE_NANOTIME]: Prefer nanotime.
88667         Assume gettimeofday succeeds, as POSIX requires.
88668         Assime time () succeeds, since other code already does.
88669         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
88670         (timespec_subtract): Remove.
88671         (NANOSLEEP_BUG_WORKAROUND): New constant.
88672         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
88673         things considerably.  Use it only on GNU/Linux hosts, since the
88674         workaround shouldn't be needed elsewhere.
88675
88676 2005-02-24  Bruno Haible  <bruno@clisp.org>
88677
88678         * modules/gettext (Files): Add m4/glibc2.m4.
88679
88680 2005-02-24  Bruno Haible  <bruno@clisp.org>
88681
88682         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
88683         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
88684         * m4/progtest.m4:
88685         Update from GNU gettext 0.14.2.
88686         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
88687
88688 2005-02-24  Bruno Haible  <bruno@clisp.org>
88689
88690         * lib/localcharset.c: Update from GNU gettext 0.14.2.
88691         * lib/config.charset: Update from GNU gettext 0.14.2.
88692
88693 2005-02-24  Bruno Haible  <bruno@clisp.org>
88694
88695         * lib/gettext.h: Update from GNU gettext 0.14.2.
88696
88697 2005-02-23  Simon Josefsson  <jas@extundo.com>
88698
88699         * m4/iconvme.m4: New file.
88700
88701 2005-02-23  Jim Meyering  <jim@meyering.net>
88702
88703         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
88704         change.
88705         Thanks to Bruno Haible for catching it.
88706
88707 2005-02-22  Simon Josefsson  <jas@extundo.com>
88708
88709         * modules/iconvme: New file.
88710
88711         * MODULES.html.sh: Add iconvme.
88712
88713 2005-02-22  Simon Josefsson  <jas@extundo.com>
88714
88715         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
88716
88717 2005-02-22  Simon Josefsson  <jas@extundo.com>
88718
88719         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
88720
88721 2005-02-22  Jim Meyering  <jim@meyering.net>
88722
88723         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
88724         s/ifndef/ifdef/.
88725
88726 2005-02-20  Neil Conway  <neilc@samurai.com>
88727
88728         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
88729         returned by OSX/Darwin if the specified buffer is not large
88730         enough for the hostname.
88731
88732 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88733
88734         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
88735         pass it to _help, otherwise the latter coredumps trying to
88736         dereference state.root_argp.
88737
88738 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88739
88740         * modules/chdir-long (Depends-on): Add memrchr.
88741         * modules/memrchr (Files): Add lib/memrchr.h.
88742         (Include): "memrchr.h".
88743
88744 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88745
88746         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
88747
88748 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88749
88750         * lib/memrchr.h: New file.
88751         * lib/chdir-long.c: Include it.
88752         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
88753         Don't bother including stddef.h.
88754
88755 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
88756
88757         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
88758         inclusion.
88759         Include <sys/types.h>, for dev_t.
88760         (ME_DUMMY, ME_REMOTE): Move from here....
88761         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
88762         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
88763         Dmitry V. Levin.
88764         Include mountlist.h first, to test the interface.
88765
88766 2005-01-29  Bruno Haible  <bruno@clisp.org>
88767
88768         * lib/progname.c (program_name): Initialize.
88769         Needed when linking statically on MacOS X.
88770
88771 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88772
88773         Sync from coreutils.
88774         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
88775         (Depends-on): Add c-strtod.
88776         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
88777
88778 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88779
88780         Sync from coreutils.
88781         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
88782
88783         Remove files that are specific to coreutils.
88784         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
88785
88786 2005-01-28  Bruno Haible  <bruno@clisp.org>
88787
88788         * modules/javacomp: New file.
88789         * MODULES.html.sh (Java): Add javacomp.
88790
88791 2005-01-28  Bruno Haible  <bruno@clisp.org>
88792
88793         * m4/javacomp.m4: New file, from GNU gettext.
88794
88795 2005-01-28  Bruno Haible  <bruno@clisp.org>
88796
88797         * lib/javacomp.sh.in: New file, from GNU gettext.
88798         * lib/javacomp.h: New file, from GNU gettext.
88799         * lib/javacomp.c: New file, from GNU gettext.
88800
88801 2005-01-26  Simon Josefsson  <jas@extundo.com>
88802
88803         * lib/gai_strerror.c: Use GPL in header.
88804
88805 2005-01-26  Bruno Haible  <bruno@clisp.org>
88806
88807         * modules/javaexec: New file.
88808         * MODULES.html.sh (Java): Add javaexec.
88809
88810 2005-01-26  Bruno Haible  <bruno@clisp.org>
88811
88812         * m4/javaexec.m4: New file, from GNU gettext.
88813
88814 2005-01-26  Bruno Haible  <bruno@clisp.org>
88815
88816         * lib/javaexec.sh.in: New file, from GNU gettext.
88817         * lib/javaexec.h: New file, from GNU gettext.
88818         * lib/javaexec.c: New file, from GNU gettext.
88819
88820 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88821
88822         * modules/lchown (Depends-on): Remove lchown.h
88823
88824 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88825
88826         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
88827         must be defined if the header file was not found, in order
88828         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
88829
88830 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88831
88832         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
88833         initializers for struct pentry_state.
88834         (__argp_error): Check return value of __asprintf
88835         (__argp_failure): Translate error message
88836
88837         * lib/argp-parse.c: Removed braces around the expansion of N_()
88838
88839 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
88840
88841         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
88842         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
88843         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
88844         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
88845         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
88846         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
88847         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
88848         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
88849         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
88850         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
88851         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
88852         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
88853         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
88854         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
88855         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
88856         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
88857         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
88858         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
88859         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
88860         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
88861         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
88862         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
88863         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
88864         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
88865         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
88866         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
88867         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
88868         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
88869         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
88870         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
88871         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
88872         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
88873         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
88874         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
88875         xstrtol.m4, xstrtoumax.m4, yesno.m4:
88876         Use an all-permissive copyright notice, recommended by RMS.
88877
88878 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
88879
88880         * modules/chdir-long (Depends-on): Remove mempcpy.
88881
88882 2005-01-21  Jim Meyering  <jim@meyering.net>
88883
88884         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
88885         same value as for Solaris 9.
88886
88887         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
88888         component length.  This included changing the parameter to be
88889         of type `char *' rather than `char const *'.
88890         * lib/chdir-long.h (chdir_long): Update prototype.
88891
88892         * lib/openat.c (fdopendir, fstatat): New functions.
88893         * lib/openat.h: Include headers required for use of DIR and struct
88894         stat.
88895         [AT_SYMLINK_NOFOLLOW]: Define.
88896         (fdopendir, fstatat): Add prototypes.
88897
88898 2005-01-21  Bruno Haible  <bruno@clisp.org>
88899
88900         * modules/classpath: New file.
88901         * MODULES.html.sh (Java): Add classpath.
88902
88903 2005-01-21  Bruno Haible  <bruno@clisp.org>
88904
88905         * lib/classpath.h: New file, from GNU gettext.
88906         * lib/classpath.c: New file, from GNU gettext.
88907
88908 2005-01-20  Simon Josefsson  <jas@extundo.com>
88909
88910         * modules/version-etc-fsf: New file.
88911
88912 2005-01-20  Simon Josefsson  <jas@extundo.com>
88913
88914         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
88915         * lib/version-etc.c: Remove version_etc_copyright.
88916         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
88917         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
88918
88919 2005-01-20  Simon Josefsson  <jas@extundo.com>
88920
88921         * lib/base64.h (isbase64): Add.
88922
88923         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
88924         using a unsigned prototype, don't inline.
88925         (base64_decode): Use it.
88926
88927 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88928
88929         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
88930         it.
88931
88932 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88933
88934         * lib/save-cwd.c (save_cwd): Remove code to support the case
88935         where fchdir is missing or flaky.
88936
88937 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88938
88939         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
88940
88941 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
88942
88943         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
88944         AC_LIBSOURCES now does this.
88945         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
88946         with new ullong_max module.
88947
88948 2005-01-19  Bruno Haible  <bruno@clisp.org>
88949
88950         * modules/sh-quote: New file.
88951         * MODULES.html.sh (Executing programs): Add sh-quote.
88952
88953 2005-01-19  Bruno Haible  <bruno@clisp.org>
88954
88955         * lib/sh-quote.h: New file, from GNU gettext.
88956         * lib/sh-quote.c: New file, from GNU gettext.
88957
88958 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88959
88960         Merge from coreutils.
88961         * m4/ullong_max.m4: New file.
88962         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
88963         (gl_MACROS): Assume localeconv exists.
88964
88965 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88966
88967         Merge changes from coreutils, as described below in several
88968         changelogs dated today.
88969
88970         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
88971         (O_DIRECTORY): Remove; not needed here, since "." must be
88972         a directory.  All uses removed.
88973         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
88974         universal on Suns, and we also need to test for IRIX.
88975         Revamp code to use 'if' rather than '#if'.
88976         Avoid unnecessary comparison of cwd->desc to 0.
88977
88978         * lib/utimens.c (futimens): Robustify the previous patch, by checking
88979         for known valid error numbers rather than observed invalid ones.
88980
88981 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88982
88983         * modules/ullong_max: New file.
88984
88985         * modules/chdir-long, modules/openat: New files.
88986         * modules/save-cwd (Depends-on): Depend on chdir-long.
88987         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
88988
88989 2005-01-18  Jim Meyering  <jim@meyering.net>
88990
88991         Merge from coreutils.
88992         * m4/chdir-long.m4, m4/openat.m4: New files.
88993         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
88994         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
88995         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
88996         is sane and DOES follow symlinks.  Besides, testing 20 different
88997         systems found no broken chown implementations.
88998         Prompted by a change in rsync's copy of this macro.
88999         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
89000
89001         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
89002
89003         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
89004         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
89005         NULL-means-set-to-current-time semantics.
89006         Remove temporary file immediately, rather than waiting
89007         for configure's at-exit trap code to do it.
89008
89009 2005-01-18  Jim Meyering  <jim@meyering.net>
89010
89011         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89012
89013         * lib/utimens.c (futimens): Account for the fact that futimes
89014         can also fail with errno == ENOSYS or errno == ENOENT.
89015         Patch from Dmitry V. Levin.
89016
89017         Change the name of the robust chdir function from chdir to chdir_long.
89018         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
89019         (restore_cwd): Use chdir_long, not chdir.
89020         * lib/chdir-long.c: Renamed from chdir.c.
89021         * lib/chdir-long.h: Renamed from chdir.h.
89022         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
89023         Hurd.
89024
89025 2005-01-18  Bruno Haible  <bruno@clisp.org>
89026
89027         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
89028         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
89029         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
89030         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
89031         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
89032         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
89033         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
89034         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
89035         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
89036         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
89037         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
89038         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
89039         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
89040         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
89041         Use an all-permissive copyright notice, recommended by RMS.
89042
89043 2005-01-18  Bob Proulx  <bob@proulx.com>
89044
89045         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
89046         simplify offsetof() macro construct to avoid compile failure with
89047         native HP-UX 11.0 ANSI C compiler.
89048
89049 2005-01-17  Bruno Haible  <bruno@clisp.org>
89050
89051         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
89052         redundant because stpncpy.m4 takes care of it.
89053
89054 2005-01-17  Bruno Haible  <bruno@clisp.org>
89055
89056         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
89057
89058 2005-01-17  Bruno Haible  <bruno@clisp.org>
89059
89060         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
89061         used.
89062
89063 2005-01-17  Bruno Haible  <bruno@clisp.org>
89064
89065         * lib/fwriteerror.h (fwriteerror): Change specification to include
89066         fclose.
89067         * lib/fwriteerror.c: Include <stdbool.h>.
89068         (fwriteerror): At the end, close the file stream. Record whether
89069         stdout was already closed.
89070
89071 2005-01-17  Bruno Haible  <bruno@clisp.org>
89072
89073         * lib/execute.c (environ): Declare if needed.
89074         * lib/pipe.c (environ): Likewise.
89075         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
89076
89077 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89078
89079         * modules/argp: Depend on vsnprintf
89080
89081 2005-01-10  Jim Meyering  <jim@meyering.net>
89082
89083         * modules/closeout (Depends-on): Add atexit.
89084
89085 2005-01-06  Bruno Haible  <bruno@clisp.org>
89086
89087         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
89088
89089 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
89090
89091         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
89092         definitions to be after all include files, to avoid collisions.
89093         Problem reported by Bob Proulx.
89094
89095 2005-01-04  Jim Meyering  <jim@meyering.net>
89096
89097         Changes imported from coreutils.
89098         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
89099         as the mkstemp template, use a temporary directory and an
89100         8.3-friendly template to avoid trouble on systems like DJGPP.
89101         Reported by Juan M. Guerrero via Stepan Kasal.
89102         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
89103         close. Remove the temporary directory right away, rather than waiting
89104         for configure's at-exit trap code to do it.
89105         Suggestion from Stepan Kasal.
89106
89107 2005-01-01  Simon Josefsson  <jas@extundo.com>
89108
89109         * gnulib-tool: Print #include directives when --import'ing.
89110
89111 2004-12-28  Simon Josefsson  <jas@extundo.com>
89112
89113         * tests/test-base64.c: Include required header files.  Remove
89114         unused variables.
89115
89116 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89117
89118         * modules/error (Depends-on): Remove gettext.
89119
89120 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89121
89122         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
89123         not needed.  This removes a dependency on the gettext module.
89124         [defined _LIBC]: Do not include <libintl.h>; not needed.
89125
89126 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89127
89128         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
89129         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
89130
89131 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89132
89133         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
89134         HAVE_DECL_STRTOLD.
89135
89136 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89137
89138         * modules/getdate (Depends-on): Remove alloca-opt.
89139
89140 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89141
89142         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
89143
89144 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89145
89146         * lib/argp-parse.c: Include <stddef.h>.
89147         (alignof, alignto): New macros.
89148         (parser_init): Don't assume that void * is aligned sufficiently
89149         for struct option.
89150
89151         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
89152         need to extend the stack.
89153         (YYINITDEPTH): New macro, so that the initial stack isn't overly
89154         large.
89155
89156 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89157
89158         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
89159
89160 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89161
89162         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
89163         (2004-10-24) change.  Apparently this was a false alarm.
89164
89165         * modules/getdate: Depend on alloca-opt, not alloca.
89166
89167 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89168
89169         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
89170         Remove now-obsolete comment about AIX.
89171         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
89172         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
89173         (YYMAXDEPTH): New macro.
89174
89175 2004-12-18  Simon Josefsson  <jas@extundo.com>
89176
89177         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
89178
89179 2004-12-18  Bruno Haible  <bruno@clisp.org>
89180
89181         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
89182
89183 2004-12-18  Bruno Haible  <bruno@clisp.org>
89184
89185         * lib/fatal-signal.c (fatal_signals): Make non-const.
89186         (init_fatal_signals): New function.
89187         (uninstall_handlers, install_handlers): Ignore signals that were set to
89188         SIG_IGN.
89189         (at_fatal_signal): Call init_fatal_signals.
89190         (init_fatal_signal_set): Likewise. Ignore signals that were set to
89191         SIG_IGN.
89192         Reported by Paul Eggert.
89193
89194 2004-12-18  Bruno Haible  <bruno@clisp.org>
89195
89196         * doc/alloca.texi: New file.
89197         * doc/alloca-opt.texi: New file.
89198
89199 2004-12-17  Jim Meyering  <jim@meyering.net>
89200
89201         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
89202         Otherwise, install-sh could exit with improper exit status when
89203         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
89204
89205 2004-12-16  Simon Josefsson  <jas@extundo.com>
89206
89207         * tests/test-base64.c: Add license.
89208
89209 2004-12-15  Stepan Kasal  <address@hidden>
89210
89211         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
89212
89213 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
89214
89215         * modules/getcwd (Files): Add m4/d-ino.m4.
89216         Suggested by Mark D. Baushke.
89217
89218 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89219
89220         * lib/getdate.y (textint): New member "negative".
89221         (time_zone_hhmm): New function.
89222         Expect 14 shift-reduce conflicts, not 13.
89223         (o_colon_minutes): New rule.
89224         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
89225         (yylex): Set the "negative" member of signed numbers.
89226
89227 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89228
89229         * doc/getdate.texi (Time of day items, Time zone items):
89230         Describe new formats +00:00, UTC+00:00.
89231
89232 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
89233
89234         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
89235         spurious "-l"s.  Problem reported by Stepan Kasal.
89236
89237 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
89238
89239         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
89240         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
89241
89242 2004-12-04  Simon Josefsson  <jas@extundo.com>
89243
89244         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
89245         Vandoorselaere <yoann@prelude-ids.org>.
89246
89247 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89248
89249         Changes imported from coreutils.
89250         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
89251         exist.
89252         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
89253
89254 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89255
89256         Changes imported from coreutils.
89257         * lib/hard-locale.c: Assume <locale.h> exists.
89258         Include "strdup.h".
89259         (GLIBC_VERSION): New macro.
89260         (hard_locale): Assume setlocale exists.
89261         Rewrite to avoid #ifdef.
89262         Use strdup rather than malloc + strcpy.
89263         * lib/human.c: Assume <locale.h> exists.
89264         (human_readable): Assume localeconv exists.
89265
89266 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89267
89268         * modules/hard-locale (Depends-on): Add strdup.
89269
89270 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89271
89272         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
89273         convert T2, not T.  (Imported from libc.)
89274
89275 2004-11-30  Simon Josefsson  <jas@extundo.com>
89276
89277         * modules/restrict (License): Change to LGPL.
89278
89279 2004-11-30  Simon Josefsson  <jas@extundo.com>
89280
89281         * m4/restrict.m4: Add copyright and copying conditions.
89282
89283 2004-11-30  Simon Josefsson  <jas@extundo.com>
89284
89285         * m4/base64.m4: New file.
89286
89287 2004-11-30  Simon Josefsson  <jas@extundo.com>
89288
89289         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
89290         base64.
89291
89292         * tests/test-base64.c: New file.
89293
89294         * modules/base64: New file.
89295
89296 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89297
89298         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
89299         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
89300
89301         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
89302
89303 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89304
89305         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
89306         (__getcwd.c): Don't restore errno; glibc doesn't.
89307         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
89308         first, falling back to our code only if its results look suspicious.
89309         Ensure that the resulting buffer is only as large as necessary.
89310
89311         * lib/readutmp.c: Include readutmp.h first.
89312         Include <errno.h>, since readutmp.h no longer does that.
89313         * lib/readutmp.h: Don't include <errno.h>,
89314         <sys/param.h>, <time.h>; not needed to establish interface.
89315         (errno): Remove decl.
89316         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
89317         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
89318         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
89319
89320 2004-11-28  Simon Josefsson  <jas@extundo.com>
89321
89322         * lib/base64.h, base64.c: New file.
89323
89324 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89325
89326         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89327
89328 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89329
89330         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89331         (Depends-on): Remove pathmax, same.  Add mempcpy.
89332         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89333         (Makefile.am): Append getcwd.h to lib_SOURCES.
89334         (Include): Add getcwd.h.
89335         (Maintainer): Change from Jim Meyering to "all, glibc",
89336         since getdate now uses intended-for-glibc code.
89337         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89338         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89339
89340 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89341
89342         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89343         HP's ANSI C compiler.
89344         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89345         Declaring int functions causes warnings on some modern systems and
89346         shouldn't be needed to compile on ancient ones.
89347         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89348         defined.
89349
89350         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89351         with the following changes.
89352         (__set_errno): Parenthesize properly.
89353         Include <stdbool.h>.
89354         (MIN, MAX, MATCHING_INO): New macros.
89355         (__getcwd): Define with prototype, not K&R form.
89356         Use heuristics to allocate default buffer on stack if possible.
89357         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89358         behavior, and to avoid the PATH_MAX limit when computing
89359         ../../../../...
89360         Use MATCHING_INO to compare inode number to file.
89361         Check for arithmetic overflow in size calculations.
89362         Fix bug in reallocation of dot array that caused getcwd to fail
89363         on directories nested deeper than 75.
89364         Be more careful about saving errno on error.
89365         Do not use realloc; use only free+malloc, as this is a bit
89366         more flexible and avoids a needless copy operation.
89367         Do not inspect st_dev and st_ino for symbolic links; POSIX
89368         doesn't specify the latter.
89369         Check for closedir errors.
89370         Avoid needless casts.
89371         Use "#ifdef weak_alias" around weak_alias, to be like other
89372         glibc code.
89373         The following changes to getcwd.c have effect only when used in
89374         gnulib; they have no effect inside glibc proper.
89375         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89376         as alloca isn't used.
89377         (alloca, __alloca): Likewise.
89378         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89379         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89380         unconditionally, as gnulib assumes C89 or better.
89381         Do not include <sys/param.h>.
89382         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89383         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89384         better.
89385         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89386         Include <dirent.h> in a way that is compatible with modern Autoconf.
89387         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
89388         New macros, if not already defined.
89389         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
89390         Use "_LIBC", not "defined _LIBC", for consistency.
89391         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
89392         a mempcpy module.
89393         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89394         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89395         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89396         credit only to Jim Meyering and adjust the copyright dates.
89397         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89398         <stdlib.h>, <unistd.h>, "pathmax.h".
89399         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89400         (INITIAL_BUFFER_SIZE): Remove.
89401         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89402
89403 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89404
89405         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89406         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89407         Use the _ONCE methods, for efficiency.
89408         Check for fcntl.h.  In test program, include <errno.h>
89409         and <fcntl.h> if available.  Remove old K&R cruft from
89410         test program.  Check for common errors in GNU/Linux,
89411         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89412         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89413         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89414         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89415         name accordingly.
89416         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89417         accommodate new getcwd.c.
89418         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89419         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89420         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89421         that's all we need now.
89422
89423 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89424
89425         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89426         argp-parse.c depends on getopt internals, that means we should
89427         always use our getopt, to be on the safe side.
89428         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89429         order not to spoil the result of an eventual previous invocation
89430         of gl_GETOPT_SUBSTITUTE.
89431
89432 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89433
89434         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89435         redefinition warnings. To avoid them, include the defines
89436         in `#if !defined __need_getopt ... #endif'. The only place
89437         where __getopt_argv_const is used is in definitions
89438         of getopt_long and getopt_long_only below, which are as well
89439         protected by `#ifndef __need_getopt'.
89440         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89441         __need_getopt after including <stdio.h> and <unistd.h> These
89442         headers might have defined it.
89443
89444 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89445
89446         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89447
89448 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89449
89450         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89451         (futimens): New function, which uses futimes if available.
89452         (futimens, utimens): Support timespec==NULL, with same semantics
89453         as utime and utimens.
89454         * lib/utimens.h (futimens): New decl.
89455
89456 2004-11-23  Jim Meyering  <jim@meyering.net>
89457
89458         * lib/getopt_.h: Remove trailing blanks.
89459
89460 2004-11-23  Jim Meyering  <jim@meyering.net>
89461
89462         * lib/__fpending.c: Add comment.
89463
89464 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89465
89466         * modules/canonicalize (Depends-on): Add xreadlink.
89467         Problem reported by James Youngman.
89468
89469 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89470
89471         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89472         New macros.
89473         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89474         optopt): Use them instead of invoking ## directly; otherwise, the
89475         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89476
89477 2004-11-19  Bruno Haible  <bruno@clisp.org>
89478
89479         * lib/strtok_r.c: Move comments from here...
89480         * lib/strtok_r.h: ... to here.
89481
89482 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89483
89484         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
89485         implementations that mishandle size_t overflow.
89486
89487 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89488
89489         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
89490         might fail.  Problem reported by Yoann Vandoorselaere.
89491         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
89492         implementations that mishandle size_t overflow.
89493
89494 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89495
89496         * modules/canon-host (Depends-on): Add strdup.
89497
89498 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89499
89500         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
89501
89502 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89503
89504         * lib/canon-host.c: Include "strdup.h".
89505         (canon_host): Use getaddrinfo if available, so that IPv6 works.
89506         Use strdup instead of malloc/strcpy to duplicate strings.
89507
89508         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
89509         (human_space_before_unit): New constant.
89510         * lib/human.c (human_readable): Support it.
89511
89512         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
89513         (xgetcwd): Set errno correctly when failing.
89514         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
89515         the failure is actually due to a PATH_MAX problem.
89516
89517         Further getopt changes to make it more likely that glibc will
89518         buy the changes back.
89519         * lib/getopt.c (POSIXLY_CORRECT): New constant.
89520         (getopt): Use it, so to preserve glibc semantic
89521         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
89522         when compiling for libc.
89523         * lib/getopt_.h (__getopt_argv_const): Bring it back.
89524         (getopt_long, getopt_long_only): Use it.
89525
89526         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89527         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
89528         (getopt): Argv is now char * const *, as per standard.
89529         (_getopt_internal_r, _getopt_internal): Argv is now char **,
89530         not char *__getopt_argv_const *.
89531         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89532         _getopt_long_only_r): Likewise.
89533         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
89534         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89535         _getopt_long_r, _getopt_long_only_r): Likewise.
89536         * lib/getopt_.h (__getopt_argv_const): Remove.
89537         (getopt): Argv is now char * const *, as per standard.
89538
89539         * lib/getdate.y (tORDINAL): New token.
89540         (day, relunit): Allow it for relative times.
89541         (relative_time_table): Use tORDINAL for ordinals.
89542
89543 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89544
89545         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
89546         Document that "second" isn't allowed as an ordinal number.
89547
89548 2004-11-16  Jim Meyering  <jim@meyering.net>
89549
89550         * modules/closeout (Depends-on): Add fpending.
89551
89552 2004-11-15  Jim Meyering  <jim@meyering.net>
89553
89554         * lib/closeout.c: Include "__fpending.h" once again.
89555         Include <stdbool.h>.
89556         (close_stdout): Don't fail just because stdout was closed initially,
89557         since some programs don't write to stdout in the normal course of
89558         operation (other than --version and --help), and we don't want this
89559         function to make e.g. `touch file >&-' fail.
89560         But do fail if it was closed and someone has tried to write to it.
89561         E.g., `printf foo >&-' must fail.
89562
89563 2004-11-13  Jim Meyering  <jim@meyering.net>
89564
89565         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
89566
89567 2004-11-12  Simon Josefsson  <jas@extundo.com>
89568
89569         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
89570         small doc fix is still pending.
89571
89572 2004-11-11  Simon Josefsson  <jas@extundo.com>
89573
89574         * modules/strtok_r: New file.
89575
89576         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89577         strtok_r.
89578
89579 2004-11-11  Simon Josefsson  <jas@extundo.com>
89580
89581         * m4/strtok_r.m4: New file.
89582
89583         * m4/getopt.m4: Replace opterr.
89584
89585 2004-11-11  Simon Josefsson  <jas@extundo.com>
89586
89587         * lib/strtok_r.h, strtok_r.c: New file.
89588
89589 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89590
89591         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
89592         of replacing opterr, getopt, etc.  This should handle the
89593         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
89594
89595 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89596
89597         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
89598         we can stop lying to compilers about the constness of argv when we
89599         are compiled outside glibc.
89600         (getopt, getopt_long, getopt_long_only): Use it.
89601         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89602         _getopt_internal, getopt): Likewise.
89603         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89604         _getopt_long_only_r): Likewise.
89605         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89606         _getopt_long_r, _getopt_long_only_r): Likewise.
89607
89608         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
89609         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
89610         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
89611         the other external symbols.
89612         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
89613         declaration, since the above renaming now works around collisions.
89614
89615 2004-11-11  Jim Meyering  <jim@meyering.net>
89616
89617         * lib/linebreak.c: Remove trailing blanks.
89618         * lib/alloca_.h: Likewise.
89619         * lib/acosl.c: Likewise.
89620         * lib/euidaccess.c: Likewise.
89621         * lib/allocsa.h: Likewise.
89622
89623 2004-11-10  Simon Josefsson  <jas@extundo.com>
89624
89625         * m4/getaddrinfo.m4: New file.
89626
89627 2004-11-10  Simon Josefsson  <jas@extundo.com>
89628
89629         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
89630
89631 2004-11-10  Simon Josefsson  <jas@extundo.com>
89632
89633         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89634         getaddrinfo.
89635
89636         * modules/getaddrinfo: New file.
89637
89638 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89639
89640         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
89641
89642 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89643
89644         * lib/mktime.c (SHR): New macro, which is a portable
89645         substitute for >> that should work even on Crays.
89646         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
89647         Problem reported by Mark D. Baushke in
89648         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
89649         * lib/getdate.y (SHR): Likewise.
89650         (tm_diff): Use it.
89651         * lib/strftime.c (SHR): Likewise.
89652         (tm_diff): Use it.
89653         * lib/quotearg.c (struct quoting_options): Use unsigned int for
89654         quote_these_too, so that right shifts are well defined.  All uses
89655         changed.
89656
89657 2004-11-10  Jim Meyering  <jim@meyering.net>
89658
89659         Ensure that no close failure goes unreported.
89660         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
89661         return early when it seems there's nothing to flush.
89662         Don't include __fpending.h.
89663
89664 2004-11-10  Jim Meyering  <jim@meyering.net>
89665
89666         * modules/closeout (Depends-on): Remove fpending.
89667
89668 2004-11-10  Jim Meyering  <jim@meyering.net>
89669
89670         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
89671
89672 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89673
89674         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
89675         gl_FUNC_STRFTIME.
89676         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
89677         and AC_REQUIRE when possible, to avoid duplicate checks.
89678         Check for <wchar.h>.
89679
89680 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89681
89682         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
89683
89684 2004-11-09  Bruno Haible  <bruno@clisp.org>
89685
89686         * m4/sockpfaf.m4: New file.
89687
89688 2004-11-05  Bruno Haible  <bruno@clisp.org>
89689
89690         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
89691         Reported by Mark D. Baushke <mdb@cvshome.org>.
89692
89693 2004-11-04  Bruno Haible  <bruno@clisp.org>
89694
89695         2004-09-11  Bruno Haible  <bruno@clisp.org>
89696                 * allocsa.valgrind: New file.
89697         2004-02-06  Bruno Haible  <bruno@clisp.org>
89698                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
89699                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
89700                 Reported by Christopher Seip <chris.seip@hp.com>.
89701
89702 2004-11-04  Bruno Haible  <bruno@clisp.org>
89703
89704         * modules/allocsa (Files): Add lib/allocsa.valgrind.
89705         (Makefile.am): Distribute it.
89706
89707 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
89708
89709         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
89710         with errno == ERANGE if the buffer is too small.
89711         Problem reported by Mark D. Baushke.
89712
89713 2004-11-03  Albert Chin  <china@thewrittenword.com>
89714             Paul Eggert  <eggert@cs.ucla.edu>
89715
89716         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
89717         equivalent, substitute $ac_type for equivalent type rather than
89718         blindly using uint32_t *always* which won't work if uint32_t is not
89719         available.  Define _UINT32_T to work around typedef of uint32_t if
89720         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
89721         2.5.1.
89722
89723 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89724
89725         * m4/jm-macros.m4: Sync from coreutils.
89726         (gl_MACROS): Check for mbrlen, for pathchk.
89727         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
89728
89729 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89730
89731         * lib/xreadlink.c (MAXSIZE): New macro.
89732         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
89733         size does not exceed MAXSIZE.  Avoid cast.
89734         As suggested by Mark D. Baushke in
89735         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
89736         if readlink fails with buffer size just under MAXSIZE, try again
89737         with MAXSIZE.
89738
89739 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89740
89741         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
89742
89743 2004-11-02  Derek R. Price  <derek@ximbiot.com>
89744         and  Paul Eggert  <eggert@cs.ucla.edu>
89745
89746         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
89747         (get_date): Overparenthesize to avoid GCC warning.
89748
89749 2004-11-02  Bruno Haible  <bruno@clisp.org>
89750
89751         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
89752         returns void.
89753
89754 2004-11-02  Bruno Haible  <bruno@clisp.org>
89755
89756         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
89757         function returns void.
89758
89759 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89760
89761         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
89762         fflush_unlocked, flockfile, funlockfile, funlockfile,
89763         fputs_unlocked, putc_unlocked.
89764
89765 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89766
89767         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89768         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
89769         already declared.
89770
89771 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89772
89773         * modules/getdate (Files): Add doc/getdate.texi.
89774         (Depends-on): Add setenv, xalloc.
89775
89776 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89777
89778         * lib/getdate.y: Add support for TZ="foo" within a date string.
89779         Fix some bugs near time_t boundaries.  Reject dates with
89780         out-of-range components, e.g., "Sept 31".
89781         Include <stdlib.h>, "setenv.h", "xalloc.h".
89782         (ISDIGIT_LOCALE): Remove; unused.
89783         Note that the TZ and time functions used here are not reentrant.
89784         (mktime_ok, get_tz): New functions.
89785         (TZBUFSIZE): New constant.
89786         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
89787         This requires that we sometimes generate our own TZ="XXX..." setting.
89788
89789 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89790
89791         * doc/getdate.texi: New file, from coreutils with modifications for
89792         the new TZ parsing.
89793
89794 2004-10-27  Derek R. Price  <derek@ximbiot.com>
89795
89796         * lib/mktime.c (not_equal_tm): Remove redundant check.
89797
89798 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89799
89800         * modules/regex (lib_SOURCES): Add regex.c.
89801         Reported by James Youngman in
89802         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
89803
89804 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89805
89806         * lib/getdate.y: Use Bison 1.875 features, and some minor
89807         code cleanups.  This change does not affect semantics.
89808         Don't include <stdlib.h>; no longer needed.
89809         Don't include unlocked-io.h; only the "#if TEST" code uses
89810         stdio, and performance isn't crucial there.
89811         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
89812         Bison 1.875 features as described below.
89813         All uses of "PC." replaced by "pc->".
89814         (YYSTYPE): Add a forward declaration.
89815         (yylex, yyerror): Use full prototypes in forward decls.
89816         Use "%pure-parser" rather than obsolescent "%pure_parser".
89817         Use %parse-param and %lex-param instead of obsolescent
89818         YYPARSE_PARAM and YYLEX_PARAM.
89819         (meridian_table, month_and_day_table, time_units_table,
89820         relative_time_table, time_zone_table, military_table,
89821         lookup_zone, lookup_word, get_date):
89822         Use NULL instead of 0 where appropriate.
89823         (to_hour): Avoid abort (), to avoid a dependency on
89824         stdlib.h.
89825         (yyerror, yylex): Now accepts parser_control * arg.
89826         (main) [TEST]: Use '\0' rather than 0 for char.
89827
89828 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89829
89830         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
89831
89832 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89833
89834         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
89835         It's now the caller's responsibility to handle the case where
89836         !HAVE_GETPAGESIZE && !defined getpagesize.
89837
89838         * lib/mktime.c (leapyear): Arg is long int, not int.
89839
89840 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
89841
89842         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
89843
89844 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89845
89846         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
89847         missing.  Problem reported by James Youngman.
89848
89849 2004-10-16  Simon Josefsson  <jas@extundo.com>
89850
89851         * gnulib-tool: Fix comments.  Fix parse problem.
89852         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
89853
89854 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
89855
89856         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
89857         implementation of getopt_long.  Problem reported by Alexander Taler in:
89858         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
89859
89860 2004-10-15  Bruno Haible  <bruno@clisp.org>
89861
89862         * gnulib-tool: Untabify. Initialize supplied_libname.
89863         (func_usage): More homogenous output.
89864         (func_modules_transitive_closure, func_modules_to_filelist,
89865         func_emit_lib_Makefile_am): New functions.
89866         (func_import): New function, extracted from big case statement. Use
89867         func_get_license, func_modules_transitive_closure,
89868         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
89869         opt_lgpl. Don't use test -a, as it's not portable.
89870         (func_create_testdir): Use func_modules_transitive_closure,
89871         func_modules_to_filelist, func_emit_lib_Makefile_am.
89872
89873 2004-10-15  Bruno Haible  <bruno@clisp.org>
89874
89875         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
89876
89877 2004-10-15  Bruno Haible  <bruno@clisp.org>
89878
89879         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
89880         the portions belonging to each module.
89881         Suggested by Derek Robert Price <derek@ximbiot.com>.
89882
89883 2004-10-12  Simon Josefsson  <jas@extundo.com>
89884
89885         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89886         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
89887         to real functions.
89888
89889 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89890
89891         * modules/vsnprintf: New file.
89892
89893 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89894
89895         * m4/vsnprintf.m4: New file.
89896
89897 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89898
89899         * lib/vsnprintf.h: New file.
89900         * lib/vsnprintf.c: New file.
89901
89902 2004-10-11  Bruno Haible  <bruno@clisp.org>
89903
89904         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
89905         vsnprintf.
89906
89907 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
89908
89909         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
89910
89911 2004-10-07  Bruno Haible  <bruno@clisp.org>
89912
89913         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
89914         fits into the provided buffer.
89915
89916 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
89917
89918         * lib/diacrit.c, diacrit.h: Add GPL notice.
89919
89920         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
89921         notice.
89922         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
89923         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
89924         This avoids a potential constant-folding bug.
89925
89926 2004-10-05  Bruno Haible  <bruno@clisp.org>
89927
89928         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
89929         for the declaration of strsep.
89930
89931 2004-10-05  Bruno Haible  <bruno@clisp.org>
89932
89933         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
89934
89935 2004-10-04  Simon Josefsson  <jas@extundo.com>
89936
89937         * modules/memmem: New file.
89938         * tests/test-memmem.c: New file.
89939         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
89940
89941 2004-10-04  Simon Josefsson  <jas@extundo.com>
89942
89943         * m4/memmem.m4: New file.
89944
89945 2004-10-04  Simon Josefsson  <jas@extundo.com>
89946
89947         * lib/memmem.h: New file.
89948         * lib/memmem.c: New file, taken from glibc.
89949
89950 2004-10-04  Simon Josefsson  <jas@extundo.com>
89951
89952         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
89953         '#ifdef USE_UNLOCKED_IO'.
89954
89955 2004-10-04  Simon Josefsson  <jas@extundo.com>
89956
89957         * config/srclist.txt: Add memmem from glibc.
89958
89959 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89960
89961         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
89962
89963         * modules/argmatch, modules/argp, modules/closeout, modules/error,
89964         modules/exclude, modules/getdate, modules/getline,
89965         modules/getndelim2, modules/getpass, modules/getpass-gnu,
89966         modules/getusershell, modules/linebuffer, modules/md5,
89967         modules/mountlist, modules/posixtm, modules/readtokens,
89968         modules/readutmp, modules/regex, modules/sha1,
89969         modules/version-etc, modules/yesno:
89970         Remove dependency on unlocked-io.
89971
89972 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89973
89974         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
89975
89976         * m4/unlocked-io.m4: Add copyright notice.
89977         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
89978
89979 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89980
89981         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
89982         * lib/xmalloc.c (xmemdup): Likewise.
89983         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
89984         XFREE): Remove these long-obsolescent macros.
89985         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
89986         * lib/xstrdup.c: Remove.
89987
89988         * lib/regex.c (re_comp): Cast gettext return value to char *,
89989         Problem reported by Martin Neitzel via Mark D. Baushke.
89990
89991 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89992
89993         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
89994         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
89995         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
89996         regex.c, sha1.c, version-etc.c, yesno.c:
89997         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
89998         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
89999         the includer's responsibility.
90000
90001         Sync from coreutils.
90002
90003         * lib/modechange.c (mode_compile): Don't decrement a pointer that
90004         points to the start of a string, as the C Standard says the
90005         resulting behavior is undefined.
90006
90007         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
90008         simple -> simple_backups, numbered_existing ->
90009         numbered_existing_backups, numbered -> numbered_backups
90010         to avoid shadowing problems.  All uses changed.
90011         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
90012         * lib/backupfile.c (check_extension, numbered_backup):
90013         Rename locals to avoid shadowing 'basename'.
90014         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
90015         once.
90016
90017         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
90018         * lib/.cvsignore: Add getopt.h.
90019
90020 2004-10-04  Bruno Haible  <bruno@clisp.org>
90021
90022         * modules/README: New file.
90023         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
90024         not a module.
90025
90026 2004-10-02  Jim Meyering  <jim@meyering.net>
90027
90028         * lib/dirfd.h, getpagesize.h: Add copyright notice.
90029
90030 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90031
90032         * modules/strsep: New file.
90033
90034 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90035
90036         * m4/strsep.m4: New file.
90037
90038 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90039
90040         * lib/strsep.h: New file.
90041         * lib/strsep.c: New file.
90042
90043 2004-10-01  Simon Josefsson  <jas@extundo.com>
90044
90045         * lib/snprintf.c (snprintf): Handle size==0.
90046
90047 2004-10-01  Simon Josefsson  <jas@extundo.com>
90048             Bruno Haible  <bruno@clisp.org>
90049
90050         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
90051         (snprintf): Declare 'args'.
90052
90053 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
90054
90055         * lib/snprintf.c: Remove comments as to why each header is needed.
90056
90057 2004-10-01  Bruno Haible  <bruno@clisp.org>
90058
90059         * MODULES.html.sh: Add strsep.
90060
90061 2004-09-30  Simon Josefsson  <jas@extundo.com>
90062
90063         * modules/snprintf: New file.
90064
90065 2004-09-30  Simon Josefsson  <jas@extundo.com>
90066
90067         * m4/snprintf.m4: New file.
90068
90069 2004-09-30  Simon Josefsson  <jas@extundo.com>
90070
90071         * lib/snprintf.h, lib/snprintf.c: New files.
90072
90073 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90074
90075         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
90076         (hol_entry_help): Never translate an empty string.
90077         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
90078         * lib/argp.h (OPTION_NO_TRANS): New option.
90079
90080 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90081
90082         * modules/argp (Maintainer): Replace Simon Josefsson
90083         by Sergey Poznyakoff.
90084
90085 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90086
90087         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
90088         changes merged back into glibc.
90089
90090 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90091
90092         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
90093
90094 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
90095
90096         * lib/xvasprintf.c: Include xalloc.h.
90097         (xvasprintf): Use xalloc_die, not xmalloc_die.
90098
90099 2004-09-29  Bruno Haible  <bruno@clisp.org>
90100
90101         * modules/alloca-opt: New file, derived from modules/alloca.
90102         * modules/allocsa: Depend on alloca-opt instead of alloca.
90103         * modules/setenv: Likewise.
90104         * modules/vasnprintf: Likewise.
90105         * MODULES.html.sh: Add alloca-opt.
90106
90107 2004-09-28  Simon Josefsson  <jas@extundo.com>
90108
90109         * gnulib-tool: New parameter --lgpl, to asseert that modules are
90110         LGPL, and to replace license template from GPL to LGPL.
90111
90112 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90113
90114         * modules/dummy: Change license to LGPL.
90115
90116 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90117
90118         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
90119
90120 2004-09-24  Simon Josefsson  <jas@extundo.com>
90121
90122         * modules/minmax (License): Change from GPL to LGPL.
90123
90124 2004-09-23  Simon Josefsson  <jas@extundo.com>
90125
90126         * gnulib-tool (--import): Typo.
90127
90128 2004-09-23  Simon Josefsson  <jas@extundo.com>
90129
90130         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
90131
90132 2004-09-22  Bruno Haible  <bruno@clisp.org>
90133
90134         * modules/*: Add 'License' field.
90135         * gnulib-tool: Accept --extract-license option.
90136         (func_get_license): New function.
90137
90138 2004-09-21  Bruno Haible  <bruno@clisp.org>
90139
90140         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
90141         Reported by Simon Josefsson.
90142
90143 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90144
90145         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
90146         gl_AC_TYPE_LONG_LONG.
90147
90148 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90149
90150         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
90151
90152 2004-09-18  Simon Josefsson  <jas@extundo.com>
90153         and  Paul Eggert  <eggert@cs.ucla.edu>
90154
90155         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
90156         calls with autoreconf.  Define GL_LIB.
90157
90158 2004-09-14  Karl Berry  <karl@gnu.org>
90159
90160         * config/srclist.txt: unsync setenv.c, sigh.
90161
90162 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90163
90164         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
90165         Problem reported by Bruno Haible in:
90166         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
90167
90168 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90169
90170         * config/srclist.txt: Comment out argp-pvh.c.
90171
90172 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
90173
90174         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
90175         in case some system header has #define'd it.  Problem reported by
90176         Soeren D. Schulze in
90177         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
90178
90179 2004-09-09  Karl Berry  <karl@gnu.org>
90180
90181         * regex.[ch]: delete from the root.  These were supposed to be
90182                 synced with emacs cvs, but this has not happened for about
90183                 a year, and anyway nothing else uses emacs regex.[ch].
90184                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
90185                 lib/regex[.ch] is untouched.
90186
90187 2004-09-09  Bruno Haible  <bruno@clisp.org>
90188
90189         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
90190
90191 2004-09-09  Bruno Haible  <bruno@clisp.org>
90192
90193         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
90194         modifications.
90195         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
90196
90197 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90198
90199         * modules/xvasprintf: New file.
90200         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
90201
90202 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90203
90204         * lib/xvasprintf.h: New file.
90205         * lib/xvasprintf.c: New file.
90206         * lib/xasprintf.c: New file.
90207
90208 2004-09-08  Bruno Haible  <bruno@clisp.org>
90209
90210         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
90211
90212 2004-09-08  Bruno Haible  <bruno@clisp.org>
90213
90214         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
90215         length is > INT_MAX.
90216         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
90217         more.
90218
90219 2004-09-08  Bruno Haible  <bruno@clisp.org>
90220
90221         * lib/stdint_.h: New file, taken from GNU clisp.
90222
90223 2004-09-08  Bruno Haible  <bruno@clisp.org>
90224             Oskar Liljeblad  <oskar@osk.mine.nu>
90225
90226         * modules/stdint: New file.
90227         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
90228
90229 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90230
90231         Import from coreutils.
90232         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
90233         strings on unbounded length.  alloca's performance benefits aren't
90234         that important here.
90235         (V_STRDUP): Remove.
90236         (parse_with_separator): New function, with most of the internals
90237         of the old parse_user_spec.  Allow user to omit both user and group,
90238         for compatibility with FreeBSD.
90239         Clone only the user name, not the entire spec.
90240         Do not set *uid, *gid unless entirely successful.
90241         Avoid memory leak in some failing cases.
90242         Fix regression for USER.GROUP reported by Dmitry V. Levin in
90243         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
90244         (parse_user_spec): Rewrite to use parse_with_separator.
90245
90246 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90247
90248         * modules/userspec: Don't depend on alloca.
90249
90250 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90251
90252         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
90253
90254 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90255
90256         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
90257         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
90258         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
90259
90260 2004-08-16  Simon Josefsson  <jas@extundo.com>
90261
90262         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
90263         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
90264         Add --dry-run for --import.
90265         Let user provided command line parameters override configure.ac
90266         settings.
90267
90268 2004-08-12  Simon Josefsson  <jas@extundo.com>
90269
90270         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
90271         as discussed with Paul Eggert in threads rooted at
90272         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
90273         and
90274         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
90275         Before, the test was empty, and relied on ELIDE_CODE in source
90276         code.)
90277         (gl_PREREQ_GETOPT): New macro.
90278         (gl_GETOPT): Use them.
90279
90280 2004-08-12  Simon Josefsson  <jas@extundo.com>
90281
90282         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
90283         * lib/getopt_.h: Renamed from getopt.h.
90284
90285 2004-08-12  Simon Josefsson  <jas@extundo.com>
90286
90287         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
90288         Change default library name from libfoo to libgnu.
90289         Now, if you have a configure.ac that says:
90290                 gl_SOURCE_BASE(gl)
90291                 gl_M4_BASE(gl/m4)
90292                 gl_MODULES(error getopt etcetera)
90293                 gl_INIT
90294         you can import all you need by running:
90295                 ../gnulib/gnulib-tool --import
90296
90297         * modules/getopt (Files): Rename getopt.h to getopt_.h.
90298         (Makefile.am): Rewrite, use logic from argz.
90299         (Include): Use <getopt.h> instead of "getopt.h".
90300
90301 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90302
90303         * modules/argp (Files): Add m4/unlocked-io.m4.
90304         (Depends-on): Add extensions.
90305
90306 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90307
90308         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
90309         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
90310         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
90311         Check for program_invocation_name, program_invocation_short_name,
90312         flockfile, funlockfile, features.h, _getopt_long_only_r.
90313
90314 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90315
90316         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
90317         its complicated substitute.
90318         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
90319         and program_invocation_name.
90320         (__argp_basename) [!_LIBC]: Remove; the only use was
90321         replaced by its body.
90322         (__argp_short_program_name): Change condition from
90323         !defined __argp_short_program_name to
90324         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90325         to match argp-namefrob.h.
90326         (__argp_failure): Don't assume strerror_r returns char *.
90327         * lib/argp-parse.c (N_): Define unconditionally.
90328         (argp_default_options): Fill out initializers with 0 to avoid
90329         gcc warnings.
90330
90331 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90332
90333         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90334         getopt1.c.
90335
90336 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90337
90338         Merge from coreutils.
90339
90340         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90341
90342         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90343         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90344
90345 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90346
90347         Merge from coreutils.
90348
90349         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90350         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90351         for Reliant Unix 5.43.
90352
90353         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90354         (union fooround): Use uintmax_t, not long int.
90355         The rest is a merge from libc:
90356         [defined _LIBC]: Include <shlib-compat.h>.
90357         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90358
90359         * lib/settime.c (settime): Recode to avoid warning with
90360         Sun Forte C 6U2.
90361
90362         * lib/strverscmp.c: Convert to UTF-8.
90363
90364 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90365
90366         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90367         m4/uintmax_t.m4.
90368
90369 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90370
90371         * modules/xalloc-die: New file.
90372         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90373
90374         * modules/md5 (Files): Add m4/uint32_t.m4.
90375         * modules/sha1: Renamed from modules/sha.
90376         (Files):
90377         Rename lib/sha.h to lib/sha1.h.
90378         Rename lib/sha.c to lib/sha1.c.
90379         Rename m4/sha.m4 to m4/sha1.m4.
90380         (lib_SOURCES): Likewise.
90381         (configure.ac): Rename gl_SHA to gl_SHA1.
90382         (Include): sha.h -> sha1.h.
90383
90384 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90385
90386         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
90387         * m4/sha1.m4: Renamed from sha.m4.
90388         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
90389
90390 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90391
90392         * lib/obstack.h (obstack_empty_p):
90393         Don't assume that chunk->contents is suitably aligned.
90394         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90395         Likewise. Problem reported by Benno in
90396         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90397
90398         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90399         readable.  This could be improved further but it'd take some work.
90400
90401 2004-08-08  Simon Josefsson  <jas@extundo.com>
90402
90403         * modules/xgethostname (Depends-on): Remove exit and error (not
90404         used).
90405
90406         * modules/getpass-gnu: Add getpass.h.
90407         (Depends-on): Add stdbool.
90408         * modules/getpass: Add getpass.h.
90409
90410 2004-08-08  Simon Josefsson  <jas@extundo.com>
90411
90412         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90413         Check getpass declaration.
90414
90415 2004-08-08  Simon Josefsson  <jas@extundo.com>
90416
90417         * lib/xgethostname.c: Don't include error.h (not used).
90418
90419         * lib/getpass.h: Add.
90420         * lib/getpass.c: Include getpass.h first.
90421
90422 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90423
90424         * lib/xalloc-die.c: New file.
90425         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90426         All uses removed.
90427         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90428         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90429         xalloc-die.c.
90430         (_, N_, xalloc_die): Move to xalloc-die.c.
90431         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90432         so that we needn't mess with xalloc_msg_memory_exhausted.
90433
90434         * lib/sha1.h: Renamed from sha.h.
90435         (SHA1_H): Renamed from _SHA_H.
90436         (sha1_ctx): Renamed from sha_ctx.
90437         (sha1_init_ctx): Renamed from sha_init_ctx.
90438         (sha1_process_block): Renamed from sha_process_block.
90439         (sha1_process_bytes): Renamed from sha_process_bytes.
90440         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90441         (sha1_read_ctx): Renamed from sha_read_ctx.
90442         (sha1_stream): Renamed from sha_stream.
90443         (sha1_buffer): Renamed from sha_buffer.
90444         * lib/sha1.c: Likewise; renamed from sha.c.
90445         Do not include <sys/types.h>.
90446         Include <stddef.h> rather than <stdlib.h>.
90447
90448 2004-08-08  Bruno Haible  <bruno@clisp.org>
90449
90450         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90451         FILESYSTEM_PREFIX_LEN.
90452         * lib/progreloc.c: Likewise.
90453         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90454
90455 2004-08-06  Simon Josefsson  <jas@extundo.com>
90456
90457         * modules/progname (Depends-on): Don't depend on stdbool.
90458
90459 2004-08-06  Simon Josefsson  <jas@extundo.com>
90460
90461         * modules/getsubopt: New file.
90462         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90463         getsubopt.
90464
90465 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90466
90467         More merge from coreutils.
90468
90469         * m4/utimens.m4, m4/utimecmp.m4: New files.
90470         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90471         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90472         prereq.m4, sha.m4: Import changes from coreutils.
90473
90474 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90475
90476         More merge from coreutils.
90477         * modules/raise, modules/readtokens0, modules/utimens:
90478         * modules/utimecmp, module/xnanosleep: New files.
90479         * modules/strftime: Add lib/strftime.h.
90480         Change include from <time.h> to "strftime.h".
90481         * modules/yesno: Add lib/yesno.h.
90482         * modules/backupfile: Remove lib/addext.c.
90483         * modules/euidaccess: Add stat-macros.h.
90484         * modules/canonicalize, modules/euidaccess,
90485         modules/filemode, modules/lchown, modules/makepath,
90486         modules/rmdir, modules/stat: Likewise.
90487
90488 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90489
90490         Merge from tar.
90491         * lib/argp-help.c (make_hol, hol_append): Don't assume that
90492         SIZE_MAX is a valid preprocessor constant.
90493         (__argp_basename): Change from "#ifndef _LIBC"
90494         to "#ifndef __argp_short_program_name", so that
90495         we don't compile these functions for tar.
90496
90497         More merges from coreutils.
90498         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
90499         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
90500         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
90501         * lib/addext.c: Remove; no longer needed.
90502         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
90503         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
90504         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
90505         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
90506         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
90507         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
90508         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
90509         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
90510         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
90511         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
90512         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
90513         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
90514         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
90515         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
90516         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
90517         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
90518         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
90519         Import changes from coreutils.
90520
90521 2004-08-05  Simon Josefsson  <jas@extundo.com>
90522
90523         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
90524
90525 2004-08-05  Simon Josefsson  <jas@extundo.com>
90526
90527         * m4/getsubopt.m4: New file.
90528
90529 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90530
90531         Merge from coreutils.
90532
90533         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
90534         * m4/getcwd-path-max.m4: New files.
90535
90536         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
90537         FILESYSTEM_PREFIX_LEN ->
90538         FILE_SYSTEM_PREFIX_LEN.
90539         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
90540         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
90541         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
90542         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
90543
90544         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
90545         prerequisite modules now handle the DOS stuff.
90546         Don't check for unistd.h.
90547
90548 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90549
90550         Merge from coreutils.
90551
90552         * lib/.gdb-history: Remove; this doesn't belong here.
90553
90554         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
90555         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
90556         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
90557         * lib/getcwd.c: New files.
90558
90559         * lib/dirname.h: Include <stdbool.h>.
90560         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
90561         for consistency with POSIX terminology.  All uses changed.
90562         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
90563         (strip_trailing_slashes): Use bool for booleans.
90564         * lib/stripslash.c (strip_trailing_slashes): Likewise.
90565
90566         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
90567         sometimes returns a positive errno value even when it succeeds.
90568         (print_errno_message) [!LIBC]: Fall back on strerror if
90569         __strerror_r fails.
90570
90571         * lib/path-concat.c (mempcpy): Don't define if a system header defines
90572         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
90573         (longest_relative_suffix): New function.
90574         (path_concat): Use it.  Assume first argument is not NULL.
90575         Port to DOS.  Omit redundant separators.
90576         Report an error instead of returning NULL.
90577         Use mempcpy instead of memcpy.
90578         (xpath_concat): Remove: not declared or used.
90579
90580         * lib/same.h: Include <stdbool.h>
90581         (same_name): Return bool, not int.
90582         * lib/same.c (same_name): Likewise.
90583         (errno): Don't declare; we assume C89 or better now.
90584
90585         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
90586         if not already defined.
90587
90588         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
90589         * lib/dup-safer.c (errno): Likewise.
90590
90591 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90592
90593         Merge from coreutils.
90594         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
90595         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
90596         * modules/path-concat: Don't depend on strdup.
90597
90598 2004-08-03  Simon Josefsson  <jas@extundo.com>
90599
90600         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
90601         * lib/progname.h: Don't include stdbool.h.
90602
90603 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90604
90605         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
90606         * MODULES.html.sh (func_all_modules): Remove fatal.
90607
90608 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90609
90610         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
90611
90612 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90613
90614         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
90615         working.
90616
90617 2004-08-02  Simon Josefsson  <jas@extundo.com>
90618
90619         * lib/getsubopt.h: New file, with comments from Bruno Haible.
90620         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
90621         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
90622
90623 2004-08-01  Simon Josefsson  <jas@extundo.com>
90624
90625         * lib/xgetdomainname.c: Include stdlib.h, for free().
90626
90627 2004-07-19  Bruno Haible  <bruno@clisp.org>
90628
90629         * MODULES.html.sh (func_all_modules): Add dummy.
90630
90631 2004-07-16  Simon Josefsson  <jas@extundo.com>
90632
90633         * modules/dummy: New file.
90634
90635 2004-07-16  Simon Josefsson  <jas@extundo.com>
90636
90637         * lib/dummy.c: New file.
90638
90639 2004-07-16  Bruno Haible  <bruno@clisp.org>
90640
90641         * lib/backupfile.h: Add extern "C" for C++.
90642         * lib/closeout.h: Likewise.
90643         * lib/copy-file.h: Likewise.
90644         * lib/findprog.h: Likewise.
90645         * lib/full-write.h: Likewise.
90646         * lib/pathname.h: Likewise.
90647         * lib/progname.h: Likewise.
90648         * lib/stpcpy.h: Likewise.
90649         * lib/stpncpy.h: Likewise.
90650         * lib/strcase.h: Likewise.
90651         * lib/strstr.h: Likewise.
90652         * lib/xalloc.h: Likewise.
90653
90654         * lib/mbswidth.h: Add extern "C" for C++.
90655         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
90656
90657 2004-07-13  Robert Millan  <robertmh@gnu.org>
90658
90659         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
90660
90661 2004-07-09  Simon Josefsson  <jas@extundo.com>
90662
90663         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
90664         failed without this.)
90665
90666 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90667
90668         * modules/chown (Files): Add lib/fchown-stub.c, since
90669         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
90670
90671 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90672
90673         * lib/fchown-stub.c: New file.
90674
90675 2004-06-24  Jim Meyering  <jim@meyering.net>
90676
90677         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
90678
90679 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90680
90681         * modules/argz: Omit "#include".
90682
90683         * MODULES.html.sh (func_all_modules): Add calloc, to match
90684         2004-06-01 addition of calloc module.
90685
90686 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90687
90688         * m4/argz.m4: New file, which is autoupdated from libtool.
90689
90690 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90691
90692         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
90693         libtool.
90694
90695 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90696
90697         * config/srclist-update: Don't insist on "USA." before the
90698         close-comment, as libtool omits the period and puts the */ on a
90699         separate line.
90700         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
90701         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
90702
90703 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
90704
90705         * modules/argz: New file.
90706         * MODULES.html.sh (func_all_modules): Add argz.
90707
90708 2004-06-12  Jim Meyering  <jim@meyering.net>
90709         and  Paul Eggert  <eggert@cs.ucla.edu>
90710
90711         * modules/hash (Files): Add lib/xalloc.h.
90712         * modules/pipe (Depends-on): Add wait-process.
90713         * modules/stat (Depends-on): Add xalloc.
90714         * modules/userspec (Files): Add lib/userspec.h.
90715         * modules/xstrto
90716
90717         Upgrade from gettext-0.13.
90718         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
90719         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
90720         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
90721
90722 2004-06-10  Jim Meyering  <jim@meyering.net>
90723
90724         * lib/calloc.c: New file.
90725
90726 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
90727
90728         * lib/getdate.y (yylex): Allow space between sign and number.
90729         Problem reported by Dan Jacobson.
90730
90731 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90732
90733         Merge from coreutils CVS.
90734
90735         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
90736         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
90737         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
90738         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
90739         xstrtol.m4: Fix copyright date and/or serial number.
90740
90741         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
90742         See if we need an fchown replacement.
90743         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
90744         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
90745         and use the replacement function if we detect either defect.
90746
90747         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
90748         gl_UTIMECMP.
90749
90750 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90751         and  Jim Meyering  <jim@meyering.net>
90752
90753         Merge from coreutils CVS.
90754
90755         * lib/stat-macros.h: New file, with contents from file-type.h
90756         and coreutils' system.h.
90757         * lib/file-type.c: Include "stat-macros.h".
90758         * lib/file-type.h (file_type): Move all macro definitions to new file,
90759         stat-macros.h.
90760
90761         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
90762         Wrap old code with this conditional.
90763         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
90764         function that does not dereference symlinks.
90765         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
90766
90767         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
90768         dependency problems.
90769         (xreadlink): Accept new arg SIZE, for efficiency.
90770         All decls and uses changed.
90771         * lib/xreadlink.h: Include <stddef.h>, for size_t.
90772
90773         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
90774         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
90775
90776         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
90777         sysexits.h.
90778
90779 2004-06-01  Jim Meyering  <jim@meyering.net>
90780
90781         * m4/calloc.m4: New file.
90782
90783 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
90784
90785         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
90786         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
90787         Also, fix a typo in a diagnostic.
90788
90789 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90790
90791         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
90792         or AC_FUNC_REALLOC.
90793
90794 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90795
90796         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
90797         macros to be defined.
90798         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
90799         the allocator returns NULL because the requested size is zero.
90800
90801 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
90802
90803         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
90804         var.  Add comment explaining why libc still defines it.  This
90805         merges the following patch from glibc:
90806         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
90807
90808 2004-05-20  Andreas Schwab  <schwab@suse.de>
90809
90810         * m4/free.m4: Replace free if it not known to work, not the other
90811         way round.
90812
90813 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
90814
90815         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
90816         present in glibc since revision 1.1 of this file.
90817         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
90818         obstack_alignment_mask, obstack_alloc, obstack_base,
90819         obstack_blank, obstack_blank_fast, obstack_chunk_size,
90820         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
90821         obstack_grow0, obstack_init, obstack_int_grow,
90822         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
90823         obstack_next_free, obstack_object_size, obstack_ptr_grow,
90824         obstack_ptr_grow_fast, obstack_room): Remove declarations of
90825         nonexistent functions.
90826
90827 2004-05-18  Karl Berry  <karl@gnu.org>
90828
90829         * config/srclist.txt: break link for vasnprintf.c.
90830
90831 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90832
90833         Port obstack to the AS/400, where pointers are 16 bytes wide and
90834         you cannot cast an integer to a valid pointer.  This patch is
90835         currently waiting to be integrated into glibc; see
90836         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
90837
90838         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
90839         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
90840         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
90841         (struct obstack): temp member is now a union of a pointer and
90842         an integer, instead of an integer.  All integer uses changed.
90843         This does not affect the physical layout of struct obstack,
90844         except on hosts (like the AS/400) where the size or alignment of
90845         void * is greater than that of ptrdiff_t.
90846         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
90847         __STDC__)]: Store temporary in pointer member of union, not
90848         integer member.
90849         * lib/obstack.c: Include <stddef.h>, for offsetof.
90850         (struct fooalign): Remove; it doesn't need a name.
90851         (union fooround): Change double to long double, and add void *.
90852         (DEFAULT_ALIGNMENT): Use offsetof to compute.
90853         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
90854         not a macro.  Hence the values are always int; so remove all
90855         casts-to-int in uses.
90856
90857 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90858
90859         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
90860         we can get this patch merged into glibc.
90861
90862 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90863             Paul Eggert  <eggert@cs.ucla.edu>
90864
90865         * m4/argp: Depend on alloca.
90866
90867 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90868             Paul Eggert  <eggert@cs.ucla.edu>
90869
90870         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
90871         freecoding.
90872
90873 2004-05-17  Bruno Haible  <bruno@clisp.org>
90874
90875         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
90876         precision that consists of a '.' followed by an empty digit string.
90877         Patch by Tor Lillqvist <tml@iki.fi>.
90878
90879 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90880
90881         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
90882         for backward compatibility with older code.  We need our own
90883         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
90884         it under some other name, and our alloca.h will define it.
90885
90886 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90887             Derek Price  <derek@ximbiot.com>
90888
90889         * lib/alloca.c: Include <alloca.h>, to get our interface.
90890         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
90891         include <alloca.h> first.  Use C89 prototype for alloca; this
90892         requires including <stddef.h> for size_t.  Use extern "C" if C++.
90893         Use #elif for simplicity, since we can assume C89 now.
90894         Don't try to source the system alloca.h since it will not be found
90895         and to prevent recursively including its replacement.
90896         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
90897         * lib/regex.c: Likewise.
90898
90899 2004-05-16  Derek Price  <derek@ximbiot.com>
90900             Paul Eggert  <eggert@cs.ucla.edu>
90901
90902         getline cleanup.  This changes the getndelim2 API: both order of
90903         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
90904         no delimiter).
90905
90906         * lib/getline.c: Don't include stddef.h or stdio.h, since our
90907         interface does that.
90908         (getline): Always use getdelim, so that we don't have two
90909         copies of this code.
90910         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
90911         if available.
90912         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
90913         (GETNDELIM2_MAXIMUM): New macro.
90914         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
90915         instead of the old practice of delim2==0.  All callers changed.
90916         Return -1 on overflow, instead of returning junk.
90917         Do not set *linesize unless allocation succeeds.
90918         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
90919         that we include sys/types.h.
90920         * lib/getnline.h: Likewise.
90921         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
90922         (getndelim2): Reorder arguments.
90923         * lib/getnline.c (getnline, getndelim):
90924         Don't discard the NMAX argument.
90925         (getnline): Invoke getndelim, to avoid code duplication.
90926         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
90927         of (size_t) -1 by callers of the getnline family.
90928
90929 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90930
90931         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
90932         Check for gettimeofday.
90933         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
90934         Check for settimeofday, stime.
90935
90936 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90937
90938         * lib/nanosleep.c (suspended): Change its type from int to
90939         sig_atomic_t volatile.
90940         (first_call): Make it private to rpl_nanosleep, and have it
90941         be zero initially as that's a bit faster.
90942         (my_usleep): Round up fractional times instead of truncating them,
90943         as this is the usual meaning for 'sleep'.
90944
90945         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
90946         doesn't work.
90947         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
90948         (ENOSYS): Define if not defined.
90949         (settime): Fall back on stime if it exists and settimeofday fails.
90950         But don't bother with fallbacks if a method fails with errno == EPERM.
90951
90952 2004-05-11  Jim Meyering  <jim@meyering.net>
90953
90954         Prior to this change, the save_cwd caller required read access to the
90955         current directory on most systems (ones with the fchdir function).
90956
90957         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
90958         fails, try write-only, and finally, resort to using xgetcwd.
90959
90960 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
90961
90962         * lib/obstack.c, obstack.h: Import changes from libc.
90963
90964 2004-04-28  Bruno Haible  <bruno@clisp.org>
90965
90966         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
90967         also implicitly appends .exe to executables.
90968         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
90969         accepts Windows pathnames.
90970         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90971         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90972         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90973         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90974         Reported by Derek Robert Price <derek@ximbiot.com>.
90975
90976 2004-04-21  Karl Berry  <karl@gnu.org>
90977
90978         * config/srclist.txt (localcharset.c): break sync.
90979
90980 2004-04-20  Paul Eggert  <eggert@twinsun.com>
90981
90982         * m4/host-os.m4: Add a copyright notice.
90983
90984 2004-04-20  Jim Meyering  <jim@meyering.net>
90985
90986         Change UTILS_ to gl_ in AC_DEFINE'd names.
90987         Change utils_- and jm_-prefixed variables, too.
90988         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
90989         UTILS_FUNC_MKDIR_TRAILING_SLASH.
90990         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
90991
90992         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
90993         Don't emit trailing blanks.
90994         Also rename jm_-prefixed variables to have gl_ prefix.
90995
90996         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
90997         Also rename jm_-prefixed variables to have gl_ prefix.
90998
90999         * m4/jm-macros.m4: Reflect the renamings.
91000         * m4/prereq.m4: Likewise.
91001
91002 2004-04-20  Jim Meyering  <jim@meyering.net>
91003
91004         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
91005         memory.
91006
91007 2004-04-20  Jim Meyering  <jim@meyering.net>
91008             Bruno Haible  <bruno@clisp.org>
91009
91010         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
91011         memory when realloc fails.
91012
91013 2004-04-19  Jim Meyering  <jim@meyering.net>
91014
91015         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
91016         now that readutmp.c may call `free (0)'.
91017
91018 2004-04-19  Bruno Haible  <bruno@clisp.org>
91019
91020         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
91021         * m4/inttypes_h.m4: Likewise.
91022         * m4/stdint_h.m4: Likewise.
91023         * m4/intmax_t.m4: Likewise.
91024         * m4/uintmax_t.m4: Likewise.
91025
91026 2004-04-18  Jim Meyering  <jim@meyering.net>
91027
91028         * m4/prereq.m4: Don't forbid jm_ prefix.
91029
91030         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
91031         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
91032         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
91033         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
91034         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
91035         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
91036         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
91037         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
91038         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
91039         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
91040         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
91041         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
91042         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
91043         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
91044         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
91045         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
91046         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
91047         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
91048         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
91049
91050 2004-04-18  Jim Meyering  <jim@meyering.net>
91051
91052         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
91053         failure, don't leak memory and do call END_UTMP_ENT.
91054
91055 2004-04-16  Jim Meyering  <jim@meyering.net>
91056
91057         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
91058         coreutils' stat program.
91059         (gl_PREREQ): Don't require jm_PREREQ_STAT.
91060
91061 2004-04-11  Paul Eggert  <eggert@twinsun.com>
91062
91063         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
91064         C89.
91065         (CHAR_BIT): Remove, since we assume C89.
91066         Include <stdint.h> if available, as per current Autoconf CVS advice.
91067
91068 2004-03-31  Jim Meyering  <jim@meyering.net>
91069
91070         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
91071         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
91072         * m4/xalloc.m4: Likewise.
91073
91074 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91075
91076         Merge from coreutils.
91077
91078         * m4/inttostr.m4: New file.
91079         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
91080         Require AM_STDBOOL_H and gl_TIMESPEC instead.
91081         Require gl_CLOCK_TIME.
91082         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
91083
91084 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91085
91086         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
91087         not bool, to be more consistent with Unix conventions.
91088         Suggested by Bruno Haible.
91089
91090         Merge from coreutils.
91091
91092         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
91093         * lib/umaxtostr.c: New files.
91094
91095         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
91096         the usual <time.h> dance.
91097         (get_date): Change signature to support fractional time stamps.
91098         All callers changed.
91099         * lib/getdate.y: Include "getdate.h" first, as we can now
91100         assume C89 and don't need to worry about 'const'.
91101         Similarly, include "unlocked-io.h" near start, not in middle.
91102         Include <limits.h>.
91103         (textint.value): Use long int rather than int.
91104         (textint.digits): Use size_t rather than int.
91105         (BILLION, LOG10_BILLION): New constants.
91106         (parser_control): New member rel_ns.  Members day_ordinal,
91107         time_zone, month, day, hour, minutes, rel_year, rel_month,
91108         rel_day, rel_hour, rel_minutes, rel_seconds
91109         are now long int, not int.  Member seconds is now struct timespec,
91110         not int.  New member timespec_seen.  Members dates_seen, days_seen,
91111         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
91112         not int.
91113         (%union.intval): Now long int, not int.
91114         New member timespec.
91115         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
91116         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
91117         (spec): Now is a timespec or an item list.
91118         (timespec, items): New nonterminals.
91119         (time, rel, relunit, number, get_date):
91120         Add support for fractional seconds.
91121         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
91122         (gmtime, localtime, mktime): Remove decls; not needed with C89.
91123         (to_hour): First arg is now long int, not int.
91124         (to_year): Returns long int, not int.
91125         Don't treat year -70 like 70.
91126         (tm_diff): Returns long int, not int.
91127         (lookup_word): Use bool instead of int when appropriate.
91128         (yylex): Use size_t for count, not int.
91129         Detect overflow when parsing large integer constants.
91130         Add support for fractions.
91131         (get_date): Make pointers 'const' if possible.
91132         Use more-portable code to detect integer overflow.
91133         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
91134         Don't use ctime; it's not reliable if the year has >4 digits.
91135
91136         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
91137         This is for compatibility with BSD.
91138
91139         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
91140         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
91141         From coreutils' system.h.
91142
91143         * lib/userspec.c: Don't include "posixver.h".
91144         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
91145         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
91146         compatible extension.  Simplify code by removing a boolean int
91147         that was always nonzero if a string was nonnull.
91148
91149 2004-03-30  Jim Meyering  <jim@meyering.net>
91150
91151         Merge from coreutils.
91152
91153         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
91154         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
91155         on some systems one must include <grp.h> before it.
91156         Reported by Christian Krackowizer.
91157
91158 2004-03-30  Jim Meyering  <jim@meyering.net>
91159
91160         Merge from coreutils.
91161
91162         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
91163
91164         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
91165         an empty input stream.
91166
91167         * lib/readtokens.c: Include <stdbool.h>.
91168         (readtoken): Use `size_t' rather than int/long.
91169         All callers adjusted.
91170         Use `bool' rather than `int' where appropriate.
91171         Use memset rather than an explicit loop.
91172         Use x2nrealloc rather than xrealloc.
91173         Allow the use of `\0' as a delimiter.
91174         (readtokens): Likewise.
91175         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
91176
91177 2004-03-30  Jim Meyering  <jim@meyering.net>
91178
91179         * m4/realloc.m4: Remove file, since now it does no more than
91180         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
91181         the `configure.ac' section of module/realloc.
91182         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
91183
91184 2004-03-30  Bruno Haible  <bruno@clisp.org>
91185
91186         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
91187         nonnull.
91188
91189 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91190
91191         Merge changes to getloadavg.c from coreutils and Emacs.
91192
91193         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
91194         Define to an expression, not to the empty string.
91195         Include cloexec.h and xalloc.h.
91196         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
91197         Use set_cloexec_flag rather than rolling our own.
91198         * lib/cloexec.c, lib/cloexec.h: New files.
91199
91200 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91201
91202         * m4/cloexec.m4: New file.
91203
91204 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91205
91206         * lib/getopt.h: Sync with libc CVS.
91207
91208 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91209             Bruno Haible  <bruno@clisp.org>
91210
91211         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
91212         mbswidth.
91213
91214 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91215             Bruno Haible  <bruno@clisp.org>
91216
91217         * lib/mbswidth.h: Include <wchar.h> only if
91218         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
91219         <wchar.h>.
91220         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
91221
91222 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91223
91224         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
91225         Sync with libc CVS.
91226         * lib/getopt_int.h: New file, also synced from libc.
91227
91228 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91229
91230         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
91231         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
91232         Bring back getopt.c, getopt.h, getopt1.c.
91233
91234 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91235
91236         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
91237         All uses changed.  Check for sa_sigaction member; this fixes
91238         a bug first reported by Jason Andrade in
91239         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91240
91241 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91242
91243         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
91244         '#if' expressions.  Unlike the code it replaces, it does not
91245         depend on (defined _SC_PAGESIZE).  However, it does depend on
91246         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
91247         first reported by Jason Andrade in
91248         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91249
91250 2004-02-25  Simon Josefsson  <jas@extundo.com>
91251
91252         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
91253
91254 2004-02-25  Simon Josefsson  <jas@extundo.com>
91255
91256         * lib/strdup.h: New file.
91257         * lib/strdup.c: Include it.
91258         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
91259         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
91260
91261 2004-02-23  Karl Berry  <karl@gnu.org>
91262
91263         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
91264         (from fencepost.gnu.org:/gd/gnuorg).
91265
91266 2004-02-23  Karl Berry  <karl@gnu.org>
91267
91268         * config/srclistvars.sh (GNUORG) [karl]: redefine.
91269         * config/srclist.txt: add maintain/standards documents.
91270
91271 2004-02-18  Bruno Haible  <bruno@clisp.org>
91272
91273         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
91274         Reported by Derek Robert Price <derek@ximbiot.com>.
91275
91276 2004-02-16  Karl Berry  <karl@gnu.org>
91277
91278         * config/mkinstalldirs, install-sh: update from automake.
91279
91280 2004-02-06  Karl Berry  <karl@gnu.org>
91281
91282         * m4/po.m4: update from gettext 0.14.1.
91283
91284 2004-02-06  Karl Berry  <karl@gnu.org>
91285
91286         * lib/config.charset: update from gettext 0.14.1.
91287
91288 2004-02-05  Paul Eggert  <eggert@twinsun.com>
91289
91290         Add comments and code, prompted by suggestions from Bruno Haible
91291         for sh-quote.
91292         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
91293         describing the enum quoting_style values.
91294         * lib/quotearg.c (quotearg_alloc): New function.
91295         (quotearg_buffer_restyled): Treat lone { and } as special.
91296         Treat = as special.  Work around bug with older shells
91297         that "see" a '\' that is really the 2nd byte of a multibyte char.
91298         Quote empty string with shell_quoting_style.
91299
91300 2004-02-03  Bruno Haible  <bruno@clisp.org>
91301
91302         * m4/pipe.m4: New file, from GNU gettext.
91303
91304 2004-02-03  Bruno Haible  <bruno@clisp.org>
91305
91306         * lib/pipe.h: New file, from GNU gettext.
91307         * lib/pipe.c: New file, from GNU gettext.
91308
91309 2004-01-27  Bruno Haible  <bruno@clisp.org>
91310
91311         * m4/execute.m4: New file, from GNU gettext.
91312
91313 2004-01-27  Bruno Haible  <bruno@clisp.org>
91314
91315         * lib/execute.h: New file, from GNU gettext.
91316         * lib/execute.c: New file, from GNU gettext.
91317         * lib/w32spawn.h: New file, from GNU gettext.
91318
91319 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91320
91321         Merge from diffutils.
91322
91323         * lib/file-type.c (file_type): Add typed memory objects.
91324         * lib/file-type.h (S_TYPEISTMO): New macro.
91325
91326         * lib/c-stack.h (c_stack_action): Remove argv argument.
91327         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91328         (die): Don't calculate message unless segv_action returns.
91329         (get_stack_location, min_address_from_argv, max_address_from_argv,
91330         volatile stack_base, volatile_stack_size): Remove.
91331         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91332         that every segmentation violation is a stack overflow.  (Ouch!)
91333         See Debian bug 136249 (still outstanding) for more info about why
91334         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91335
91336 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91337
91338         Exit-status fix from coreutils.
91339
91340         Use exit_failure consistently in place of EXIT_FAILURE,
91341         so that program exit statuses are consistent on failure.
91342
91343         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91344         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91345         * lib/argmatch.h: Comment fix to match the above.
91346         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91347         Now a macro referring to exit_failure, instead of a separate
91348         variable.  Include "exitfail.h" to get it.
91349         * lib/xstrtol.h: Include "exitfail.h".
91350         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91351
91352         * lib/long-options.c (parse_long_options): Use prototype
91353         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91354         for clarity.
91355
91356 2004-01-21  Jim Meyering  <jim@meyering.net>
91357
91358         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91359         so as not to conflict with a different-sized __mktime_internal
91360         function in GNU libc.
91361         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91362         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91363
91364 2004-01-20  Karl Berry  <karl@gnu.org>
91365
91366         * config/config.guess: update from config.
91367
91368         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91369
91370 2004-01-20  Bruno Haible  <bruno@clisp.org>
91371
91372         Safer stack allocation.
91373         * lib/setenv.c: Include allocsa.h.
91374         (alloca): Remove fallback definition.
91375         (freea): Remove macro.
91376         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91377         instead of freea.
91378
91379 2004-01-20  Bruno Haible  <bruno@clisp.org>
91380
91381         * m4/eealloc.m4: New file, from GNU gettext.
91382
91383 2004-01-20  Bruno Haible  <bruno@clisp.org>
91384
91385         * m4/allocsa.m4: New file, from GNU gettext.
91386
91387 2004-01-20  Bruno Haible  <bruno@clisp.org>
91388
91389         * lib/xallocsa.h: New file, from GNU gettext.
91390         * lib/xallocsa.c: New file, from GNU gettext.
91391
91392 2004-01-20  Bruno Haible  <bruno@clisp.org>
91393
91394         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91395
91396 2004-01-20  Bruno Haible  <bruno@clisp.org>
91397
91398         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91399         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91400         specially.
91401
91402 2004-01-20  Bruno Haible  <bruno@clisp.org>
91403
91404         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91405         patch.
91406
91407 2004-01-20  Bruno Haible  <bruno@clisp.org>
91408
91409         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91410
91411 2004-01-20  Bruno Haible  <bruno@clisp.org>
91412
91413         * lib/eealloc.h: New file.
91414
91415 2004-01-20  Bruno Haible  <bruno@clisp.org>
91416
91417         * lib/binary-io.h: Avoid warnings on Cygwin.
91418
91419 2004-01-20  Bruno Haible  <bruno@clisp.org>
91420
91421         * lib/allocsa.h: New file, from GNU gettext.
91422         * lib/allocsa.c: New file, from GNU gettext.
91423
91424 2004-01-18  Karl Berry  <karl@gnu.org>
91425
91426         * doc/gpl.texi, doc/lgpl.texi: new files.
91427
91428 2004-01-18  Karl Berry  <karl@gnu.org>
91429
91430         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91431         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91432
91433 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91434
91435         Merge from coreutils.
91436
91437         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91438         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91439         (gl_DEFAULT_POSIX2_VERSION): Move
91440         the documentation from 'configure' into 'config.hin',
91441         so that 'configure --help' isn't burdened by it and
91442         we don't have to worry about its formatting there.
91443         Reword the documentation so that it's more succinct
91444         and can be run together into a single paragraph.
91445         * m4/same.m4 (gl_SAME): Check for pathconf.
91446
91447 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91448
91449         Merge from coreutils.
91450
91451         * lib/posixver.c: Include posixver.h.
91452
91453         * lib/same.c: Include <stdbool.h>, <limits.h>.
91454         (_POSIX_NAME_MAX): Define if not defined.
91455         (MIN): New macro.
91456         (same_name): If file names are silently truncated, report
91457         that the file names are the same if they are the same after
91458         the silent truncation.
91459
91460         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91461         conversion function.
91462         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91463         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91464         longer needed.
91465
91466 2004-01-15  Jim Meyering  <jim@meyering.net>
91467
91468         Merge from coreutils.
91469
91470         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91471         if no library is required.
91472         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91473         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91474         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91475         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91476         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
91477         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
91478         value, $ac_cv_search_crypt, if it's "none required".
91479         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
91480         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
91481         not gl_FUNC_GETLOADAVG.
91482         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
91483         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
91484
91485 2004-01-15  Jim Meyering  <jim@meyering.net>
91486
91487         Merge from coreutils.
91488
91489         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
91490         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
91491         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
91492
91493         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
91494         optional configure-time default.
91495
91496         * lib/version-etc.c (version_etc_copyright): Update copyright date.
91497
91498         * lib/xreadlink.c (xreadlink): Correct outdated comment.
91499
91500 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
91501
91502         Merge from coreutils.
91503
91504         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
91505         value, $ac_cv_search_nanosleep, if it's "none required".
91506
91507 2004-01-14  Paul Eggert  <eggert@twinsun.com>
91508
91509         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
91510         with like-named macro in fnmatch.c.
91511         (EXT): Use an internal constant instead.
91512
91513         Merge fnmatch patches from glibc.
91514         * lib/fnmatch.c (mbsinit): Remove define.
91515         Add libc_hidden_ver (__fnmatch, fnmatch).
91516         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
91517         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
91518
91519 2004-01-14  Karl Berry  <karl@gnu.org>
91520
91521         * config/install-sh: update from automake.
91522
91523 2004-01-13  Karl Berry  <karl@gnu.org>
91524
91525         * config/install-sh: update from automake.
91526
91527 2004-01-09  Karl Berry  <karl@gnu.org>
91528
91529         * config/install-sh: update from automake.
91530
91531 2004-01-05  Karl Berry  <karl@gnu.org>
91532
91533         * config/config.{sub,guess}: update from config.
91534
91535 2003-12-31  Karl Berry  <karl@gnu.org>
91536
91537         * config/depcomp: update from automake.
91538
91539 2003-12-14  Karl Berry  <karl@gnu.org>
91540
91541         * lib/config.charset: update from gettext-runtime.
91542
91543 2003-12-03  Paul Eggert  <eggert@twinsun.com>
91544
91545         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
91546         Bug reported by Alfred M. Szmidt.
91547
91548 2003-12-03  Bruno Haible  <bruno@clisp.org>
91549
91550         * m4/gettext.m4: Upgrade from gettext-0.13.
91551         * m4/po.m4: Upgrade from gettext-0.13.
91552         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
91553         * m4/intmax.m4: New file, from gettext-0.13.
91554         * m4/printf-posix.m4: New file, from gettext-0.13.
91555
91556 2003-11-29  Karl Berry  <karl@gnu.org>
91557
91558         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
91559
91560 2003-11-25  Paul Eggert  <eggert@twinsun.com>
91561             Bruno Haible  <bruno@clisp.org>
91562
91563         * lib/printf-parse.h: Don't include sys/types.h.
91564         (ARG_NONE): New macro.
91565         (char_directive): Change type of *arg_index fields to size_t.
91566         * lib/printf-parse.c: Don't include sys/types.h.
91567         (SSIZE_MAX): Remove macro.
91568         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
91569         Remove unnecessary overflow check.
91570         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
91571         fields.
91572
91573 2003-11-25  Bruno Haible  <bruno@clisp.org>
91574
91575         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
91576
91577 2003-11-25  Bruno Haible  <bruno@clisp.org>
91578
91579         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
91580         gt_TYPE_SSIZE_T.
91581
91582 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91583
91584         * modules/alloca: Remove dependency on xalloc.
91585
91586 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91587
91588         * lib/alloca.c: Remove dependency on xalloc module.
91589         (xalloc_die): Remove.
91590         (memory_full) [!defined emacs]: New macro.
91591         [!defined emacs]: Don't include xalloc.h.
91592         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
91593         address arithmetic overflows.  Change datatypes a bit to avoid
91594         unnecessary casts.
91595
91596 2003-11-22  Jim Meyering  <jim@meyering.net>
91597
91598         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
91599         s/size/size_t/.
91600
91601 2003-11-21  Karl Berry  <karl@gnu.org>
91602
91603         * config/config.{sub,guess}: update from config.
91604
91605 2003-11-18  Karl Berry  <karl@gnu.org>
91606
91607         * config/config.{sub,guess}: update from config.
91608
91609         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
91610
91611 2003-11-17  Paul Eggert  <eggert@twinsun.com>
91612
91613         * README: Mention that S+T cannot overflow if S is the size of
91614         an existing object and T is sufficiently small.
91615
91616 2003-11-17  Jim Meyering  <jim@meyering.net>
91617
91618         On systems without utime and without a utimes function capable of
91619         dealing with a NULL struct utimbuf* argument, this utime replacement
91620         could -- in unusual circumstances -- leak a file descriptor.
91621         * lib/utime.c: Include <unistd.h> and <errno.h>.
91622         (utime_null): Be sure to close `fd' and to preserve errno.
91623         Reported by Geoff Collyer via Arnold Robbins.
91624
91625 2003-11-17  Bruno Haible  <bruno@clisp.org>
91626
91627         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
91628         (Depends-on): Add xsize.
91629
91630 2003-11-17  Bruno Haible  <bruno@clisp.org>
91631
91632         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
91633
91634 2003-11-17  Bruno Haible  <bruno@clisp.org>
91635
91636         * lib/vasnprintf.c (alloca): Remove fallback definition.
91637         (freea): Remove definition.
91638         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
91639         Reported by Paul Eggert.
91640
91641 2003-11-16  Paul Eggert  <eggert@twinsun.com>
91642             Bruno Haible  <bruno@clisp.org>
91643
91644         Protect against address arithmetic overflow.
91645         * lib/printf-args.h: Include stddef.h.
91646         (arguments): Change type of field 'count' to size_t.
91647         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
91648         'unsigned int' where appropriate.
91649         * lib/printf-parse.h: Include sys/types.h.
91650         (char_directive): Change type of *arg_index fields to ssize_t.
91651         (char_directives): Change type of fields 'count', max_*_length to
91652         size_t.
91653         * lib/printf-parse.c: Include sys/types.h and xsize.h.
91654         (SSIZE_MAX): Define fallback value.
91655         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
91656         instead of 'int' where appropriate. Check a_allocated, d_allocated
91657         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
91658         * lib/vasnprintf.c: Include xsize.h.
91659         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
91660         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
91661         overflow. Avoid wraparound when converting a width or precision from
91662         decimal to binary.
91663
91664 2003-11-16  Bruno Haible  <bruno@clisp.org>
91665
91666         Update from GNU gettext.
91667         * lib/printf-parse.c: Generalize to it can be compiled for wide
91668         strings.
91669         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
91670         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
91671         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
91672         SNPRINTF): New macros.
91673         Don't include <alloca.h> if the file is used inside libintl.
91674         (local_wcslen): New function, for Solaris 2.5.1.
91675         (VASNPRINTF): Use it instead of wcslen.
91676
91677 2003-11-16  Bruno Haible  <bruno@clisp.org>
91678
91679         * lib/xsize.h (xmax): New function.
91680         (xsum, xsum3, xsum4): Declare as "pure" functions.
91681
91682 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91683
91684         * modules/xalloc (Files): Undo latest change, since xalloc.h
91685         no longer needs SIZE_MAX or PTRDIFF_MAX.
91686
91687 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91688
91689         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
91690         gl_PTRDIFF_MAX.
91691
91692 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91693
91694         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
91695         "return", to pacify some unknown compiler.  Problem reported
91696         by Joerg Schilling.
91697
91698 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91699
91700         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
91701         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
91702         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
91703         heuristic is just as accurate as far as we know, and it removes a
91704         dependency on size_max.m4 and ptrdiff_max.m4.
91705
91706 2003-11-11  Bruno Haible  <bruno@clisp.org>
91707
91708         * modules/xsize (Files): Add m4/size_max.m4.
91709         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
91710
91711 2003-11-11  Bruno Haible  <bruno@clisp.org>
91712
91713         * m4/size_max.m4: New file.
91714         * m4/ptrdiff_max.m4: New file.
91715         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
91716         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
91717         (gl_XALLOC): Invoke it.
91718
91719 2003-11-11  Bruno Haible  <bruno@clisp.org>
91720
91721         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
91722         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
91723         defined.
91724
91725 2003-11-10  Paul Eggert  <eggert@twinsun.com>
91726
91727         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
91728         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
91729         rejected some allocations of exactly SIZE_MAX - 2 bytes.
91730         From Bruno Haible.
91731         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
91732         not (size_t) -1, since it's defined here.
91733
91734 2003-11-09  Karl Berry  <karl@gnu.org>
91735
91736         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
91737
91738 2003-11-06  Paul Eggert  <eggert@twinsun.com>
91739
91740         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
91741         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
91742         Reject sizes of exactly SIZE_MAX bytes.
91743         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
91744         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
91745
91746 2003-11-05  Bruno Haible  <bruno@clisp.org>
91747
91748         * lib/xsize.h: Include limits.h, to avoid a possible collision with
91749         SIZE_MAX defined in <limits.h> on Solaris.
91750
91751 2003-11-04  Jim Meyering  <jim@meyering.net>
91752
91753         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
91754         variable names, rather than @VAR@.
91755         * modules/poll: Likewise.
91756
91757 2003-11-04  Bruno Haible  <bruno@clisp.org>
91758
91759         * modules/xsize: New file.
91760         * modules/linebreak: Depend on xsize.
91761         * MODULES.html.sh (func_all_modules): Add xsize.
91762
91763 2003-11-04  Bruno Haible  <bruno@clisp.org>
91764
91765         * m4/xsize.m4: New file.
91766
91767 2003-11-04  Bruno Haible  <bruno@clisp.org>
91768
91769         * lib/xsize.h: New file.
91770         * lib/linebreak.c: Include xsize.h.
91771         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
91772         argument for overflow.
91773         Suggested by Paul Eggert.
91774
91775 2003-11-03  Karl Berry  <karl@gnu.org>
91776
91777         * config/config.{guess,sub}: update from config.
91778
91779 2003-11-03  Jim Meyering  <jim@meyering.net>
91780
91781         * modules/userspec (lib_SOURCES): Add userspec.h.
91782         (Include): Add "userspec.h".
91783         Improve description.
91784
91785 2003-11-03  Jim Meyering  <jim@meyering.net>
91786
91787         * lib/userspec.c: Include "userspec.h".
91788         * lib/userspec.h: New file.
91789
91790 2003-11-03  Bruno Haible  <bruno@clisp.org>
91791
91792         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
91793
91794 2003-11-03  Bruno Haible  <bruno@clisp.org>
91795
91796         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
91797         available, to avoid (extremely rare) race condition.
91798         Suggested by Paul Eggert.
91799
91800 2003-11-02  Karl Berry  <karl@gnu.org>
91801
91802         * config/srclist.txt (vasprintf.c): sync broken, sigh.
91803
91804 2003-10-31  Paul Eggert  <eggert@twinsun.com>
91805
91806         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
91807         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
91808         (read_filesystem_list): Set and use me_type_malloced.
91809         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
91810         whatever the type happens to be), for brevity and consistency.
91811         Check for size calculation overflow on Alphas running OSF/1.
91812
91813 2003-10-31  Jim Meyering  <jim@meyering.net>
91814
91815         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
91816
91817         * lib/linebuffer.c: Include <string.h> for declaration of memset.
91818
91819 2003-10-30  Paul Eggert  <eggert@twinsun.com>
91820             Bruno Haible  <bruno@clisp.org>
91821
91822         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
91823         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
91824
91825 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
91826
91827         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
91828         netbsd*-gnu*.  Suggested by Robert Millan.
91829
91830 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91831
91832         * modules/group-member: Depend on stdbool.
91833
91834 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91835
91836         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
91837
91838 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91839
91840         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
91841         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
91842         after the 'gnu' in these cases.  This fixes some bugs in the
91843         previous change, and is based on suggestions by Robert Millan.
91844
91845 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91846
91847         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
91848         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
91849         no longer needed.
91850         * lib/quotearg.c (quotearg_n_options): Use it.
91851         * lib/group-member.c: Include <stdbool.h>.
91852         (free_group_info): Arg is now const *; don't free arg.
91853         (get_group_info): Now returns bool and accepts struct group_info *,
91854         rather than returning a malloc'ed struct group_info *.
91855         All uses changed.  Check for overflow in internal size calculation.
91856
91857         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
91858         rather than xmalloc/xrealloc.
91859         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
91860         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
91861         conformance bug: the old code used a pointer after freeing the
91862         storage that it addressed.
91863         * lib/hash.c (hash_initialize): Simplify the code by using
91864         xalloc_oversized rather than doing it by hand.
91865         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
91866         the buffer preserved.  Use free and xmalloc instead.
91867         * lib/quotearg.c (quotearg_n_options): Likewise.
91868         Use a simpler test for size overflow.  Don't use xalloc_oversized
91869         because unsigned int might be wider than size_t (!); this suggests
91870         that we should switch from unsigned int to size_t for slot numbers.
91871
91872 2003-10-28  Paul Eggert  <eggert@twinsun.com>
91873
91874         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
91875         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
91876         NetBSD kernels.  Requested by Richard Stallman.
91877
91878 2003-10-27  Paul Eggert  <eggert@twinsun.com>
91879
91880         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
91881         to allocate the returned structure.  Do not allocate a subarray,
91882         as x2nrealloc will do that.
91883         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
91884         instead of xnrealloc.
91885         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
91886
91887 2003-10-27  Bruno Haible  <bruno@clisp.org>
91888
91889         * lib/stdbool_.h: Better support for BeOS.
91890
91891 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91892
91893         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
91894         now uses inline.
91895
91896 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91897
91898         * lib/xalloc.h (xalloc_oversized): New static inline function, for
91899         callers that want to do their own size-overflow checking.  Include
91900         <stdbool.h>, since xalloc_oversized returns bool.
91901         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
91902         to use xalloc_oversized.
91903
91904         Add two functions x2realloc, x2nrealloc, for programs that grow
91905         arrays dynamically by doubling their sizes.
91906         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
91907         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
91908         New functions.
91909
91910         Port to C99 semantics for 'inline' of external functions.
91911         Bug reported by Bruno Haible.
91912         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
91913         with the old contents of xnmalloc.
91914         (xnmalloc, xmalloc): Use it.
91915         (xnrealloc_inline): New static inline function,
91916         with the old contents of xnrealloc.
91917         (xnrealloc, xrealloc): Use it.
91918
91919         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
91920         that.
91921
91922 2003-10-26  Karl Berry  <karl@gnu.org>
91923
91924         * config/srclist.txt (COPYING.DOC): no longer available from
91925         /gd/gnuorg; don't know where the ultimate source is.
91926
91927 2003-10-25  Paul Eggert  <eggert@twinsun.com>
91928
91929         Fix several address-calculation bugs in the hash modules,
91930         plus some minor code cleanup.
91931
91932         * lib/hash.h: Include <stdbool.h>, for bool.
91933         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
91934         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
91935         hash_get_n_entries, hash_get_max_bucket_length,
91936         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
91937         hash_rehash): Use size_t rather than unsigned.
91938         * lib/hash.c (struct hash_table, hash_get_n_buckets,
91939         hash_get_n_buckets_used, hash_get_n_entries,
91940         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
91941         hash_get_entries, hash_do_for_each, hash_string, is_prime,
91942         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
91943         Likewise.
91944         (SIZE_MAX): Define if not defined.
91945         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
91946         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
91947         hash_print):
91948         Use const * when possible.
91949         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
91950         (check_tuning): Fix bug: if tuning parameters were very close to
91951         0 or 1, rounding errors could have caused subscript violations.
91952         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
91953         (hash_initialize): Add 'fail:' label
91954         to free table and return NULL, and use it to simplify code.
91955         Use calloc rather than clearing the storage ourself.
91956         (hash_initialize, hash_rehash): Check for arithmetic overflow in
91957         buffer size calculations.
91958         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
91959         Include <stddef.h>, for size_t.
91960         * lib/hash-pjw.c (hash_pjw): Likewise.
91961         Switch to method described by Bruno Haible.
91962         Include <limits.h>, for CHAR_BIT.
91963         (SIZE_BITS): New macro.
91964
91965 2003-10-23  Paul Eggert  <eggert@twinsun.com>
91966
91967         * m4/getline.m4 (AM_FUNC_GETLINE):
91968         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
91969         hosts.  Problem reported by Derek Robert Price in
91970         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
91971         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
91972         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
91973
91974 2003-10-21  Paul Eggert  <eggert@twinsun.com>
91975
91976         * lib/getndelim2.c (getndelim2): When size calculation overflows,
91977         ceiling the allocation at NMAX bytes rather than silently
91978         discarding input bytes before NMAX is reached.  This makes
91979         a difference only if NMAX exceeds SIZE_MAX / 2.
91980
91981         * lib/obstack.c: Merge from glibc.
91982         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
91983         Add libc_hidden_def (_obstack_newchunk).
91984         (_obstack_free) [! defined _LIBC]: Remove.
91985         [defined _LIBC]: Make a strong alias from obstack_free, rather than
91986         a clone of the function body.
91987         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
91988         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
91989
91990         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
91991         glibc.
91992         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
91993         arg to memcpy.
91994
91995         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
91996         (obstack_ptr_grow_fast, obstack_int_grow_fast):
91997         Don't use lvalue casts, as GCC plans to remove support for them
91998         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
91999         was also present in the non-GCC version, indicating that this
92000         code had always been buggy and had never been widely used.
92001         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
92002         Use the fast variant of each macro, rather than copying the
92003         definiens of the fast variant; that way, we'll be more likely to
92004         catch future bugs in the fast variants.
92005
92006 2003-10-20  Bruno Haible  <bruno@clisp.org>
92007
92008         * modules/wait-process: New file.
92009         * MODULES.html.sh (func_all_modules): Add wait-process.
92010
92011 2003-10-20  Bruno Haible  <bruno@clisp.org>
92012
92013         * m4/wait-process.m4: New file.
92014
92015 2003-10-20  Bruno Haible  <bruno@clisp.org>
92016
92017         * lib/wait-process.h: New file, from GNU gettext.
92018         * lib/wait-process.c: New file, from GNU gettext.
92019
92020 2003-10-19  Jim Meyering  <jim@meyering.net>
92021
92022         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
92023         HPUX 10.20.
92024
92025 2003-10-18  Karl Berry  <karl@gnu.org>
92026
92027         * config/config.guess: update from config.
92028
92029 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92030
92031         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
92032         (getgroups): First arg is int, not size_t.
92033         Don't let 'free' mangle errno.
92034
92035 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92036
92037         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
92038
92039 2003-10-16  Karl Berry  <karl@gnu.org>
92040
92041         * config/config.{guess,sub}: update from config.
92042
92043 2003-10-16  Jim Meyering  <jim@meyering.net>
92044
92045         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
92046         memcpy.
92047
92048 2003-10-15  Paul Eggert  <eggert@twinsun.com>
92049
92050         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
92051         (SIZE_MAX): Remove.
92052         (new_exclude, add_exclude_file): Initial size no longer needs to
92053         be a power of 2.
92054         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
92055         our own address arithmetic overflow checking.
92056
92057         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
92058         (fnmatch): Do not alloca more than 2000 wide characters;
92059         instead, use malloc for large buffers.
92060         Check for address arithmetic overflow, and return -1
92061         with errno set to ENOMEM in that case.
92062         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
92063         (NEW_PATTERN): Do not alloca more than 8000 bytes;
92064         instead, return -1.  Check for address arithmetic overflow.
92065
92066 2003-10-14  Paul Eggert  <eggert@twinsun.com>
92067
92068         Handle invalid suffixes and overflow independently, so that
92069         callers can treat them independently as needed.  Fix some bugs in
92070         suffix handling, e.g., "100k@" was not diagnosed as an invalid
92071         suffix for a human-readable blocksize.  The major caller-visible
92072         change is the addition of a new
92073         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
92074         that both overflow and suffix chars were found.
92075
92076         * lib/human.c (humblock): Don't check separately for invalid suffix
92077         char; that is xstrtoumax's job (now that its bug is fixed).
92078         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
92079         INTMAX_MAX]: New macros.
92080         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
92081         TYPE_MAXIMUM): New macros.
92082         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
92083         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
92084         if overflow occurs, as it's what __strtol does and it's more useful
92085         in practice.
92086         (__xstrtol): If __strtol reports some error other than ERANGE,
92087         reflect it to the caller as LONGINT_INVALID.  If it reports
92088         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
92089         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
92090         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
92091         value.
92092         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
92093         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
92094         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
92095         [defined UINTMAX_MAX]: New macros.
92096
92097 2003-10-14  Bruno Haible  <bruno@clisp.org>
92098
92099         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
92100
92101 2003-10-14  Bruno Haible  <bruno@clisp.org>
92102
92103         * m4/sig_atomic_t: New file, from GNU gettext.
92104         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
92105
92106 2003-10-14  Bruno Haible  <bruno@clisp.org>
92107
92108         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
92109         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
92110         Also use volatile where needed.
92111
92112 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92113
92114         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
92115         Change maintainer from Bruno Haible to 'all'.
92116
92117 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92118
92119         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
92120
92121 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92122
92123         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
92124         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
92125         and define in terms of the other primitives.
92126         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
92127         (SIZE_MAX): Define if not already defined.
92128         (array_size_overflow): New function.
92129         (xalloc_die): Abort instead of exiting if 'error' returns.
92130         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
92131         (xmalloc, xrealloc): Use them.
92132         (xcalloc): Check for address arithmetic overflow.
92133         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
92134         a bit faster than strcpy.
92135
92136 2003-10-10  Simon Josefsson  <jas@extundo.com>
92137
92138         * modules/argp (Depends-on): Add restrict and strcase.
92139
92140 2003-10-10  Simon Josefsson  <jas@extundo.com>
92141
92142         * m4/argp.m4: Add AC_C_INLINE.
92143
92144 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92145
92146         Merge getpass from libc, plus a few fixes.
92147
92148         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
92149         Include <stdbool.h>.
92150         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
92151         __fsetlocking to empty.
92152         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
92153         do include <bits/libc-lock.h>.
92154         Do not include <fcntl.h>; not needed.
92155         [_LIBC]: Include <wchar.h>.
92156         (NOTCANCEL_MODE): New macro.
92157         (flockfile, funlockfile) [_LIBC]: New macros.
92158         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
92159         [!_LIBC]: New macros.
92160         (call_fclose): New function.
92161         (getpass): Use it.  Save tty stream separately; this simplifies the
92162         code and makes it more reliable if stdin happens to equal stdout.
92163         Invoke __fsetlocking on tty.
92164         Handle thread cancellation if needed.
92165         Namespace cleanup (use __tcgetattr, __getline).
92166         Use bool for Booleans.
92167         [USE_IN_LIBIO]: Handle wide streams.
92168         [!_LIBC]: Unconditionally do the fseek, since we don't know what
92169         stream might go where.
92170
92171         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
92172         doesn't have to include <stdio.h> before us.
92173         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
92174         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
92175         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
92176         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
92177         if not declared, so that we can use getpass.c code from libc without
92178         rewriting it.
92179         (flockfile, ftrylockfile, funlockfile): New macros.
92180
92181 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92182
92183         * modules/getpass: Depend on stdbool.
92184
92185 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92186
92187         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
92188
92189 2003-10-07  Karl Berry  <karl@gnu.org>
92190
92191         * config/config.{guess,sub}: update from config.
92192
92193 2003-10-06  Jim Meyering  <jim@meyering.net>
92194             Bruno Haible  <bruno@clisp.org>
92195
92196         This lets translators provide better translations for the
92197         "Written by ..." part of --version output.
92198         * lib/version-etc.h: Include stdarg.h.
92199         (version_etc_copyright): Declare as readonly.
92200         (version_etc): Make this function variadic with a NULL-terminated list
92201         of author name strings.
92202         (version_etc_va): New declaration.
92203         * lib/version-etc.c: Include stdarg.h, stdlib.h.
92204         (version_etc_copyright): Declare as readonly.
92205         (version_etc_va): New function. Provide a different translatable string
92206         for each possible number of authors < 10. Abbreviate when there are 10
92207         authors or more.
92208         (version_etc): Make this function variadic. Call version_etc_va.
92209         Suggestion from Gary V. Vaughan.
92210
92211         * lib/long-options.h (parse_long_options): Change prototype: the
92212         authors string is moved to the end and becomes variadic.
92213         * lib/long-options.c: Include stdarg.h.
92214         (parse_long_options): Make this function variadic, too.
92215         Call version_etc_va, not version_etc.
92216
92217 2003-10-06  Bruno Haible  <bruno@clisp.org>
92218
92219         * modules/version-etc-2: Remove file.
92220         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
92221
92222 2003-10-06  Bruno Haible  <bruno@clisp.org>
92223
92224         * modules/fatal-signal: New file.
92225         * MODULES.html.sh (func_all_modules): Add fatal-signal.
92226
92227 2003-10-06  Bruno Haible  <bruno@clisp.org>
92228
92229         * m4/fatal-signal.m4: New file.
92230         * m4/signalblocking.m4: New file, from GNU gettext.
92231
92232 2003-10-06  Bruno Haible  <bruno@clisp.org>
92233
92234         * lib/version-etc-2.h: Remove file.
92235         * lib/version-etc-2.c: Remove file.
92236
92237 2003-10-06  Bruno Haible  <bruno@clisp.org>
92238
92239         * lib/fatal-signal.h: New file, from GNU gettext.
92240         * lib/fatal-signal.c: New file, from GNU gettext.
92241
92242 2003-10-05  Paul Eggert  <eggert@twinsun.com>
92243
92244         * README: Rework advice for preventing empty .o files.
92245         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
92246         not <sys/types.h>.
92247
92248 2003-10-04  Karl Berry  <karl@gnu.org>
92249
92250         * lib/argp*: update from libc.
92251
92252 2003-10-04  Karl Berry  <karl@gnu.org>
92253
92254         * config/config.{guess,sub}: update from config.
92255
92256 2003-10-02  Bruno Haible  <bruno@clisp.org>
92257
92258         * modules/lchown (Include): Add lchown.h.
92259         * modules/time_r (Include): Use "..." syntax.
92260         * modules/xgetdomainname (Include): Add xgetdomainname.h.
92261
92262 2003-10-01  Simon Josefsson  <jas@extundo.com>
92263
92264         * MODULES.html.sh (func_all_modules): Move gethostname from section
92265         'based on' to section 'lacking' POSIX:2001.
92266
92267 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
92268
92269         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
92270         to output mode on the same stream.
92271
92272 2003-09-29  Paul Eggert  <eggert@twinsun.com>
92273
92274         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
92275         Fix arg typo in previous patch.
92276
92277 2003-09-28  Jim Meyering  <jim@meyering.net>
92278
92279         * lib/error.c: Correct cpp indentation.
92280
92281 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92282
92283         * modules/free: New file.
92284
92285 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92286
92287         * m4/free.m4: New file.
92288
92289 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92290
92291         * lib/minmax.h (MIN, MAX)
92292         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
92293         Omit the special code that used __typeof__, since we worry that
92294         it could be more trouble than it's worth.  See:
92295         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
92296         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
92297
92298         * lib/free.c: New file.
92299
92300 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
92301
92302         Trivial fixes to Makefile.am parts of module listings.
92303         * modules/strstr: Append strstr.h to lib_SOURCES.
92304         * modules/strcase: Likewise, for strcase.h.
92305
92306 2003-09-27  Karl Berry  <karl@gnu.org>
92307
92308         * config/mkinstalldirs: update from automake.
92309
92310 2003-09-26  Paul Eggert  <eggert@twinsun.com>
92311
92312         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
92313         (error_tail): Do not loop, reallocating temporary buffer, since
92314         the output cannot contain more wide characters than the input
92315         contains bytes, the size must be big enough already.  This avoids
92316         one potential size overflow calculation.  Check for size overflow
92317         when calculating temporary buffer size.  Free temporary buffer
92318         when done, if it was allocated with malloc; this plugs a memory
92319         leak.  Remove casts from void * to pointers, that are no longer
92320         needed now that we're assuming C89 or better.
92321
92322         Merge error changes from glibc.
92323
92324         * lib/error.c, error.h: Update copyright notice header to match glibc.
92325         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92326         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92327         Disable cancellation while printing error.
92328         * lib/error.h: Prepend __ to parameter names.
92329
92330 2003-09-26  Jim Meyering  <jim@meyering.net>
92331
92332         * lib/error.c (error_tail): Move some declarations
92333         into inner scope where the local variables are used.
92334
92335 2003-09-26  Bruno Haible  <bruno@clisp.org>
92336
92337         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92338         stpncpy().
92339         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92340
92341 2003-09-26  Bruno Haible  <bruno@clisp.org>
92342
92343         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92344         (stpncpy): Define as alias for gnu_stpncpy.
92345         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92346
92347 2003-09-25  Simon Josefsson  <jas@extundo.com>
92348
92349         * lib/xgetdomainname.h: New file.
92350         * lib/xgetdomainname.c: New file.
92351
92352 2003-09-25  Simon Josefsson  <jas@extundo.com>
92353             Bruno Haible  <bruno@clisp.org>
92354
92355         * modules/getdomainname: New file.
92356         * modules/xgetdomainname: New file.
92357         * MODULES.html.sh (func_all_modules): Add getdomainname,
92358         xgetdomainname.
92359
92360 2003-09-25  Simon Josefsson  <jas@extundo.com>
92361             Bruno Haible  <bruno@clisp.org>
92362
92363         * m4/getdomainname.m4: New file.
92364
92365 2003-09-25  Simon Josefsson  <jas@extundo.com>
92366             Bruno Haible  <bruno@clisp.org>
92367
92368         * lib/getdomainname.h: New file.
92369         * lib/getdomainname.c: New file.
92370
92371 2003-09-25  Karl Berry  <karl@gnu.org>
92372
92373         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92374
92375 2003-09-25  Karl Berry  <karl@gnu.org>
92376
92377         * config/install-sh: update from automake.
92378
92379 2003-09-25  Bruno Haible  <bruno@clisp.org>
92380
92381         * modules/version-etc-2: New file, from modules/version-etc with
92382         modifications.
92383         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92384
92385 2003-09-25  Bruno Haible  <bruno@clisp.org>
92386
92387         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
92388         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
92389
92390 2003-09-24  Simon Josefsson  <jas@extundo.com>
92391
92392         * modules/xgethostname: Add xgethostname.h.
92393
92394 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92395
92396         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92397         the buffer associated with the argument.  Bug reported by
92398         Simon Josefsson.
92399
92400 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92401
92402         * README: Document assumptions that 'int' is at least 32 bits
92403         wide, that integer arithmetic is 2's complement without overflow,
92404         that there are no holes in integer values, that adding sizes of
92405         two nonoverlapping objects can't overflow, and that all-bits-zero
92406         yields scalar zero.  Fix spelling and capitalization typos.
92407
92408 2003-09-19  Karl Berry  <karl@gnu.org>
92409
92410         * lib/argp.h: update from libc.
92411
92412 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92413
92414         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92415         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92416         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92417
92418 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92419
92420         * gnulib-tool: Use "test -h", not "test -L", for portability
92421         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92422         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92423         (sed_extract_prog): Issue s commands one-by-one, rather than
92424         using \| in one s command.
92425
92426 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92427
92428         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92429         input error, instead of returning NULL the next time we are called
92430         (and therefore losing track of errno).
92431
92432 2003-09-16  Bruno Haible  <bruno@clisp.org>
92433
92434         * gnulib-tool (func_create_testdir): Warn about duplicated
92435         dependencies.
92436
92437 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92438
92439         * modules/argmatch, modules/fatal, modules/obstack,
92440         modules/xalloc, modules/xgethostname: Sort dependencies by
92441         importance, not alphabetically.
92442
92443 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92444
92445         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92446         fails, so that the caller gets the proper errno.
92447
92448         * lib/readutmp.c (read_utmp): Likewise.
92449         Check for fstat error.  Close stream and free storage
92450         when failing.
92451
92452 2003-09-14  Karl Berry  <karl@gnu.org>
92453
92454         * config/srclist.txt (strdup.c): disable for c89 changes.
92455
92456 2003-09-14  Jim Meyering  <jim@meyering.net>
92457
92458         * lib/getloadavg.c: Correct cpp indentation.
92459         * lib/strdup.c: Likewise.
92460         * lib/vasnprintf.c: Likewise.
92461
92462 2003-09-14  Bruno Haible  <bruno@clisp.org>
92463
92464         * modules/fwriteerror: New file.
92465         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92466
92467 2003-09-14  Bruno Haible  <bruno@clisp.org>
92468
92469         * lib/fwriteerror.h: New file.
92470         * lib/fwriteerror.c: New file.
92471
92472 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92473
92474         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92475         modules/xgethostname, modules/xalloc: Depend on exit.
92476
92477 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92478
92479         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
92480
92481         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
92482         and AC_MINIX, too, so that their extensions are available.
92483
92484         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
92485         This macro has been superseded by gl_BACKUPFILE.
92486
92487         More patches to assume C89 or better.
92488
92489         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
92490
92491         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
92492         unconditionally.
92493         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
92494         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
92495         Include <string.h>, <stdlib.h> unconditionally.
92496         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
92497         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
92498         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
92499         headers or for string.h.
92500         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
92501         or strtoul.
92502
92503         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
92504         headers.
92505         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
92506         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92507         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
92508         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
92509         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92510         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
92511         memcpy, memset.
92512         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
92513         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
92514         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
92515         strtol.
92516         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
92517         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
92518         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
92519         strtoul.
92520
92521 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92522
92523         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
92524         * lib/obstack.c [!defined _LIBC]: Likewise.
92525         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
92526         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
92527         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
92528
92529         More changes to assume C89 or better.
92530
92531         * lib/error.c (error_tail): Assume vprintf.
92532
92533         * lib/argmatch.c (getenv): Remove decl.
92534         * lib/progreloc.c (get_full_program_name): Define via prototype.
92535         * lib/setenv.c (clearenv): Likewise.
92536         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
92537         needed.
92538         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
92539         (malloc, memcpy): Remove decls.
92540         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
92541         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
92542         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92543         (memcpy): Remove macro.
92544         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
92545         (__P): Remove.  All uses removed.
92546         (PTR): Remove.  All uses changed to void *.
92547         (CHAR_BIT, NULL): Remove.
92548         (spaces, zeros, memset_space, memset_zero)
92549         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
92550         Remove.
92551         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
92552         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
92553         Define with prototype.
92554         Remove now-unnecessary prototype decl.
92555         (extra_args_spec): Assume ANSI C.  All uses changed.
92556         (extra_args_spec_iso): Remove.
92557         (my_strftime, emacs_strftimeu): Define via prototype.
92558         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
92559         unconditionally.
92560         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
92561         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
92562         (strtoul, strtol): Remove decls.
92563         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
92564         LONG_MAX): Remove.
92565         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92566         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
92567         (LOCALE_PARAM_PROTO): New macro.
92568         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
92569         (INTERNAL (strtol), strtol): Define with a prototype.
92570         (PARAMS): Remove.  All uses removed.
92571         * lib/tempname.c: Include <string.h> unconditionally.
92572         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
92573         * lib/xgethostname.c (main): Define with a prototype.
92574         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
92575         Include <stdlib.h> unconditionally.
92576         (calloc, malloc, realloc, free): Remove decls.
92577         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
92578         Include <stdlib.h> unconditionally.  Sort include file names.
92579         (strtod): Remove.
92580         (xstrtod): Define with a prototype.
92581         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
92582         (strtol, strtoul): Remove decls.
92583
92584 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92585
92586         More patches to assume C89 or better.
92587         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
92588         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
92589         string.h, memchr, STDC_HEADERS.
92590
92591 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92592
92593         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
92594         Include <stdlib.h>, <string.h> unconditionally.
92595         Remove now-unnecessary cast to char *.
92596         * lib/strnlen.c: Include <string.h> unconditionally.
92597         * lib/yesno.c (yesno): Define with a prototype.
92598
92599 2003-09-11  Bruno Haible  <bruno@clisp.org>
92600
92601         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
92602
92603 2003-09-10  Jim Meyering  <jim@meyering.net>
92604
92605         * lib/error.c: Correct indentation of cpp directives.
92606
92607 2003-09-10  Bruno Haible  <bruno@clisp.org>
92608
92609         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
92610         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
92611         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
92612         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
92613         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
92614         <stdlib.h> and <string.h> checks.
92615         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
92616         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
92617
92618 2003-09-10  Bruno Haible  <bruno@clisp.org>
92619
92620         * lib/strcspn.c: Include <string.h> unconditionally.
92621         * lib/strpbrk.c: Include <string.h> unconditionally.
92622         * lib/strstr.c: Include <string.h> unconditionally.
92623         * lib/unicodeio.c: Include <string.h> unconditionally.
92624         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
92625         * lib/unsetenv.c: Likewise.
92626         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
92627         * lib/yesno.c: Include <stdlib.h> unconditionally.
92628         (rpmatch): Add prototype.
92629
92630 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92631
92632         More patches to assume C89 or better.
92633         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
92634         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
92635         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
92636         or for string.h.
92637         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
92638         stdlib.h.
92639         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
92640         C headers.
92641         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
92642         string.h.
92643         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
92644         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
92645         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
92646         or for string.h.
92647         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
92648         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
92649         C headers.
92650         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
92651         memcpy.
92652         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
92653         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
92654         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
92655         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
92656         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
92657         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
92658         string.h, free.
92659         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
92660         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
92661         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
92662         C headers, or for string.h.
92663         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
92664         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
92665         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
92666         headers, memory.h, stdlib.h, string.h, strings.h.
92667         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
92668         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
92669         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
92670         strchr.
92671         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
92672         headers, memory.h, string.h.
92673         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
92674         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
92675         free.
92676         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
92677         headers.
92678         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
92679         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
92680         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
92681         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
92682         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
92683
92684 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92685
92686         More K&R removal.
92687
92688         * lib/acosl.c (main): Use a prototype.
92689         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
92690         tanl.c: Likewise.
92691
92692         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
92693
92694         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
92695         (getopt, etopt_long, getopt_long_only, _getopt_internal)
92696         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
92697         with a prototype.
92698         * lib/getopt.c (const): Remove macro.
92699         Include <string.h> unconditionally.
92700         (my_index): Remove; all uses changed to strchr.
92701         (strlen): Remove decl.
92702         (exchange): Remove forward decl; no longer needed.
92703         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
92704         Define with prototype.
92705         * lib/getopt1.c (const): Remove macro.
92706         (getopt_long, getopt_long_only, main): Define with prototype.
92707
92708         * lib/getugroups.c: Include <string.h> unconditionally.
92709
92710         * lib/getusershell.c: Include <stdlib.h> unconditionally.
92711         (getusershell, setusershell, endusershell, readname, main):
92712         Define with prototypes.
92713
92714         * lib/group-member.c: Include group-member.h first.
92715         Include <stdlib.h> unconditionally.
92716
92717         * lib/hard-locale.c: Include hard-locale.h first.
92718         Include <stdlib.h>, <string.h> unconditionally.
92719
92720         * lib/hash.c (free, malloc): Remove decls.
92721         Include <stdlib.h> unconditionally.
92722
92723         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
92724         (getenv): Do not declare.
92725
92726         * lib/idcache.c: Include <string.h> unconditionally.
92727
92728         * lib/long-options.c: Include long-options.h first, to test interface.
92729         Include <stdlib.h> unconditionally.
92730
92731         * lib/makepath.c: Include makepath.h first, to test interface.
92732         Include <stdlib.h> and <string.h> unconditionally.
92733
92734         * lib/linebuffer.c: Include <stdlib.h>.
92735         (free): Remove decl.
92736
92737         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
92738         stddef.h. rpl_malloc returns void *, not char *.
92739         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
92740         prototype.
92741
92742         * lib/md5.h: Include <limits.h> unconditionally.
92743         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
92744         (__P): Remove; all uses removed.
92745         * lib/md5.c: Include "md5.h" first.
92746         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
92747         md5_buffer, md5_process_bytes, md5_process_block):
92748         Define with prototypes.
92749         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
92750         * lib/sha.c: Include "sha.h" first.
92751         Include <stdlib.h>, <string.h> unconditionally.
92752
92753         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
92754         * lib/memcmp.c (__ptr_t): Likewise.
92755         * lib/memrchr.c (__ptr_t): Likewise.
92756         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
92757         Include <string.h> unconditionally.
92758         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
92759         * lib/memchr.c: Include <stdlib.h> unconditionally.
92760         * lib/memchr.c (LONG_MAX): Remove.
92761         * lib/memrchr.c (LONG_MAX): Likewise.
92762         * lib/memchr.c (__memchr): Define via a prototype.
92763         * lib/memrchr.c (__memrchr): Likewise.
92764         * lib/memcmp.c (__P): Remove, and remove all uses.
92765         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
92766         Remove forward decls; no longer needed.
92767         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
92768         Use types required by C89 in prototype.
92769
92770         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
92771         * lib/savedir.c: Likewise.
92772         * lib/mkdir.c (free): Remove decl.
92773         * lib/rmdir.c (rmdir): Define with a prototype.
92774         * lib/savedir.c: Include savedir.h first, to test interface.
92775
92776         * lib/mktime.c (STDC_HEADERS): Remove.
92777         Include <stdlib.h>, <string.h> unconditionally.
92778
92779         * lib/modechange.c: Include <stdlib.h> unconditionally.
92780         (malloc): Remove decl.
92781
92782         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
92783         (free): Remove decl.
92784
92785         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
92786         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
92787         (This type really should be intptr_t, but that's a C99ism.)
92788         (_obstack_memcpy): Remove: all uses changed to memcpy.
92789         Include <string.h> unconditionally.
92790         (struct obstack): Assume __STDC__ for types of members
92791         chunkfun, freefun, extra_arg.
92792         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
92793         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
92794         obstack_begin, obstack_specify_allocation,
92795         obstack_specify_allocation_with_arg, obstack_chunkfun,
92796         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
92797         Remove unprototyped decls and the macros that use them.
92798         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
92799         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
92800         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
92801         (defined __STDC__ && __STDC__)]:
92802         Remove nonprototyped code.
92803         Include <stdlib.h> unconditionally.
92804         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
92805         _obstack_allocated_p, _obstack_free, obstack_free,
92806         _obstack_memory_used, print_and_abort):
92807         Define using prototypes.
92808         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
92809         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
92810         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
92811         obstack_next_free, obstack_object_size, obstack_room) [0]:
92812         Remove unused, unprototyped code.
92813
92814         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
92815
92816         * lib/physmem.c (physmem_total, physmem_available, main): Define
92817         with prototypes.
92818
92819         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
92820         (main): Define with a prototype.
92821
92822         * lib/posixver.c (getenv): Remove decl.
92823
92824         * lib/putenv.c (malloc): Returns void *, not char *.
92825         Include <string.h> unconditionally.
92826         (strchr, memcpy, NULL): Do not define.
92827
92828         * lib/readtokens.c: Include readtokens.h first, to test interface.
92829         Include <stdlib.h>, <string.h> unconditionally.
92830         (init_tokenbuffer): Define with a prototype.
92831
92832         * lib/regex.c (PARAMS): Remove.  All uses removed.
92833         All uses of _RE_ARGS removed, too.
92834         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
92835         unconditionally.
92836         (bzero): Assume memset exists.
92837         (memcmp, memcpy, NULL): Remove.
92838         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
92839         char, or assignments to local vars of type signed char.
92840         (init_syntax_once, PREFIX(extract_number_and_incr),
92841         PREFIX(print_partial_compiled_pattern),
92842         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
92843         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
92844         PREFIX(regex_grow_registers), PREFIX(regex_compile),
92845         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
92846         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
92847         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
92848         wcs_compile_range, byte_compile_range, truncate_wchar,
92849         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
92850         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
92851         count_mbs_length, wcs_re_match_2_internal,
92852         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
92853         PREFIX(alt_match_null_string_p),
92854         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
92855         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
92856         regfree, PREFIX(extract_number)): Define with prototype.  Remove
92857         now-unnecessary declaration, if any.
92858         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
92859         regcomp, regexec):
92860         Remove now-unnecessary casts among pointer types.
92861         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
92862
92863         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
92864         (free): Remove decl.
92865
92866         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
92867
92868         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
92869         (free): Remove decl.
92870
92871         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
92872         * lib/xgetcwd.c: Likewise.
92873
92874         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
92875         (free): Remove decl.
92876
92877         * lib/strchrnul.c (strchrnul): Define with a prototype.
92878         Fix bug: c_in was not converted to char before searching.
92879
92880         The following changes are not K&R related:
92881
92882         * lib/group-member.h: Include <sys/types.h>, so that this file is
92883         self-contained.
92884         * lib/makepath.h: Likewise.
92885
92886         * lib/getusershell.c (readname, default_index, line_size, readname):
92887         Use size_t, not int, for sizes.
92888         (readname): If the size overflows, report an error instead of
92889         looping forever.
92890
92891 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92892
92893         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
92894         libc.
92895
92896 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92897
92898         * README: New section: portability guidelines.
92899
92900 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92901
92902         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
92903         C89 spec.
92904
92905 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92906
92907         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
92908
92909 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92910
92911         Assume C89 or better; remove K&R cruft.
92912         A few of these changes were first proposed by Derek Robert Price
92913         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
92914
92915         * lib/addext.c: Include <string.h> unconditionally.
92916         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
92917         Don't declare getenv or malloc.
92918
92919         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
92920         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
92921         (NULL): Remove.
92922         (find_stack_direction, alloca): Use prototypes.
92923
92924         * lib/atexit.c (atexit): Define using a prototype.
92925
92926         * lib/basename.c, dirname.c, stripslash.c:
92927         Include <string.h> unconditionally.
92928
92929         * lib/bcopy.c: Include <stddef.h>.
92930         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
92931
92932         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
92933
92934         * lib/error.h (error, error_at_line, error_print_progname)
92935         [! (defined (__STDC__) && __STDC__)]: Remove decls.
92936         * lib/error.c: Include error.h first, to check interface.
92937         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92938         (VA_START): Remove; all uses changeed to va_start.
92939         (exit, strerror): Remove decls.
92940         (error_print_progname): Prototype uncondionally.
92941         Don't include <errno.h>; no longer needed.
92942         (private_strerror): Remove.
92943         (error_tail): Always define.
92944         (error, error_at_line): Assume C89 or better; always use prototypes.
92945         * lib/fatal.c: Include "fatal.h" first, to test interface.
92946         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92947         (VA_START): Remove; all uses changed to va_start.
92948         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
92949         this case.
92950         (exit): Remove decl.
92951         (fatal): Prototype unconditionally.  Assume va_start works.
92952         Abort at end, to pacify gcc.
92953
92954         * lib/euidaccess.c (main): Define with a prototype.
92955
92956         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
92957
92958         * lib/exitfail.c: Include <stdlib.h> unconditionally.
92959
92960         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
92961         prototypes.
92962         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
92963         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
92964         (getenv): Remove decl.
92965         (fnmatch): Define using a prototype.
92966         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
92967         (FCT): Define using a prototype.
92968
92969         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
92970
92971         * lib/gethostname.c: Include <stddef.h>.
92972         (gethostname): Define with prototype.  Length is size_t, not int.
92973
92974 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92975
92976         Assume C89 or better; remove K&R cruft.
92977         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
92978         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
92979         string.h, getenv, malloc.
92980         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
92981         headers.
92982         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
92983         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
92984         do not check for strerror.
92985         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
92986         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
92987         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
92988         do not check for doprnt or vprintf.
92989         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
92990         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
92991
92992 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92993
92994         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
92995         getversion.c should have been removed then, but was accidentally
92996         preserved.
92997
92998         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
92999         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
93000
93001 2003-09-08  Karl Berry  <karl@gnu.org>
93002
93003         * config/config.sub, config.guess, srclistvars.sh: update from savannah
93004                 config, forget about prep.
93005
93006         * config/depcomp, missing: update from automake.
93007
93008 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93009
93010         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
93011         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93012
93013 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93014
93015         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
93016         copy_tm_result.  Bug reported by Simon Josefsson in
93017         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93018
93019 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93020
93021         * m4/time_r.m4: New file.
93022         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
93023         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
93024         is. Check for timegm declaration.
93025         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
93026         Do not check for gmtime_r.
93027         Replace mktime if __mktime_internal does not exist and if mktime
93028         hasn't been replaced already.
93029
93030 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93031
93032         * lib/time_r.c, lib/time_r.h: New files.
93033
93034         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
93035         __localtime_r.
93036         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
93037         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
93038
93039         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
93040         __gmtime_r.
93041         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
93042         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
93043         Include <time_r.h>.
93044
93045         * lib/timegm.c: Switch to glibc implementation, with the following
93046         changes:
93047         [defined HAVE_CONFIG_H]: Include <config.h>.
93048         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
93049         (__mktime_internal) [!defined _LIBC]: New decl.
93050         (__gmtime_r) [!defined _LIBC]: New macro and function.
93051         (timegm): Use a prototype, since gnulib assumes C89.
93052         Do not bother declaring tmp to be const, as it's not really usefu.
93053         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
93054         (timegm): Declare only if HAVE_DECL_TIMEGM.
93055
93056 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93057
93058         * MODULES.html.sh (func_all_modules): Add time_r.
93059         * modules/time_r: New file.
93060         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
93061         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
93062
93063 2003-09-03  Paul Eggert  <eggert@twinsun.com>
93064
93065         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
93066         Bug reported by Lute Kamstra in
93067         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
93068
93069         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
93070         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
93071         course with correspondingly smaller numbers for tomorrow and
93072         yesterday.  From Tadayoshi Funaba.  Originally installed into
93073         sh-utils on 1999-08-07, but the patch got lost (I guess during the
93074         coreutils merge?).
93075
93076 2003-08-31  Simon Josefsson  <jas@extundo.com>
93077
93078         * modules/timegm: New file.
93079         * MODULES.html.sh (func_all_modules): Add timegm.
93080
93081 2003-08-31  Simon Josefsson  <jas@extundo.com>
93082
93083         * m4/timegm.m4: New file.
93084
93085 2003-08-31  Simon Josefsson  <jas@extundo.com>
93086
93087         * lib/timegm.h: New file.
93088         * lib/timegm.c: New file.  Based on
93089         wget-1.8.2/src/http.c:mktime_from_utc.
93090
93091 2003-08-31  Karl Berry  <karl@gnu.org>
93092
93093         * lib/argp.h: update from libc.
93094
93095 2003-08-28  Bruno Haible  <bruno@clisp.org>
93096
93097         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
93098         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
93099         followed by '#define fnmatch fnmatch_posix' gives an error.
93100
93101 2003-08-28  Bruno Haible  <bruno@clisp.org>
93102
93103         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
93104         warning on QNX, which defines O_BINARY to 000000.
93105
93106 2003-08-27  Jim Meyering  <jim@meyering.net>
93107
93108         * m4/mkstemp.m4: Require that the system mkstemp be able to create
93109         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
93110         would fail after 32.  Reported by Danny Levinson.  Details here:
93111         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
93112
93113 2003-08-24  Bruno Haible  <bruno@clisp.org>
93114
93115         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
93116         MSVC7 <stdio.h> is included later.
93117
93118 2003-08-22  Simon Josefsson  <jas@extundo.com>
93119
93120         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
93121
93122 2003-08-20  Karl Berry  <karl@gnu.org>
93123
93124         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
93125
93126 2003-08-20  Bruno Haible  <bruno@clisp.org>
93127
93128         * modules/progname: New file.
93129         * MODULES.html.sh (func_all_modules): Add progname.
93130
93131 2003-08-20  Bruno Haible  <bruno@clisp.org>
93132
93133         * lib/progname.h: New file, from GNU gettext.
93134         * lib/progname.c: New file, from GNU gettext.
93135         * lib/progreloc.c: New file, from GNU gettext.
93136
93137 2003-08-19  Jim Meyering  <jim@meyering.net>
93138
93139         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
93140         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
93141
93142 2003-08-19  Bruno Haible  <bruno@clisp.org>
93143
93144         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
93145         more.
93146
93147 2003-08-19  Bruno Haible  <bruno@clisp.org>
93148
93149         * lib/xstrdup.c: Assume <string.h> exists.
93150
93151 2003-08-18  Paul Eggert  <eggert@twinsun.com>
93152
93153         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
93154         in makefile rules.
93155
93156 2003-08-18  Jim Meyering  <jim@meyering.net>
93157
93158         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
93159         * m4/lib-ld.m4: Likewise.
93160
93161 2003-08-18  Jim Meyering  <jim@meyering.net>
93162
93163         * lib/setenv.h: Indent nested cpp directive.
93164         * lib/vasnprintf.c: Remove trailing blanks.
93165
93166 2003-08-17  Simon Josefsson  <jas@extundo.com>
93167
93168         * modules/xstrndup: New file.
93169         * MODULES.html.sh (func_all_modules): Add xstrndup.
93170
93171 2003-08-17  Simon Josefsson  <jas@extundo.com>
93172
93173         * modules/argp: Fix autoconf macro name. Add more dependencies.
93174
93175 2003-08-17  Simon Josefsson  <jas@extundo.com>
93176
93177         * m4/xstrndup.m4: New file.
93178
93179 2003-08-17  Simon Josefsson  <jas@extundo.com>
93180
93181         * m4/argp.m4: New file.
93182
93183 2003-08-17  Simon Josefsson  <jas@extundo.com>
93184             Bruno Haible  <bruno@clisp.org>
93185
93186         * lib/xstrndup.h: New file.
93187         * lib/xstrndup.c: New file.
93188
93189 2003-08-17  Bruno Haible  <bruno@clisp.org>
93190
93191         * modules/strndup (Files, Include): Add lib/strndup.h.
93192
93193 2003-08-17  Bruno Haible  <bruno@clisp.org>
93194
93195         * modules/euidaccess (Files): Add lib/euidaccess.h.
93196
93197 2003-08-17  Bruno Haible  <bruno@clisp.org>
93198
93199         * lib/strndup.h: New file.
93200
93201 2003-08-17  Bruno Haible  <bruno@clisp.org>
93202
93203         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
93204         like AC_GNU_SOURCE.
93205         * modules/extensions (configure.ac): Comment out the invocation of
93206         gl_USE_SYSTEM_EXTENSIONS.
93207
93208 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93209
93210         Merges from coreutils, etc.
93211         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
93212         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
93213         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
93214         fixing a typo.
93215         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
93216         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
93217
93218 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93219
93220         Document merge from coreutils.
93221         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
93222         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
93223         * modules/utime: Add m4/utimes-null.m4.
93224
93225 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93226
93227         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
93228         space, undoing this 2003-08-12 change:
93229         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93230
93231 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93232
93233         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
93234         strtoul.c from libc, undoing this 2003-08-12 change:
93235         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93236
93237 2003-08-16  Jim Meyering  <jim@meyering.net>
93238
93239         Merges from coreutils.
93240         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
93241         prefix.  Adjust cache variables similarly.  Create 500 rather than
93242         just 300 files, to exercise bug on Darwin6.5, too.
93243         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
93244         $missing_dir.
93245         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
93246         AM_SYS_POSIX_TERMIOS.
93247         Reported by mkc@mathdogs.com.
93248         Also change use of $am_cv_sys_posix_termios
93249         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
93250         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
93251         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
93252         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
93253         in /proc/mounts until it finds one with matching device number.  This
93254         is unnecessary when the FILE argument *is* a mount point.  No stat call
93255         is necessary in that case.  So, disable the statvfs-testing code on
93256         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
93257         as RedHat bug# 84846.
93258         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93259         to 1MB, so as not to render systems with no stack size limit (e.g.,
93260         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93261         Include <unistd.h>.  On some systems,
93262         it is required for the definition of _SC_PAGESIZE.
93263
93264 2003-08-16  Jim Meyering  <jim@meyering.net>
93265
93266         Merge from coreutils.
93267         * lib/xstrtoimax.c: #else #if -> #elif.
93268         * lib/xstrtoumax.c: Likewise.
93269
93270 2003-08-16  Jim Meyering  <jim@meyering.net>
93271
93272         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
93273         * m4/utimes.m4: Removed.
93274         * m4/utimes-null.m4: Renamed from utimes.m4.
93275
93276         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93277         to 1MB, so as not to render systems with no stack size limit (e.g.,
93278         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93279         Include <unistd.h>.  On some systems,
93280         it is required for the definition of _SC_PAGESIZE.
93281
93282 2003-08-16  Jim Meyering  <jim@meyering.net>
93283         and Paul Eggert  <eggert@cs.ucla.edu>
93284
93285         Merges from coreutils, etc.
93286
93287         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
93288         using the latest version from cvs.  This avoids problems with #line
93289         directives using a vendor (Sun) compiler.
93290         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
93291         Don't set GETGROUPS_LIB here; now it's
93292         done via getgroups.m4's wrapper function.
93293         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
93294         rather than just in sh-util/configure.in, so that the
93295         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
93296         same.
93297         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
93298         AC_FUNC_GETLOADAVG where to find getloadavg.c.
93299         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
93300         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
93301         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
93302         Remove code that is now done by the newly-required macros.
93303         Append $(EXEEXT) to DF_PROG.
93304         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
93305         Do not invoke or require the following here,
93306         since prereq.m4 or some gnulib .m4 now does this for us:
93307         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
93308         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
93309         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
93310         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
93311         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
93312         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
93313         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
93314         AC_FUNC_OBSTACK.
93315         Do not replace the following functions, as this is now the job
93316         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
93317         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
93318         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
93319         atexit getpass, strdup, getpagesize.
93320         Replace 'raise'.
93321         Do not check for the following functions, as this is now the job
93322         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
93323         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93324         setregid.
93325         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93326         Check for sys/sysctl.h.
93327         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93328         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93329         of checking for ssize_t ourselves.
93330
93331         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93332         Require every macro that gnulib/modules/* suggests for us.
93333         (jm_PREREQ_ADDEXT): New macro.
93334         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93335         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93336
93337         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93338         (gl_PHYSMEM): Use it.
93339         Also check for `table' function.
93340         Check for new headers and functions.
93341         Add check for sys/sysmp.h.
93342         With suggestions from Kaveh Ghazi.
93343         Ignore headers that are present but cannot be compiled.  This
93344         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93345         C 5.4.
93346
93347 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93348
93349         Document merge from coreutils.
93350         * modules/userspec: Depend on posixver.
93351         * modules/strftime: Depend on tzset.
93352
93353 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93354
93355         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93356         rather than tab, after '#' in shell-script copyright notices.
93357         Suggested by Bruno Haible.
93358
93359 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93360
93361         * config/srclist-update: Use three spaces, rather than tab, after '#'
93362         in shell-script copyright notices.  Suggested by Bruno Haible.
93363         Remove unnecessary parenthesization in regular expression.
93364
93365 2003-08-15  Jim Meyering  <jim@meyering.net>
93366
93367         Merge from coreutils.
93368         * lib/xgethostname.c: Include <stdlib.h>.
93369         (xghostname): Don't exit for anything other than memory-related
93370         failure; just return NULL.
93371         * lib/userspec.c: Include "posixver.h".
93372         (parse_user_spec): Accept `.' as a separator only
93373         in pre-POSIX-200112 mode.
93374         * lib/strtoimax.c: Use #elif rather than #else #if.
93375         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93376         Remove function, now that we can rely on a working tzset function.
93377         [!_LIBC]: Ensure that the required autoconf test has been run.
93378         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93379         Use underlying_strftime for %r.
93380         * lib/sha.c: Merge in some clean-up and optimization changes from
93381         glibc.
93382         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93383         Ensure that it is a multiple of 64.
93384         Rearrange loop exit tests so as to avoid performing an
93385         additional fread after encountering an error or EOF.
93386         * lib/realloc.c: Update copyright date.
93387
93388 2003-08-15  Jim Meyering  <jim@meyering.net>
93389         and Paul Eggert  <eggert@twinsun.com>
93390
93391         Merge from coreutils.
93392         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
93393         member but strut utmpx does not.  Needed for AIX 4.3.3.
93394         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93395
93396 2003-08-15  Jim Meyering  <jim@meyering.net>
93397         and Paul Eggert  <eggert@cs.ucla.edu>
93398
93399         Merges from coreutils, etc.
93400         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93401         Require gl_FUNC_TZSET_CLOBBER.
93402         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93403         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93404         members.
93405
93406 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93407
93408         Help the merge from coreutils.
93409         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93410         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93411         * m4/tzset.m4: Use it too.
93412
93413 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93414
93415         * modules/tzset: New file.
93416
93417 2003-08-14  Jim Meyering  <jim@meyering.net>
93418
93419         Merges from coreutils.
93420         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93421         variable names, rather than @FNMATCH_H@.
93422         * modules/alloca: Likewise for $(ALLOCA_H).
93423
93424         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93425         the three copies of the literal target, `fnmatch.h'.
93426         * modules/alloca (alloca.h): Likewise.
93427
93428 2003-08-14  Jim Meyering  <jim@meyering.net>
93429
93430         Merge from coreutils.
93431         * m4/tzset.m4: New file.
93432         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93433         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93434         otherwise, AIX 5.1 systems would end up using the latter.
93435         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93436         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93437         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93438         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93439
93440 2003-08-14  Jim Meyering  <jim@meyering.net>
93441
93442         Merge from coreutils.
93443         * lib/obstack.h: Whitespace changes.
93444         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93445         and xcalloc return values.
93446         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93447         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93448         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93449         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93450         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93451         error from mntctl.
93452         Use mntctl's return value to drive the entry-processing loop, since
93453         we can't rely on the value of the vmt_length member in the last
93454         entry.  On some systems doing so could result in exhausting
93455         virtual memory.  Based in part on a patch from Mike Jetzer.
93456
93457 2003-08-14  Jim Meyering  <jim@meyering.net>
93458         and Paul Eggert  <eggert@twinsun.com>
93459
93460         Merges from coreutils, plus other fixes.
93461         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93462         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93463         for credits and details.  Thanks to Kaveh Ghazi for helping
93464         to keep these files in sync.
93465         (ARRAY_SIZE): Define it.
93466         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93467         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93468         (memcasecmp): Don't assume size_t fits in unsigned int.
93469         Remove casts and duplicate code.
93470         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93471         (memcpy): Remove definition.
93472         Merge in some clean-up and optimization changes from glibc.
93473         [BLOCKSIZE]: Move definition to top of file.
93474         Ensure that it is a multiple of 64.
93475         Rearrange loop exit tests so as to avoid performing an
93476         additional fread after encountering an error or EOF.
93477         * lib/md5.h (md5_uintptr): Define.
93478         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
93479         return to the initial working directory.  Preserve errno
93480         for caller.
93481         * lib/idcache.c: Include "xalloc.h".
93482         (xmalloc, xrealloc): Remove decls.
93483         (getuser): Remove casts no longer required in C89.
93484         * lib/human.c: Include stdio.h, for sprintf.
93485         * lib/group-member.c: Include "xalloc.h".
93486         (xmalloc, xrealloc): Remove decls.
93487         (get_group_info): Remove casts no longer required in C89.
93488         * lib/getusershell.c (readname): Remove casts no longer required in
93489         C89.
93490         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
93491         * lib/getline.c: Whitespace fix, from coreutils.
93492
93493 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93494
93495         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
93496         Check for isascii.
93497
93498         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93499         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93500         Undo previous (whitespace-only) change.
93501
93502 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93503
93504         * lib/exclude.c: Include <ctype.h>
93505         (IN_CTYPE_DOMAIN): New macro.
93506         (is_space): New fn.
93507         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
93508         and empty lines.
93509
93510         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93511         Undo previous (whitespace-only) change.
93512
93513 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93514
93515         * config/srclist-update: Change update back to the old behavior,
93516         leaving whitespace alone.  Use one 'sed' command rather than a
93517         pipeline.
93518         (fixlicense): Now a variable, not a function.
93519         (remove_trailing_blanks): Remove.
93520         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
93521         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93522         Undo previous (whitespace-only) change.
93523
93524 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93525
93526         Merge from coreutils.
93527         * modules/euidaccess: Add lib_SOURCES, include for new
93528         file euidaccess.h
93529
93530 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93531
93532         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93533         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93534         Normalize leading white space and remove trailing white space.
93535
93536         Merge from coreutils
93537         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
93538
93539         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
93540         0.12.1.  These files are now being upgraded automatically by
93541         ../config/srclist-update.
93542
93543 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93544
93545         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93546         Normalize leading white space and remove trailing white space.
93547         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
93548         notice, as per ../config/srclist-update.
93549
93550         Merge from coreutils.
93551         * lib/euidaccess.h: New file.
93552         * lib/euidaccess.c: Include it.
93553         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
93554         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
93555         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
93556
93557 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93558
93559         * config/srclist-update: Add copyright notice.
93560         (remove_id_lines, remove_trailing_blanks): New constants.
93561         (fixfile): Use them to normalize spacing a bit in copied files.
93562         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93563         Normalize leading white space and remove trailing white space.
93564
93565         * config/texinfo.tex: Sync with texinfo.
93566
93567         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
93568         strtoul.c from libc, to merge coreutils whitespace changes.
93569
93570         * config/srclist.txt: Get the following m4 files from gettext:
93571         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
93572         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
93573         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
93574         wint_t.m4.
93575
93576 2003-08-12  Karl Berry  <karl@gnu.org>
93577
93578         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
93579         been made.
93580
93581 2003-08-11  Paul Eggert  <eggert@twinsun.com>
93582
93583         * modules/gnu-source, m4/gnu-source.m4:
93584         Remove; we're assuming Autoconf 2.54 or later now.
93585         Suggested by Bruno Haible.
93586         * MODULES.html.sh (func_all_modules): Remove gnu-source.
93587
93588 2003-08-11  Bruno Haible  <bruno@clisp.org>
93589
93590         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
93591
93592 2003-08-11  Bruno Haible  <bruno@clisp.org>
93593
93594         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
93595         (vasnprintf): Use it instead of wcslen.
93596
93597 2003-08-11  Bruno Haible  <bruno@clisp.org>
93598
93599         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
93600         value to ensure that _Bool promotes to int. Use #define for _Bool when
93601         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
93602
93603 2003-08-10  Karl Berry  <karl@gnu.org>
93604
93605         * lib/regex.h: update from libc (whitespace fix).
93606
93607 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93608
93609         Merge some files from coreutils.  These changes were
93610         originally made by Jim Meyering.
93611         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
93612         many older Unixes require this.
93613         * lib/alloca.c (alloca): Remove cast to argument of free;
93614         no longer needed in C89.
93615         * lib/alloca_.h, regex.h: Fix white space to match
93616         what GNU indent does.
93617
93618 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93619
93620         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
93621         apparently Emacs's Unicode mode got confused before my 2003-08-05
93622         checkin.
93623
93624 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93625
93626         * m4/extensions.m4: New file.
93627         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
93628         Require gl_USE_SYSTEM_EXTENSIONS.
93629         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
93630         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
93631
93632 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93633
93634         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
93635         * modules/extensions, modules/gnu-source: New files.
93636         * modules/timespec, modules/unlocked-io: Depend on extensions.
93637
93638 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93639
93640         * modules/restrict: New file.
93641         * MODULES.html.sh (func_all_modules): Add restrict.
93642         * modules/regex: Depend on restrict.
93643
93644 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93645
93646         * m4/restrict.m4: New file.
93647         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
93648
93649 2003-08-07  Bruno Haible  <bruno@clisp.org>
93650
93651         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
93652         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
93653
93654 2003-08-07  Bruno Haible  <bruno@clisp.org>
93655
93656         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
93657         makes the module 'getndelim2' compatible with the module 'getline'.
93658
93659 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93660
93661         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
93662         byte with "\201" to avoid glitches when editing that source file
93663         with multi-gnome-terminal.
93664
93665 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93666
93667         * lib/bumpalloc.h: Remove.
93668
93669 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93670
93671         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
93672         * modules/bumpalloc: Remove.
93673
93674 2003-08-04  Paul Eggert  <eggert@twinsun.com>
93675
93676         * lib/getloadavg.c: Change copyright notice and spacing to conform to
93677         GNU coding style.
93678
93679         Merge from coreutils.
93680         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
93681         1. From glibc.
93682         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
93683         from Karl Berry, implemented by Jim Meyering.
93684         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
93685         from Dmitry V. Levin.
93686         Remove anachronistic cast of xrealloc.
93687         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
93688         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
93689         type. Otherwise, it wouldn't compile with at least /bin/cc on
93690         ymp-cray-unicos9.0.2.X.
93691         Combine two mostly-identical uses of alloca into one.
93692         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
93693
93694 2003-08-04  Dave Love  <d.love@dl.ac.uk>
93695
93696         [From Emacs.]
93697
93698         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
93699         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
93700         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
93701         obsolete NLIST_NAME_UNION.
93702         [__GNU__]: Undef BSD and FSCALE.
93703         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
93704
93705 2003-08-03  Paul Eggert  <eggert@twinsun.com>
93706
93707         * lib/stdbool_.h (_Bool): Make it signed char, instead of
93708         an enum type, so that it's guaranteed to promote to int.  See:
93709         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
93710
93711 2003-08-03  Karl Berry  <karl@gnu.org>
93712
93713         * config/depcomp: update from automake.
93714
93715 2003-07-31  Paul Eggert  <eggert@twinsun.com>
93716
93717         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
93718         (strerror): Don't assume that a printable int fits in 14 bytes.
93719
93720 2003-07-31  Bruno Haible  <bruno@clisp.org>
93721
93722         * modules/getpass-gnu: New file.
93723         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
93724
93725 2003-07-31  Bruno Haible  <bruno@clisp.org>
93726
93727         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
93728
93729 2003-07-24  Karl Berry  <karl@gnu.org>
93730
93731         * config/missing: update from automake.
93732
93733 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
93734             Bruno Haible  <bruno@clisp.org>
93735
93736         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
93737         * lib/getline.c (getline, getdelim): Likewise.
93738         Remove _GNU_SOURCE define; now it's defined in config.h through
93739         m4/getline.m4.
93740
93741 2003-07-23  Karl Berry  <karl@gnu.org>
93742
93743         * config/config.sub: update from prep.
93744
93745 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93746
93747         * modules/xalloc (Depends-on): Add exitfail.
93748         * modules/xmemcoll: Likewise.
93749
93750 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93751
93752         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
93753         over-parenthesization in macros.
93754
93755         Sync with coreutils.
93756
93757         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
93758         required by C99.
93759
93760         Use `exit_failure' for xalloc and xmemcoll instead of their own
93761         private exit-failure variables.
93762         * lib/xalloc.h (xalloc_exit_failure): Remove.
93763         * lib/xmalloc.c: Likewise.  Include exitfail.h.
93764         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
93765         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
93766         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
93767         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
93768
93769 2003-07-20  Jim Meyering  <jim@meyering.net>
93770
93771         * modules/closeout (Depends-on): Add exitfail.
93772         Suggestion from Bruno Haible.
93773
93774 2003-07-19  Karl Berry  <karl@gnu.org>
93775
93776         * config/config.sub: update from prep.
93777
93778 2003-07-18  Paul Eggert  <eggert@twinsun.com>
93779
93780         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
93781         Remove.
93782         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
93783         to test that it can stand by itself.  Include "exitfail.h".
93784         Clients should set exit_failure instead.
93785         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
93786
93787 2003-07-18  Bruno Haible  <bruno@clisp.org>
93788
93789         * modules/getndelim2: New file.
93790         * modules/getline: Share files with module getndelim2.
93791         * modules/getnline: Depend on getndelim2 instead of sharing files with
93792         it. Add getnline.c to lib_SOURCES.
93793         * MODULES.html.sh (func_all_modules): Add getndelim2.
93794
93795 2003-07-18  Bruno Haible  <bruno@clisp.org>
93796
93797         * m4/getndelim2.m4: New file.
93798         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
93799         invoke gl_PREREQ_GETNDELIM2.
93800         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
93801         gl_PREREQ_GETNDELIM2.
93802         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
93803         gl_GETNDELIM2.
93804
93805 2003-07-18  Bruno Haible  <bruno@clisp.org>
93806
93807         * lib/getndelim2.h: New file.
93808         * lib/getndelim2.c: Make into a module of its own. Include config.h,
93809         getndelim2.h.
93810         (getndelim2): Make non-static. Change return type to ssize_t.
93811         * lib/getline.h: Change argument names.
93812         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
93813         * lib/getnline.c: Include getndelim2.h.
93814
93815 2003-07-18  Andreas Schwab  <schwab@suse.de>
93816
93817         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
93818
93819 2003-07-17  Karl Berry  <karl@gnu.org>
93820
93821         * config/config.sub: update from prep.
93822
93823 2003-07-17  Bruno Haible  <bruno@clisp.org>
93824
93825         * modules/getnline: New file.
93826         * modules/getline: Add lib/getndelim2.c to source file list.
93827         * MODULES.html.sh (func_all_modules): Add getnline.
93828
93829 2003-07-17  Bruno Haible  <bruno@clisp.org>
93830
93831         * m4/getnline.m4: New file.
93832
93833 2003-07-17  Bruno Haible  <bruno@clisp.org>
93834
93835         * m4/Makefile.am.in: Remove file.
93836         * m4/Makefile.am: Remove file.
93837         * m4/Makefile.in: Remove file.
93838
93839 2003-07-17  Bruno Haible  <bruno@clisp.org>
93840
93841         * lib/getnline.h: New file.
93842         * lib/getnline.c: New file.
93843         * lib/getndelim2.c: New file, extracted from getline.c.
93844         (getndelim2): Renamed from getdelim2, with added nmax argument.
93845         * lib/getline.c: Include getndelim2.c.
93846         (getdelim2): Moved out to getndelim2.c.
93847         (getline, getdelim): Update.
93848
93849 2003-07-17  Bruno Haible  <bruno@clisp.org>
93850
93851         * lib/Makefile.am: Remove file.
93852         * lib/Makefile.in: Remove file.
93853
93854 2003-07-17  Bruno Haible  <bruno@clisp.org>
93855
93856         * configure.in: Remove file.
93857         * Makefile.in: Remove file.
93858
93859 2003-07-17  Bruno Haible  <bruno@clisp.org>
93860
93861         * MODULES.html.sh: Put the </BODY> right before </HTML>.
93862
93863 2003-07-16  Karl Berry  <karl@gnu.org>
93864
93865         * config/srclist-update: was running fixlicense twice, which caused
93866                 texinfo.tex to be nullified for some reason.  Simplify,
93867                 $gplsrc is no longer needed as far as I can see?
93868
93869 2003-07-16  Jim Meyering  <jim@meyering.net>
93870
93871         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
93872
93873 2003-07-15  Paul Eggert  <eggert@twinsun.com>
93874
93875         * config/srclist.txt: Get the following files from gettext-runtime/intl
93876         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
93877         ref-del.sin.  From Bruno Haible.
93878         * config/srclist-update (fixfile): Change grep pattern again, since the
93879         previous fix didn't work (there was another trailing $).  Use
93880         '[$]' to escape the $s.
93881
93882 2003-07-15  Karl Berry  <karl@gnu.org>
93883
93884         * lib/vasnprintf.c: update from gettext.
93885
93886 2003-07-15  Karl Berry  <karl@gnu.org>
93887
93888         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
93889         gets expanded when surrounded by '$'.
93890
93891 2003-07-15  Jim Meyering  <jim@meyering.net>
93892
93893         * modules/save-cwd: Don't depend on error.  From Derek Price.
93894
93895 2003-07-15  Jim Meyering  <jim@meyering.net>
93896
93897         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
93898
93899 2003-07-14  Simon Josefsson  <jas@extundo.com>
93900
93901         * modules/mempcpy: New file.
93902         * MODULES.html.sh (func_all_modules): Add mempcpy.
93903
93904 2003-07-14  Simon Josefsson  <jas@extundo.com>
93905
93906         * m4/mempcpy.m4: New file.
93907
93908 2003-07-14  Simon Josefsson  <jas@extundo.com>
93909
93910         * lib/mempcpy.h: New file.
93911         * lib/mempcpy.c: New file.
93912
93913 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93914
93915         * modules/getdate, modules/posixtm: Depend on mktime.
93916
93917 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93918
93919         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
93920         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
93921         unicodeio.c, unicodeio.h, unlocked-io.h:
93922         Switch from LGPL to GPL.
93923
93924 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93925
93926         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
93927         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
93928         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
93929         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
93930         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
93931         updated automatically by ../config/srclist-update.  This changes
93932         their license from LPGL to GPL.
93933
93934 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93935
93936         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
93937         assumed to refer to the root of the most recent stable gettext version.
93938         * config/srclistvars.sh: Add defaults for eggert.
93939         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
93940         Match "This program" as well as "The program".  This is needed
93941         for gettext.
93942
93943 2003-07-14  Jim Meyering  <jim@meyering.net>
93944
93945         Don't emit diagnostics.  Let callers do that.
93946         * lib/save-cwd.c: Don't include "error.h".
93947         (save_cwd): Don't call error.  Ensure that errno is valid
93948         when returning nonzero.
93949
93950         * lib/save-cwd.h (restore_cwd): Update prototype.
93951         * lib/save-cwd.c (restore_cwd): Remove two parameters.
93952         Simplify.  Don't call error upon failure.  Let callers do that.
93953         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
93954         when auditing is enabled.  But don't bother updating the #if.
93955
93956 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
93957
93958         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
93959         it breaks C++ compilation.
93960         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
93961
93962 2003-07-10  Simon Josefsson  <jas@extundo.com>
93963
93964         * modules/strchrnul (Makefile.am): Add strchrnul.h.
93965
93966 2003-07-10  Jim Meyering  <jim@meyering.net>
93967
93968         * m4/clock_time.m4: Remove trailing blank.
93969         * m4/intmax_t.m4: Likewise.
93970
93971 2003-07-10  Jim Meyering  <jim@meyering.net>
93972
93973         * lib/vasnprintf.c: Remove trailing blanks.
93974         Make cpp indentation consistent.
93975
93976 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93977
93978         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
93979         posixver.c, strftime.c, strnlen.c, strverscmp.c:
93980         Switch from LGPL to GPL.
93981
93982 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93983
93984         * config/srclist.txt: Sort sublists.  Add
93985         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
93986         that differ from gnulib for one reason or another; we'd like this list
93987         to be smaller but for now let's document what we have.
93988
93989 2003-07-08  Paul Eggert  <eggert@twinsun.com>
93990
93991         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
93992         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
93993         and sweeter "eval x=$x".
93994         * config/srclist.txt: Get lib/argp* from glibc.
93995
93996 2003-07-07  Paul Eggert  <eggert@twinsun.com>
93997
93998         * lib/mktime.c: Fix some boundary cases and remove need for floating
93999         point.
94000
94001         Issue a compile-time diagnostic if time_t is floating point, or if
94002         two's complement arithmetic is not in effect, or if arithmetic
94003         right shift does not propagate the sign.  These assumptions were
94004         all in the original code but they weren't checked.
94005
94006         (TIME_T_MIDPOINT, verify): New macros.
94007         (__isleap): Remove; it has integer overflow problems.
94008         (leapyear): New function, without those problems.
94009         (ydhms_tm_diff): Remove; splitting into two parts.
94010         (ydhms_diff): New function, containing the arithmetic part of
94011         the old ydhms_tm_diff function.  Issue a compile-time
94012         diagnostic if we are not using C99 integer division.
94013         Avoid casts when possible.
94014         (guess_time_tm): New function, containing the checking part of
94015         the old ydhms_tm_diff function.  Return the new value, rather than
94016         the difference between it and the old.  Accept a new argument T
94017         so that *T specifies the old value.  Check for overflow in the result.
94018
94019         (__mktime_internal): Use a time_t offset, not a long int offset.
94020         This undoes the 2003-06-04 change, which is no longer needed now
94021         that we have better overflow checking.
94022         (localtime_offset): Likewise.
94023
94024         (__mktime_internal): Avoid harmful overflow on hosts where time_t
94025         and long are 64-bit but int is only 32-bit.
94026         (ydhms_diff): Use long int to store year1 and yday1.
94027         Issue a compile-time diagnostic if long int is not wide enough.
94028
94029         (__mktime_internal): Use long int to store adjusted year and yday.
94030         Use plain C rather than preprocessor commands, if that doesn't
94031         affect efficiency.
94032         Check for overflow (and try to repair) after each probe
94033         rather than checking only at the very end.  This avoids some bugs
94034         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
94035         does not equal GMT offset at maximum time).
94036         Use integer to check for overflow rather than floating point; this
94037         is more portable to non-IEEE hosts, and is a tad faster.
94038         When we detect that we are oscillating between two values,
94039         don't check whether tm_isdst has the requested value, since
94040         we already know the answer.  When tm_isdst has the wrong value,
94041         use a different heuristic to find the right one, based on the
94042         extreme values actually observed in practice in tz2003a,
94043         rather than the (overly optimistic) "previous 3 calendar quarters".
94044
94045         (not_equal_tm, print_tm, check_result): Use "const T" rather than
94046         "T const" to accommodate glibc style.
94047         (check_result): Use less-confusing report format.  "long" -> "long int.
94048         (main): Likewise.
94049         Don't loop if the iteration overflows time_t.
94050         Allow a negative step in the iteration.
94051
94052 2003-07-06  Karl Berry  <karl@gnu.org>
94053
94054         * config/depcomp: update from automake.
94055         * config/config.sub: update from prep.
94056
94057 2003-07-03  Karl Berry  <karl@gnu.org>
94058
94059         * config/config.guess: update from prep.
94060
94061 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94062
94063         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
94064         xreadlink.c now includes it unconditionally.
94065
94066 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94067
94068         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
94069         having it depend on HAVE_SYS_TYPES_H.
94070
94071 2003-07-01  Bruno Haible  <bruno@clisp.org>
94072
94073         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
94074         <sys/types.h> should be sufficient.
94075         Reported by Paul Eggert.
94076
94077 2003-06-26  Karl Berry  <karl@gnu.org>
94078
94079         * config/depcomp: update from automake.
94080
94081 2003-06-26  Bruno Haible  <bruno@clisp.org>
94082
94083         * modules/human: Depend on module stdbool.
94084
94085 2003-06-25  Bruno Haible  <bruno@clisp.org>
94086
94087         * modules/readlink: New file.
94088         * modules/xreadlink: Depend on it.
94089         * MODULES.html.sh (func_all_modules): Add readlink.
94090
94091 2003-06-25  Bruno Haible  <bruno@clisp.org>
94092
94093         * m4/readlink.m4: New file.
94094
94095 2003-06-25  Bruno Haible  <bruno@clisp.org>
94096
94097         * lib/readlink.c: New file.
94098
94099 2003-06-22  Karl Berry  <karl@gnu.org>
94100
94101         * config/srclist.txt: update mkinstalldirs from automake.
94102         * config/mkinstalldirs: update.
94103
94104 2003-06-22  Bruno Haible  <bruno@clisp.org>
94105
94106         Portability to mingw32.
94107         * m4/ssize_t.m4: New file, from GNU gettext.
94108         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
94109         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
94110
94111 2003-06-22  Bruno Haible  <bruno@clisp.org>
94112
94113         * modules/safe-read: Add m4/ssize_t.m4.
94114         * modules/xreadlink: Add m4/ssize_t.m4.
94115
94116 2003-06-20  Bruno Haible  <bruno@clisp.org>
94117
94118         Assume C89, so PARAMS isn't needed.
94119         * lib/unicodeio.h (PARAMS): Remove.
94120         * lib/unicodeio.c: Don't use PARAMS.
94121
94122 2003-06-18  Karl Berry  <karl@gnu.org>
94123
94124         * config/config.{guess,sub}: update from prep.
94125
94126 2003-06-18  Jim Meyering  <jim@meyering.net>
94127
94128         Merge changes from coreutils.
94129         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
94130         Remove explicit declarations of xmalloc and realloc.
94131         Include xalloc.h.
94132         (read_utmp): Remove anachronistic cast of xmalloc.
94133
94134 2003-06-17  Paul Eggert  <eggert@twinsun.com>
94135
94136         Assume C89, so PARAMS isn't needed.
94137         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
94138         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
94139         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
94140         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
94141         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
94142         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
94143         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
94144         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
94145         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
94146         lib/xstrtod.h, lib/xstrtol.h: Likewise.
94147         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
94148         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
94149         no longer needed. Anyway, config.h should always be included before any
94150         other file.
94151
94152 2003-06-11  Simon Josefsson  <jas@extundo.com>
94153
94154         * modules/sysexits: New file.
94155         * MODULES.html.sh (func_all_modules): Add sysexits.
94156
94157 2003-06-11  Simon Josefsson  <jas@extundo.com>
94158
94159         * lib/sysexit_.h: New file.
94160
94161 2003-06-11  Derek Price  <derek@ximbiot.com>
94162
94163         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
94164         necessary.
94165
94166 2003-06-11  Bruno Haible  <bruno@clisp.org>
94167
94168         * m4/sysexits.m4: New file.
94169
94170 2003-06-10  Simon Josefsson  <jas@extundo.com>
94171
94172         * lib/argp.h: New file, from glibc.
94173         * lib/argp-ba.c: New file, from glibc.
94174         * lib/argp-eexst.c: New file, from glibc.
94175         * lib/argp-fmtstream.c: New file, from glibc.
94176         * lib/argp-fmtstream.h: New file, from glibc.
94177         * lib/argp-fs-xinl.c: New file, from glibc.
94178         * lib/argp-help.c: New file, from glibc.
94179         * lib/argp-namefrob.h: New file, from glibc.
94180         * lib/argp-parse.c: New file, from glibc.
94181         * lib/argp-pv.c: New file, from glibc.
94182         * lib/argp-pvh.c: New file, from glibc.
94183         * lib/argp-xinl.c: New file, from glibc.
94184
94185 2003-06-10  Simon Josefsson  <jas@extundo.com>
94186
94187         * modules/strchrnul: New file.
94188
94189 2003-06-10  Simon Josefsson  <jas@extundo.com>
94190
94191         * modules/argp: New file.
94192
94193 2003-06-10  Simon Josefsson  <jas@extundo.com>
94194
94195         * m4/strchrnul.m4: New file.
94196
94197 2003-06-10  Simon Josefsson  <jas@extundo.com>
94198
94199         * lib/strchrnul.h: New file.
94200         * lib/strchrnul.c: New file.
94201
94202 2003-06-10  Bruno Haible  <bruno@clisp.org>
94203
94204         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
94205
94206 2003-06-07  Karl Berry  <karl@gnu.org>
94207
94208         * config/config.{guess,sub}: update from prep.
94209
94210 2003-06-07  Jim Meyering  <jim@meyering.net>
94211
94212         * modules/strtod: Use $(...) notation, not @...@ for
94213         AC_REPLACE'd variables.
94214         * modules/localcharset: Likewise.
94215
94216 2003-06-07  Jim Meyering  <jim@meyering.net>
94217
94218         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
94219         in place of my name in the copyright comment.
94220         Remove definition and uses of __P.
94221
94222         From coreutils.
94223         * lib/stat.c: Don't declare xmalloc explicitly.
94224         Instead, include "xalloc.h".
94225         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
94226         xrealloc, and xcalloc return values.
94227         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
94228         Improve comment.
94229         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
94230
94231 2003-06-07  Bruno Haible  <bruno@clisp.org>
94232
94233         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
94234         avoid AC_CONFIG_LINKS.
94235         * modules/fnmatch (Makefile.am): Use explicit creation rule for
94236         fnmatch.h, to avoid AC_CONFIG_LINKS.
94237         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
94238
94239 2003-06-07  Bruno Haible  <bruno@clisp.org>
94240
94241         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
94242         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
94243         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94244         directory.
94245         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
94246         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94247         directory.
94248
94249 2003-06-06  Jim Meyering  <jim@meyering.net>
94250
94251         Merge from coreutils.
94252         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
94253         Consolidate declarations and initializations of *_base* locals.
94254
94255         Merge from coreutils.
94256         This avoids a core dump on systems without GNU putenv,
94257         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
94258         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
94259         (unsetenv): New static function, from GNU libc.
94260         (rpl_putenv): Use it.
94261
94262         * lib/modechange.c: Remove trailing blanks.
94263
94264         Merge from coreutils.
94265         * lib/fsusage.c: Remove declaration of statfs.
94266         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
94267
94268         * lib/posixtm.c: Include <stdbool.h> unconditionally.
94269
94270 2003-06-06  Jim Meyering  <jim@meyering.net>
94271
94272         * lib/stdbool_.h: Renamed from stdbool.h.in.
94273
94274 2003-06-06  Jim Meyering  <jim@meyering.net>
94275             Bruno Haible  <bruno@clisp.org>
94276
94277         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
94278         Adjust Makefile.am snippet not to redirect directly to target.
94279         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
94280
94281 2003-06-05  Paul Eggert  <eggert@twinsun.com>
94282
94283         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
94284         mismatch, look in future quarters as well as past.  This fixes a
94285         bug when processing fall-backwards gaps immediately after a long
94286         period of daylight-saving time.
94287
94288         * lib/mktime.c: Assume freestanding C89 or better.
94289         (HAVE_LIMITS_H): Remove.  Assume it's 1.
94290         (__P): Remove; not used.
94291         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
94292         (mktime, not_equal_tm, print_tm, check_result,
94293         main): Use prototypes.  Use const * where appropriate.
94294         (main): Fix typo in testing code that uncovered by above changes.
94295         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
94296
94297 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94298
94299         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
94300         locale.h, localeconv.  This merges changes from coreutils.
94301
94302         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
94303         It can be removed after the next Autoconf is released.
94304         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
94305         needed.
94306
94307 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94308
94309         * lib/mktime.c: Fix Debian bug 177940
94310         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
94311         (localtime_offset): Now long int, not time_t, because we want it
94312         to be guaranteed to be signed.  All uses changed.
94313         (__mktime_internal): If overflow would occur when adding offset,
94314         don't add it.
94315
94316         Merge 'human' changes from coreutils.  Rewrite to support
94317         locale-specific notations like thousands separators.
94318         * lib/human.c: Simplify authorship notice.
94319         Include human.h immediately after config.h.
94320         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
94321         <limits.h>: Do not include, since human.h does.
94322         (SIZE_MAX, UINTMAX_MAX): New macros.
94323         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94324         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94325         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94326         (power_letter): Renamed from suffixes.
94327         (generate_suffix_backwards): Remove.
94328         (adjust_value): Now takes int style (because of human.h changes)
94329         and long double value (for greater precision on some platforms).
94330         (group_number): New function.
94331         (human_readable): Use it.  Use integer options, not enum.
94332         Put the options before the sizes in the arg list.
94333         Support all the new options.
94334         The old human_readable function has been removed;
94335         use inttostr.h instead.
94336         (human_readable, default_block_size, humblock):
94337         Use uintmax_t, not int, for block sizes.
94338         (human_readable_inexact, block_size_types): Remove.
94339         (block_size_opts): New constant.
94340         (human_options): Renamed from human_block_size, with new signature
94341         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94342         * lib/human.h: Add copyright and authorship notice.
94343         Include <limits.h> and <stdbool.h> unconditionally.
94344         (PARAMS): Remove.  All uses removed.
94345         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94346         (enum human_inexact_style): Remove tag; now a nameless enum.
94347         (human_floor, human_ceiling, human_round_to_even): Now have
94348         values 2, 0, 1 rather than -1, 1, 0.
94349         (human_group_digits, human_suppress_point_zero, human_autoscale,
94350         human_base_1024, human_SI, human_B): New constants.
94351         (human_readable_inexact, human_block_size): Remove.
94352         (human_readable): Size args are now uintmax_t, not int.
94353         (human_options): New decl.
94354
94355         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94356         unnecessary now that we assume C89 or better.  This change
94357         imported from coreutils.
94358
94359         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94360         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94361         in the 2003-05-30 sync from glibc.
94362
94363         .h files should stand alone, but we shouldn't include <sys/types.h>
94364         if we can get away with just <stddef.h>.
94365
94366         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94367         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94368         rather than <sys/types.h>, as we merely need size_t.
94369         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94370         to get size_t.
94371         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94372         Include <stdio.h>, to get FILE.
94373         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94374         memcasecmp.h has included <stddef.h> and all we need is size_t.
94375         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94376         our interface, instead of including <sys/types.h>
94377
94378 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94379
94380         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94381         now, as glibc mktime is buggy on non-glibc systems.
94382
94383 2003-06-03  Karl Berry  <karl@gnu.org>
94384
94385         * config/config.sub: update from prep.
94386
94387 2003-06-02  Paul Eggert  <eggert@twinsun.com>
94388
94389         [from coreutils]
94390         Fix some minor time-related bugs with POSIX time arguments.
94391         Some valid time stamps were being rejected (notably -1, and
94392         time stamps before 1900 on 64-bit hosts).  And some invalid
94393         time stamps were being accepted, e.g. September 31.
94394
94395         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94396         that we can return (time_t) -1 successfully.
94397         * lib/posixtm.c: Likewise.
94398         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94399         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94400         (t): Remove static var.
94401         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94402         of static var.  All uses changed.
94403         (year): Do not reject years before 1900; they can occur with
94404         64-bit time_t.
94405         (posix_time_parse): Do not check for out-of-range components;
94406         that is now the caller's responsibility, since our checks were
94407         only approximations.
94408         (posixtime): Use mktime to check for out-of-range components,
94409         since it knows them exactly.
94410         If mktime returns (time_t) -1, check whether an error actually occurred
94411         by invoking localtime on -1.
94412         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94413         posixtime failures better.
94414         Improve the test data (in comments only).
94415
94416 2003-06-02  Karl Berry  <karl@gnu.org>
94417
94418         * config/mkinstalldirs (version): new variable.
94419         (--version): new option.
94420         (usage): improve message.
94421
94422 2003-05-30  Karl Berry  <karl@gnu.org>
94423
94424         * lib/mktime.c: update from libc.
94425
94426 2003-05-30  Bruno Haible  <bruno@clisp.org>
94427
94428         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94429         * config/config.rpath: Upgrade to gettext-0.12.1.
94430
94431 2003-05-30  Bruno Haible  <bruno@clisp.org>
94432
94433         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94434         * m4/nls.m4: New file, from gettext-0.12.1.
94435         * m4/po.m4: New file, from gettext-0.12.1.
94436         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94437
94438 2003-05-30  Bruno Haible  <bruno@clisp.org>
94439
94440         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94441         * lib/localcharset.h: Likewise.
94442         * lib/localcharset.c: Likewise.
94443
94444 2003-05-29  Karl Berry  <karl@gnu.org>
94445
94446         * config/config.rpath: update from gettext.
94447
94448 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94449
94450         Assume the headers required for C89 freestanding compilers.
94451         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94452         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94453         * m4/human.m4 (gl_HUMAN): Likewise.
94454         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94455         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94456         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94457         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94458         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94459         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94460
94461 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94462
94463         Assume the headers required for C89 freestanding compilers.
94464         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94465         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94466         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94467         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94468         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94469         define, since <limits.h> is guaranteed to do that.
94470         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94471         * lib/exclude.c: Include <stdbool.h> unconditionally.
94472         * lib/tempname.c: Include <stddef.h> unconditionally.
94473         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94474         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94475         <stddef.h> does that.
94476         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
94477         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
94478         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
94479         needed.
94480         * lib/xstrtol.c: Likewise.
94481         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
94482         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
94483
94484         * lib/addext.c (addext): Use assignment rather than cast, to avoid
94485         warnings on some platforms.
94486
94487         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94488         arbitrarily.
94489
94490 2003-05-26  Jim Meyering  <jim@meyering.net>
94491
94492         Merge in a change from coreutils:
94493         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
94494         that is guaranteed to be `no'.  Use `no_such_member' to indicate
94495         that condition, rather than `-1' which is slightly misleading.
94496         Change the name of the cache variable to have the gl_ prefix.
94497         Prompted by a patch from Richard Dawe for DJGPP.
94498
94499 2003-05-24  Karl Berry  <karl@gnu.org>
94500
94501         * config/config.guess: update from prep.
94502
94503 2003-05-22  Karl Berry  <karl@gnu.org>
94504
94505         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
94506
94507 2003-05-20  Karl Berry  <karl@gnu.org>
94508
94509         * config/config.guess: update from prep.
94510
94511 2003-05-18  Karl Berry  <karl@gnu.org>
94512
94513         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
94514         might actually be set by the user.
94515
94516         * config/depcomp, install-sh, mdate-sh: update from automake.
94517
94518 2003-05-17  Bruno Haible  <bruno@clisp.org>
94519
94520         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
94521         invalid expansion for AC_EGREP_CPP.
94522         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
94523         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
94524         Suggested by Akim Demaille <akim@epita.fr> in
94525         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
94526
94527 2003-05-12  Jim Meyering  <jim@meyering.net>
94528
94529         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
94530         the space-padded-by-default conversion specifiers, %e, %k, %l.
94531
94532 2003-05-12  Bruno Haible  <bruno@clisp.org>
94533
94534         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
94535         the string is longer than 4 KB.
94536
94537 2003-05-11  Karl Berry  <karl@gnu.org>
94538
94539         * config/config.{guess,sub}: update from prep.
94540
94541 2003-05-09  Bruno Haible  <bruno@clisp.org>
94542
94543         * modules/error: Add m4/strerror_r.m4 to file list.
94544
94545 2003-05-03  Bruno Haible  <bruno@clisp.org>
94546
94547         Upgrade to Unicode-4.0.
94548         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
94549         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
94550         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
94551         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
94552         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
94553         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
94554         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
94555         Change width of U+E0100..U+E01EF from 1 to 0.
94556
94557 2003-04-25  Jim Meyering  <jim@meyering.net>
94558
94559         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
94560         of type size_t, not int.
94561
94562 2003-04-25  Bruno Haible  <bruno@clisp.org>
94563
94564         * lib/copy-file.c: Include <stddef.h>, for size_t.
94565
94566 2003-04-21  Paul Eggert  <eggert@twinsun.com>
94567
94568         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
94569         code which expansion is under static control.  Patch imported from
94570         Akim Demaille's patch to Bison; see
94571         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
94572
94573 2003-04-14  Bruno Haible  <bruno@clisp.org>
94574
94575         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
94576
94577 2003-04-11  Jim Meyering  <jim@meyering.net>
94578
94579         Merge changes from Coreutils.
94580
94581         2003-03-22  Jim Meyering  <jim@meyering.net>
94582
94583         * lib/strftime.c (widen): Cast alloca return value to proper type.
94584
94585         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
94586
94587         From GNU libc.
94588         * lib/strftime.c (my_strftime): Handle very large width
94589         specifications for numeric values correctly.  Improve checks for
94590         overflow.
94591
94592         2003-01-19  Jim Meyering  <jim@meyering.net>
94593
94594         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
94595         definitions.
94596         (nl_get_alt_digit) [! defined my_strftime]: Define.
94597         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
94598         _nl_get_alt_digit and _nl_get_walt_digit.
94599
94600         * lib/strftime.c (my_strftime): Merge in locale-related changes from
94601         libc. These changes have no effect outside of _LIBC.
94602
94603 2003-04-10  Bruno Haible  <bruno@clisp.org>
94604
94605         * modules/findprog: New file.
94606         * MODULES.html.sh (func_all_modules): Add it.
94607
94608 2003-04-10  Bruno Haible  <bruno@clisp.org>
94609
94610         * m4/findprog.m4: New file.
94611         * m4/eaccess.m4: New file.
94612
94613 2003-04-10  Bruno Haible  <bruno@clisp.org>
94614
94615         * lib/findprog.h: New file, from GNU gettext.
94616         * lib/findprog.c: New file, from GNU gettext.
94617
94618 2003-04-05  Jim Meyering  <jim@meyering.net>
94619
94620         Merge changes from Coreutils.
94621
94622         * lib/exclude.h (PARAMS): Remove definition and uses.
94623         * lib/exclude.c: Remove uses of `PARAMS'.
94624
94625         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
94626         Add test-cases for DOS filenames. Declare program_name.
94627         (main): Set up program_name.  Patch by Rich Dawe.
94628
94629         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
94630         error from mntctl.
94631         Use mntctl's return value to drive the entry-processing loop, since
94632         we can't rely on the value of the vmt_length member in the last
94633         entry.  On some systems doing so could result in exhausting
94634         virtual memory.  Based in part on a patch from Mike Jetzer.
94635
94636 2003-04-04  Bruno Haible  <bruno@clisp.org>
94637
94638         * modules/linebreak: New file.
94639         * MODULES.html.sh (func_all_modules): Add it.
94640
94641 2003-04-04  Bruno Haible  <bruno@clisp.org>
94642
94643         * m4/linebreak.m4: New file.
94644
94645 2003-04-04  Bruno Haible  <bruno@clisp.org>
94646
94647         * lib/linebreak.h: New file, from GNU gettext.
94648         * lib/linebreak.c: New file, from GNU gettext with slight
94649         modifications.
94650         * lib/lbrkprop.h: New file, from GNU gettext.
94651
94652 2003-04-03  Bruno Haible  <bruno@clisp.org>
94653
94654         * modules/utf8-ucs4: New file.
94655         * modules/utf16-ucs4: New file.
94656         * modules/ucs4-utf8: New file.
94657         * modules/ucs4-utf16: New file.
94658         * MODULES.html.sh (func_all_modules): Add them.
94659
94660 2003-04-03  Bruno Haible  <bruno@clisp.org>
94661
94662         * m4/utf-ucs4.m4: New file.
94663         * m4/ucs4-utf.m4: New file.
94664
94665 2003-04-03  Bruno Haible  <bruno@clisp.org>
94666
94667         * lib/utf8-ucs4.h: New file, from GNU gettext.
94668         * lib/utf16-ucs4.h: New file, from GNU gettext.
94669         * lib/ucs4-utf8.h: New file, from GNU gettext.
94670         * lib/ucs4-utf16.h: New file, from GNU gettext.
94671
94672 2003-04-02  Bruno Haible  <bruno@clisp.org>
94673
94674         * modules/binary-io: New file.
94675         * MODULES.html.sh (func_all_modules): Add it.
94676
94677 2003-04-02  Bruno Haible  <bruno@clisp.org>
94678
94679         * lib/binary-io.h: New file, from GNU gettext.
94680
94681 2003-04-01  Bruno Haible  <bruno@clisp.org>
94682
94683         * modules/pathname: New file.
94684         * MODULES.html.sh (func_all_modules): Add it.
94685
94686 2003-04-01  Bruno Haible  <bruno@clisp.org>
94687
94688         * lib/pathname.h: New file, from GNU gettext.
94689         * lib/concatpath.c: New file, from GNU gettext.
94690
94691 2003-03-30  Bruno Haible  <bruno@clisp.org>
94692
94693         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
94694
94695 2003-03-30  Bruno Haible  <bruno@clisp.org>
94696
94697         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
94698         function chown() doesn't exist.
94699
94700 2003-03-28  Bruno Haible  <bruno@clisp.org>
94701
94702         * modules/copy-file: New file.
94703         * MODULES.html.sh (func_all_modules): Add it.
94704
94705 2003-03-28  Bruno Haible  <bruno@clisp.org>
94706
94707         * m4/copy-file.m4: New file.
94708
94709 2003-03-28  Bruno Haible  <bruno@clisp.org>
94710
94711         * lib/copy-file.h: New file, from GNU gettext.
94712         * lib/copy-file.c: New file, from GNU gettext.
94713
94714 2003-03-18  Jim Meyering  <jim@meyering.net>
94715
94716         * lib/quote.c (quote_n): Fix typo in comment.
94717
94718 2003-03-18  Bruno Haible  <bruno@clisp.org>
94719
94720         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
94721         checking.
94722         * m4/onceonly_2_57.m4: Likewise.
94723
94724 2003-03-17  Bruno Haible  <bruno@clisp.org>
94725
94726         * m4/onceonly.m4: Require autoconf 2.54 or newer.
94727         (m4_quote): Remove macro.
94728         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
94729
94730 2003-03-14  Jim Meyering  <jim@meyering.net>
94731
94732         Merge changes from Coreutils.
94733         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
94734         to be const, in order to avoid warnings.
94735         (obstack_room): Likewise.
94736         (obstack_empty_p): Likewise.
94737
94738 2003-03-14  Bruno Haible  <bruno@clisp.org>
94739
94740         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
94741         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
94742
94743 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94744
94745         Merge changes from Bison.
94746         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
94747         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
94748         when compiling Bison 1.875's `bitset bset = obstack_alloc
94749         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
94750         * lib/hash.c: Include <stdbool.h> unconditionally.
94751
94752 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94753
94754         * m4/onceonly.m4 (m4_quote): New macro.
94755         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
94756         Quote AC_FOREACH variable-expansions properly.
94757
94758 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94759
94760         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
94761
94762 2003-03-09  Paul Eggert  <eggert@twinsun.com>
94763
94764         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
94765         Reported by Bruce Becker; see:
94766         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
94767
94768 2003-03-03  Paul Eggert  <eggert@twinsun.com>
94769             Bruno Haible  <bruno@clisp.org>
94770
94771         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
94772         Reported by John Hughes, see
94773         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
94774
94775 2003-02-20  Bruno Haible  <bruno@clisp.org>
94776
94777         * MODULES.html.sh (func_all_modules): Add poll.
94778
94779 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94780
94781         * modules/poll: New file.
94782
94783 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94784
94785         * lib/poll_.h: New file.
94786         * lib/poll.c: New file.
94787
94788 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94789
94790         * m4/poll.m4: New file.
94791
94792 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94793
94794         * modules/mathl: New file.
94795
94796 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94797
94798         * lib/mathl.h: New file.
94799         * lib/acosl.c: New file.
94800         * lib/asinl.c: New file.
94801         * lib/atanl.c: New file.
94802         * lib/ceill.c: New file.
94803         * lib/cosl.c: New file.
94804         * lib/expl.c: New file.
94805         * lib/floorl.c: New file.
94806         * lib/frexpl.c: New file.
94807         * lib/ldexpl.c: New file.
94808         * lib/logl.c: New file.
94809         * lib/sincosl.c: New file.
94810         * lib/sinl.c: New file.
94811         * lib/sqrtl.c: New file.
94812         * lib/tanl.c: New file.
94813         * lib/trigl.c: New file.
94814         * lib/trigl.h: New file.
94815
94816 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94817
94818         * m4/mathl.m4: New file.
94819
94820 2003-02-18  Bruno Haible  <bruno@clisp.org>
94821
94822         * MODULES.html.sh (func_all_modules): Add mathl.
94823
94824 2003-02-17  Bruno Haible  <bruno@clisp.org>
94825
94826         * modules/mkdtemp: New module.
94827         * MODULES.html.sh (func_all_modules): Add it.
94828
94829 2003-02-17  Bruno Haible  <bruno@clisp.org>
94830
94831         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
94832
94833 2003-02-17  Bruno Haible  <bruno@clisp.org>
94834
94835         * lib/mkdtemp.h: New file, from GNU gettext.
94836         * lib/mkdtemp.c: New file, from GNU gettext.
94837
94838 2003-02-02  Jim Meyering  <jim@meyering.net>
94839
94840         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
94841         e.g. glibc-2.2.93.
94842
94843 2003-01-31  Bruno Haible  <bruno@clisp.org>
94844
94845         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
94846         'rpl_rename'.
94847         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
94848         'rpl_strnlen'.
94849         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
94850         'rpl_strtod'.
94851         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
94852         'rpl_utime'.
94853
94854 2003-01-31  Bruno Haible  <bruno@clisp.org>
94855
94856         * lib/rename.c: #undef rename before defining rpl_rename.
94857         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
94858
94859 2003-01-30  Bruno Haible  <bruno@clisp.org>
94860
94861         * modules/vasnprintf, modules/vasprintf: New modules.
94862         * MODULES.html.sh (func_all_modules): Add them.
94863
94864 2003-01-30  Bruno Haible  <bruno@clisp.org>
94865
94866         * m4/signed.m4: New file, from GNU gettext.
94867         * m4/longdouble.m4: New file, from GNU gettext.
94868         * m4/wchar_t.m4: New file, from GNU gettext.
94869         * m4/wint_t.m4: New file, from GNU gettext.
94870         * m4/vasnprintf.m4: New file.
94871         * m4/vasprintf.m4: New file.
94872
94873 2003-01-30  Bruno Haible  <bruno@clisp.org>
94874
94875         * lib/printf-args.h: New file, from GNU gettext.
94876         * lib/printf-args.c: New file, from GNU gettext.
94877         * lib/printf-parse.h: New file, from GNU gettext.
94878         * lib/printf-parse.c: New file, from GNU gettext.
94879         * lib/vasnprintf.h: New file, from GNU gettext.
94880         * lib/vasnprintf.c: New file, from GNU gettext.
94881         * lib/asnprintf.c: New file, from GNU gettext.
94882         * lib/vasprintf.h: New file, from GNU gettext with modifications.
94883         * lib/vasprintf.c: New file, from GNU gettext.
94884         * lib/asprintf.c: New file, from GNU gettext.
94885
94886 2003-01-29  Bruno Haible  <bruno@clisp.org>
94887
94888         * modules/stpncpy: New module.
94889         * MODULES.html.sh (func_all_modules): Add it.
94890
94891 2003-01-29  Bruno Haible  <bruno@clisp.org>
94892
94893         * m4/stpncpy.m4: New file.
94894
94895 2003-01-29  Bruno Haible  <bruno@clisp.org>
94896
94897         * lib/stpncpy.h: New file, from GNU gettext with modifications.
94898         * lib/stpncpy.c: New file, from GNU gettext with modifications.
94899
94900 2003-01-28  Bruno Haible  <bruno@clisp.org>
94901
94902         * modules/c-ctype: New module.
94903         * MODULES.html.sh (func_all_modules): Add it.
94904
94905 2003-01-28  Bruno Haible  <bruno@clisp.org>
94906
94907         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
94908         Paul Eggert.
94909         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
94910         Paul Eggert.
94911
94912 2003-01-27  Bruno Haible  <bruno@clisp.org>
94913
94914         * modules/xsetenv: New module.
94915         * MODULES.html.sh (func_all_modules): Add it.
94916
94917 2003-01-27  Bruno Haible  <bruno@clisp.org>
94918
94919         * lib/xsetenv.h: New file, from GNU gettext.
94920         * lib/xsetenv.c: New file, from GNU gettext.
94921
94922 2003-01-23  Jim Meyering  <jim@meyering.net>
94923
94924         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
94925         from working on systems without dirfd (at least Irix and OSF1/Tru64).
94926
94927 2003-01-23  Bruno Haible  <bruno@clisp.org>
94928
94929         * modules/minmax: New module.
94930         * MODULES.html.sh (func_all_modules): Add it.
94931
94932 2003-01-23  Bruno Haible  <bruno@clisp.org>
94933
94934         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
94935         Eggert.
94936
94937 2003-01-22  Bruno Haible  <bruno@clisp.org>
94938
94939         * modules/exit: New module.
94940         * MODULES.html.sh (func_all_modules): Add it.
94941
94942 2003-01-22  Bruno Haible  <bruno@clisp.org>
94943
94944         * lib/exit.h: New file, from GNU gettext.
94945
94946 2003-01-19  Bruno Haible  <bruno@clisp.org>
94947
94948         * gnulib-tool: Recognize option --extract-maintainer.
94949         (func_get_maintainer): New function.
94950         * modules/*: Add Maintainer entry.
94951
94952 2003-01-16  Jim Meyering  <jim@meyering.net>
94953
94954         * m4/regex.m4: The `regex' struct is both input and output.
94955         Initialize it before each use.  Patch by Tim Waugh.
94956
94957 2003-01-16  Bruno Haible  <bruno@clisp.org>
94958
94959         * MODULES.html.sh: Add a table of contents. Add the module name as
94960         leftmost column. Add hyperlinks.
94961
94962 2003-01-15  Bruno Haible  <bruno@clisp.org>
94963
94964         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
94965
94966 2003-01-15  Bruno Haible  <bruno@clisp.org>
94967
94968         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
94969         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
94970         suffix.
94971
94972 2003-01-15  Bruno Haible  <bruno@clisp.org>
94973
94974         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
94975
94976 2003-01-15  Bruno Haible  <bruno@clisp.org>
94977
94978         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
94979         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
94980
94981 2003-01-14  Jim Meyering  <jim@meyering.net>
94982
94983         * lib/same.c (same_name): Tweak a comment.
94984
94985 2003-01-14  Bruno Haible  <bruno@clisp.org>
94986
94987         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
94988         when a string comparison is sufficient.
94989
94990 2003-01-14  Bruno Haible  <bruno@clisp.org>
94991
94992         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
94993         'unsigned int'.
94994
94995 2003-01-14  Bruno Haible  <bruno@clisp.org>
94996
94997         * lib/hash-pjw.c: Add comment about low quality of this function.
94998
94999 2003-01-13  Bruno Haible  <bruno@clisp.org>
95000
95001         * modules/stpcpy: Distribute lib/stpcpy.h.
95002         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
95003
95004 2003-01-13  Bruno Haible  <bruno@clisp.org>
95005
95006         * modules/*: Add a description.
95007         * modules/strpbrk: Fix Makefile.am snippet.
95008         * modules/strtoimax: Fix dependencies.
95009         * modules/strtoumax: Likewise.
95010
95011 2003-01-13  Bruno Haible  <bruno@clisp.org>
95012
95013         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
95014         * modules/alloca (Makefile.am): All object files depend on alloca.h.
95015         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
95016
95017 2003-01-13  Bruno Haible  <bruno@clisp.org>
95018
95019         * gnulib-tool (func_create_testdir): Store config/* files in the main
95020         directory.
95021         * config.rpath: Move to ...
95022         * config/config.rpath: ... here.
95023         * modules/gettext: Contains config/config.rpath, not config.rpath.
95024         * modules/iconv: Likewise.
95025
95026 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95027
95028         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95029         to avoid collisions with libcurses and libreadline.
95030
95031         * m4/getstr.m4: Remove.
95032         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
95033
95034 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95035
95036         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95037         to avoid collisions with libcurses and libreadline.
95038
95039         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
95040         * lib/getstr.h, getstr.c: Remove.
95041         * lib/getline.c: Include "getline.h", to check interface.
95042         Move body of old getstr.c here: this defines MIN_CHUNK and
95043         declares getdelim2, which is renamed from getstr.
95044         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
95045
95046         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
95047         All uses changed.
95048         * lib/linebuffer.h: Likewise.
95049         (readline): Remove backward-compatibility macro.
95050
95051 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95052
95053         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95054         to avoid collisions with libcurses and libreadline.
95055         * getstr: Remove.
95056         * MODULES.html.sh: Remove getstr.
95057         * modules/getline: Depend on unlocked-io, not getstr.
95058
95059 2003-01-12  Jim Meyering  <jim@meyering.net>
95060
95061         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
95062
95063 2003-01-10  Bruno Haible  <bruno@clisp.org>
95064
95065         * modules/alloca: Change Makefile.am requirements. Simplify Include
95066         requirements. Add lib/alloca_.h to file list.
95067
95068 2003-01-10  Bruno Haible  <bruno@clisp.org>
95069
95070         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
95071
95072 2003-01-10  Bruno Haible  <bruno@clisp.org>
95073
95074         * lib/alloca_.h: New file.
95075         * lib/getdate.y: Unconditionally include alloca.h.
95076         * lib/makepath.c: Likewise.
95077         * lib/setenv.c: Likewise.
95078         * lib/userspec.c: Likewise.
95079
95080 2003-01-09  Karl Berry  <karl@gnu.org>
95081
95082         * MODULES.html.sh: include `dirname $0` in PATH, to find
95083         gnulib-tool.
95084
95085 2003-01-09  Bruno Haible  <bruno@clisp.org>
95086
95087         * modules/stdbool: Change configure.ac, Makefile.am requirements.
95088         Simplify Include requirements. Add lib/stdbool.h.in to file list.
95089
95090 2003-01-09  Bruno Haible  <bruno@clisp.org>
95091
95092         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
95093
95094 2003-01-09  Bruno Haible  <bruno@clisp.org>
95095
95096         * lib/stdbool.h.in: New file.
95097
95098 2003-01-09  Bruno Haible  <bruno@clisp.org>
95099
95100         * gnulib-tool (func_all_modules): Ignore files ending in ~.
95101         * MODULES.html.sh: Likewise.
95102
95103 2003-01-08  Jim Meyering  <jim@meyering.net>
95104
95105         * lib/full-write.c: Undefine and define-away `const' after inclusion
95106         of errno.h, not before.  Suggestion from Bruno Haible.
95107
95108 2003-01-08  Bruno Haible  <bruno@clisp.org>
95109
95110         * modules/full-read: Depend on full-write.
95111
95112 2003-01-08  Bruno Haible  <bruno@clisp.org>
95113
95114         * lib/safe-read.c: Include specification header first, to ensure its
95115         selfcontainedness.
95116         * lib/full-write.c: Likewise.
95117
95118 2003-01-07  Jim Meyering  <jim@meyering.net>
95119
95120         * lib/full-write.c: Rework so that it may serve to define full_read,
95121         too.
95122         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
95123
95124 2003-01-07  Bruno Haible  <bruno@clisp.org>
95125
95126         * lib/strtoimax.c: Include <stdint.h> as an alternative to
95127         <inttypes.h>.
95128         * lib/xstrtol.h: Likewise.
95129         * lib/xstrtoimax.c: Likewise.
95130         * lib/xstrtoumax.c: Likewise.
95131         * lib/human.h: Likewise.
95132
95133         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
95134         on systems that have <inttypes.h> but not <stdint.h>.
95135
95136 2003-01-07  Bruno Haible  <bruno@clisp.org>
95137
95138         * MODULES.html.sh: Add copyright notice.
95139         (missed_files): Omit CVS directory entries.
95140         (func_module): Make it work with sed-3.02.
95141         * MODULES.txt: Remove file.
95142
95143 2003-01-06  Jim Meyering  <jim@meyering.net>
95144
95145         * lib/version-etc.c: Update year in translatable copyright string.
95146
95147 2003-01-03  Karl Berry  <karl@gnu.org>
95148
95149         * config/config.{guess,sub}: update from prep.
95150
95151 2003-01-02  Karl Berry  <karl@gnu.org>
95152
95153         * doc/COPYING.DOC: belatedly updated to 1.2.
95154
95155 2003-01-01  Karl Berry  <karl@gnu.org>
95156
95157         * gnulib-tool (func_verify_module): report module name $module in
95158         error message, not $1.
95159         * gnulib-tool (create-testdir): don't complain if destdir couldn't
95160         be created, only if it doesn't exist.
95161         * gnulib-tool (last_checkin_date): don't expand the $Date here.
95162
95163 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95164
95165         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
95166
95167 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95168
95169         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
95170         memcmp if strcoll doesn't work.
95171
95172 2002-12-31  Bruno Haible  <bruno@clisp.org>
95173
95174         * lib/utime.c (utime_null): No need to call ftruncate if the file was
95175         nonempty.
95176
95177 2002-12-31  Bruno Haible  <bruno@clisp.org>
95178
95179         * lib/memcoll.c (STRCOLL): New macro.
95180         (memcoll): Use it.
95181
95182 2002-12-31  Bruno Haible  <bruno@clisp.org>
95183
95184         * lib/localcharset.h: New file.
95185         * lib/localcharset.c: Include it.
95186         * lib/unicodeio.c: Likewise.
95187
95188 2002-12-31  Bruno Haible  <bruno@clisp.org>
95189
95190         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
95191         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
95192
95193 2002-12-31  Bruno Haible  <bruno@clisp.org>
95194
95195         * lib/getline.h: Include <stddef.h>, for size_t.
95196
95197         * lib/unicodeio.h: Include <stddef.h>, for size_t.
95198         * lib/unicodeio.c: Don't include <stddef.h>.
95199
95200 2002-12-31  Bruno Haible  <bruno@clisp.org>
95201
95202         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
95203         HAVE_TM_ZONE.
95204
95205 2002-12-24  Karl Berry  <karl@gnu.org>
95206
95207         * config/config.guess: update from prep.
95208
95209 2002-12-24  Bruno Haible  <bruno@clisp.org>
95210
95211         General infrasructure.
95212         * m4/README: Rewritten.
95213         * m4/onceonly.m4: New file.
95214         * m4/onceonly_2_57.m4: New file.
95215
95216         Module atexit.
95217         * m4/atexit.m4: New file.
95218
95219         Module strtod.
95220         * m4/strtod.m4: New file.
95221
95222         Module strtol.
95223         * m4/strtol.m4: New file.
95224
95225         Module strtoul.
95226         * m4/strtoul.m4: New file.
95227
95228         Module memchr.
95229         * m4/memchr.m4: New file.
95230
95231         Module memcmp.
95232         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
95233         (jm_FUNC_MEMCMP): Invoke it.
95234
95235         Module memcpy.
95236         * m4/memcpy.m4: New file.
95237
95238         Module memmove.
95239         * m4/memmove.m4: New file.
95240
95241         Module memset.
95242         * m4/memset.m4: New file.
95243
95244         Module strcspn.
95245         * m4/strcspn.m4: New file.
95246
95247         Module strpbrk.
95248         * m4/strpbrk.m4: New file.
95249
95250         Module strstr.
95251         * m4/strstr.m4: New file.
95252
95253         Module strerror.
95254         * m4/strerror.m4: New file.
95255
95256         Module mktime.
95257         * m4/mktime.m4: Renamed from jm-mktime.m4.
95258         (gl_PREREQ_MKTIME): New macro.
95259         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
95260
95261         Module malloc.
95262         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
95263         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
95264         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
95265
95266         Module realloc.
95267         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
95268         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
95269         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
95270
95271         Module strftime.
95272         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
95273         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
95274         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
95275         gl_TM_GMTOFF.
95276         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
95277
95278         Module xalloc.
95279         * m4/xalloc.m4: New file.
95280
95281         Module alloca.
95282         * m4/alloca.m4: New file.
95283
95284         Module putenv.
95285         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
95286         (jm_FUNC_PUTENV): Invoke it.
95287
95288         Module setenv.
95289         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
95290         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
95291         when invoked twice.
95292         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
95293         gt_FUNC_SETENV.
95294
95295         Module memrchr.
95296         * m4/memrchr.m4: New file.
95297
95298         Module stpcpy.
95299         * m4/stpcpy.m4: New file.
95300
95301         Module strcase.
95302         * m4/strcase.m4: New file.
95303
95304         Module strdup.
95305         * m4/strdup.m4: New file.
95306
95307         Module strnlen.
95308         * m4/strnlen.m4: New file.
95309
95310         Module strndup.
95311         * m4/strndup.m4: New file.
95312
95313         Module xstrtod.
95314         * m4/xstrtod.m4: New file.
95315
95316         Module xstrtol.
95317         * m4/xstrtol.m4: New file.
95318
95319         Module getdate.
95320         * m4/getdate.m4: New file.
95321
95322         Module unlocked-io.
95323         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95324         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95325         * m4/jm-glibc-io.m4n: Remove file.
95326
95327         Module long-options.
95328         * m4/long-options.m4: New file.
95329
95330         Module md5.
95331         * m4/md5.m4: New file.
95332
95333         Module sha.
95334         * m4/sha.m4: New file.
95335
95336         Module getstr.
95337         * m4/getstr.m4: New file.
95338
95339         Module getline.
95340         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95341         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95342         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95343         simply getline. Infoke gl_PREREQ_GETLINE.
95344
95345         Module obstack.
95346         * m4/obstack.m4: New file.
95347
95348         Module hash.
95349         * m4/hash.m4: New file.
95350
95351         Module readtokens.
95352         * m4/readtokens.m4: New file.
95353
95354         Module strverscmp.
95355         * m4/strverscmp.m4: New file.
95356
95357         Module stdbool.
95358         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95359         OSF/1.
95360
95361         Module strtoll.
95362         * m4/strtoll.m4: New file.
95363
95364         Module strtoull.
95365         * m4/strtoull.m4: New file.
95366
95367         Module strtoimax.
95368         * m4/strtoimax.m4: New file.
95369
95370         Module strtoumax.
95371         * m4/strtoumax.m4: New file.
95372
95373         Module xstrtoimax.
95374         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95375         jm_AC_PREREQ_XSTRTOIMAX.
95376         Moved the strtol prerequisites to strtol.m4.
95377         Moved the strtoll prerequisites to strtoll.m4.
95378         Moved the strtoimax prerequisites to strtoimax.m4.
95379
95380         Module xstrtoumax.
95381         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95382         jm_AC_PREREQ_XSTRTOUMAX.
95383         Moved the strtoul prerequisites to strtoul.m4.
95384         Moved the strtoull prerequisites to strtoull.m4.
95385         Moved the strtoumax prerequisites to strtoumax.m4.
95386
95387         Module chown.
95388         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
95389         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
95390
95391         Module dup2.
95392         * m4/dup2.m4: New file.
95393
95394         Module ftruncate.
95395         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95396         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95397
95398         Module getgroups.
95399         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95400         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95401
95402         Module gettimeofday.
95403         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95404         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95405         gl_PREREQ_GETTIMEOFDAY.
95406
95407         Module mkdir.
95408         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95409         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95410
95411         Module mkstemp.
95412         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95413         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95414         jm_AC_TYPE_UINTMAX_T.
95415         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95416
95417         Module stat.
95418         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95419         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95420
95421         Module lstat.
95422         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95423         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95424
95425         Module timespec.
95426         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95427         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95428         * m4/st_mtim.m4: Indentation.
95429
95430         Module nanosleep.
95431         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95432         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95433         gl_PREREQ_NANOSLEEP.
95434
95435         Module regex.
95436         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95437         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95438         (gl_REGEX): New macro.
95439
95440         Module rename.
95441         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95442         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95443
95444         Module rmdir.
95445         * m4/rmdir.m4: New file.
95446
95447         Module utime.
95448         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95449         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95450         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95451
95452         Module dirname.
95453         * m4/dirname.m4: New file.
95454
95455         Module getopt.
95456         * m4/getopt.m4: New file.
95457
95458         Module unistd-safer.
95459         * m4/unistd-safer.m4: New file.
95460
95461         Module fnmatch.
95462         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95463         declaration.
95464         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95465         (gl_FUNC_FNMATCH_POSIX): New macro.
95466         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95467         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95468         simply fnmatch.
95469
95470         Module exclude.
95471         * m4/exclude.m4: New file.
95472
95473         Module human.
95474         * m4/human.m4: New file.
95475
95476         Module acl.
95477         * m4/acl.m4: Nop.
95478
95479         Module backupfile.
95480         * m4/backupfile.m4: New file.
95481         * m4/d-ino.m4: Indentation.
95482
95483         Module fsusage.
95484         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
95485         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
95486         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
95487
95488         Module dirfd.
95489         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
95490         requirements.
95491
95492         Module euidaccess.
95493         * m4/euidaccess.m4: New file.
95494
95495         Module file-type.
95496         * m4/file-type.m4: New file.
95497
95498         Module fileblocks.
95499         * m4/fileblocks.m4: New file.
95500
95501         Module filemode.
95502         * m4/filemode.m4: New file.
95503
95504         Module isdir.
95505         * m4/isdir.m4: New file.
95506
95507         Module lchown.
95508         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
95509         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
95510
95511         Module makepath.
95512         * m4/makepath.m4: New file.
95513
95514         Module modechange.
95515         * m4/modechange.m4: New file.
95516
95517         Module mountlist.
95518         * m4/mountlist.m4: New file.
95519         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
95520         Indentation.
95521
95522         Module path-concat.
95523         * m4/path-concat.m4: New file.
95524
95525         Module pathmax.
95526         * m4/pathmax.m4: New file.
95527
95528         Module same.
95529         * m4/same.m4: New file.
95530
95531         Module save-cwd.
95532         * m4/save-cwd.m4: New file.
95533
95534         Module savedir.
95535         * m4/savedir.m4: New file.
95536
95537         Module xgetcwd.
95538         * m4/xgetcwd.m4: New file.
95539         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
95540
95541         Module xreadlink.
95542         * m4/xreadlink.m4: New file.
95543
95544         Module safe-read.
95545         * m4/safe-read.m4: New file.
95546
95547         Module safe-write.
95548         * m4/safe-write.m4: New file.
95549
95550         Module closeout.
95551         * m4/closeout.m4: New file.
95552
95553         Module stdio-safer.
95554         * m4/stdio-safer.m4: New file.
95555
95556         Module getpass.
95557         * m4/getpass.m4: New file.
95558
95559         Module getugroups.
95560         * m4/getugroups.m4: New file.
95561
95562         Module group-member.
95563         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
95564         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
95565
95566         Module idcache.
95567         * m4/idcache.m4: New file.
95568
95569         Module userspec.
95570         * m4/userspec.m4: New file.
95571
95572         Module gettime.
95573         * m4/clock_time.m4: New file.
95574         * m4/gettime.m4: New file.
95575
95576         Module settime.
95577         * m4/settime.m4: New file.
95578
95579         Module posixtm.
95580         * m4/posixtm.m4: New file.
95581
95582         Module gethostname.
95583         * m4/gethostname.m4: New file.
95584
95585         Module canon-host.
95586         * m4/canon-host.m4: New file.
95587
95588         Module gettext.
95589         * m4/codeset.m4: New file, from gettext-0.11.5.
95590         * m4/gettext.m4: New file, from gettext-0.11.5.
95591         * m4/glibc21.m4: New file, from gettext-0.11.5.
95592         * m4/iconv.m4: New file, from gettext-0.11.5.
95593         * m4/intdiv0.m4: New file, from gettext-0.11.5.
95594         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
95595         * m4/inttypes.m4: New file, from gettext-0.11.5.
95596         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
95597         * m4/isc-posix.m4: New file, from gettext-0.11.5.
95598         * m4/lcmessage.m4: New file, from gettext-0.11.5.
95599         * m4/lib-ld.m4: New file, from gettext-0.11.5.
95600         * m4/lib-link.m4: New file, from gettext-0.11.5.
95601         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
95602         * m4/progtest.m4: New file, from gettext-0.11.5.
95603         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
95604         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
95605         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
95606
95607         Module localcharset.
95608         * m4/localcharset.m4: New file.
95609
95610         Module hard-locale.
95611         * m4/hard-locale.m4: New file.
95612
95613         Module mbswidth.
95614         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
95615         onceonly macros.
95616         * m4/mbrtowc.m4: Add comment.
95617
95618         Module memcasecmp.
95619         * m4/memcasecmp.m4: New file.
95620
95621         Module memcoll.
95622         * m4/memcoll.m4: New file.
95623
95624         Module unicodeio.
95625         * m4/unicodeio.m4: New file.
95626
95627         Module rpmatch.
95628         * m4/rpmatch.m4: New file.
95629
95630         Module yesno.
95631         * m4/yesno.m4: New file.
95632
95633         Module exitfail.
95634         * m4/exitfail.m4: New file.
95635
95636         Module c-stack.
95637         * m4/c-stack.m4 (gl_C_STACK): New macro.
95638         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
95639
95640         Module error.
95641         * m4/error.m4 (gl_ERROR): New macro.
95642         (jm_PREREQ_ERROR): Use onceonly macros.
95643
95644         Module fatal.
95645         * m4/fatal.m4: New file.
95646
95647         Module getloadavg.
95648         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
95649         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
95650
95651         Module getpagesize.
95652         * m4/getpagesize.m4: New file.
95653
95654         Module getusershell.
95655         * m4/getusershell.m4: New file.
95656
95657         Module physmem.
95658         * m4/physmem.m4: New file.
95659
95660         Module posixver.
95661         * m4/posixver.m4: New file.
95662
95663         Module quotearg.
95664         * m4/quotearg.m4: New file.
95665
95666         Module quote.
95667         * m4/quote.m4: New file.
95668
95669         Module readutmp.
95670         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
95671
95672         Module sig2str.
95673         * m4/sig2str.m4: New file.
95674
95675         Other.
95676         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
95677         ulonglong.m4.
95678         * m4/intmax_t.m4: New file.
95679         * m4/d-type.m4: Indentation.
95680         * m4/jm-macros.m4: Update.
95681         * m4/prereq.m4 (jm_PREREQ): Update.
95682         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
95683         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
95684         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
95685         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
95686         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
95687         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
95688         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
95689         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
95690         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
95691         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
95692         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
95693         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
95694         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
95695         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
95696         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
95697         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
95698         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
95699         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
95700         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
95701
95702 2002-12-24  Bruno Haible  <bruno@clisp.org>
95703
95704         * MODULES.txt: Update according to m4/ changes.
95705
95706         Module gettext.
95707         * config.rpath: New file, from gettext-0.11.5.
95708
95709         * modules/*: New module descriptions.
95710         * gnulib-tool: New file.
95711         * MODULES.html.sh: New file.
95712
95713 2002-12-21  Karl Berry  <karl@gnu.org>
95714
95715         * doc/fdl.texi: update to version 1.2.
95716
95717 2002-12-19  Karl Berry  <karl@gnu.org>
95718
95719         * config/config.guess: update from prep.
95720
95721 2002-12-18  Bruno Haible  <bruno@clisp.org>
95722
95723         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
95724         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
95725
95726 2002-12-17  Bruno Haible  <bruno@clisp.org>
95727
95728         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
95729         stdlib.h, string.h.
95730
95731 2002-12-17  Bruno Haible  <bruno@clisp.org>
95732
95733         * lib/canon-host.c (strdup): Remove unused declaration.
95734
95735         * lib/fsusage.c: Include full_read.h.
95736         (get_fs_usage): Use full_read instead of safe_read.
95737
95738         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
95739
95740 2002-12-12  Karl Berry  <karl@gnu.org>
95741
95742         * config/config.guess: update from prep.
95743
95744 2002-12-11  Bruno Haible  <bruno@clisp.org>
95745
95746         * m4/setenv.m4: New file, from gettext-0.11.5.
95747
95748 2002-12-11  Bruno Haible  <bruno@clisp.org>
95749
95750         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
95751         not unsetenv().
95752         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
95753         modifications:
95754
95755         2002-12-11  Bruno Haible  <bruno@clisp.org>
95756
95757                 * setenv.c (alloca): Fall back to malloc.
95758                 (freea): New macro.
95759                 (setenv): Use freea() to free memory allocated with alloca().
95760
95761         2002-11-13  Bruno Haible  <bruno@clisp.org>
95762
95763                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
95764                 function declarations.
95765                 * unsetenv.c (unsetenv): Likewise.
95766
95767         2002-03-04  Bruno Haible  <bruno@clisp.org>
95768
95769                 Portability to AIX 4.3.3.
95770                 * unsetenv.c: New file, extracted from setenv.c.
95771                 * setenv.c: Move the unsetenv() function to unsetenv.c.
95772
95773         2001-12-20  Bruno Haible  <bruno@clisp.org>
95774
95775                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
95776                 use malloc instead. For SunOS 4.
95777
95778         2001-12-11  Bruno Haible  <bruno@clisp.org>
95779
95780                 * setenv.c: Declare alloca.
95781                 (compar_fn_t): New typedef.
95782                 (KNOWN_VALUE, STORE_VALUE): Use it.
95783
95784         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
95785         setenv.h.
95786
95787 2002-12-10  Paul Eggert  <eggert@twinsun.com>
95788
95789         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
95790         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
95791         Choose values that are less likely to collide with system fnmatch
95792         options.
95793         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
95794         defined (e.g., a pure POSIX system).
95795         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
95796         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
95797
95798 2002-12-06  Paul Eggert  <eggert@twinsun.com>
95799
95800         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
95801         a pain in practice to deal with generated m4 files.  This change
95802         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
95803
95804         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
95805         and jm-glibc-io.m4, as they are no longer a special case.
95806         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
95807         kludge and the auto-generation stuff.  Check only whether the
95808         functions are declared, not whether they exist, since older hosts
95809         that don't declare the functions can't use the optimization anyway.
95810
95811 2002-12-06  Jim Meyering  <jim@meyering.net>
95812
95813         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
95814
95815         Merge in changes from libc's misc/error.c, in preparation
95816         for the merge of gnulib's changes back into libc.
95817
95818         * lib/error.c (_): Define only if not already defined.
95819         Move definition to follow all #include directives.
95820         Include unlocked-io.h only if !_LIBC.
95821         [_LIBC]: Include <libio/libioP.h>.
95822         [USE_IN_LIBIO]: Include <libio/iolibio.h>
95823         (fflush): Tweak definition to use INTUSE.
95824         (putc): Define.
95825
95826 2002-12-05  Paul Eggert  <eggert@twinsun.com>
95827
95828         * lib/alloca.c [defined emacs]: Include "lisp.h".
95829         (xalloc_die) [defined emacs]: New macro.
95830         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
95831         [! defined emacs]: Include <xalloc.h>.
95832         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
95833         (pointer): Typedef to POINTER_TYPE *.
95834         (malloc): Remove decl; we now always use xmalloc.
95835         (alloca): Use old-style definition, since Emacs needs this.
95836         Check for arithmetic overflow when computing combined size.
95837
95838 2002-12-04  Paul Eggert  <eggert@twinsun.com>
95839
95840         Do not generate unlocked-io.h automatically, since it's easier to
95841         maintain it by hand.
95842
95843         * lib/unlocked-io.h: New file, from GNU diffutils,
95844         but with proper copyright notice and attribution.
95845         * lib/gen-uio: Remove.
95846         * lib/Makefile.am: Add copyright notice.
95847         (libfetish_a_SOURCES): Add unlocked-io.h.
95848         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
95849         (DISTCLEANFILES, io_functions): Remove macros.
95850         (EXTRA_DIST): Remove gen_uio.
95851         (unlocked-io.h): Remove rule.
95852
95853 2002-12-04  Jim Meyering  <jim@meyering.net>
95854
95855         Reflect the fact that stat.c and lstat.c are no longer generated.
95856         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
95857         (DISTCLEANFILES): Likewise.
95858         (EXTRA_DIST): Likewise.
95859         (all_local): Don't depend on stat.c or lstat.c.
95860         (stat.c, lstat.c): Remove rules.
95861         (EXTRA_DIST): Remove xstat.in.
95862
95863         * lib/xstat.in: Remove file.  Contents moved into stat.c.
95864         * lib/stat.c: New file.  Contents mostly from xstat.in.
95865         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
95866         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
95867
95868         * lib/safe-read.c: Rework so that it may serve to define safe_write,
95869         too.
95870         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
95871
95872 2002-12-03  Jim Meyering  <jim@meyering.net>
95873
95874         * lib/safe-read.c, safe-write.c: Change variable names and comments,
95875         but not semantics, to minimize the differences between these two files.
95876         (safe_read): Change comment to mention SAFE_READ_ERROR.
95877
95878         * lib/safe-read.c (IS_EINTR): Define.
95879         (safe_read): Use IS_EINTR in place of in-function cpp directives.
95880
95881 2002-12-02  Jim Meyering  <jim@meyering.net>
95882
95883         * lib/safe-read.c (EINTR): Define.
95884         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95885         (INT_MAX): Provide fallback.
95886         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
95887
95888         * lib/safe-read.h (SAFE_READ_ERROR): Define.
95889
95890 2002-12-02  Bruno Haible  <bruno@clisp.org>
95891
95892         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
95893         Define, taken from safe-read.c.
95894         (INT_MAX): Provide fallback.
95895         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
95896         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
95897
95898         * lib/safe-read.c (EINTR): Remove definition.
95899         (safe_read): Don't use EINTR if it is absent.
95900
95901 2002-12-01  Jim Meyering  <jim@meyering.net>
95902
95903         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
95904         zero.
95905         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
95906
95907 2002-11-27  Paul Eggert  <eggert@twinsun.com>
95908
95909         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
95910         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
95911         with `if (! (value < limit)) abort ();', for readability.
95912
95913 2002-11-26  Karl Berry  <karl@gnu.org>
95914
95915         * lib/strdup.c: copy from libc again, with jim's ok.
95916         * lib/.cppi-disable: re-add strdup.c
95917
95918 2002-11-25  Karl Berry  <karl@gnu.org>
95919
95920         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
95921         instead of "strtol.c".
95922
95923 2002-11-25  Karl Berry  <karl@gnu.org>
95924
95925         * config/install-sh: update from automake for variable quoting, $0 in
95926         error msgs, etc.
95927
95928         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
95929         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
95930         entry.
95931
95932 2002-11-25  Jim Meyering  <jim@meyering.net>
95933
95934         * lib/mktime.c: Sync from libc, now that it has the latest fix.
95935
95936 2002-11-24  Karl Berry  <karl@gnu.org>
95937
95938         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
95939         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
95940
95941 2002-11-24  Jim Meyering  <jim@meyering.net>
95942
95943         Update from coreutils:
95944
95945         * lib/mktime.c: Merge in changes from libc.
95946
95947         Avoid a link-time failure on some Linux systems.
95948         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
95949         (otherwise).
95950         (__mon_yday): Declare with the STATIC attribute.
95951         (__mktime_internal): Likewise.
95952         Based on a report from Greg Schafer.
95953
95954 2002-11-23  Jim Meyering  <jim@meyering.net>
95955
95956         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
95957         Use `unsigned', not `int', as type of index.
95958
95959         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
95960
95961         * lib/fsusage.c: Remove unneeded parentheses around operands of
95962         `defined'.
95963
95964 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95965
95966         * lib/quotearg.h: Allow multiple inclusion by surrounding with
95967         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
95968         so that we can be included first.
95969         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
95970         * lib/quotearg.c: Include quotearg.h immediately after config.h.
95971         No need to include stddef.h or sys/types.h any more.
95972         Surround local include files with "", not "<>".
95973         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
95974         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
95975         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
95976         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
95977         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
95978         (ISPRINT): Remove; no longer needed now that we assume C89.
95979
95980         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
95981         Preserve errno.
95982
95983         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
95984         quotearg_char): Use SIZE_MAX rather than
95985         (size_t) -1 when we are talking about "infinity".
95986
95987         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
95988
95989 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95990
95991         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
95992         hint that one should use `if (! x) abort ();' rather than `assert
95993         (x);', and anyway it's one less thing to worry about configuring.
95994         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
95995         hash_rehash, hash_insert): Use abort rather than assert.
95996
95997 2002-11-22  Bruno Haible  <bruno@clisp.org>
95998
95999         * lib/safe-read.h: Assume C89. Add comments.
96000         (safe_read): Change return type to size_t.
96001         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
96002         byte counts > SSIZE_MAX correctly.
96003         * lib/safe-write.h: New file.
96004         * lib/safe-write.c: New file.
96005         * lib/full-read.h: New file.
96006         * lib/full-read.c: New file.
96007         * lib/full-write.h: Assume C89. Add comments.
96008         * lib/full-write.c: Include safe-write.h.
96009         (full_write): Rewritten to use safe_write.
96010         Suggested by Jim Meyering and Paul Eggert.
96011
96012 2002-11-21  Jim Meyering  <jim@meyering.net>
96013
96014         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
96015
96016         Merge in changes from the coreutils.
96017
96018         2002-09-25  Paul Eggert  <eggert@twinsun.com>
96019         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
96020         <stdint.h>.
96021         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
96022         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
96023         int.  Work more efficiently if X is the same width as uintmax_t.
96024         Do not compare X to -1, to avoid bogus compiler warning.
96025         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
96026         Don't assume that f_frsize and f_bsize are the same type.
96027
96028         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
96029         warning on FreeBSD.
96030
96031         * lib/makepath.c (make_path): Restore umask *before* creating the final
96032         component.
96033         (make_path): Minor reformatting.
96034
96035         * lib/xmalloc.c: Adjust to work with new autoconf macros,
96036         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
96037         HAVE_MALLOC/HAVE_REALLOC.
96038
96039         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
96040         dummy ones.  At least on GNU/Linux systems, `auto' means something
96041         else.
96042         From Michael Stone.
96043
96044 2002-11-21  Bruno Haible  <bruno@clisp.org>
96045
96046         Remove case insensitive option matching.
96047         * lib/argmatch.h (argcasematch): Remove declaration.
96048         (ARGCASEMATCH): Remove macro.
96049         (__xargmatch_internal): Remove case_sensitive argument.
96050         (XARGMATCH): Update.
96051         (XARGCASEMATCH): Remove macro.
96052         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
96053         case_sensitive argument.
96054         (argcasematch): Remove function.
96055         (__xargmatch_internal): Remove case_sensitive argument.
96056         (main): Use XARGMATCH instead of XARGCASEMATCH.
96057
96058         * lib/xmalloc.c: Change compile-time error message. Add comment about
96059         required autoconf version.
96060
96061 2002-11-20  Paul Eggert  <eggert@twinsun.com>
96062
96063         Merge argmatch cleanups from Bison.  Assume C89.
96064
96065         * lib/argmatch.c: Include config.h here, not in argmatch.h.
96066         Include stdlib.h, for EXIT_FAILURE.
96067         Always include <string.h>, since we assume C89.
96068         (EXIT_FAILURE): Remove pre-C89 bug workaround.
96069         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
96070         Include <stddef.h> instead, since it's all we need for size_t.
96071         (PARAMS): Remove.  All uses removed.
96072         (ARRAY_CARDINALITY): Do not bother to #undef.
96073         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
96074         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96075         Remove unnecessary parentheses.
96076         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96077         Insert necessary parentheses.
96078         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
96079         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
96080
96081 2002-11-19  Bruno Haible  <bruno@clisp.org>
96082
96083         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
96084         * lib/mbswidth.h: Include <stddef.h>, for size_t.
96085
96086         * lib/mbswidth.h (PARAMS): Remove macro.
96087         (mbswidth, mbsnwidth): Use ANSI C function declarations.
96088         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
96089
96090         * lib/gcd.h (PARAMS): Remove macro.
96091         (gcd): Use ANSI C function declarations.
96092         * lib/gcd.c (gcd): Likewise.
96093
96094 2002-11-15  Bruno Haible  <bruno@clisp.org>
96095
96096         * lib/strcspn.c: Include <stddef.h>.
96097         (strcspn): Use ANSI C function declaration. Change return type to
96098         size_t. Use NULL.
96099         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
96100         (strpbrk): Use NULL.
96101         * lib/strpbrk.h (PARAMS): Remove macro.
96102         (strpbrk): Use ANSI C function declaration.
96103         * lib/strstr.c: Don't include <sys/types.h>.
96104         * lib/strstr.h (PARAMS): Remove macro.
96105         (strstr): Use ANSI C function declarations.
96106
96107 2002-11-14  Karl Berry  <karl@gnu.org>
96108
96109         * config/mkinstalldirs: `do' on separate line, instead of
96110         `for var; do'.
96111
96112 2002-11-06  Bruno Haible  <bruno@clisp.org>
96113
96114         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
96115         * lib/gcd.c (gcd): Likewise.
96116
96117 2002-11-05  Bruno Haible  <bruno@clisp.org>
96118
96119         * lib/gcd.h: New file, from gettext-0.11.5.
96120         * lib/gcd.c: New file, from gettext-0.11.5.
96121
96122 2002-11-05  Bruno Haible  <bruno@clisp.org>
96123
96124         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96125         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96126         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96127         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96128
96129         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
96130         <libintl.h>.
96131         * lib/makepath.c: Include gettext.h instead of <locale.h> and
96132         <libintl.h>.
96133
96134         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
96135         * lib/human.c: Include gettext.h instead of <libintl.h>.
96136         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
96137         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
96138         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
96139         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
96140         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
96141         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
96142         (textdomain): Remove definition.
96143         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
96144
96145         * lib/long-options.c: Remove include of <libintl.h> and definition of
96146         _.
96147         * lib/same.c: Remove include of <libintl.h> and definition of _.
96148
96149 2002-11-04  Owen Taylor  <otaylor@redhat.com>
96150
96151         * lib/config.charset: A few additions for Solaris.
96152
96153 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96154
96155         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
96156         * lib/localcharset.c (locale_charset): Declare as extern "C".
96157
96158 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96159
96160         * lib/config.charset: msdos in uk_UA uses CP1125.
96161
96162 2002-11-04  Bruno Haible  <bruno@clisp.org>
96163
96164         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
96165         * lib/strcase.h: New file, from GNU gettext-0.11.5.
96166         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
96167         * lib/strstr.h: New file, from GNU gettext-0.11.5.
96168         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
96169
96170 2002-11-04  Bruno Haible  <bruno@clisp.org>
96171
96172         * lib/localcharset.c (locale_charset): Don't return an empty string.
96173
96174 2002-11-04  Bruno Haible  <bruno@clisp.org>
96175
96176         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
96177         aliases.
96178
96179 2002-11-04  Bruno Haible  <bruno@clisp.org>
96180
96181         * lib/config.charset: Update for newest glibc. Add canonical names
96182         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
96183
96184 2002-11-04  Bruno Haible  <bruno@clisp.org>
96185
96186         * lib/config.charset: Add support for NetBSD.
96187
96188 2002-11-04  Bruno Haible  <bruno@clisp.org>
96189
96190         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
96191
96192 2002-11-01  Bruno Haible  <bruno@clisp.org>
96193
96194         * configure.in: Add AC_CONFIG_AUX_DIR call.
96195         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
96196         test/Makefile.
96197         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
96198
96199 2002-09-28  Karl Berry  <karl@gnu.org>
96200
96201         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
96202         installed automake until the next release, since changes have been
96203         made.
96204
96205 2002-09-25  Karl Berry  <karl@gnu.org>
96206
96207         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
96208         * lib/getopt*: copy from libc/posix.
96209         * lib/gettext.h: copy from gettext.
96210         * lib/.cppi-disable: add strdup.c, gettext.h.
96211
96212 2002-09-25  Karl Berry  <karl@gnu.org>
96213
96214         * config/srclist.txt: enable gettext.h check.
96215         * config/config.{guess,sub}: update from prep.
96216         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
96217                 from automake 1.6.3.
96218         See srclist*.
96219
96220 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
96221
96222         * regex.c (PATFETCH): Remove the translating fetch.
96223         (PATFETCH_RAW): Rename to PATFETCH.
96224         (set_image_of_range): New fun.
96225         (SET_RANGE_TABLE_WORK_AREA): Use it.
96226         (regex_compile): Don't translate the pattern chars so eagerly.
96227         Only do it when inserting an `exactn' bytecode or when handling
96228         a char-range.
96229         (mutually_exclusive_p): Avoid empty statement.
96230
96231 2002-07-06  Jim Meyering  <meyering@lucent.com>
96232
96233         * m4/README: Don't mention Makefile.am.in.
96234         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
96235
96236 2002-07-01  Jim Meyering  <meyering@lucent.com>
96237
96238         * lib/c-stack.c: Include sys/time.h.
96239         From Volker Borchert.
96240
96241 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96242
96243         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
96244
96245 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96246
96247         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
96248         New macro.  Use it uniformly instead of
96249         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
96250         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
96251         reported by Vin Shelton.
96252
96253 2002-06-22  Paul Eggert  <eggert@twinsun.com>
96254
96255         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
96256         Do not assume SA_SIGINFO behavior.
96257         Bug reported by Jim Meyering on NetBSD 1.5.2.
96258
96259 2002-06-22  Jim Meyering  <meyering@lucent.com>
96260
96261         * m4/c-stack.m4: New file, from diffutils-2.8.2.
96262         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
96263
96264         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
96265         now that configure.ac uses AC_GNU_SOURCE.
96266         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
96267         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
96268
96269         Update to latest tools.  Suggestions from Paul Eggert.
96270         * m4/stdbool.m4: New file, from diffutils-2.8.2.
96271         * m4/gnu-source.m4: Update from diffutils-2.8.2.
96272         * m4/fnmatch.m4: Likewise.
96273         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
96274         to AC_HEADER_STDBOOL
96275
96276 2002-06-22  Jim Meyering  <meyering@lucent.com>
96277
96278         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
96279         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
96280
96281 2002-06-22  Jim Meyering  <meyering@lucent.com>
96282
96283         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
96284
96285         * lib/exitfail.c, exitfail.h: Likewise.
96286         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
96287
96288         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
96289         of fnmatch.h.
96290         (EXTRA_DIST): Add fnmatch_loop.c.
96291         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
96292
96293         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
96294         * lib/fnmatch.c: Update from diffutils-2.8.2.
96295         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
96296         * lib/fnmatch.h: Remove file.
96297
96298 2002-06-21  Jim Meyering  <meyering@lucent.com>
96299
96300         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
96301         * m4/mbrtowc.m4: Likewise.
96302
96303         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
96304         * m4/mbswidth.m4: Reflect name change:
96305         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
96306         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96307
96308         * m4/lib-link.m4: Update from gettext-0.11.2.
96309         * m4/gettext.m4: Likewise.
96310
96311         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
96312         From Alfred M. Szmidt.
96313
96314 2002-06-18  Paul Eggert  <eggert@twinsun.com>
96315
96316         * lib/file-type.h: Report an error if neither S_ISREG nor
96317         S_IFREG is defined, instead of using a test specific to glibc
96318         2.2.  This should be safe, since POSIX requires S_ISREG and
96319         Unix Version 7 had S_IFREG.  We don't need to check for
96320         <sys/types.h> since we don't use any symbols that it defines.
96321
96322 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
96323
96324         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96325         $@-t, so that each temporary file name is unique and valid in the first
96326         8 characters, for operation under DOS.
96327
96328 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96329
96330         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96331
96332 2002-06-15  Jim Meyering  <meyering@lucent.com>
96333
96334         Work even with DJGPP 2.03, which lacks support for symlinks.
96335         From Richard Dawe.
96336         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96337         is defined.
96338         * lib/lchown.c (S_ISLNK): Likewise.
96339
96340 2002-06-15  Jim Meyering  <meyering@lucent.com>
96341
96342         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96343         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96344         have been included before this file.
96345
96346 2002-06-14  Jim Meyering  <meyering@lucent.com>
96347
96348         * lib/file-type.h: Use the version from diffutils-2.8.2.
96349         * lib/file-type.c: Likewise.
96350
96351 2002-06-07  Jim Meyering  <meyering@lucent.com>
96352
96353         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96354         They're needed at least for NetBSD 1.5.2.
96355         ($statxfs_includes): Include those same headers.
96356         ($statxfs_includes): Include sys/vfs.h if available.
96357         ($statxfs_includes): Likewise for sys/statvfs.h.
96358         Check for the following members in both structs statfs and statvfs:
96359         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96360
96361 2002-06-01  Jim Meyering  <meyering@lucent.com>
96362
96363         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96364         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96365
96366 2002-05-28  Jim Meyering  <meyering@lucent.com>
96367
96368         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96369         Reported by Volker Borchert.
96370
96371 2002-05-27  Jim Meyering  <meyering@lucent.com>
96372
96373         Fix a problem seen only on nonconforming systems whereby ls.c's
96374         use of localtime, and then of gettimeofday would cause trouble:
96375         the localtime call used to initialize rpl_gettimeofday's save
96376         mechanism would clobber ls's current local time information so
96377         that in any long listing the first file would always be listed
96378         with date 1970-01-01.  Analysis by Volker Borchert.
96379
96380         * lib/gettimeofday.c (localtime): Undefine.
96381         (rpl_localtime): New function.
96382
96383 2002-05-27  Jim Meyering  <meyering@lucent.com>
96384
96385         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96386         localtime.
96387
96388         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
96389         use the replacement function; it wouldn't resolve at link time.
96390         Reported by Volker Borchert.
96391
96392 2002-05-22  Jim Meyering  <meyering@lucent.com>
96393
96394         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96395         file-type.h.
96396         * lib/file-type.h: New file.
96397         * lib/file-type.c (file_type): New file/function.  Extracted from
96398         diffutils.
96399
96400 2002-04-30  Jim Meyering  <meyering@lucent.com>
96401
96402         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96403
96404 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96405
96406         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96407
96408 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96409
96410         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96411         Do not check for alloca.h (no longer used) or stdbool.h (was never
96412         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96413
96414 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96415
96416         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96417
96418 2002-04-29  Jim Meyering  <meyering@lucent.com>
96419
96420         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96421         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96422         Use AC_FUNC_STRNLEN here instead.
96423
96424         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96425         With autoconf-2.53a, it's part of AC_PROG_CC.
96426
96427 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96428
96429         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96430         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96431
96432 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96433
96434         * lib/sig2str.h, lib/sig2str.c: New files.
96435         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96436
96437 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96438
96439         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96440         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96441         of 127, since 64 is the largest conceivable number for ancient
96442         nonstandard hosts.
96443         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96444
96445 2002-04-28  Jim Meyering  <meyering@lucent.com>
96446
96447         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96448
96449 2002-04-24  Jim Meyering  <meyering@lucent.com>
96450
96451         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96452         (jm_PREREQ): Use it.
96453
96454         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96455         mach/mach.h fcntl.h.
96456         Check for this function: setlocale.
96457
96458 2002-04-24  Jim Meyering  <meyering@lucent.com>
96459
96460         * lib/gettext.h: New file, from Gettext.
96461         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96462         (libfetish_a_SOURCES): Add gettext.h.
96463
96464 2002-04-16  Jim Meyering  <meyering@lucent.com>
96465
96466         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96467         ut_pid, ut_id, ut_exit.
96468
96469 2002-04-16  Jim Meyering  <meyering@lucent.com>
96470
96471         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96472         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96473         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96474
96475 2002-04-12  Jim Meyering  <meyering@lucent.com>
96476
96477         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
96478         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
96479         existence of the getmntinfo function.  Needed for Darwin 5.3.
96480
96481         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
96482         This is necessary at least on Darwin 5.3.
96483
96484         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
96485         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
96486         strnlen.o in the library, and that makes some versions of ranlib
96487         object.
96488
96489 2002-04-12  Jim Meyering  <meyering@lucent.com>
96490
96491         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
96492
96493 2002-04-09  Jim Meyering  <meyering@lucent.com>
96494
96495         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
96496         to be more precise.  Rather than saying we're checking whether the
96497         function `works', say what we're testing.
96498         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
96499         Reported by Bruno Haible.
96500
96501 2002-03-10  Jim Meyering  <meyering@lucent.com>
96502
96503         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
96504         Suggestion from Santiago Vila.
96505
96506 2002-03-08  Jim Meyering  <meyering@lucent.com>
96507
96508         * lib/rename.c: Mention that this wrapper is needed also on
96509         mips-dec-ultrix4.4 systems.
96510
96511 2002-03-02  Jim Meyering  <meyering@lucent.com>
96512
96513         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
96514         not HAVE_CLOCK_SETTIME.
96515
96516 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96517
96518         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
96519         Check for clock_settime.
96520
96521 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96522
96523         * lib/nanosleep.h: Rename to....
96524         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
96525
96526         * lib/gettime.c: New file.
96527         * lib/settime.c: New file.
96528         * lib/stime.c: Remove.
96529
96530         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
96531         timespec.h.  Remove nanosleep.h.
96532
96533 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96534
96535         * m4/acl.m4: New file.
96536         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
96537         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
96538
96539 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96540
96541         * lib/acl.c, lib/acl.h: New files.
96542         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
96543
96544 2002-02-24  Jim Meyering  <meyering@lucent.com>
96545
96546         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
96547         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
96548         cause trouble.  Reported by Nelson Beebe.
96549
96550 2002-02-23  Paul Eggert  <eggert@twinsun.com>
96551
96552         * lib/path-concat.c (xpath_concat): Reorder code to pacify
96553         compilers that don't know that xalloc_die never returns.
96554
96555 2002-02-20  Jim Meyering  <meyering@lucent.com>
96556
96557         * lib/getdate.c: Regenerate using bison-1.33.
96558
96559 2002-02-17  Jim Meyering  <meyering@lucent.com>
96560
96561         * config/config.guess (main): Don't use `head -1'; it's no longer
96562         portable. Use `sed 1q' instead.
96563
96564 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
96565
96566         * m4/codeset.m4: Upgrade to gettext-0.11.
96567         * m4/gettext.m4: Upgrade to gettext-0.11.
96568         * m4/glibc21.m4: Upgrade to gettext-0.11.
96569         * m4/iconv.m4: Upgrade to gettext-0.11.
96570         * m4/isc-posix.m4: Upgrade to gettext-0.11.
96571         * m4/lcmessage.m4: Upgrade to gettext-0.11.
96572         * m4/lib-ld.m4: New file, from gettext-0.11.
96573         * m4/lib-link.m4: New file, from gettext-0.11.
96574         * m4/lib-prefix.m4: New file, from gettext-0.11.
96575         * m4/progtest.m4: Upgrade to gettext-0.11.
96576
96577 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96578
96579         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
96580         (jm_PREREQ): Use it.
96581
96582 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96583
96584         * lib/posixver.c, lib/posixver.h: New files.
96585         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96586
96587 2002-02-02  Paul Eggert  <eggert@twinsun.com>
96588             Bruno Haible  <bruno@clisp.org>
96589
96590         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
96591         (fwrite_success_callback): New declaration.
96592         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
96593         print_unicode_char. Call failure callback instead of error.
96594         (fwrite_success_callback): New function.
96595         (exit_failure_callback): New function.
96596         (fallback_failure_callback): New function.
96597         (print_unicode_char): Call unicode_to_mb.
96598
96599 2002-01-26  Jim Meyering  <meyering@lucent.com>
96600
96601         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
96602         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
96603
96604 2002-01-26  Jim Meyering  <meyering@lucent.com>
96605
96606         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
96607
96608 2002-01-22  Paul Eggert  <eggert@twinsun.com>
96609
96610         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
96611
96612 2002-01-22  Jim Meyering  <meyering@lucent.com>
96613
96614         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
96615         Otherwise, some versions of automake would omit the rule that makes
96616         Makefile from Makefile.in.
96617
96618 2002-01-21  Paul Eggert  <eggert@twinsun.com>
96619
96620         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
96621         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96622         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
96623         (memcoll): Set errno to zero if there is no error.
96624
96625         * lib/quotearg.c (quotearg_buffer_restyled):
96626         Fix bug with quoting buffers containing NUL when backslashing escapes.
96627         This bug was exposed by the other changes in this patch.
96628         (quotearg_n_options): New arg ARGSIZE.
96629         All callers changed.
96630         (quoting_options_from_style): New function.
96631         (quotearg_n_style): Use it.
96632         (quotearg_n_style_mem): New function.
96633
96634         * lib/quotearg.h (quotearg_n_style_mem): New function.
96635
96636 2002-01-19  Jim Meyering  <meyering@lucent.com>
96637
96638         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
96639         Remove useless quotes: DF_PROG="df".
96640         * m4/strnlen.m4: New file.
96641
96642 2002-01-16  Paul Eggert  <eggert@twinsun.com>
96643
96644         * lib/backupfile.c (ISDIGIT): Comment fix.
96645         * lib/getdate.y (ISDIGIT): Likewise.
96646         * lib/posixtm.c (ISDIGIT, year): Likewise.
96647         * lib/strverscmp.c (ISDIGIT): Likewise.
96648         * lib/userspec.c (ISDIGIT): Likewise.
96649
96650 2002-01-16  Jim Meyering  <meyering@lucent.com>
96651
96652         * lib/getdate.y: Add three semicolons, each just before a closing
96653         brace. Bison (as of version 1.31) no longer papers over that mistake.
96654
96655 2002-01-05  Jim Meyering  <meyering@lucent.com>
96656
96657         * lib/version-etc.c (version_etc_copyright): Update copyright year.
96658
96659 2001-12-19  Paul Eggert  <eggert@twinsun.com>
96660
96661         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
96662         not silently exit merely because the output buffer happens to
96663         have nothing pending.
96664
96665 2001-12-18  Paul Eggert  <eggert@twinsun.com>
96666
96667         See the big note in ../ChangeLog.
96668         * lib/human.c (suffixes): Prefer K to k for 1024.
96669         (generate_suffix_backwards): New function.
96670         (human_readable_inexact): Use it.
96671         * lib/xstrtol.c (__xstrtol): If there is no number but there
96672         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
96673         Accept 'K' as well as 'k'.
96674
96675 2001-12-15  Jim Meyering  <meyering@lucent.com>
96676
96677         * lib/regex.h (__restrict_arr): Update from libc.
96678
96679         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
96680         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
96681         (STREQ): Define.
96682
96683 2001-12-14  Jim Meyering  <meyering@lucent.com>
96684
96685         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
96686         Suggestion from Bruno Haible.
96687
96688 2001-12-10  Jim Meyering  <meyering@lucent.com>
96689
96690         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
96691         xrealloc, Instead, include "xalloc.h".
96692         (initbuffer): Don't cast xmalloc return value to char*.
96693         (readline): Reword comment.
96694         Don't cast xrealloc return value to char*
96695         Return NULL, not 0.
96696
96697 2001-12-09  Jim Meyering  <meyering@lucent.com>
96698
96699         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
96700         about `signed and unsigned type in conditional expression'.
96701         * lib/posixtm.c (posix_time_parse): Likewise.
96702
96703         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
96704
96705         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
96706         to avoid a pedantic warning.
96707
96708         * lib/getstr.c: Don't include assert.h.
96709         (getstr): Remove warning-evoking assertions.
96710         Return -1 if offset parameter is out of bounds.
96711         Change the type of a local from int to size_t.
96712
96713         * lib/strftime.c (my_strftime_localtime_r): Include this function
96714         definition in the `#if ! HAVE_TM_GMTOFF' block.
96715
96716         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
96717         Include xalloc.h instead.
96718
96719 2001-12-02  Jim Meyering  <meyering@lucent.com>
96720
96721         * lib/tempname.c: Don't declare getenv, thus reverting the change of
96722         2001-11-18.  It's no longer necessary, now that stdlib.h is always
96723         included.
96724
96725         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
96726         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
96727
96728 2001-11-30  Akim Demaille  <akim@epita.fr>
96729
96730         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
96731         before being defined.
96732
96733 2001-11-27  Paul Eggert  <eggert@twinsun.com>
96734
96735         * lib/quotearg.h (quotearg_n, quotearg_n_style):
96736         First arg is int, not unsigned.
96737         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
96738         (SIZE_MAX, UINT_MAX): New macros.
96739         (quotearg_n_options): Abort if N is negative.
96740         Avoid overflow check on hosts where size_t is 64 bits and int
96741         is 32 bits, as overflow is impossible there.
96742         Fix off-by-one typo that caused unnecessary reallocation.
96743
96744 2001-11-27  Jim Meyering  <meyering@lucent.com>
96745
96746         * lib/tempname.c: Merge with version from libc.
96747         * lib/regex.c: Likewise.
96748
96749         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
96750         systems for which STDC_HEADERS is 0, it was not included, resulting in
96751         a warning about an integer-to-pointer conversion problem with getenv.
96752         Reported by Volker Borchert.
96753
96754 2001-11-26  Jim Meyering  <meyering@lucent.com>
96755
96756         * lib/gtod.h: Remove file.
96757         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
96758         * lib/gettimeofday.c: Don't include gtod.h.
96759         (GTOD_init): Remove function.
96760         (rpl_gettimeofday): Do its job here instead, rather than aborting.
96761         Suggestion from Volker Borchert.
96762
96763 2001-11-23  Jim Meyering  <meyering@lucent.com>
96764
96765         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
96766         it.
96767         * lib/hash.c (struct hash_table): Define it here instead.
96768
96769 2001-11-22  Jim Meyering  <meyering@lucent.com>
96770
96771         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
96772
96773 2001-11-20  Jim Meyering  <meyering@lucent.com>
96774
96775         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
96776         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
96777
96778 2001-11-19  Jim Meyering  <meyering@lucent.com>
96779
96780         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
96781         directory.  Use "conftestXXXXXX" as the template.
96782         Suggestion from Paul Eggert.
96783
96784         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
96785         immediately, so the test doesn't mistakenly hit the max-open-files
96786         limit.
96787
96788 2001-11-18  Paul Eggert  <eggert@twinsun.com>
96789
96790         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
96791         (TEMPORARIES): New macro.
96792         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
96793         removes an artificial limitation (e.g. HP-UX 10.20, where
96794         TMP_MAX is 17576).
96795
96796 2001-11-18  Jim Meyering  <meyering@lucent.com>
96797
96798         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
96799
96800 2001-11-18  Jim Meyering  <meyering@lucent.com>
96801
96802         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
96803         on SunOS 4.
96804
96805         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
96806         files will be created before anything else.
96807
96808 2001-11-17  Paul Eggert  <eggert@twinsun.com>
96809
96810         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
96811         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
96812
96813 2001-11-17  Jim Meyering  <meyering@lucent.com>
96814
96815         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
96816         Prompted by a report from Bob Proulx.
96817
96818         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
96819         Instead, require UTILS_FUNC_MKSTEMP.
96820
96821 2001-11-17  Jim Meyering  <meyering@lucent.com>
96822
96823         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
96824         Now, that's done as part of AC_FUNC_STRTOD.
96825
96826 2001-11-17  Jim Meyering  <meyering@lucent.com>
96827
96828         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
96829         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
96830         rather than group writable.  Patch by Juan F. Codagnone.
96831
96832         * lib/readtokens.c: Remove explicit declarations of xmalloc and
96833         xrealloc, Instead, include "xalloc.h".
96834
96835         * lib/mountlist.c: Include unlocked-io.h after all system headers.
96836         Remove explicit declarations of xmalloc, xrealloc,
96837         and xstrdup.  Instead, include "xalloc.h".
96838
96839         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
96840         unlocked-io.h.
96841         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
96842         Likewise.
96843         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
96844
96845         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
96846         Reported by Padraig Brady.
96847
96848         * lib/mkstemp.c: #undef mkstemp.
96849         Include config.h.
96850         (rpl_mkstemp): Rename from mkstemp.
96851         Protoize.
96852
96853 2001-11-16  Jim Meyering  <meyering@lucent.com>
96854
96855         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
96856         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
96857         determine the amount of total physical memory, use pstat_getstatic.
96858         HPUX-11 doesn't define _SC_PHYS_PAGES.
96859         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
96860         If sysconf couldn't be used to determine the amount of available
96861         physical memory, use both pstat_getstatic and pstat_getdynamic.
96862         Based on a patch from Bob Proulx.
96863
96864 2001-11-10  Jim Meyering  <meyering@lucent.com>
96865
96866         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
96867         (jm_PREREQ): Use it.
96868
96869 2001-11-09  Jim Meyering  <meyering@lucent.com>
96870
96871         * m4/jm-macros.m4: Require autoconf-2.52f.
96872         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
96873         Use these AC_-prefixed names, not the AM_-prefixed ones.
96874
96875         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
96876
96877 2001-11-05  Jim Meyering  <meyering@lucent.com>
96878
96879         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
96880
96881 2001-11-04  Jim Meyering  <meyering@lucent.com>
96882
96883         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
96884         $DEFS.
96885
96886 2001-11-03  Jim Meyering  <meyering@lucent.com>
96887
96888         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
96889         of AC_DEFUN.
96890
96891         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
96892         know the name of the variable in the macro definition.
96893
96894 2001-11-03  Jim Meyering  <meyering@lucent.com>
96895
96896         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
96897         in argmatch_to_argument call.
96898
96899         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
96900         argument.
96901
96902         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
96903         e.g., a fault due to an attempt to free a NULL pointer.
96904
96905 2001-11-01  Jim Meyering  <meyering@lucent.com>
96906
96907         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
96908         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
96909
96910 2001-11-01  Jim Meyering  <meyering@lucent.com>
96911
96912         * lib/dirfd.c, lib/dirfd.h: New files.
96913         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
96914
96915         * lib/hash.c (hash_print) [TESTING]: Clean up.
96916
96917 2001-10-22  Paul Eggert  <eggert@twinsun.com>
96918
96919         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
96920         to avoid a warning if -Wall.
96921
96922 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
96923
96924         * README: New file
96925         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
96926         (per RMS's instructions, this is now the canonical source)
96927         * lgpl/, gpl/: New directories.
96928
96929 2001-10-21  Paul Eggert  <eggert@twinsun.com>
96930
96931         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
96932
96933 2001-10-21  Jim Meyering  <meyering@lucent.com>
96934
96935         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
96936         this code would end up calling gettext even in packages built
96937         with --disable-nls.
96938         * lib/getopt.c (_): Likewise.
96939         * lib/regex.c (_): Likewise.
96940
96941 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96942
96943         * m4/error.m4 (jm_PREREQ_ERROR):
96944         Do not invoke AC_CHECK_FUNCS with strerror_r, as
96945         AC_FUNC_STRERROR_R does that.
96946         Check for strerror declaration.
96947
96948         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
96949         are supposed to have them these days.
96950         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
96951         Merge changes from latest Autoconf CVS.
96952         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
96953         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
96954         POSIX decided to standardize on the int flavor of strerror_r.
96955
96956 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96957
96958         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
96959         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
96960         Use strerror_r that is only a macro, even if it is not a function.
96961         (strerror): Check for HAVE_DECL_STRERROR before declaring.
96962         (private_strerror): Use prototypes, not old-style function definition.
96963         (print_errno_message): New function.
96964         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
96965         char*-flavored one.
96966         (error_tail, error, error_at_line): Use it.
96967
96968 2001-10-11  Jim Meyering  <meyering@lucent.com>
96969
96970         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
96971         and quote_n (1, ... to avoid clobbering a buffer.
96972
96973 2001-10-05  Jim Meyering  <meyering@lucent.com>
96974
96975         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
96976         hash-pjw.h.
96977         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
96978         * lib/hash-pjw.h: New file.
96979
96980 2001-09-30  Jim Meyering  <meyering@lucent.com>
96981
96982         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
96983         `struct fsstat' has the `f_fstypename' member.
96984         Use that to define FS_TYPE, which is now used to make
96985         the getfsstat link test tighter.
96986
96987 2001-09-30  Jim Meyering  <meyering@lucent.com>
96988
96989         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
96990         Include <sys/ucred.h>, for Apple Darwin.
96991         Include sys/mount.h and sys/fs_types.h only if available.
96992         (FS_TYPE): Define.
96993         (read_filesystem_list): Use FS_TYPE.
96994
96995 2001-09-29  Paul Eggert  <eggert@twinsun.com>
96996
96997         * lib/exclude.c (excluded_filename): 0 -> false, since it's
96998         a boolean context.
96999
97000 2001-09-29  Jim Meyering  <meyering@lucent.com>
97001
97002         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97003         [one-argument getmntent function]): Include stdio.h before mntent.h.
97004         SunOS 4.1.x needs it for the declaration of `FILE'.
97005         Patch by Volker Borchert.
97006
97007         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97008         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
97009         sys/fs_types.h, and make the link-test for getfsstat guard #include
97010         directives with appropriate #if HAVE_*_H tests so that we can
97011         detect getfsstat on Apple Darwin1.3.7 systems.
97012         Reported by Nelson Beebe.
97013         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
97014
97015 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97016
97017         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97018         #defines strtoimax.  Also treat the other strto* functions
97019         like strtoimax.
97020
97021         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97022         Check for strtoul and strtoumax,
97023         as those declarations are made even in the signed case.
97024         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
97025         Likewise, for strtol and strtoimax.
97026
97027 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97028
97029         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97030         #defines strtoimax.  Also treat the other strto* functions
97031         like strtoimax.
97032
97033         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
97034         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
97035         (strtoimax, strtoumax): Do not declare if already defined as a macro.
97036
97037 2001-09-26  Jim Meyering  <meyering@lucent.com>
97038
97039         Most macros in unlocked-io.h had the wrong number of arguments.
97040         * lib/gen-uio: New script.
97041         (USE_UNLOCKED_IO): Define to 1 if not already defined.
97042         * lib/unlocked-io.hin: Remove file.
97043         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
97044         rather than trying to embed it here.
97045         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
97046         Reported by Padraig Brady.
97047
97048 2001-09-25  Volker Borchert  <bt@teknon.de>
97049
97050         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
97051         `result'.
97052
97053 2001-09-24  Jim Meyering  <meyering@lucent.com>
97054
97055         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
97056
97057 2001-09-23  Jim Meyering  <meyering@lucent.com>
97058
97059         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
97060         instead of the mere test for existence of mntent.h.  The latter
97061         would get a false-positive on AIX 3.4 systems.
97062         In the outer getmntent if-block, don't die if neither of the getmntent
97063         tests succeeds.  Instead, just fall through and continue with the
97064         remaining tests.
97065
97066 2001-09-23  Jim Meyering  <meyering@lucent.com>
97067
97068         * lib/mountlist.c: Remove useless parentheses in #if directives.
97069         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
97070         the deprecated MOUNTED symbol is no longer defined in mntent.h.
97071
97072 2001-09-22  Jim Meyering  <meyering@lucent.com>
97073
97074         * m4/gettext.m4: New file.  From gettext.
97075         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
97076         * m4/progtest.m4: Likewise
97077         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
97078         * m4/glibc21.m4: Likewise.
97079
97080         * m4/libintl.m4: Remove.  No longer used.
97081
97082 2001-09-22  Jim Meyering  <meyering@lucent.com>
97083
97084         * lib/localcharset.c: Update from latest gettext.
97085         * lib/config.charset: Likewise.
97086
97087 2001-09-20  Jim Meyering  <meyering@lucent.com>
97088
97089         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
97090         strtoimax.
97091         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
97092         strtoumax.
97093
97094 2001-09-20  Jim Meyering  <meyering@lucent.com>
97095
97096         * lib/xstrtol.c (strtoimax): Guard declaration with
97097         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
97098         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
97099         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
97100         (strtoumax): Likewise, for completeness (it wasn't necessary).
97101
97102 2001-09-17  Paul Eggert  <eggert@twinsun.com>
97103
97104         * lib/strtoimax.c (HAVE_LONG_LONG):
97105         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
97106         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
97107         to work around bug in IBM C compiler.
97108
97109 2001-09-17  Jim Meyering  <meyering@lucent.com>
97110
97111         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
97112         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
97113         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
97114         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
97115         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
97116         whenever the right hand side need not be expanded by the shell.
97117
97118 2001-09-16  Paul Eggert  <eggert@twinsun.com>
97119
97120         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
97121         library.  It's not correct, as some older glibcs are buggy.
97122         fnmatch wasn't fixed until glibc 2.2.
97123
97124         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
97125         special shell magic here.
97126
97127 2001-09-16  Jim Meyering  <meyering@lucent.com>
97128
97129         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
97130         * m4/jm-macros.m4: Require it.
97131
97132 2001-09-16  Jim Meyering  <meyering@lucent.com>
97133
97134         * lib/mkdir.c: New file.
97135
97136 2001-09-15  Jim Meyering  <meyering@lucent.com>
97137
97138         * m4/jm-macros.m4: Check for help2man.
97139
97140 2001-09-11  Jim Meyering  <meyering@lucent.com>
97141
97142         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
97143         The body, by Paul Eggert, was moved here from configure.in.
97144         * m4/jm-macros.m4: Require UTILS_HOST_OS.
97145
97146 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97147
97148         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
97149         (jm_PREREQ): Use it.
97150
97151 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97152
97153         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
97154         Use ssize_t, not int, to store result of readlink.
97155         Check for ssize_t overflow as well as size_t overflow,
97156         as POSIX says the result of readlink is implementation-defined
97157         when ssize_t overflows.
97158         Remove unnecessary cast to char*.
97159         Use free+malloc instead of realloc, as the storage doesn't need
97160         to be preserved and it's clearer and can be more efficient that way.
97161         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
97162         * lib/xreadlink.h (xreadlink): Update prototype.
97163
97164 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97165
97166         * lib/xgetcwd.c: Revert some of the previous change; intead,
97167         fix the HAVE_GETCWD_NULL code to behave more like the
97168         !HAVE_GETCWD_NULL code used to.
97169
97170         Include "xalloc.h".
97171         (xgetcwd): Do not return NULL when memory is exhausted; instead,
97172         invoke xalloc_die.
97173
97174 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97175
97176         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
97177         sys/param.h, as pathmax.h includes them.
97178
97179 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97180
97181         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
97182         (jm_PREREQ_XGETCWD): New macro.
97183
97184         * m4/getcwd.m4: New file.
97185
97186 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97187
97188         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
97189         like the HAVE_GETCWD_NULL code.
97190         Include pathmax.h if not HAVE_GETCWD.
97191         Do not include xalloc.h.
97192         (INITIAL_BUFFER_SIZE): New symbol.
97193         Do not use xmalloc / xrealloc, since the caller is responsible for
97194         handling errors.  Preserve errno around `free' during failure.
97195         Do not overrun buffer when using getwd.
97196
97197 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97198
97199         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
97200         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
97201         getcwd (NULL, 0).
97202
97203 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97204
97205         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
97206         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
97207         spotted by Jim Meyering.
97208
97209 2001-09-03  Jim Meyering  <meyering@lucent.com>
97210
97211         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
97212         failure.
97213
97214 2001-09-02  Jim Meyering  <meyering@lucent.com>
97215
97216         * lib/error.c: Update from GNU libc.
97217
97218 2001-09-01  Jim Meyering  <meyering@lucent.com>
97219
97220         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
97221         Used by df.
97222
97223 2001-09-01  Jim Meyering  <meyering@lucent.com>
97224
97225         * lib/xreadlink.c: New file.
97226         * lib/xreadlink.h: New file.
97227         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
97228         xreadlink.h.
97229
97230         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
97231         doesn't conflict with sparc Solaris 7's definition in
97232         /usr/include/sys/int_types.h.
97233
97234         * lib/exclude.c: Use `""', not `<>' to #include non-system header
97235         files.
97236         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
97237         and strncasecmp as r-values.  Unixware didn't have declarations.
97238
97239 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97240
97241         * lib/xstrtol.h: Add copyright notice.
97242         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
97243         LONGINT_INVALID_SUFFIX_CHAR.
97244
97245 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97246
97247         * lib/xstrtol.c (strtoimax): New decl.
97248
97249 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97250
97251         * lib/xgetcwd.c: Don't include pathmax.h.
97252         Include stdlib.h and unistd.h if available.
97253         Include xalloc.h.
97254         (xmalloc, xstrdup, free): Remove decls.
97255         (xgetcwd): Don't assume sizes fit in unsigned.
97256         Check for overflow when computing sizes.
97257         Simplify reallocation code.
97258
97259 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97260
97261         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
97262         a directory's st_size can have an arbitrary value, so the old
97263         usage could waste an arbitrary amount of memory.  All uses
97264         changed.
97265         * lib/savedir.h: Update prototype.
97266
97267 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97268
97269         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
97270
97271         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
97272         old strtoimax.c.
97273
97274         Also, make the following further changes to make this file's
97275         configuration more similar to that of strtol.c:
97276         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
97277         (strtoumax, uintmax_t, strtoull, strtol): Remove.
97278         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
97279         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
97280         changed to signed values.
97281
97282         And make the following changes as well:
97283         Fix copyright notice, as 1999 was missing.
97284         (verify): New macro.
97285         (strtoimax): Check sizes at compile-time, not run-time.
97286         Prefer strtol to strtoll if both work.
97287         (main): Remove; it was not that useful and was a pain to maintain.
97288
97289         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
97290
97291 2001-08-31  Jim Meyering  <meyering@lucent.com>
97292
97293         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
97294         Use an initial, malloc'd, buffer of length 128 rather than
97295         a statically allocated one of length 1024.
97296
97297 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97298
97299         Simplify code, partly by assuming autoconf 2.52 semantics.
97300
97301         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
97302
97303         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
97304         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
97305         All uses removed.
97306         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
97307         Move AC_REQUIRE to next-to-top level, to avoid confusion.
97308         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
97309         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
97310         jm_AC_HEADER_INTTYPES_H.
97311         * m4/jm-macros.m4 (jm_MACROS): Likewise.
97312
97313         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
97314
97315         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97316         Quote first arg of AC_DEFUN.
97317         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
97318         since they are needed to parse the include file even if we need
97319         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
97320         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
97321         but with opposite signedness.
97322
97323 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97324
97325         Merge 'exclude' changes from tar 1.13.22.
97326         This fixes one or two unlikely storage allocation overflow bugs,
97327         but doesn't change user-visible behavior otherwise.
97328
97329 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97330
97331         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97332         (jm_PREREQ_EXCLUDE): New macro.
97333
97334 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97335
97336         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97337         tm to be declared.
97338
97339 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97340
97341         * lib/hash.c: Remove '2001' from copyright notice.
97342
97343 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97344
97345         * lib/full-write.h: New file.
97346         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97347         * lib/full-write.c: Correct credits, as cccp.c no longer
97348         exists and anyway it was so heavily changed from the old cccp
97349         code as to be unrecognizable.  Include full-write.h.
97350         (full_write): Return size_t, with short writes meaning failure.
97351         All callers changed.  This fixes a bug with large buffers
97352         on 64-bit hosts.
97353         * lib/utime.c: Include full-write.h.
97354
97355 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97356
97357         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97358         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97359         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97360         Include if available.
97361         (<xalloc.h>): Include
97362         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97363         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97364         collide with FNM macros.
97365         (struct patopts): New struct.
97366         (struct exclude): Use it, as exclude patterns now come with options.
97367         (new_exclude): Support above changes.
97368         (new_exclude, add_exclude_file):
97369         Initial size must now be a power of two to simplify overflow checking.
97370         (free_exclude, fnmatch_no_wildcards): New function.
97371         (excluded_filename): No longer requires options arg, as the options
97372         are determined by add_exclude.  Now returns bool, not int.
97373         (excluded_filename, add_exclude):
97374         Add support for the fancy new exclusion options.
97375         (add_exclude, add_exclude_file): Now takes int options arg.
97376         Check for arithmetic overflow when computing sizes.
97377         (add_exclude_file): xrealloc might modify errno, so don't
97378         realloc until after errno might be used.
97379
97380         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97381         New macros.
97382         (free_exclude): New decl.
97383         (add_exclude, add_exclude_file): Now takes int options arg.
97384         (excluded_filename): No longer requires options arg, as the options
97385         are determined by add_exclude.  Now returns bool, not int.
97386
97387 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97388
97389         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
97390
97391 2001-08-27  Jim Meyering  <meyering@lucent.com>
97392
97393         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97394
97395         * lib/version-etc.c (N_): Remove definition.
97396         Revert most of last change.
97397         Instead, simply don't mark the `Copyright...' string for translation.
97398         Based on advice from Paul Eggert.
97399
97400         * lib/strtoxmax.c: Tweak comment.
97401
97402 2001-08-26  Jim Meyering  <meyering@lucent.com>
97403
97404         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97405
97406         * m4/xstrtoimax.m4: New file.
97407         * m4/xstrtoumax.m4: Add comments explaining why we
97408         AC_REPLACE_FUNCS(strtol).
97409
97410 2001-08-26  Jim Meyering  <meyering@lucent.com>
97411
97412         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97413         of copyright with `%s' so translators don't get an untranslated
97414         message in 2002.
97415         (COPYRIGHT_YEAR): Define.
97416         (version_etc): Use fprintf rather than fputs.
97417         Suggestion from Ulrich Drepper.
97418
97419         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97420
97421         * lib/strtoll.c: New file, from GNU libc.
97422         * lib/xstrtoimax.c: New file.
97423
97424         * lib/xstrtol.h: Add xstrtoimax.
97425         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97426         * lib/strtoimax.c: New file.  Likewise, but first define
97427         STRTOUXMAX_SIGNED.
97428
97429         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97430         ...
97431         * lib/strtoxmax.c: ... then renamed to this.
97432
97433 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97434
97435         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97436         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97437         (jm_AC_TYPE_INTMAX_T): New macro.
97438         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97439
97440         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97441
97442         * m4/longlong.m4: Renamed from ulonglong.m4.
97443         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97444         * m4/uintmax_t.m4: Removed.
97445
97446 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97447
97448         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97449         Port to Solaris 8, where 'sed' requires a space after the 'r'
97450         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97451         Redirect output to $tmp just once.
97452
97453 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97454
97455         * lib/addext.c (<errno.h>): Include.
97456         (errno): Declare if not defined.
97457         (addext): Work correctly when pathconf returns -1 and leaves
97458         errno alone because there is no limit.  Also, work even if
97459         pathconf returns a value greater than SIZE_MAX.
97460
97461 2001-08-12  Jim Meyering  <meyering@lucent.com>
97462
97463         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97464         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97465         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97466         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97467         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97468         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97469         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97470         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97471         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97472         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97473         utime.m4, utimes.m4, xstrtoumax.m4:
97474         Quote the first argument in each use of AC_DEFUN.
97475
97476 2001-08-12  Jim Meyering  <meyering@lucent.com>
97477
97478         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
97479         Simply `return getcwd (NULL, 0);'.
97480         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
97481         Use 1300 as initial value for length, not PATH_MAX.
97482
97483         * lib/pathmax.h: Clean up cpp syntax.
97484
97485 2001-08-12  Jim Meyering  <meyering@lucent.com>
97486
97487         * lib/gettimeofday.c: New file.
97488         * lib/gtod.h: New file.
97489         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
97490
97491 2001-08-05  Jim Meyering  <meyering@lucent.com>
97492
97493         * m4/jm-macros.m4: Require autoconf-2.52.
97494
97495 2001-08-04  Jim Meyering  <meyering@lucent.com>
97496
97497         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
97498         stmt, to get in sync with glibc.
97499
97500 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97501
97502         The following changes are from gettext 0.10.39 as maintained by
97503         Bruno Haible.
97504
97505         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
97506         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
97507         with inverted sense.  All uses changed.
97508
97509         * lib/mbswidth.c: Don't include <limits.h>.
97510         Include <stdlib.h> and <string.h> unconditionally.
97511         (iswcntrl, mbsinit, ISCNTRL): New macros.
97512         (mbsnwidth): Use K&R style function declarations.
97513         Don't bother checking for MB_LEN_MAX == 1, since the compiler
97514         can optimize it when MB_CUR_MAX == 1.
97515         The width of control characters is zero, not 1.
97516
97517 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97518
97519         The following changes are from gettext 0.10.39 as maintained by
97520         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
97521
97522         * m4/codeset.m4: Upgrade to serial AM1.
97523         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
97524         all uses changed.  Quote first arg of AC_DEFUN.
97525         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
97526
97527         * m4/iconv.m4: Upgrade to serial AM2.
97528         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
97529         Add --with-libconv-prefix.
97530         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
97531         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
97532         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
97533         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
97534         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
97535
97536         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
97537         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
97538         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
97539         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
97540         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
97541         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
97542         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
97543         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
97544         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97545
97546         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
97547         string.h any more.
97548
97549         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
97550         not the default value.
97551
97552         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
97553         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
97554         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
97555         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
97556         Also check for iswcntrl, used for wcwidth fallback.
97557         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
97558         to Autoconf 2.13.
97559
97560 2001-08-03  Jim Meyering  <meyering@lucent.com>
97561
97562         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
97563         as it was in the original.  Reported by Paul Eggert.
97564
97565 2001-07-16  Jim Meyering  <meyering@lucent.com>
97566
97567         * m4/gettimeofday.m4: New file.
97568         Prompted by a report from Bernhard Baehr.
97569
97570 2001-07-15  Jim Meyering  <meyering@lucent.com>
97571
97572         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
97573         stuff. Now it's in ../Makefile.cfg.
97574
97575 2001-07-15  Jim Meyering  <meyering@lucent.com>
97576
97577         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
97578         (BUILT_SOURCES): Add unlocked-io.h.
97579         (io_functions): Define.
97580         (unlocked-io.h): New rule.
97581         (DISTCLEANFILES): Add unlocked-io.h.
97582         (all-local): Depend on unlocked-io.h, to ensure it is created.
97583
97584         * lib/unlocked-io.hin: New file
97585
97586         * lib/regex.c: Update from glibc.
97587
97588 2001-07-05  Jim Meyering  <meyering@lucent.com>
97589
97590         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
97591         recommendation.
97592         (libfetish_a_SOURCES): Put all .h files here instead.
97593         Remove a thus-exposed (better checks in automake) duplicate and
97594         two unnecessary .h files.
97595
97596 2001-07-04  Jim Meyering  <meyering@lucent.com>
97597
97598         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
97599         that generates jm-glibc-io.m4 so that it doesn't trigger any make
97600         distcheck failure.
97601
97602 2001-07-02  Jim Meyering  <meyering@lucent.com>
97603
97604         The following changes were prompted by suggestions from Bruno Haible.
97605
97606         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
97607         is now generated.
97608         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
97609         definition of EXTRA_DIST.
97610         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
97611         ensure that the generated file is created/updated whenever the list
97612         of $(unlocked_functions) is changed.
97613         (jm-glibc-io.m4): New rule.
97614         (unlocked-io.h): New rule -- currently unused.
97615
97616 2001-06-24  Jim Meyering  <meyering@lucent.com>
97617
97618         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
97619         unmatched right bracket, rather than kludging it with an extra,
97620         falsely-matching quote in a comment.  Patch by Akim Demaille.
97621
97622 2001-06-11  Jim Meyering  <meyering@lucent.com>
97623
97624         * lib/regex.c: Update from GNU libc.
97625
97626 2001-05-27  Jim Meyering  <meyering@lucent.com>
97627
97628         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
97629         Check for ut_type in struct utmp.
97630
97631 2001-05-27  Jim Meyering  <meyering@lucent.com>
97632
97633         * lib/readutmp.h (UT_TYPE): Define.
97634
97635 2001-05-24  Jim Meyering  <meyering@lucent.com>
97636
97637         * lib/argmatch.c: Include "quote.h".
97638         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
97639         quote function.  Reported by Göran Uddeborg.
97640
97641 2001-05-22  Jim Meyering  <meyering@lucent.com>
97642
97643         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
97644         now that we use the package-supplied version unconditionally.
97645         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
97646
97647 2001-05-21  Jim Meyering  <meyering@lucent.com>
97648
97649         * m4/regex.m4: Change a couple backticks to single quotes to avoid
97650         shell syntax errors.
97651
97652 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97653
97654         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
97655
97656 2001-05-20  Paul Eggert  <eggert@twinsun.com>
97657
97658         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
97659         Don't bother to check library strftime, since
97660         we'll be using our own my_strftime function anyway.
97661         Define my_strftime instead of strftime.
97662
97663 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
97664
97665         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
97666         which is not yet declared.
97667
97668 2001-05-15  Jim Meyering  <meyering@lucent.com>
97669
97670         * m4/regex.m4: Use proper quoting so brackets appear in the test
97671         program.
97672         Reported by, and with help from, Bruno Haible.
97673
97674 2001-05-13  Jim Meyering  <meyering@lucent.com>
97675
97676         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
97677         undefined.
97678
97679 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97680
97681         dirname code cleanup.  base_name now behaves more compatibly
97682         with POSIX basename when given file names that have trailing
97683         slashes, and similarly for dir_name.  Add new primitives
97684         base_len and dir_len.  Put the directory-name-related decls
97685         into dirname.h.
97686
97687         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
97688         * lib/backupfile.c (base_name): Likewise.
97689         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
97690         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
97691         * lib/makepath.c (strip_trailing_slashes): Likewise.
97692         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
97693         ISSLASH): Likewise.
97694         * lib/rename.c (strip_trailing_slashes): Likewise.
97695         * lib/same.c (base_name): Likewise.
97696         * lib/stripslash.c (ISSLASH): Likewise.
97697
97698         * lib/addext.c: Include <dirname.h> after size_t is defined.
97699         * lib/backupfile.c: Likewise.
97700
97701         * lib/addext.c (addext): Use base_len to trim redundant
97702         trailing slashes instead of doing it ourselves.
97703         But do not trim the last slash if it is not redundant.
97704
97705         * lib/backupfile.c (find_backup_file_name,
97706         max_backup_version): Use base_len instead of rolling it ourselves.
97707         Handle the case of "" and (on DOS) "C:" correctly.
97708
97709         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
97710         needed. Include <string.h>, <dirname.h>.
97711         (base_name): Allow file names ending in slashes, other than names
97712         that are all slashes.  In this case, return the basename followed
97713         by the slashes.  This is more general, and can be used in places
97714         where the original base_name purposely had an assertion failure.
97715         (base_len): New function.
97716
97717         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
97718         Do not include <assert.h>; no longer needed.
97719         Include xalloc.h.
97720         (memrchr): Remove decl.
97721         (dir_name_r): Remove.
97722         (dir_len): Renamed from dirlen.  All callers changed.
97723         Rewrite in terms of base_name, for simplicity and consistency.
97724         (dir_name): Never return NULL.  All callers changed.
97725         Do not include <stdlib.h> in test program; no longer needed.
97726         return 0; is fine for test program.
97727
97728         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
97729         New macros.
97730         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
97731
97732         * lib/path-concat.c (path_concat): Use base_len to compute
97733         base length, not strlen; this means we cannot rely on memcpy
97734         to null-terminate.
97735
97736         * lib/same.c (STREQ): Remove.
97737         (same_name): Handle the case where the basename ends in trailing '/'.
97738
97739         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
97740         a slash was stripped.  Do not strip the last slash after a
97741         file system prefix.
97742
97743 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97744
97745         * lib/Makefile.am (libfetish_a_SOURCES):
97746         Add strftime.c, since we now compile it on all hosts.
97747
97748         * lib/strftime.c (my_strftime):
97749         Define to nstrftime if emacs, but only if my_strftime is not defined.
97750         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
97751         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
97752         Add one more extra argument: a nanoseconds value.
97753         All uses changed.
97754         (ns): New macro.
97755         (my_strftime function): Add %N format.
97756         (emacs_strftimeu): Renamed from emacs_strftime,
97757         with extra ut argument.
97758
97759 2001-05-09  Paul Eggert  <eggert@twinsun.com>
97760
97761         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
97762
97763 2001-04-21  Jim Meyering  <meyering@lucent.com>
97764
97765         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
97766         doesn't interfere.
97767
97768 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97769
97770         * m4/ftruncate.m4: Check for chsize.
97771         Link with ftruncate.o unconditionally if ftruncate is missing.
97772         This was required when cross-compiling to i586-mingw32msvc.
97773
97774 2001-04-08  Jim Meyering  <meyering@lucent.com>
97775
97776         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
97777         recomputed; that's necessary when the offset spans a DST transition.
97778         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
97779
97780 2001-04-02  Jim Meyering  <meyering@lucent.com>
97781
97782         * lib/regex.h, regex.c: Update from GNU libc.
97783
97784 2001-03-24  Jim Meyering  <meyering@lucent.com>
97785
97786         * m4/jm-macros.m4: Require autoconf-2.49d.
97787
97788 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
97789
97790         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
97791
97792 2001-03-19  Paul Eggert  <eggert@twinsun.com>
97793
97794         * lib/version-etc.c (version_etc_copyright): Update to 2001.
97795
97796 2001-03-17  Jim Meyering  <meyering@lucent.com>
97797
97798         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
97799         now that the version in autoconf is equivalent.
97800         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
97801
97802         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
97803         Suggestion from Akim Demaille.
97804
97805         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
97806         (jm_PREREQ_TEMPNAME): New function.
97807
97808 2001-03-16  Paul Eggert  <eggert@twinsun.com>
97809
97810         * lib/tempname.c (uint64_t): Define to uintmax_t if
97811         not defined, and if UINT64_MAX is not defined.
97812         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
97813         Reported by John David Anglin.
97814
97815 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
97816
97817         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
97818         resolve alias if codeset is empty.
97819         * lib/config.charset (BeOS): Use wildcard syntax.
97820
97821 2001-03-13  Jim Meyering  <meyering@lucent.com>
97822
97823         * lib/path-concat.c (path_concat)
97824         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
97825         concatenating e.g., `C:' and `foo'.
97826         From Bruno Haible.
97827
97828 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97829
97830         * lib/localcharset.c (locale_charset): Don't use
97831         setlocale(LC_CTYPE,NULL). Don't return NULL.
97832         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
97833
97834 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97835
97836         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
97837         support for DOS/DJGPP.
97838
97839 2001-03-01  Paul Eggert  <eggert@twinsun.com>
97840
97841         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
97842         lacks mkstemp.  Compile our own tempname.c if we compile our own
97843         mkstemp.c, as mkstemp relies on tempname.
97844
97845 2001-03-01  Jim Meyering  <meyering@lucent.com>
97846
97847         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
97848         AH_VERBATIM really does output its argument verbatim.
97849
97850 2001-02-28  Paul Eggert  <eggert@twinsun.com>
97851
97852         * lib/Makefile.am (libfetish_a_SOURCES):
97853         Add dup-safer.c, fopen-safer.c.
97854         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
97855
97856         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
97857         * lib/unistd-safer.h: New files.
97858
97859 2001-02-25  Paul Eggert  <eggert@twinsun.com>
97860
97861         The mkstemp replacement is taken from glibc 2.2.2, with some
97862         portability fixes for use outside glibc, as follows:
97863
97864         * lib/tempname.c (struct_stat64): New macro.
97865         (direxists, __gen_tempname): Use it.
97866         This avoids a portability problem with Solaris 8.
97867
97868         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
97869         (<stddef.h>, <stdint.h>, <string.h>):
97870         Include only if STDC_HEADERS || _LIBC.
97871         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
97872         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
97873         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
97874         (__set_errno): Define this macro if <errno.h> doesn't.
97875         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
97876         Define these macros if <stdio.h> doesn't.
97877         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
97878         Define these macros if <sys/stat.h>
97879         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
97880         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
97881         __xstat64): Define if not _LIBC.
97882         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
97883         (__gen_tempname): Invoke gettimeofday only if
97884         HAVE_GETTIMEOFDAY || _LIBC;
97885         otherwise, fall back on plain "time".
97886         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
97887
97888         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
97889
97890         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
97891
97892 2001-02-18  Paul Eggert  <eggert@twinsun.com>
97893
97894         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
97895
97896 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97897
97898         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
97899         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
97900         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
97901         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
97902
97903 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97904
97905         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
97906         Remove workaround macros for hosts that have mbrtowc but not
97907         mbstate_t, as we now insist on proper declarations for both
97908         before using mbrtowc.
97909
97910 2001-02-17  Jim Meyering  <meyering@lucent.com>
97911
97912         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
97913         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
97914         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
97915         UnixWare 7.1.1.
97916
97917         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
97918         rather than AC_CACHE_VAL.
97919
97920 2001-02-17  Jim Meyering  <meyering@lucent.com>
97921
97922         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
97923         around included file name.
97924
97925         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
97926
97927         * lib/strftime.c: Update from GNU libc (the only changes were to
97928         comments).
97929
97930 2001-02-17  Jim Meyering  <meyering@lucent.com>
97931
97932         * lib/regex.c: Update from libc.
97933
97934 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
97935
97936         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
97937         clash.
97938
97939 2001-02-16  Paul Eggert  <eggert@twinsun.com>
97940
97941         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
97942         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
97943         Reported by Mark Hounschell via Paul Eggert.
97944
97945 2001-02-07  Jim Meyering  <meyering@lucent.com>
97946
97947         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
97948
97949 2001-02-05  Jim Meyering  <meyering@lucent.com>
97950
97951         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
97952         it includes the patch required for `large file' support with at least
97953         HP-UX's 10.20 /bin/cc.
97954
97955 2001-02-03  Jim Meyering  <meyering@lucent.com>
97956
97957         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
97958         AS_IF, now that it works once again (mysteriously).
97959         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97960
97961 2001-01-30  Jim Meyering  <meyering@lucent.com>
97962
97963         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
97964         * m4/chown.m4: Rename conftestchown to conftest.chown.
97965         * m4/rename.m4: s/conftestdir/conftest.d1/ and
97966         s/conftestdir2/conftest.d2/.
97967         * m4/utimes.m4: s/conftestdata/conftest.data/
97968         Inspired by Pavel Roskin's change in autoconf.
97969
97970 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
97971
97972         * lib/config.charset: Update for FreeBSD 4.2.
97973
97974 2001-01-27  Jim Meyering  <meyering@lucent.com>
97975
97976         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
97977         a use of AS_IF.
97978         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97979
97980 2001-01-26  Jim Meyering  <meyering@lucent.com>
97981
97982         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
97983         quotearg.c includes it.
97984
97985 2001-01-26  Jim Meyering  <meyering@lucent.com>
97986
97987         * lib/quotearg.c: Include stddef.h.
97988         * lib/quote.c: Include stddef.h.
97989         Reported by Axel Kittenberger.
97990
97991         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
97992         line in double quotes so that it evokes a better diagnostic.
97993         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
97994         Reported by Axel Kittenberger.
97995
97996 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
97997
97998         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
97999         as if it was a `charset'.
98000
98001 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98002
98003         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
98004         has const.
98005
98006 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98007
98008         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
98009         to avoid a warning.  Add back 'const' to inptr.
98010
98011 2001-01-20  Jim Meyering  <meyering@lucent.com>
98012
98013         Be sure that headers are checked before used in code compiled
98014         for the type checks.
98015         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
98016         In place of that, invoke jm_CHECK_ALL_TYPES.
98017         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
98018         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
98019         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
98020         The check for ssize_t was mistakenly run before the test for unistd.h.
98021
98022         The configure-time check for stdbool.h was missing.
98023         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
98024         (jm_PREREQ_HASH): New function.
98025
98026 2001-01-17  Jim Meyering  <meyering@lucent.com>
98027
98028         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
98029         for autoconf-2.49c.
98030         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
98031
98032 2001-01-16  Jim Meyering  <meyering@lucent.com>
98033
98034         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
98035         From Bruno Haible.
98036
98037 2001-01-14  Jim Meyering  <meyering@lucent.com>
98038
98039         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
98040         foo and bar.  Create conftestdir/ in the script, not in the C code.
98041         Remove directories in the script, not in the C code.
98042         Remove conftestdir{,2} before trying to create the directory.
98043         Make the entire configure script fail if the mkdir fails.
98044
98045 2001-01-14  Jim Meyering  <meyering@lucent.com>
98046
98047         * lib/rename.c: New file.  From Volker Borchert.
98048         Include stdlib.h, string.h or strings.h, and xalloc.h.
98049         Use strip_trailing_slashes rather than open-coding it.
98050
98051 2001-01-03  Paul Eggert  <eggert@twinsun.com>
98052
98053         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
98054
98055 2001-01-03  Jim Meyering  <meyering@lucent.com>
98056
98057         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
98058         of local `inptr' to avoid warning with some system declarations of
98059         iconv.
98060
98061 2001-01-02  Volker Borchert  <bt@teknon.de>
98062
98063         * m4/rename.m4: New file.
98064         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
98065
98066 2001-01-01  Jim Meyering  <meyering@lucent.com>
98067
98068         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
98069         even on systems with utmpx.h.  It's necessary for the declaration of
98070         utmp's ut_user member.  Reported by Andreas Jaeger.
98071
98072         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
98073         available. They are required for the declarations of getgrgid and
98074         getpwuid resp.
98075         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
98076         Reported by Andreas Jaeger.
98077
98078 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
98079
98080         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
98081         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
98082         so `make install' also works in VPATH builds.
98083
98084 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
98085
98086         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
98087         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
98088         can be used in subdirectories.
98089
98090 2000-12-29  Paul Eggert  <eggert@twinsun.com>
98091
98092         * lib/modechange.c: Do not assume that mode_t uses the
98093         traditional octal encoding.  E.g. "chmod 1 FOO" should set
98094         the other-execute bit of FOO even if S_IXOTH != 1.
98095
98096         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
98097         WOTH, XOTH, ALLM): New macros.
98098         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
98099          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
98100         Use them.
98101         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
98102         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
98103         (mode_compile):
98104         No need to use uintmax_t; unsigned long is long enough.
98105         Don't bother to get suffix since we don't use it.
98106
98107 2000-12-26  Jim Meyering  <meyering@lucent.com>
98108
98109         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
98110         better with autoheader.
98111
98112 2000-12-24  Jim Meyering  <meyering@lucent.com>
98113
98114         * lib/hash.c (is_prime): Return explicit boolean values.
98115         (hash_get_first): Return NULL to appease Irix5.6's 89.
98116         Reported by Nelson Beebe.
98117
98118 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
98119
98120         * lib/localcharset.c (locale_charset): Add support for Win32.
98121
98122 2000-12-18  Paul Eggert  <eggert@twinsun.com>
98123
98124         * lib/physmem.h, lib/physmem.c: New files.
98125
98126         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
98127         (noinst_HEADERS): Add physmem.h.
98128
98129         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
98130         't' for compatibility with Solaris 8 sort.
98131
98132 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
98133
98134         * lib/config.charset: Add support for BeOS.
98135
98136 2000-12-17  Jim Meyering  <meyering@lucent.com>
98137
98138         * m4/dos.m4 (jm_AC_DOS): New file and macro.
98139         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
98140
98141 2000-12-16  Jim Meyering  <meyering@lucent.com>
98142
98143         This bug had a serious impact on chown: `chown N:M FILE' (for integer
98144         N and M) would have treated it like `chown N:N FILE'.
98145
98146         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
98147
98148 2000-12-16  Jim Meyering  <meyering@lucent.com>
98149
98150         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
98151         SHELLS_FILE to a file name that's useful on djgpp systems.
98152         Include stdlib.h.
98153         (ADDITIONAL_DEFAULT_SHELLS): Define.
98154         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
98155         Based mostly on a patch from Prashant TR.
98156
98157 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
98158
98159         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
98160         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
98161         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
98162
98163 2000-12-08  Andreas Schwab  <schwab@suse.de>
98164
98165         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
98166         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
98167
98168 2000-12-07  Jim Meyering  <meyering@lucent.com>
98169
98170         * lib/stripslash.c (ISSLASH): Define.
98171         (strip_trailing_slashes): Use ISSLASH rather than comparing against
98172         `/'.
98173         From Prashant TR.
98174
98175         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
98176         (dir_name_r): Declare this function as static.
98177         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
98178         manifest itself on a name containing a mix of slashes and
98179         backslashes.
98180         Make this function work with names starting with a DOS-style
98181         drive letter and colon prefix.
98182         (dir_name): Append `.' if necessary.
98183         Based mostly on patches from Prashant TR and Eli Zaretskii.
98184
98185         * lib/dirname.h (dir_name_r): Remove prototype.
98186
98187 2000-12-06  Paul Eggert  <eggert@twinsun.com>
98188
98189         * m4/off_t-format.m4: Remove this file.
98190         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
98191
98192 2000-12-06  Jim Meyering  <meyering@lucent.com>
98193
98194         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
98195         replacement strtoull, we may well need the replacement strtoul, too.
98196         Check for declarations of strtoul and strtoull.
98197         Check for strtol.  Mainly as a cue to cause automake to include
98198         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
98199         Check for limits.h -- strtol.c needs it.
98200
98201 2000-12-05  Jim Meyering  <meyering@lucent.com>
98202
98203         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
98204
98205 2000-12-04  Jim Meyering  <meyering@lucent.com>
98206
98207         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
98208         Also include memory.h, stdlib.h, unistd.h if appropriate.
98209         Reported by Andreas Jaeger (conflicting declaration of malloc).
98210
98211 2000-12-02  Jim Meyering  <meyering@lucent.com>
98212
98213         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
98214         * m4/jm-macros.m4 (jm_MACROS): require it.
98215
98216 2000-12-02  Jim Meyering  <meyering@lucent.com>
98217
98218         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
98219
98220 2000-12-01  Paul Eggert  <eggert@twinsun.com>
98221
98222         * lib/memrchr.c: Include <config.h> before any system include file.
98223
98224 2000-11-30  Jim Meyering  <meyering@lucent.com>
98225
98226         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
98227
98228 2000-11-30  Jim Meyering  <meyering@lucent.com>
98229
98230         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
98231
98232 2000-11-29  Paul Eggert  <eggert@twinsun.com>
98233
98234         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
98235
98236 2000-11-26  Jim Meyering  <meyering@lucent.com>
98237
98238         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
98239
98240 2000-11-22  Paul Eggert  <eggert@twinsun.com>
98241
98242         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
98243         size of (size_t) -1; it's not portable.
98244
98245 2000-11-17  Jim Meyering  <meyering@lucent.com>
98246
98247         * lib/strstr.c: Update from GNU libc.
98248
98249 2000-11-17  Akim Demaille  <akim@epita.fr>
98250
98251         * lib/obstack.h: Formatting changes.
98252         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
98253         prevent type checking.
98254         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
98255         cast the value to (void *): assigning a `foo *' to a `void *'
98256         variable is valid.
98257         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
98258
98259 2000-11-16  Jim Meyering  <meyering@lucent.com>
98260
98261         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
98262
98263 2000-11-11  Jim Meyering  <meyering@lucent.com>
98264
98265         * lib/error.c: Add a couple #includes, merging from GNU libc version.
98266
98267 2000-11-10  Jim Meyering  <meyering@lucent.com>
98268
98269         * lib/obstack.h: Update from GNU libc.
98270         * lib/obstack.c: Likewise.
98271
98272 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
98273
98274         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
98275
98276 2000-11-06  Paul Eggert  <eggert@twinsun.com>
98277
98278         * lib/getusershell.c (setusershell): Use rewind rather than
98279         fseek/fseeko, to avoid configuration hassles with fseeko.
98280         Don't bother opening SHELLS_FILE if shellstream is NULL;
98281         it's not necessary.
98282
98283 2000-11-05  Jim Meyering  <meyering@lucent.com>
98284
98285         * lib/makepath.h (make_dir): Declare.
98286         * lib/makepath.c (make_dir): Remove `static' attribute.
98287         Tweak a comment.
98288
98289 2000-11-04  Jim Meyering  <meyering@lucent.com>
98290
98291         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
98292
98293 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
98294
98295         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
98296         last one in a bucket, advance to the next bucket.
98297
98298 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
98299
98300         * lib/fnmatch.c: Do not comment out all the code if we are using
98301         the GNU C library, because in some cases we are replacing buggy
98302         code in the GNU C library itself.
98303
98304 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
98305
98306         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
98307         (regex_compile): Catch bogus \(\1\).
98308
98309 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98310
98311         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
98312         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
98313         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
98314
98315 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98316
98317         * lib/error.h, getline.h, modechange.h:
98318         Remove "2000" from Copyright line, as the file hasn't been
98319         changed this year other than in the copyright notice.
98320
98321         * lib/xalloc.h: Add "2000" to Copyright line, as this file
98322         was changed this year.
98323
98324 2000-10-29  Jim Meyering  <meyering@lucent.com>
98325
98326         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98327         renaming.
98328         * m4/ls-mntd-fs.m4: Likewise
98329
98330 2000-10-29  Jim Meyering  <meyering@lucent.com>
98331
98332         * lib/xstat.in: Fix grammar in comment.
98333
98334 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98335
98336         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98337         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98338         doesn't define __restrict_arr.
98339
98340 2000-10-28  Jim Meyering  <meyering@lucent.com>
98341
98342         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98343         (jm_PREREQ_MEMCHR): New function.
98344
98345 2000-10-28  Jim Meyering  <meyering@lucent.com>
98346
98347         * lib/memchr.c: Update from libc.
98348         Adjust for portability:
98349         [HAVE_STDLIB_H]: Include stdlib.h.
98350         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98351         Undef __memchr, too.
98352         [!weak_alias]: Define __memchr to memchr.
98353
98354         * lib/regex.c: Update from libc.
98355         * lib/regex.h: Likewise.
98356         * lib/getopt1.c: Likewise.
98357         * lib/memcmp.c: Likewise.
98358
98359         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98360         Avoid using fseek, when possible -- it's broken by design.
98361         Patch by Ulrich Drepper.
98362
98363 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98364
98365         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98366         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98367         Giving in to popular pressure to shut up the compiler with casts.
98368
98369 2000-10-26  Jim Meyering  <meyering@lucent.com>
98370
98371         * lib/strftime.c: Update from libc.
98372
98373 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98374
98375         * regex.c: More `unsigned char' -> `re_char' changes.
98376         Also change several `int' into `re_wchar_t'.
98377         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98378         (PUSH_FAILURE_POINTER): Don't cast any more.
98379         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98380         We want GCC to complain, since this piece of code makes
98381         re_match non-reentrant, which *should* be fixed.
98382         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98383         (EXTEND_BUFFER): Use RETALLOC.
98384         (SET_LIST_BIT): Don't cast.
98385         (re_wchar_t): New type.
98386         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
98387         that those two functions will always properly return.
98388         (IMMEDIATE_QUIT_CHECK): Cast to void.
98389         (analyse_first): Use recursion rather than an explicit stack.
98390         (re_compile_fastmap): Can't fail anymore.
98391         (re_search_2): Don't check re_compile_fastmap for failure.
98392         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
98393         Now also sets the new value (passed in a new argument).
98394         (re_match_2_internal): Use it.
98395         Also, use a new var `reg' of type size_t when looping through regs
98396         rather than reuse the inappropriate `mcnt'.
98397
98398 2000-10-25  Jim Meyering  <meyering@lucent.com>
98399
98400         * lib/obstack.c: Update from libc.
98401
98402 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98403
98404         * regex.c (regex_compile): Change the way of handling a range from
98405         a char less than 256 to a char not less than 256.
98406
98407 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98408
98409         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98410         NT-Emacs only.
98411         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98412         so that re_search functions only quit when callers expect them to.
98413
98414 2000-10-23  Jim Meyering  <meyering@lucent.com>
98415
98416         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98417         wrong.  That set_locale call must not have any side effects.
98418         From Paul Eggert.
98419
98420 2000-10-22  Jim Meyering  <meyering@lucent.com>
98421
98422         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98423         [CYCLIC]: Remove now-unused definition.
98424
98425         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98426         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98427         Suggestion from Ulrich Drepper.
98428
98429 2000-10-21  Jim Meyering  <meyering@lucent.com>
98430
98431         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98432         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98433         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98434
98435 2000-10-21  Jim Meyering  <meyering@lucent.com>
98436
98437         * lib/dirname.c (memrchr): Declare if necessary.
98438         (dir_name): Remove the restriction that there be no
98439         trailing slashes.  Now, this code skips past them, effectively
98440         ignoring them.
98441         [TEST_DIRNAME] (main): New unit tests.
98442
98443         * lib/memrchr.c: New file from GNU libc.
98444         Undef __memrchr, too.
98445         [!weak_alias]: Define __memrchr to memrchr.
98446         Guard weak_alias use with `#ifdef weak_alias'.
98447
98448 2000-10-21  Jim Meyering  <meyering@lucent.com>
98449
98450         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98451         (dir_name): Use dir_name_r.
98452         * lib/dirname.h (dir_name_r): Declare it.
98453
98454 2000-10-17  Jim Meyering  <meyering@lucent.com>
98455
98456         * lib/quote.h (PARAMS): Define and use.
98457         Reported by Akim Demaille.
98458
98459         * lib/getopt.c: Update from libc.
98460
98461 2000-10-16  Jim Meyering  <meyering@lucent.com>
98462
98463         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98464         setlocale.
98465         From Jan Fedak.
98466
98467 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98468
98469         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98470
98471 2000-09-25  Jim Meyering  <meyering@lucent.com>
98472
98473         * lib/md5.h (rol): Define (from GnuPG).
98474
98475         * lib/sha.c: Give credit (GnuPG) where due.
98476         (M): Use rol rather than open-coding it.
98477         Add a FIXME comment.
98478
98479 2000-09-21  Jim Meyering  <meyering@lucent.com>
98480
98481         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
98482         Reported by Michael Stone.
98483
98484 2000-09-20  Jim Meyering  <meyering@lucent.com>
98485
98486         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
98487         (noinst_HEADERS): Add sha.h.
98488         Based on code from Scott G. Miller and from GnuPG.
98489
98490 2000-09-18  Jim Meyering  <meyering@lucent.com>
98491
98492         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
98493         LIBS. Otherwise, everyone ends up linking with -lelf for some
98494         configurations.
98495         Reported by Mike Stone.
98496
98497 2000-09-15  Jim Meyering  <meyering@lucent.com>
98498
98499         * lib/regex.c: Update from libc.
98500
98501 2000-09-10  Jim Meyering  <meyering@lucent.com>
98502
98503         * lib/getopt.c (_getopt_internal): Update from glibc.
98504
98505 2000-09-09  Jim Meyering  <meyering@lucent.com>
98506
98507         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
98508         think it should be used as a general replacement for isascii.
98509         * lib/fnmatch.c: Likewise.
98510         * lib/mbswidth.c: Likewise
98511         * lib/regex.c: Likewise.
98512
98513         Don't use atoi.
98514         * lib/userspec.c: Include sys/param.h and limits.h.
98515         Include xstrtol.h.
98516         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
98517         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
98518         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
98519         UID, GID.  Check range.
98520
98521 2000-09-06  Jim Meyering  <meyering@lucent.com>
98522
98523         * lib/getopt.c (_getopt_internal): Update from glibc.
98524
98525 2000-08-30  Jim Meyering  <meyering@lucent.com>
98526
98527         * lib/strftime.c: Merge in changes from GNU libc.
98528
98529 2000-08-26  Jim Meyering  <meyering@lucent.com>
98530
98531         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
98532         * m4/fpending.m4: New file.
98533
98534 2000-08-26  Jim Meyering  <meyering@lucent.com>
98535
98536         * lib/closeout.c: Include "__fpending.h".
98537         (close_stdout_status): Return right away if there's nothing to flush.
98538
98539         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
98540         * lib/__fpending.c: New file.
98541         * lib/__fpending.h: New file.
98542
98543 2000-08-20  Jim Meyering  <meyering@lucent.com>
98544
98545         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
98546         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
98547         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
98548
98549 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
98550
98551         Improve fileutils installation on systems where running
98552         programs (like install) can't be unlinked.
98553         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
98554         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
98555
98556 2000-08-07  Paul Eggert  <eggert@twinsun.com>
98557
98558         Standardize on "memory exhausted" instead of "Memory exhausted"
98559         or "virtual memory exhausted".
98560         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
98561         "virtual memory exhausted".
98562         * lib/same.c (same_name): Invoke xalloc_die instead of printing
98563         our own message.
98564         * lib/userspec.c (parse_user_spec): Likewise.
98565         * lib/bumpalloc.h: comment fix
98566         * lib/same.c, userspec.c: Include xalloc.h.
98567
98568         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
98569         not char *const and pointing to a constant array.
98570         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
98571         (xrealloc): Comment fix.
98572
98573         * lib/userspec.c (parse_user_spec):
98574         Don't translate a message until just before returning,
98575         to avoid unnecessary translation.
98576
98577 2000-08-07  Jim Meyering  <meyering@lucent.com>
98578
98579         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
98580         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
98581         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
98582         getgroups.c, gethostname.c, getopt.h, group-member.c,
98583         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
98584         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
98585         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
98586         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
98587         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
98588         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
98589         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
98590         yesno.c: Back out Copyright date changes for each file with no change
98591         this year.  This eases coordination with other programs using the same
98592         source code modules.  From Paul Eggert.
98593
98594 2000-08-06  Paul Eggert  <eggert@twinsun.com>
98595
98596         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
98597         not char, for compatibility with glibc 2.1.3 strftime.c.
98598
98599 2000-08-03  Greg McGary  <greg@mcgary.org>
98600
98601         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
98602         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
98603         (EXTEND_BUFFER): Use them.
98604
98605 2000-08-01  Jim Meyering  <meyering@lucent.com>
98606
98607         * lib/dirname.c (ISSLASH): Define.
98608         (BACKSLASH_IS_PATH_SEPARATOR): Define.
98609         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
98610         both `\' and `/' may be use as path separators.
98611         Based on a patch from Prashant TR.
98612
98613 2000-07-31  Paul Eggert  <eggert@twinsun.com>
98614
98615         * lib/quotearg.c (quotearg_n_options): Don't make the initial
98616         slot vector a constant, since it might get modified.
98617
98618 2000-07-31  Jim Meyering  <meyering@lucent.com>
98619
98620         * lib/xmalloc.c: Use `virtual memory exhausted', not
98621         `Memory exhausted'.
98622         * lib/obstack.c (print_and_abort): Likewise.
98623
98624 2000-07-30  Paul Eggert  <eggert@twinsun.com>
98625
98626         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
98627         buffer, so that the caller can always quote one small
98628         component of a "memory exhausted" message in slot 0.
98629         From a suggestion by Jim Meyering.
98630
98631 2000-07-30  Jim Meyering  <meyering@lucent.com>
98632
98633         * lib/makepath.c (make_path): Quote the other instance, too.
98634
98635         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
98636         (STATIC_BUF_SIZE): Define.
98637         (quotearg_n_options): Use only statically allocated storage when
98638         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
98639         than STATIC_BUF_SIZE.
98640
98641 2000-07-29  Jim Meyering  <meyering@lucent.com>
98642
98643         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
98644         * lib/dirname.c (dir_name): Likewise.
98645
98646         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
98647         `/'.
98648
98649         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
98650         (dir_name): Assert that there are no trailing slashes.
98651
98652 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
98653
98654         * lib/mbswidth.h (mbswidth): Add a flags argument.
98655         (mbswidth): New declaration.
98656         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
98657         * lib/mbswidth.c (mbswidth): Add a flags argument.
98658         (mbsnwidth): New function.
98659
98660 2000-07-24  Jim Meyering  <meyering@lucent.com>
98661
98662         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
98663
98664 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98665
98666         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
98667
98668 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98669
98670         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
98671         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
98672         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
98673         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
98674         invoke multibyte primitives.
98675
98676 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98677
98678         * lib/quotearg.c:
98679         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
98680         so that mbstate_t is always defined.
98681
98682         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
98683         be 1 in at least one GCC installation, and this configuration
98684         error is likely to be common.  Ignoring MB_LEN_MAX hurts
98685         performance on hosts that have mbrtowc but have only unibyte
98686         locales, but I assume these hosts are rare.
98687
98688 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98689
98690         * lib/mbswidth.c (_XOPEN_SOURCE):
98691         Don't define; this causes problems on Solaris 7.
98692         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
98693
98694 2000-07-23  Jim Meyering  <meyering@lucent.com>
98695
98696         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
98697         too: getgrgid, getpwuid, getuid.
98698
98699 2000-07-23  Jim Meyering  <meyering@lucent.com>
98700
98701         * lib/basename.c (base_name): Add an assertion.
98702
98703 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
98704
98705         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
98706         shadow its mbsinit function.
98707
98708 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98709
98710         * lib/mbswidth.h: New file.
98711         * lib/mbswidth.c: New file.
98712         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
98713         (noinst_HEADERS): Add mbswidth.h.
98714
98715 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98716
98717         * lib/config.charset: Add support for FreeBSD. Improve support for
98718         HP-UX and IRIX 6.
98719
98720 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
98721
98722         * m4/mbswidth.m4: New file.
98723         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
98724
98725 2000-07-15  Jim Meyering  <meyering@lucent.com>
98726
98727         * lib/makepath.c: Include quote.h.
98728         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
98729         corresponding argument in a `quote (...)' call.
98730         Give better diagnostics.
98731
98732         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
98733         (noinst_HEADERS): Add quote.h.
98734
98735         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
98736         from tar's src/misc.c.
98737         * lib/quote.h: New file.  Prototypes for same.
98738
98739 2000-07-14  Paul Eggert  <eggert@twinsun.com>
98740
98741         From a suggestion by Bruno Haible.
98742         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
98743         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
98744         to decide whether to define the BeOS workaround macro;
98745         this adjusts to the change to AC_MBSTATE_T.
98746
98747 2000-07-14  Jim Meyering  <meyering@lucent.com>
98748
98749         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
98750         jm_AC_TYPE_UINTMAX_T.
98751
98752 2000-07-13  Paul Eggert  <eggert@twinsun.com>
98753
98754         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
98755
98756         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
98757         quotearg_buffer_restyled): Add support for
98758         clocale_quoting_style.  Undo previous change to
98759         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
98760         and "{RIGHT QUOTATION MARK}" msgids.
98761
98762 2000-07-10  Paul Eggert  <eggert@twinsun.com>
98763
98764         From a suggestion by Bruno Haible.
98765         * m4/mbstate_t.m4 (AC_MBSTATE_T):
98766         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
98767         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
98768         and mbstate_t, to a single-part test that simply defines mbstate_t.
98769         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
98770         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
98771
98772 2000-07-10  Jim Meyering  <meyering@lucent.com>
98773
98774         * m4/strerror_r.m4: Mirror the correction made in autoconf.
98775
98776         * m4/gnu-source.m4: Output to confdefs.h directly.
98777         Suggestion from Akim Demaille.
98778
98779 2000-07-09  Paul Eggert  <eggert@twinsun.com>
98780
98781         The old behavior of quoting `like this' doesn't look good with
98782         newer, ISO-style fonts.  See:
98783         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
98784
98785         Instead, quote "like this" by default.  Let the translator
98786         tailor the locale-specific quoting behavior by providing
98787         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
98788
98789         * lib/quotearg.c (N_): New macro.
98790         (gettext_default): New function.
98791         (quotearg_buffer_restyled): Use
98792         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
98793         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
98794
98795 2000-07-09  Jim Meyering  <meyering@lucent.com>
98796
98797         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
98798         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
98799
98800         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
98801         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
98802
98803 2000-07-09  Jim Meyering  <meyering@lucent.com>
98804
98805         * lib/Most files: Update copyright dates to include 2000.
98806
98807 2000-07-08  Jim Meyering  <meyering@lucent.com>
98808
98809         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
98810         if not defined.
98811         (xgethostname): Remove now-unnecessary #ifdef.
98812         Move declaration of `err' into loop where it's used.
98813
98814 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98815         and Bruno Haible  <haible@clisp.cons.org>
98816
98817         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
98818         only if the test for an object-type mbstate_t fails.  This
98819         prevents us from mistakenly reporting that mbstate_t is a
98820         system object type after we "#define mbstate_t int" to work
98821         around its lack.
98822
98823 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98824         and Bruno Haible  <haible@clisp.cons.org>
98825
98826         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
98827
98828 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98829
98830         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
98831         to strerror_r.
98832         Include <ctype.h> for use of isalpha.
98833
98834 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98835
98836         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
98837         by allocating a larger buffer. Test the gethostname return value for
98838         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
98839         returns an error and ENAMETOOLONG isn't defined.
98840
98841 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98842
98843         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
98844         dimension.
98845
98846 2000-07-04  Jim Meyering  <meyering@lucent.com>
98847
98848         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
98849         of the deprecated AC_CHECKING.
98850
98851 2000-07-04  Jim Meyering  <meyering@lucent.com>
98852
98853         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
98854         Reported by Bruno Haible.
98855
98856 2000-07-04  Jim Meyering  <meyering@lucent.com>
98857
98858         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
98859         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
98860         lacks mbrtowc.
98861
98862 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98863
98864         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
98865         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
98866
98867 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98868         and Bruno Haible  <haible@clisp.cons.org>
98869
98870         * lib/quotearg.c (mbrtowc):
98871         Assign to *pwc, and return 1 only if result is nonzero.
98872         (iswprint): Use ISPRINT when substituting our own mbrtowc.
98873
98874 2000-07-03  Jim Meyering  <meyering@lucent.com>
98875
98876         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
98877
98878 2000-07-03  Jim Meyering  <meyering@lucent.com>
98879
98880         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
98881         This is necessary to get a definition of e.g., UTMP_FILE on
98882         HP-UX 10.20.
98883         From Bob Proulx.
98884
98885 2000-07-02  Jim Meyering  <meyering@lucent.com>
98886
98887         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
98888
98889         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
98890         AC_LIBOBJ(function_name).
98891         * m4/chown.m4: Likewise.
98892         * m4/fnmatch.m4: Likewise.
98893         * m4/ftruncate.m4: Likewise.
98894         * m4/getgroups.m4: Likewise.
98895         * m4/getline.m4: Likewise.
98896         * m4/group-member.m4: Likewise.
98897         * m4/jm-macros.m4: Likewise.
98898         * m4/lstat.m4: Likewise.
98899         * m4/malloc.m4: Likewise.
98900         * m4/memcmp.m4: Likewise.
98901         * m4/nanosleep.m4: Likewise.
98902         * m4/putenv.m4: Likewise.
98903         * m4/realloc.m4: Likewise.
98904         * m4/regex.m4: Likewise.
98905         * m4/stat.m4: Likewise.
98906         * m4/strftime.m4: Likewise.
98907
98908 2000-07-02  Jim Meyering  <meyering@lucent.com>
98909
98910         * lib/quotearg.c (mbstate_t): Don't define here.
98911
98912 2000-07-02  Jim Meyering  <meyering@lucent.com>
98913
98914         * lib/nanosleep.c (SIGCONT): Define if not already defined.
98915
98916 2000-07-01  Jim Meyering  <meyering@lucent.com>
98917
98918         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
98919
98920 2000-07-01  Jim Meyering  <meyering@lucent.com>
98921
98922         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
98923         problem.
98924
98925 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98926
98927         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
98928         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
98929
98930 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98931
98932         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
98933         per change in ../m4/ls-mntd-fs.m4.
98934         (read_filesystem_list): Ignore symbolic links.
98935
98936 2000-06-29  Jim Meyering  <meyering@lucent.com>
98937
98938         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
98939         for declaration of strcmp.
98940
98941         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
98942
98943         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
98944         Avoid warning by casting result to `char *' to remove `const'.
98945
98946 2000-06-28  Jim Meyering  <meyering@lucent.com>
98947
98948         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
98949         included by quotearg.c, for which we perform this test.  From
98950         Bruno Haible.
98951
98952 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98953
98954         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
98955         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
98956         <utmpx.h> exists, put readutmp.o into LIBOBJS.
98957
98958 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98959
98960         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
98961
98962 2000-06-26  Paul Eggert  <eggert@twinsun.com>
98963
98964         savedir now sets errno on failure and invokes xmalloc to get memory.
98965         Fix a couple of other minor bugs while we're at it.
98966
98967         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
98968         (NAMLEN): Remove macro.
98969         (malloc, realloc): Remove decls.
98970         (stpcpy): Likewise.
98971         ("xalloc.h"): Include.
98972         (NAME_SIZE_DEFAULT): New macro.
98973         (savedir): Use xmalloc / xrealloc to allocate memory.
98974         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
98975         Skip "" directory entries.
98976         Use strlen to calculate directory entry length, since the old method
98977         is rarely used these days and isn't worth supporting.
98978         Don't use a pointer after freeing it.
98979         Check for integer overflow when calculating allocation size.
98980         Use memcpy to copy entries, instead of stpcpy.
98981         Set errno properly when returning NULL.
98982         Check for readdir error.
98983
98984 2000-06-26  Jim Meyering  <meyering@lucent.com>
98985
98986         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
98987
98988 2000-06-25  Jim Meyering  <meyering@lucent.com>
98989
98990         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
98991         Linux header bug when _XOPEN_SOURCE is defined to 500.
98992
98993 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98994
98995         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
98996         deficiency.
98997
98998 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98999
99000         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
99001         Include xalloc.h.
99002         Don't include <stdlib.h>.  Don't declare malloc, realloc.
99003
99004 2000-06-24  Jim Meyering  <meyering@lucent.com>
99005
99006         * m4/strerror_r.m4: Revive this file -- to try out an experimental
99007         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
99008         for which strerror does return char*, but which lacks a conveniently
99009         accessible declaration of the function.  If the compile-test says
99010         strerror_r doesn't work, then resort to a `run'-test that works on
99011         BeOS and segfaults on DEC Unix.
99012
99013 2000-06-24  Jim Meyering  <meyering@lucent.com>
99014
99015         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
99016
99017 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99018
99019         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
99020         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
99021
99022 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99023
99024         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
99025         (mbrtowc, mbstate_t): Define substitutes if
99026         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
99027         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
99028         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
99029
99030 2000-06-23  Jim Meyering  <meyering@lucent.com>
99031
99032         * m4/afs.m4: Add missing AC_MSG_RESULT.
99033         Reported by Bruno Haible.
99034
99035         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
99036         Suggestion from Bruno Haible.
99037
99038 2000-06-23  Jim Meyering  <meyering@lucent.com>
99039
99040         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
99041
99042 2000-06-21  Jim Meyering  <meyering@lucent.com>
99043
99044         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
99045
99046 2000-06-21  Jim Meyering  <meyering@lucent.com>
99047
99048         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
99049         (noinst_HEADERS): Add getstr.h.
99050
99051         * lib/getline.c (getstr): Move into a separate file.
99052         * lib/getstr.c (getstr): New file, extracted from getline.c, with
99053         the following changes: new parameter, delim2; both delim[12]
99054         parameters have type `int', not `char'.  The latter would lose
99055         with 8-bit delimiters.
99056         * lib/getstr.h: New file.
99057
99058 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99059
99060         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
99061         than 1024, return a memory chunk of least possible size, instead
99062         of size PATH_MAX + 2. In the loop, increment the size proportionally.
99063         Use free/xmalloc instead of xrealloc to avoid copying for very long
99064         paths.
99065
99066 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99067
99068         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
99069         the empty string.
99070
99071 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99072
99073         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
99074         address, not strdup.  Include <stdlib.h> and don't declare free().
99075
99076 2000-06-19  Jim Meyering  <meyering@lucent.com>
99077
99078         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
99079
99080 2000-06-18  Jim Meyering  <meyering@lucent.com>
99081
99082         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
99083
99084         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
99085         `checking whether...' message to be consistent with that of the
99086         lstat test.
99087
99088 2000-06-18  Jim Meyering  <meyering@lucent.com>
99089
99090         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
99091         Besides, these days every porting target provides a mkdir function.
99092
99093         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
99094         needed. (this snippet comes from src/system.h).
99095
99096 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
99097
99098         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
99099
99100 2000-06-15  Paul Eggert  <eggert@twinsun.com>
99101
99102         * lib/human.c (adjust_value): New function.
99103         (human_readable_inexact): Apply rounding style even when
99104         printing approximate values.
99105
99106 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99107
99108         * lib/human.c (human_readable_inexact): Allow an input block
99109         size that is not a multiple of the output block size, and vice versa.
99110         Reported by Piergiorgio Sartor.
99111
99112 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99113
99114         * lib/getdate.y (get_date): Apply relative times after time
99115         zone indicator, not before.  Reported by Todd A. Jacobs.
99116
99117 2000-06-13  Jim Meyering  <meyering@lucent.com>
99118
99119         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
99120
99121         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
99122
99123 2000-06-12  Paul Eggert  <eggert@twinsun.com>
99124
99125         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
99126
99127 2000-06-12  Jim Meyering  <meyering@lucent.com>
99128
99129         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
99130         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
99131         optional argument.
99132         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
99133         the optional argument, `lib'.
99134
99135 2000-06-08  Jim Meyering  <meyering@lucent.com>
99136
99137         * m4/largefile.m4: Remove file (now that it's part of autoconf).
99138
99139 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99140
99141         Rewrite largefile configuration so that we don't need to run
99142         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
99143         AC_CANONICAL_HOST in configure.in -- jmm]
99144
99145         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
99146         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
99147         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
99148         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
99149         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
99150         All uses changed.
99151         Instead of inspecting the output of getconf, try to compile the
99152         test program without and with the macro definition.
99153         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
99154         for getconf.  Instead, check for the needed flags by compiling
99155         test programs.
99156
99157 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99158
99159         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
99160
99161 2000-06-04  Jim Meyering  <meyering@lucent.com>
99162
99163         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
99164         SunOS 4.1.4 for which gid_t is an unsigned type.
99165
99166 2000-06-03  Jim Meyering  <meyering@lucent.com>
99167
99168         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
99169         now that autoconf requires that.
99170
99171         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
99172         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
99173         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
99174
99175 2000-06-03  Jim Meyering  <meyering@lucent.com>
99176
99177         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
99178
99179 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99180
99181         * m4/glibc21.m4: New file.
99182         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
99183
99184 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99185
99186         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
99187         newer, don't install charset.alias.
99188         * lib/config.charset: Change the Linux/glibc rules so they become empty
99189         on glibc-2.1 or newer.
99190
99191 2000-06-02  Jim Meyering  <meyering@lucent.com>
99192
99193         * lib/mountlist.c: Back out last change.  Instead, do this...
99194         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
99195         me_dummy member using the same `ignore'-testing code.
99196         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
99197         fs_type strings.
99198         From Mark D. Roth.
99199
99200 2000-05-29  Jim Meyering  <meyering@lucent.com>
99201
99202         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
99203         mounts with the `ignore' attribute.  Based on a patch from
99204         Mark D. Roth.
99205
99206 2000-05-28  Jim Meyering  <meyering@lucent.com>
99207
99208         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
99209         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99210         * m4/stat.m4: Likewise.
99211         * m4/lstat.m4: Likewise.
99212         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
99213
99214         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
99215         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
99216
99217 2000-05-26  Jim Meyering  <meyering@lucent.com>
99218
99219         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
99220
99221 2000-05-24  Jim Meyering  <meyering@lucent.com>
99222
99223         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
99224         autoconf requires that.
99225         * m4/lib-check.m4: Likewise.
99226         * m4/jm-macros.m4: Likewise.
99227         * m4/strftime.m4: Likewise.
99228
99229         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
99230         AC_CHECK_DECLS, now that autoconf requires that.
99231
99232 2000-05-22  Jim Meyering  <meyering@lucent.com>
99233
99234         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99235         * m4/lstat.m4: Likewise.
99236
99237 2000-05-22  Jim Meyering  <meyering@lucent.com>
99238
99239         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
99240
99241 2000-05-20  Jim Meyering  <meyering@lucent.com>
99242
99243         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
99244         (jm_PREREQ): Use it.
99245
99246 2000-05-18  Jim Meyering  <meyering@lucent.com>
99247
99248         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
99249         back, too, since it may have been modified by allocate_entry.
99250         (hash_delete): Rewrite to use neither the assignment operator
99251         nor the comma operator in an if-expression.
99252
99253 2000-05-15  Paul Eggert  <eggert@twinsun.com>
99254
99255         * lib/closeout.c:
99256         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
99257         Remove; no longer needed.
99258         "quotearg.h": Add include.
99259         (file_name): Do not bother to explicitly initialize to NULL; it's less
99260         efficient on some hosts.
99261         (close_stdout_status): Remove test as to whether stdout was already
99262         closed; it breaks for the case "echo x | sort >&-".
99263         Quote file name colons.
99264         Do not assume that _("write error") lacks format strings.
99265
99266 2000-05-15  Jim Meyering  <meyering@lucent.com>
99267
99268         * lib/version-etc.c (version_etc_copyright): Update the copyright
99269         string used in all --version output.
99270
99271 2000-05-14  Jim Meyering  <meyering@lucent.com>
99272
99273         * lib/closeout.c (close_stdout_set_file_name): New function.
99274         (close_stdout_status): Use new file-scoped global.
99275         Return right away if fstat says the stdout file descriptor is invalid.
99276         * lib/closeout.h (close_stdout_set_file_name): Declare.
99277
99278 2000-05-10  Jim Meyering  <meyering@lucent.com>
99279
99280         * lib/closeout.c [default_exit_status]: New file-scoped variable.
99281         (close_stdout_set_status): New function.
99282         * lib/closeout.h (close_stdout_set_status): Declare.
99283
99284 2000-05-09  Jim Meyering  <meyering@lucent.com>
99285
99286         * m4/gettext.m4: Rename this...
99287         * m4/libintl.m4: ...to this.
99288
99289 2000-05-08  Jim Meyering  <meyering@lucent.com>
99290
99291         * lib/long-options.c: Don't include closeout.h.
99292         (parse_long_options): Don't call close_stdout for --version.
99293
99294 2000-05-06  Paul Eggert  <eggert@twinsun.com>
99295
99296         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
99297         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
99298         2.1.3 bug.  This avoids a clash when files like regex.c define
99299         _GNU_SOURCE.
99300
99301 2000-05-06  Jim Meyering  <meyering@lucent.com>
99302
99303         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
99304         (AC_REPLACE_FUNCS): Add strnlen.
99305
99306         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
99307         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
99308
99309         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
99310         AC_SEARCH_LIBS call for nanosleep.
99311         (LIB_NANOSLEEP): Set and AC_SUBST.
99312
99313 2000-05-06  Jim Meyering  <meyering@lucent.com>
99314
99315         * lib/strnlen.c: Undefine __strnlen and strnlen.
99316         [!weak_alias]: Define __strnlen to strnlen.
99317
99318         * lib/atexit.c: New file, from libiberty.
99319
99320 2000-05-06  Jim Meyering  <meyering@lucent.com>
99321
99322         * lib/closeout.c (close_stdout_status): Also check for errors on the
99323         stderr stream.
99324
99325 2000-05-05  Jim Meyering  <meyering@lucent.com>
99326
99327         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99328         AC_SEARCH_LIBS call for clock_gettime.
99329         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99330
99331         * m4/search-libs.m4: Update from autoconf.
99332
99333         su doesn't work on Solaris 2.6.
99334         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99335         <shadow.h>.  Reported by Dragos Harabor.
99336
99337 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99338
99339         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99340         memcpy instead of xmalloc, xrealloc, path_concat.
99341         (locale_charset): Treat empty environment variables as absent.
99342         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99343
99344 2000-05-04  Jim Meyering  <meyering@lucent.com>
99345
99346         * lib/getopt.c: Update from glibc.
99347         * lib/obstack.c: Likewise.
99348         * lib/obstack.h: Likewise.
99349         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99350         file
99351
99352         * lib/regex.h: Likewise.
99353         * lib/strndup.c: Likewise.
99354         * lib/strnlen.c: New file, from glibc.
99355
99356 2000-05-03  Jim Meyering  <meyering@lucent.com>
99357
99358         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99359
99360 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99361
99362         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99363         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99364         compile-time test, rather than inspecting host and OS, to
99365         decide whether to define _LARGEFILE_SOURCE.
99366
99367 2000-05-01  Jim Meyering  <meyering@lucent.com>
99368
99369         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99370
99371         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99372         Based on a patch from Bruno Haible.
99373
99374 2000-05-01  Jim Meyering  <meyering@lucent.com>
99375
99376         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99377
99378 2000-04-29  Jim Meyering  <meyering@lucent.com>
99379
99380         * lib/path-concat.c: Declare strdup only if it's not defined.
99381         * lib/canon-host.c: Likewise.
99382
99383 2000-04-28  Jim Meyering  <meyering@lucent.com>
99384
99385         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99386         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
99387         is included first, then limits.h is included by locale.h by libintl.h.
99388         From John David Anglin.
99389
99390 2000-04-25  Jim Meyering  <meyering@lucent.com>
99391
99392         * lib/makepath.c (S_IRWXUGO): Define.
99393         (make_path): Always perform explicit chmod if MODE specifies any
99394         of the `special' permission bits.  Prompted by a bug report against
99395         install from Mate Wierdl and Joost van Baal.
99396
99397 2000-04-18  Jim Meyering  <meyering@lucent.com>
99398
99399         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99400         (jm_PREREQ): Use it.
99401
99402 2000-04-18  Jim Meyering  <meyering@lucent.com>
99403
99404         * lib/README: New file.
99405
99406         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99407         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99408
99409 2000-04-17  Jim Meyering  <meyering@lucent.com>
99410
99411         Get it right :-)
99412         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99413         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99414         Suggestion from Akim Demaille.
99415
99416 2000-04-17  Jim Meyering  <meyering@lucent.com>
99417
99418         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99419         the definition of it to rpl_strftime also defined-away the system's
99420         declaration.
99421
99422 2000-04-15  Jim Meyering  <meyering@lucent.com>
99423
99424         Use `C' to denote so-called `contiguous' files, the same way
99425         that tar does.
99426         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99427         (ftypelet): Use S_ISCTG.
99428         From Michael Deutschmann.
99429
99430 2000-04-14  Jim Meyering  <meyering@lucent.com>
99431
99432         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99433         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99434         clobbered.
99435
99436 2000-04-14  Jim Meyering  <meyering@lucent.com>
99437
99438         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99439
99440 2000-04-13  Jim Meyering  <meyering@lucent.com>
99441
99442         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99443         AH_VERBATIM to insert required #ifndef into config.h.in.
99444         Suggestion from Akim Demaille.
99445
99446 2000-04-12  Jim Meyering  <meyering@lucent.com>
99447
99448         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99449         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99450         Christian Krackowizer.
99451
99452         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99453         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99454         (AC_SYS_LARGEFILE): Require.
99455         (AM_C_PROTOTYPES): Require.
99456
99457 2000-04-08  Jim Meyering  <meyering@lucent.com>
99458
99459         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99460         names don't conflict.  Reported by Eli Zaretskii.
99461
99462 2000-04-07  Jim Meyering  <meyering@lucent.com>
99463
99464         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99465         sys/types.h, to work around system header problems on AIX 3.2.5.
99466         From Bruno Haible.
99467
99468 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99469
99470         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99471         bug.  Deal with the different error behavior of Irix iconv.
99472
99473 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99474
99475         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99476         IRIX if the installer said otherwise.
99477
99478 2000-04-05  Jim Meyering  <meyering@lucent.com>
99479
99480         Portability tweaks required for ultrix4.3.
99481         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
99482         (jm_CHECK_DECLS): Add getutent to the list of functions.
99483         (_jm_DECL_HEADERS): Add utmpx.h.
99484         From John David Anglin.
99485
99486         * m4/strftime.m4: Back out the 2000-04-02 change.
99487         Instead of that change, simply undefine putenv in the test program.
99488
99489 2000-04-05  Jim Meyering  <meyering@lucent.com>
99490
99491         Portability tweaks required for ultrix4.3.
99492         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
99493         getutent.
99494         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
99495         * lib/canon-host.c: Declare strdup.
99496         * lib/path-concat.c: Likewise.
99497         From John David Anglin.
99498
99499 2000-04-04  Jim Meyering  <meyering@lucent.com>
99500
99501         Be more DOS 8.3-friendly.
99502         * lib/ref-add.sin: Renamed from ref-add.sed.in.
99503         * lib/ref-del.sin: Renamed from ref-del.sed.in.
99504         * lib/Makefile.am: Reflect renaming.
99505         Reported by Eli Zaretskii.
99506
99507         Use a temporary file name that won't clash with `charset.alias'
99508         in the DOS 8.3 name space.
99509         * lib/Makefile.am (charset_tmp): Define.
99510         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
99511         (uninstall-local): Likewise.
99512         Reported by Eli Zaretskii.
99513
99514 2000-04-03  Jim Meyering  <meyering@lucent.com>
99515
99516         * m4/gettext.m4: Fix typo in comment.
99517
99518         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
99519         textutils/configure.in).  Suggestion from Paul Eggert.
99520         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
99521
99522 2000-04-02  Paul Eggert  <eggert@twinsun.com>
99523
99524         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
99525         variable in the shell rather than using putenv, which isn't
99526         portable.  This avoids the configure-time inter-test dependency
99527         on the potentially-renamed putenv function.
99528
99529 2000-03-30  Paul Eggert  <eggert@twinsun.com>
99530
99531         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
99532         before checking struct stat.st_blksize, so that
99533         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
99534
99535 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99536
99537         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
99538         since strftime.c uses HAVE_STRFTIME to decide whether to use
99539         the underlying strftime.
99540
99541 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99542
99543         * lib/time/strftime.c (my_strftime): Make sure we call the system
99544         strftime, not ourselves, when invoking the underlying strftime.
99545
99546 2000-03-24  Jim Meyering  <meyering@lucent.com>
99547
99548         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
99549         (charset_alias): Define.
99550         (install-exec-local): Factor out common code.
99551         (uninstall-local): Split lines longer than 80.
99552         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
99553         (SUFFIXES): Define.
99554         (.sed.in.sed): New rule.  Don't redirect directly to $@.
99555         (CLEANFILES): Add ref-add.sed and ref-del.sed.
99556
99557 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
99558
99559         * lib/config.charset: Output a line containing "Packages using this
99560         file".
99561         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
99562         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
99563         ref-del.sed): New rules.
99564
99565 2000-03-17  Jim Meyering  <meyering@lucent.com>
99566
99567         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
99568         Otherwise, include <strings.h>
99569
99570 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
99571
99572         * lib/unicodeio.c (utf8_wctomb): New function.
99573         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
99574         format instead of in UCS-4 with platform dependent endianness.
99575
99576 2000-03-10  Jim Meyering  <meyering@lucent.com>
99577
99578         * m4/lib-check.m4: Look for getspnam in -lgen, too.
99579         From Marco Franzen.
99580
99581 2000-03-07  Paul Eggert  <eggert@twinsun.com>
99582
99583         * lib/savedir.c (savedir): Work even if directory size is
99584         negative; this can happen with some screwy NFS configurations.
99585
99586 2000-03-06  Jim Meyering  <meyering@lucent.com>
99587
99588         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
99589         if it's NULL (because we ran out of memory).  From Bruno Haible.
99590
99591 2000-03-05  Jim Meyering  <meyering@lucent.com>
99592
99593         * lib/localcharset.c ("path-concat.h"): Include.
99594         (get_charset_aliases): Use path_concat instead of ANSI string
99595         concatenation.
99596
99597         * lib/unicodeio.h (PARAMS): Define.
99598         Use it to guard prototype.
99599
99600 2000-03-04  Jim Meyering  <meyering@lucent.com>
99601
99602         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
99603         for lib/localcharset.c.
99604
99605 2000-03-04  Jim Meyering  <meyering@lucent.com>
99606
99607         * lib/Makefile.am (install-exec-local): Create $(libdir) before
99608         installing into it.
99609         (uninstall-local): Uncomment this rule so `make distcheck' works
99610         once again.
99611
99612         * lib/unicodeio.c (<errno.h>): Include it.
99613         (errno): Declare if not defined.
99614
99615         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
99616
99617         * lib/config.charset: New version, incorporating remarks from a linux
99618         i18n mailing list.  From Bruno Haible.
99619
99620 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
99621
99622         * m4/codeset.m4: New file.
99623         * m4/iconv.m4: New file.
99624         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
99625
99626 2000-03-03  Jim Meyering  <meyering@lucent.com>
99627
99628         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
99629
99630 2000-03-02  Jim Meyering  <meyering@lucent.com>
99631
99632         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
99633         the messages come out on separate lines.
99634
99635         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
99636         rather than jm_CHECK_DECLARATIONS.
99637         * m4/decl.m4: Remove now-unused file.
99638
99639         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
99640         geteuid.
99641
99642 2000-03-02  Jim Meyering  <meyering@lucent.com>
99643
99644         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
99645
99646 2000-03-01  Jim Meyering  <meyering@lucent.com>
99647
99648         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
99649         * lib/unicodeio.c: Likewise.
99650
99651 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
99652
99653         * lib/config.charset: New file.
99654         * lib/localcharset.c: New file.
99655         * lib/unicodeio.h, lib/unicodeio.c: New files.
99656         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
99657         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
99658         (noinst_HEADERS): Add unicodeio.h.
99659         (all-local, install-exec-local, charset.alias): New targets.
99660
99661 2000-02-28  Paul Eggert  <eggert@twinsun.com>
99662
99663         * lib/quotearg.c (ALERT_CHAR): New macro.
99664         (quotearg_buffer_restyled): Use it.
99665
99666 2000-02-27  Jim Meyering  <meyering@lucent.com>
99667
99668         * m4/check-decl.m4: Add getenv to the list.
99669
99670 2000-02-27  Jim Meyering  <meyering@lucent.com>
99671
99672         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
99673         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
99674
99675         * lib/backupfile.c: Guard inclusion of stdlib.h with
99676         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
99677         Declare malloc if needed.
99678
99679         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
99680         `#ifndef HAVE_DECL..'
99681         now that autoconf always defines the HAVE_DECL_ symbols.
99682         * lib/human.c: Likewise.
99683         * lib/same.c: Likewise.
99684         * lib/strtoumax.c: Likewise.
99685
99686         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
99687         declaration check was not run.
99688         * lib/hash.c: Likewise.
99689         * lib/human.c: Likewise.
99690         * lib/same.c: Likewise.
99691         * lib/strtoumax.c: Likewise.
99692
99693         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
99694         `.', then first look up the entire `.'-containing string as a login
99695         name.
99696
99697 2000-02-23  Jim Meyering  <meyering@lucent.com>
99698
99699         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
99700         in place of my hack.
99701
99702 2000-02-18  Paul Eggert  <eggert@twinsun.com>
99703
99704         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
99705         (textint): New typedef.
99706         (parser_control): Member year changed from int to textint.
99707         All uses changed.
99708         (YYSTYPE): Removed; replaced by %union with int and textint members.
99709         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
99710         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
99711         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
99712         (tSNUMBER, tUNUMBER): Now of type <textintval>.
99713         (date, number, to_year): Use width of number in digits, not its value,
99714         to determine whether it's a 2-digit year, or a 2-digit time.
99715         (yylex): Store number of digits of numeric tokens.
99716         Reported by John Kendall.
99717
99718         (parser_control): Changed from struct parser_control to typedef (for
99719         consistency).  All uses changed.
99720
99721         (tID): Removed; not used.
99722         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
99723
99724 2000-02-14  Paul Eggert  <eggert@twinsun.com>
99725
99726         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
99727         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
99728
99729 2000-02-12  Jim Meyering  <meyering@lucent.com>
99730
99731         * lib/userspec.c (ISDIGIT): Define it.
99732         (isdigit): Remove definition.
99733         (is_number): Use ISDIGIT, not isdigit.
99734         <libintl.h>: Include.
99735         (_ and N_): Define.
99736         (parse_user_spec): Mark translatable strings.
99737
99738 2000-02-10  Jim Meyering  <meyering@lucent.com>
99739
99740         With these changes, nanosleep.[ch] are finally enough like the other
99741         lib/* replacement files to compile on a few more losing systems.
99742
99743         * lib/nanosleep.h: Don't include config.h.
99744         Remove prototype from declaration of nanosleep.
99745         (PARAMS): Remove now-unneeded definition.
99746         * lib/nanosleep.c: #undef nanosleep.
99747         (rpl_nanosleep): Rename from nanosleep.
99748
99749 2000-02-10  Jim Meyering  <meyering@lucent.com>
99750
99751         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
99752         gnu_nanosleep to rpl_nanosleep.
99753
99754 2000-02-09  Jim Meyering  <meyering@lucent.com>
99755
99756         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
99757         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
99758
99759 2000-02-08  Akim Demaille  <akim@epita.fr>
99760
99761         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
99762         `[' and `]' and remove uses of `changequote'.
99763         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
99764         (AC_SYS_LARGEFILE): Likewise.
99765         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
99766         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
99767         of changequote.
99768         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
99769         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
99770         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
99771         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
99772
99773 2000-02-05  Jim Meyering  <meyering@lucent.com>
99774
99775         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
99776         Remove explicit use of AC_HEADER_TIME.  It is required by
99777         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
99778         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
99779         in autoconf whereby the expansion of the latter ended up preceding
99780         the expansion of its prerequisite, AC_HEADER_TIME.
99781         Reported by Volker Borchert.
99782
99783 2000-02-03  Jim Meyering  <meyering@lucent.com>
99784
99785         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
99786
99787 2000-02-03  Jim Meyering  <meyering@lucent.com>
99788
99789         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
99790         rather than with `#if HAVE_UTMPNAME'.
99791
99792 2000-02-02  Jim Meyering  <meyering@lucent.com>
99793
99794         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
99795         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
99796         Reported by Eli Zaretskii.
99797
99798 2000-02-01  Jim Meyering  <meyering@lucent.com>
99799
99800         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
99801
99802 2000-01-31  Jim Meyering  <meyering@lucent.com>
99803
99804         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
99805         functions.  Add the time.h and sys/time.h headers along with the
99806         AC_REQUIRE'ment of AC_HEADER_TIME.
99807
99808 2000-01-31  Jim Meyering  <meyering@lucent.com>
99809
99810         * lib/nanosleep.h (nanosleep): Guard declaration with
99811         `#if ! HAVE_DECL_NANOSLEEP'.
99812         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
99813         the declaration in that vendor's sys/timers.h.
99814         Reported by Christian Krackowizer.
99815
99816         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
99817         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
99818         (ISPRINT): Likewise.
99819         Reported by Tom Tromey.
99820
99821 2000-01-30  Jim Meyering  <meyering@lucent.com>
99822
99823         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
99824
99825         * m4/prereq.m4 (utmp_includes): Define.
99826         Check for ut_user and ut_name members in both struct utmpx
99827         and struct utmp.
99828
99829 2000-01-30  Jim Meyering  <meyering@lucent.com>
99830
99831         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
99832         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
99833         header files where only utmpx.ut_user is declared.
99834
99835         * lib/readutmp.h (UT_USER): Define.
99836
99837 2000-01-29  Jim Meyering  <meyering@lucent.com>
99838
99839         * m4/lib-check.m4: New file containing library-related checks from
99840         fileutils and sh-utils (textutils had none).
99841
99842 2000-01-28  Jim Meyering  <meyering@lucent.com>
99843
99844         * m4/perl.m4: Change format of warning message to look more like that
99845         from the missing script.  Suggestion from François Pinard.
99846
99847 2000-01-25  Jim Meyering  <meyering@lucent.com>
99848
99849         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
99850         well as time.h in the compile check.
99851         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
99852         Fix typo in cross-compiling case: s/yes/no/.
99853
99854 2000-01-23  Jim Meyering  <meyering@lucent.com>
99855
99856         * m4/jm-macros.m4: Move df-related tests here from
99857         fileutils/configure.in
99858
99859         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
99860         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
99861
99862         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
99863         s/space/ac_fsusage_space/.
99864         (jm_FILE_SYSTEM_USAGE): Take two parameters.
99865
99866         * m4/ftruncate.m4: New file (derived from part of
99867         fileutils/configure.in).
99868         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
99869         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
99870
99871         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
99872         AC_SUBST these here, rather than just in sh-util/configure.in, so
99873         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
99874         all the same.
99875         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
99876         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
99877         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
99878         (AC_SUBST(POW_LIBM)): Likewise.
99879         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
99880
99881 2000-01-23  Jim Meyering  <meyering@lucent.com>
99882
99883         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
99884         obstack.c.
99885
99886 2000-01-22  Jim Meyering  <meyering@lucent.com>
99887
99888         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
99889
99890         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
99891
99892         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
99893         configure.in
99894         (AC_CHECK_HEADERS): Likewise for sh-utils.
99895         (AC_CHECK_HEADERS): Likewise for textutils.
99896         Merge the three lists of headers.
99897
99898         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
99899         from fileutils' configure.in.
99900
99901         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
99902         code. Moved tests into their own function (_jm_DECL_HEADERS) in
99903         check-decl.m4.
99904
99905         * m4/check-decl.m4: Use #if rather than #ifdef.
99906         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
99907         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
99908         (_jm_DECL_HEADERS): Define new function.
99909         (jm_CHECK_DECLARATIONS): Require it.
99910
99911 2000-01-22  Jim Meyering  <meyering@lucent.com>
99912
99913         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
99914         [! HAVE_DECL_STRTOULL]: Declare strtoull.
99915         Required for some AIX systems.  Reported by Christian Krackowizer.
99916         [TESTING] (main): New function.
99917
99918         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
99919         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
99920         letters.
99921
99922         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
99923         iswprint.
99924
99925         * lib/strverscmp.c (ISDIGIT): Define.
99926         (strverscmp): Use ISDIGIT, not isdigit.
99927
99928 2000-01-19  Jim Meyering  <meyering@lucent.com>
99929
99930         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
99931         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
99932         defines `struct timespec' in <sys/time.h>
99933
99934         * m4/c-bs-a.m4: Remove uses of changequote altogether.
99935         Thanks to Akim for explaining.
99936
99937 2000-01-17  Paul Eggert  <eggert@twinsun.com>
99938
99939         * lib/nanosleep.c (nanosleep):
99940         Don't use SA_INTERRUPT to decide whether to call sigaction, as
99941         POSIX.1 doesn't require SA_INTERRUPT and some systems
99942         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
99943         it's been part of POSIX.1 since day 1 (in 1988).
99944
99945 2000-01-17  Jim Meyering  <meyering@lucent.com>
99946
99947         * lib/interlock: Remove unused file.  Reported by François Pinard.
99948
99949 2000-01-16  Paul Eggert  <eggert@twinsun.com>
99950
99951         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
99952         alert, backslash, formfeed, and vertical tab unnecessarily in
99953         shell quoting style.
99954
99955 2000-01-16  Jim Meyering  <meyering@lucent.com>
99956
99957         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
99958         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
99959         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
99960         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
99961
99962 2000-01-16  Jim Meyering  <meyering@lucent.com>
99963
99964         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
99965         because the latter didn't work.
99966
99967 2000-01-15  Jim Meyering  <meyering@lucent.com>
99968
99969         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
99970         (AC_REPLACE_FUNCS): Add memcpy and memset.
99971         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
99972         Add strpbrk.
99973         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
99974
99975 2000-01-12  Jim Meyering  <meyering@lucent.com>
99976
99977         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
99978         (jm_PREREQ): Use it.
99979         (jm_PREREQ_READUTMP): New macro.
99980         (jm_PREREQ): Use it.
99981
99982 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99983
99984         Quote multibyte characters correctly.
99985         * m4/c-bs-a.m4: New file.
99986         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
99987         (jm_PREREQ): Use it.
99988
99989 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99990
99991         * m4/uintmax_t.m4: Port to autoconf 2.13.
99992
99993 2000-01-08  Jim Meyering  <meyering@ascend.com>
99994
99995         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
99996         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
99997
99998 2000-01-04  Jim Meyering  <meyering@ascend.com>
99999
100000         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
100001         jm_STRUCT_DIRENT_D_TYPE.
100002         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
100003         jm_STRUCT_DIRENT_D_INO.
100004         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
100005         jm_STRUCT_UTIMBUF.
100006         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
100007         renamings.
100008         * m4/utime.m4: Likewise.
100009
100010         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
100011         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
100012
100013 2000-01-03  Paul Eggert  <eggert@twinsun.com>
100014
100015         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
100016         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
100017
100018 2000-01-02  Jim Meyering  <meyering@ascend.com>
100019
100020         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
100021         remember if this is necessary.
100022
100023 1999-12-26  Jim Meyering  <meyering@ascend.com>
100024
100025         * m4/jm-macros.m4: Use it here.
100026         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
100027
100028 1999-12-23  Jim Meyering  <meyering@ascend.com>
100029
100030         * m4/jm-macros.m4: Check for clock_gettime (moved from
100031         fileutils/configure.in)
100032         Check for gettimeofday.
100033
100034 1999-12-20  Jim Meyering  <meyering@ascend.com>
100035
100036         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
100037         autoconf-2.14a-1999-12-20.
100038
100039 1999-12-19  Jim Meyering  <meyering@ascend.com>
100040
100041         * m4/lstat-slash.m4: New file.
100042         * m4/jm-macros.m4: Use the new macro:
100043         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
100044
100045 1999-12-07  Jim Meyering  <meyering@ascend.com>
100046
100047         * m4/perl.m4: Require that File::Compare be available, too.
100048         Too many systems seem to lack it.
100049
100050         * m4/strftime.m4: Add checks for most of the cpp macros tested in
100051         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
100052
100053 1999-11-18  Paul Eggert  <eggert@twinsun.com>
100054
100055         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
100056         problem with the QNX 4.25 shell, which doesn't propagate exit
100057         status of failed commands inside shell assignments.
100058
100059 1999-11-17  Jim Meyering  <meyering@ascend.com>
100060
100061         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
100062
100063 1999-11-07  Jim Meyering  <meyering@ascend.com>
100064
100065         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
100066
100067 1999-11-06  Jim Meyering  <meyering@ascend.com>
100068
100069         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
100070         * m4/jm-macros.m4 (jm_MACROS): Use it here.
100071
100072 1999-11-05  Jim Meyering  <meyering@ascend.com>
100073
100074         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
100075         configure.in of textutils, fileutils, and sh-utils into this one
100076         (shared between those packages) file.
100077         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
100078         AC_STRUCT_ST_BLKSIZE.
100079
100080 1999-11-03  Jim Meyering  <meyering@ascend.com>
100081
100082         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
100083         of AC_CHECK_TYPE checks includes unistd.h.
100084         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
100085         Suggestion from Akim Demaille.
100086
100087 1999-10-30  Jim Meyering  <meyering@ascend.com>
100088
100089         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
100090         m4-quoted string.
100091         * m4/ls-mntd-fs.m4: Likewise.
100092         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
100093         * m4/jm-winsz1.m4: Likewise.
100094
100095         * m4/const.m4: Remove file, since the fix made it into the experimental
100096         version of autoconf.
100097         * m4/mktime.m4: Likewise.
100098
100099         * m4/check-type.m4: Remove file, now that the latest version of
100100         AC_CHECK_TYPE takes a third arg to specify additional #includes.
100101
100102         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
100103         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
100104         AC_CHECK_TYPE.
100105
100106 1999-10-04  Jim Meyering  <meyering@ascend.com>
100107
100108         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
100109
100110 1999-09-22  Paul Eggert  <eggert@twinsun.com>
100111
100112         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
100113         2.95.1 bug with HP-UX 10.20.
100114
100115 1999-09-17  Jim Meyering  <meyering@ascend.com>
100116
100117         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
100118         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
100119         due to missing strdup (against sh-utils-2.0).
100120
100121 1999-08-29  Jim Meyering  <meyering@ascend.com>
100122
100123         * m4/jm-macros.m4: Require jm_BISON.
100124         * m4/bison.m4: New file.
100125
100126 1999-08-17  Paul Eggert  <eggert@twinsun.com>
100127
100128         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
100129         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
100130
100131 1999-08-05  Jim Meyering  <meyering@ascend.com>
100132
100133         * m4/getline.m4: Rename test file from conftestdata to conftest.data
100134         to avoid conflicts with `conftest' on 8+3 filesystems.
100135         Suggestion from Eli Zaretskii.
100136
100137 1999-08-04  Jim Meyering  <meyering@ascend.com>
100138
100139         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
100140         fileutils and sh-utils (textutils's getline test was inadequate).
100141         (AM_FUNC_GETLINE): Run this test.
100142         (AC_CHECK_FUNCS): Check for getdelim.
100143         Reported by Bob Proulx.
100144
100145 1999-08-02  Jim Meyering  <meyering@ascend.com>
100146
100147         * m4/jm-macros.m4: Add a comment.
100148
100149 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100150
100151         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
100152         <inttypes.h> defines strtoumax as a macro (and not as a
100153         function).
100154
100155 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100156
100157         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
100158         that we can shift, multiply and divide unsigned long long
100159         values; Ultrix cc can't do it.
100160
100161 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100162
100163         * m4/mktime.m4: New file, which is a preview of what should appear
100164         in the next public autoconf release.
100165
100166 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100167
100168         * m4/lfs.m4: Remove this file.
100169         * m4/largefile.m4: New file.  It contains the old contents of
100170         lfs.m4, except that all names with prefix AC_LFS have been
100171         changed to use the prefix AC_SYS_LARGEFILE instead, to be
100172         compatible with future autoconf versions.  Also, some minor m4
100173         quoting problems have been fixed.
100174
100175 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100176
100177         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
100178         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
100179         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
100180         and simplify the shell code.
100181
100182 1999-08-01  Jim Meyering  <meyering@ascend.com>
100183
100184         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
100185         m4.
100186
100187 1999-07-20  Jim Meyering  <meyering@ascend.com>
100188
100189         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
100190
100191 1999-07-15  Jim Meyering  <meyering@ascend.com>
100192
100193         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
100194
100195 1999-05-22  Jim Meyering  <meyering@ascend.com>
100196
100197         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
100198
100199 1999-05-20  Jim Meyering  <meyering@ascend.com>
100200
100201         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
100202         Add a colon after each `then' in case $4 is empty.
100203
100204 1999-05-16  Jim Meyering  <meyering@ascend.com>
100205
100206         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
100207
100208 1999-05-10  Jim Meyering  <meyering@ascend.com>
100209
100210         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
100211
100212         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
100213         AC_FUNC_MKTIME.
100214
100215 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
100216
100217         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
100218
100219 1999-05-04  Paul Eggert  <eggert@twinsun.com>
100220
100221         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
100222         not CPPFLAGS, so that linking works correctly in IRIX.
100223
100224 1999-04-30  Paul Eggert  <eggert@twinsun.com>
100225
100226         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
100227
100228 1999-04-20  Paul Eggert  <eggert@twinsun.com>
100229
100230         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
100231         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
100232         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
100233         jm_AC_TYPE_UNSIGNED_LONG_LONG.
100234         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
100235
100236         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
100237
100238 1999-04-20  Jim Meyering  <meyering@ascend.com>
100239
100240         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
100241         AC_REPLACE xstroull if necessary.  From Paul Eggert.
100242         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
100243
100244 1999-04-18  Jim Meyering  <meyering@ascend.com>
100245
100246         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
100247         * m4/jm-macros.m4: Use it.
100248
100249 1999-04-06  Jim Meyering  <meyering@ascend.com>
100250
100251         * m4/strftime.m4: Remove test for %f.
100252
100253 1999-03-29  Jim Meyering  <meyering@ascend.com>
100254
100255         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
100256         superset of the AC_TYPE_* checks in the textutils, fileutils,
100257         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
100258         AC_TYPE_PID_T.
100259
100260 1999-03-28  Jim Meyering  <meyering@ascend.com>
100261
100262         * m4/jm-macros.m4: Define GNU_PACKAGE here.
100263         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
100264         replaced e.g., in the *.sh files of the sh-utils.
100265
100266 1999-03-20  Jim Meyering  <meyering@ascend.com>
100267
100268         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
100269         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
100270         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
100271
100272 1999-03-19  Jim Meyering  <meyering@ascend.com>
100273
100274         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
100275
100276 1999-03-12  Jim Meyering  <meyering@ascend.com>
100277
100278         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
100279
100280 1999-03-07  Jim Meyering  <meyering@ascend.com>
100281
100282         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
100283         declared.
100284
100285 1999-02-17  Jim Meyering  <meyering@ascend.com>
100286
100287         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
100288         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
100289
100290 1999-02-07  Jim Meyering  <meyering@ascend.com>
100291
100292         * m4/group-member.m4: New file -- extracted from sh-utils'
100293         configure.in.
100294
100295         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
100296         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
100297
100298 1999-02-06  Jim Meyering  <meyering@ascend.com>
100299
100300         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
100301         * m4/fnmatch.m4: Likewise.
100302         * m4/getgroups.m4: Likewise.
100303         * m4/lstat.m4: Likewise.
100304         * m4/malloc.m4: Likewise.
100305         * m4/putenv.m4: Likewise.
100306         * m4/realloc.m4: Likewise.
100307         * m4/regex.m4: Likewise.
100308         * m4/stat.m4: Likewise.
100309         * m4/strftime.m4: Likewise.
100310         Suggestion from Alain Magloire.
100311
100312         * m4/chown.m4: Use `.$ac_objext', not `.o'.
100313         * m4/fnmatch.m4: Likewise.
100314         * m4/getgroups.m4: Likewise.
100315         * m4/getline.m4: Likewise.
100316         * m4/lstat.m4: Likewise.
100317         * m4/malloc.m4: Likewise.
100318         * m4/memcmp.m4: Likewise.
100319         * m4/putenv.m4: Likewise.
100320         * m4/realloc.m4: Likewise.
100321         * m4/regex.m4: Likewise.
100322         * m4/stat.m4: Likewise.
100323         * m4/strftime.m4: Likewise.
100324         Suggestion from Alain Magloire.
100325
100326         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100327         an argument.
100328
100329         * m4/regex.m4: Add a run-time Test for proper operation of
100330         re_compile_pattern.
100331
100332 1999-01-31  Jim Meyering  <meyering@ascend.com>
100333
100334         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100335
100336 1999-01-30  Jim Meyering  <meyering@ascend.com>
100337
100338         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100339
100340         * m4/jm-mktime.m4: Make this a wrapper around the official
100341         AM_FUNC_MKTIME rather than my private copy, now that the official one
100342         is up to date.
100343         * m4/mktime.m4: Remove file.
100344
100345         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100346         * m4/uptime.m4: Likewise.
100347         * m4/uintmax_t.m4: Likewise.
100348
100349 1999-01-28  Jim Meyering  <meyering@ascend.com>
100350
100351         * m4/jm-macros.m4: Use jm_AFS.
100352         * m4/afs.m4: New file (from fileutils' configure.in).
100353
100354         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100355         * m4/chown.m4: Likewise.
100356         * m4/d-ino.m4: Likewise.
100357         * m4/d-type.m4: Likewise.
100358         * m4/fnmatch.m4: Likewise.
100359         * m4/getgroups.m4: Likewise.
100360         * m4/gettext.m4: Likewise.
100361         * m4/jm-mktime.m4: Likewise.
100362         * m4/jm-winsz2.m4: Likewise.
100363         * m4/lcmessage.m4: Likewise.
100364         * m4/ls-mntd-fs.m4: Likewise.
100365         * m4/malloc.m4: Likewise.
100366         * m4/memcmp.m4: Likewise.
100367         * m4/putenv.m4: Likewise.
100368         * m4/realloc.m4: Likewise.
100369         * m4/st_mtim.m4: Likewise.
100370         * m4/strftime.m4: Likewise.
100371
100372 1999-01-16  Jim Meyering  <meyering@ascend.com>
100373
100374         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100375         (ARGMATCH_DIE_DECL): Define.
100376
100377 1999-01-12  Jim Meyering  <meyering@ascend.com>
100378
100379         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100380         Reported by Lars Hecking.
100381
100382 1999-01-10  Jim Meyering  <meyering@ascend.com>
100383
100384         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100385         gross kludge.
100386         * m4/inttypes_h.m4: Likewise.
100387         * m4/lstat.m4: Likewise.
100388         * m4/malloc.m4: Likewise.
100389         * m4/readdir.m4: Likewise.
100390         * m4/realloc.m4: Likewise.
100391         * m4/st_dm_mode.m4: Likewise.
100392         * m4/stat.m4: Likewise.
100393         * m4/utimbuf.m4: Likewise.
100394         * m4/utimes.m4: Likewise.
100395
100396         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100397         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100398         comments in config.h.in are meaningful.
100399
100400         * m4/jm-macros.m4: Require autoconf-2.13 here.
100401
100402         * m4/regex.m4: By default, don't use the included regex.c on systems
100403         with glibc 2.  Suggestion from Uli Drepper.
100404
100405 1999-01-02  Jim Meyering  <meyering@ascend.com>
100406
100407         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100408
100409 1998-12-18  Jim Meyering  <meyering@ascend.com>
100410
100411         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100412         Based on a suggestion from Lars Hecking.
100413
100414 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100415
100416         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100417
100418 1998-11-16  Jim Meyering  <meyering@ascend.com>
100419
100420         * m4/lfs.m4: Double-quote the `uname...` expression.
100421
100422 1998-11-14  Jim Meyering  <meyering@ascend.com>
100423
100424         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100425         * m4/stat.m4: Likewise.
100426
100427 1998-11-03  Jim Meyering  <meyering@ascend.com>
100428
100429         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100430         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100431
100432 1998-10-18  Jim Meyering  <meyering@ascend.com>
100433
100434         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100435
100436 1998-10-17  Jim Meyering  <meyering@ascend.com>
100437
100438         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100439         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100440         calls for those previously hard-coded headers.  Instead, take a new
100441         parameter.
100442         (jm_CHECK_DECLARATIONS): Reflect interface change.
100443         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100444         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100445
100446         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100447
100448 1998-10-14  Jim Meyering  <meyering@ascend.com>
100449
100450         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100451         instead of "TZ=America/Vancouver".  From Paul Eggert.
100452
100453 1998-10-11  Jim Meyering  <meyering@ascend.com>
100454
100455         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100456         This adds a test for a recently added compatibility fix for mktime.c.
100457         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100458
100459 1998-09-27  Jim Meyering  <meyering@ascend.com>
100460
100461         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100462
100463         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100464         ../configure.in, including a change from Gordon Matzigkeit to allow
100465         cross-compiling for the Hurd.
100466
100467         * m4/glibc.m4: New file/macro to test for the GNU C Library
100468         versions 1 and 2.  From Gordon Matzigkeit.
100469         Indent.
100470
100471 1998-09-21  Jim Meyering  <meyering@ascend.com>
100472
100473         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100474
100475 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100476
100477         Port nanosecond-resolution times to UnixWare 2.1.2 and
100478         pedantic Solaris 2.6.
100479
100480         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
100481         AC_STRUCT_ST_MTIM.
100482         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
100483         Generate name of ns member, instead of just 1 or undef.
100484         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
100485
100486 1998-08-15  Jim Meyering  <meyering@ascend.com>
100487
100488         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
100489         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
100490         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
100491         instead of jm_TYPE_SSIZE_T.
100492
100493 1998-08-12  Jim Meyering  <meyering@ascend.com>
100494
100495         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
100496
100497 1998-08-02  Jim Meyering  <meyering@ascend.com>
100498
100499         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
100500         in acconfig.h manually.
100501
100502 1998-07-31  Paul Eggert  <eggert@twinsun.com>
100503
100504         * m4/st_mtim.m4: New file.
100505
100506 1998-07-28  Jim Meyering  <meyering@ascend.com>
100507
100508         * m4/utimes.m4: Undef stat.
100509
100510 1998-07-25  Jim Meyering  <meyering@ascend.com>
100511
100512         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
100513         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
100514
100515 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
100516
100517         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
100518         uid and gid actually remain unchanged.
100519
100520 1998-07-07  Jim Meyering  <meyering@ascend.com>
100521
100522         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
100523
100524 1998-07-04  Jim Meyering  <meyering@ascend.com>
100525
100526         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
100527         to prove that this macro can be used in packages without regex.c.
100528
100529 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
100530
100531         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
100532         is to be used.
100533
100534 1998-07-03  Jim Meyering  <meyering@ascend.com>
100535
100536         * m4/gettext.m4: Add -lintl if it's found to be necessary.
100537
100538         * m4/gettext.m4: New file -- from gettext-0.10.35.
100539         * m4/lcmessage.m4: Likewise.
100540         * m4/progtest.m4: Likewise.
100541
100542         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
100543         * m4/jm-macros.m4: Require the new macro.
100544
100545 1998-06-29  Jim Meyering  <meyering@ascend.com>
100546
100547         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
100548         for the definition of NGROUPS (used in a system header included
100549         by sys/mount.h).
100550
100551 1998-06-28  Jim Meyering  <meyering@ascend.com>
100552
100553         * m4/ls-mntd-fs.m4: New file.
100554         * m4/fstypename.m4: New file.
100555
100556         * m4/jm-macros.m4: Require the new macro.
100557         * m4/jm-glibc-io.m4: New file.
100558
100559 1998-05-19  Jim Meyering  <meyering@ascend.com>
100560
100561         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
100562         * m4/lchown.m4: New file.
100563
100564         * m4/Makefile.am.in: New file.
100565         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
100566
100567 1998-05-14  Jim Meyering  <meyering@ascend.com>
100568
100569         * m4/Makefile.am (EXTRA_DIST): Add them.
100570         * m4/jm-macros.m4: New file.
100571         * m4/utimbuf.m4: New file.
100572
100573 1998-05-12  Jim Meyering  <meyering@ascend.com>
100574
100575         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
100576
100577 1998-05-11  Jim Meyering  <meyering@ascend.com>
100578
100579         * m4/isc-posix.m4: New file.
100580
100581 1998-05-10  Jim Meyering  <meyering@ascend.com>
100582
100583         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
100584
100585 1998-05-09  Jim Meyering  <meyering@ascend.com>
100586
100587         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
100588         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
100589         with automake.
100590
100591         * m4/ssize_t.m4: New file.
100592         * m4/mktime.m4: Remove file -- the new automake has this now.
100593
100594 1998-04-26  Jim Meyering  <meyering@ascend.com>
100595
100596         * m4/assert.m4: New file.
100597         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
100598
100599 1998-04-05  Jim Meyering  <meyering@ascend.com>
100600
100601         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
100602         (jm_PREREQ): Use it here.
100603
100604 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
100605
100606         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
100607         in acconfig.h.
100608
100609 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
100610
100611         * m4/prereq.m4: New file.
100612         * m4/error.m4: New file.
100613         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
100614
100615 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
100616
100617         * m4/getline.m4: Don't set am_cv_func_working_getline before the
100618         cache-check for the same variable -- that defeated the purpose of
100619         the test; the test program was never run.  This was a problem only
100620         on systems with losing getline functions -- HP-UX 10.20 is one.
100621         Reported by Bjorn Helgaas.
100622
100623 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
100624
100625         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
100626
100627 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
100628
100629         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
100630
100631         * m4/const.m4: New file.  Use an initializer in this declaration
100632         typedef int charset[2]; const charset x;
100633         Reported by Bob Glickstein.
100634
100635 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
100636
100637         * m4/chown.m4: Fix reversed types on -1 args to chown.
100638         From Kaveh Ghazi.
100639
100640 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
100641
100642         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
100643         Add lseek and memchr.
100644
100645         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
100646         T.E.Dickey <dickey@clark.net> said that some older preprocessors
100647         have a 20-character limit on names.
100648
100649 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
100650
100651         * m4/inttypes_h.m4: New file.
100652         * m4/uintmax_t.m4: New file.
100653         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
100654
100655
100656         -----
100657
100658         Local Variables:
100659         coding: utf-8
100660         End:
100661
100662         Copyright (C) 1997-2013 Free Software Foundation, Inc.
100663
100664         Copying and distribution of this file, with or without
100665         modification, are permitted provided the copyright notice
100666         and this notice are preserved.